Jorge Razor
Forum Replies Created
-
Forum: Plugins
In reply to: [Abandoned Cart Lite for WooCommerce] Show only Composite productsHello. Yes, that’s what I want it. Thanks.
Forum: Plugins
In reply to: [Abandoned Cart Lite for WooCommerce] Remove product imagesWorks perfectly. Thanks!
Forum: Plugins
In reply to: [Super Page Cache] wp_is_mobile not workingI replaced all wp_is_mobile() functions from mycode for equivalent CSS or JS, installed this plugin again witout the set of rules and etc. It really is very nice plugin and my site is loading really fast.
Forum: Plugins
In reply to: [Super Page Cache] wp_is_mobile not workingYes, I paid attention to every step, creating the rules and selecting “by device type” option, enable “remove cache buster” plugin option and clearing all cache. Maybe I miss something, but it really didn’t work for me.
Forum: Plugins
In reply to: [Super Page Cache] wp_is_mobile not workingUnfortunately I followed the steps with attention but the cache still gets or mobile or desktop e shows for everyone. I had to unistall the plugin for now. I’ll try to remove all the wp_is_mobile in my code, but metabox makes it almoust impossible. Thanks anyway.
Forum: Plugins
In reply to: [Super Page Cache] wp_is_mobile not workingThanks for the answer. I’ll follow the steps and come back to you.
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Insert button anywhereHi, @anuarsaba ??
I’ve created a form on the single product page that opens a bootstrap modal where the customer can choose between open the PDF in a new window or receive it by e-mail:
<form id="orcamento-single-product-form" method="GET" action="<?php echo wc_get_cart_url(); ?>" target="_blank" class="w-100 br-24 mt-5 mt-lg-0"> <?php wp_nonce_field('cart-pdf', '_wpnonce', false, true ); ?> <input class="d-none" type="text" readonly="readonly" name="cart-pdf" value="1" /> <input class="d-none" type="text" readonly="readonly" name="pagina" value="2" /> <input class="d-none" type="text" readonly="readonly" name="idproduto" value="<?php the_ID(); ?>" /> <input class="d-none" type="text" readonly="readonly" id="precoproduto" name="precoproduto" value="" /> <input class="d-none" type="text" readonly="readonly" id="emailorcamento" name="email" value="" /> <button id="enviar-form-personalizacao" type="submit" class="d-none">BAIXAR OR?AMENTO</button> <div class="divisor-texto mb-4 mt-3"></div> <a href="#" class="cor-roxo hover-roxo text-center text-lg-start d-inline-block w-100" title="Baixar or?amento" data-bs-toggle="modal" data-bs-target="#modal-orcamento-passo-1"><b>BAIXAR OR?AMENTO ></b></a> <small id="orcamento-texto" class="d-none mb-4">*Selecione todos os componentes para habilitar o bot?o de or?amento.</small> </form>
Then I modified the code on the plugin file (not recommended, but needed to achive what I wanted it) plugins/wc-cart-pdf/wc-cart-pdf.php to menage the parameters and behave the way I wanted, generating the PDF on the browser or send it via email to the custumer (with wp_mail).
Hope this helps you.
Forum: Plugins
In reply to: [Abandoned Cart Lite for WooCommerce] Remove product imagesHello, @priyankajagtap!
Was the filter added in the latest updates?
- This reply was modified 2 years, 10 months ago by Jorge Razor.
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Changing send MailMaybe pass a variable thru the URL that prevents from beeing downloaded, just generate and send…
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Changing send MailSorry, I don’t know where to put this code, but let me remake my question.
I have to create a function that generates and downloads the PDF, and another one that generates and send the PDF by email without downloading.
Is it possible?
Thanks.
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Changing send MailHello, @dkjensen !
Can I add this new email recepient dinamically and on demand?
I have a button “send e-mail with budget” in my site that must send the PDF to the custumer that just generate it (I get the custumer e-mail in a form earlier).
Is that possible via JS, PHP or Ajax?
Thanks!
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Pass parameters to PDFUnfortunately i had to remove the cart empty check from the wc_cart_pdf_process_download() function, in the core file of the plugin to make it work, because I need the user to be able to generate PDF from the single product page, most of the times without even getting to the cart. Like I said before, this is totally custom and I’ll have to deal with it myself, but thanks A LOT for your attention and support. If you have any more hints, I’d appreciate it ??
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Pass parameters to PDFThat did the trick, thanks again! Now I have another problem, if the cart is not empty, the function works, but if is empty, then I get redirected to cart with the “your cart is empty” message. I guess this is the plugin default behavior, since its made for the cart, but is there a way to bypass that on my function? Thanks.
Forum: Plugins
In reply to: [WooCommerce Cart PDF] Insert button anywhereAll working good now. Thanks a lot for the replys and patience.
Now I can print almoust anything from any front-end page just by passing the right parameters thru the URL.
Once again, congratulations on the plugin.