Title: Jorge Razor's Replies | WordPress.org

---

# Jorge Razor

  [  ](https://wordpress.org/support/users/jorgehoffmann/)

 *   [Profile](https://wordpress.org/support/users/jorgehoffmann/)
 *   [Topics Started](https://wordpress.org/support/users/jorgehoffmann/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jorgehoffmann/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jorgehoffmann/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jorgehoffmann/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jorgehoffmann/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jorgehoffmann/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/jorgehoffmann/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jorgehoffmann/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Abandoned Cart Lite for WooCommerce] Show only Composite products](https://wordpress.org/support/topic/show-only-composite-products/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/show-only-composite-products/#post-16641791)
 * Hello. Yes, that’s what I want it. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Abandoned Cart Lite for WooCommerce] Remove product images](https://wordpress.org/support/topic/remove-product-images-3/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/remove-product-images-3/#post-16610207)
 * Works perfectly. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Print Invoice & Delivery Notes for WooCommerce] Plugin is vulnerable to Cross Site Request Forgery (CSRF)](https://wordpress.org/support/topic/plugin-is-vulnerable-to-cross-site-request-forgery-csrf/)
 *  [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/plugin-is-vulnerable-to-cross-site-request-forgery-csrf/#post-16576458)
 * Wordfence is warning too: [https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/woocommerce-delivery-notes/print-invoice-delivery-notes-for-woocommerce-472-cross-site-request-forgery-via-ts-reset-tracking-setting](https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/woocommerce-delivery-notes/print-invoice-delivery-notes-for-woocommerce-472-cross-site-request-forgery-via-ts-reset-tracking-setting)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache] wp_is_mobile not working](https://wordpress.org/support/topic/wp_is_mobile-not-working/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wp_is_mobile-not-working/#post-16537968)
 * I 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache] wp_is_mobile not working](https://wordpress.org/support/topic/wp_is_mobile-not-working/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wp_is_mobile-not-working/#post-16514081)
 * Yes, 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache] wp_is_mobile not working](https://wordpress.org/support/topic/wp_is_mobile-not-working/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wp_is_mobile-not-working/#post-16514014)
 * Unfortunately 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Super Page Cache] wp_is_mobile not working](https://wordpress.org/support/topic/wp_is_mobile-not-working/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wp_is_mobile-not-working/#post-16510086)
 * Thanks for the answer. I’ll follow the steps and come back to you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Insert button anywhere](https://wordpress.org/support/topic/insert-button-anywhere/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/insert-button-anywhere/#post-16421367)
 * Hi, [@anuarsaba](https://wordpress.org/support/users/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:
 *     ```wp-block-code
       <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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Abandoned Cart Lite for WooCommerce] Remove product images](https://wordpress.org/support/topic/remove-product-images/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/remove-product-images/#post-15670113)
 * Hello, [@priyankajagtap](https://wordpress.org/support/users/priyankajagtap/)!
 * Was the filter added in the latest updates?
    -  This reply was modified 3 years, 11 months ago by [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Changing send Mail](https://wordpress.org/support/topic/changing-send-mail/)
 *  [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/changing-send-mail/#post-15629809)
 * Maybe pass a variable thru the URL that prevents from beeing downloaded, just
   generate and send…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Changing send Mail](https://wordpress.org/support/topic/changing-send-mail/)
 *  [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/changing-send-mail/#post-15629803)
 * Sorry, 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Changing send Mail](https://wordpress.org/support/topic/changing-send-mail/)
 *  [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/changing-send-mail/#post-15629692)
 * Hello, [@dkjensen](https://wordpress.org/support/users/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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Pass parameters to PDF](https://wordpress.org/support/topic/pass-parameters-to-pdf/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/pass-parameters-to-pdf/#post-15616231)
 * Unfortunately 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Pass parameters to PDF](https://wordpress.org/support/topic/pass-parameters-to-pdf/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/pass-parameters-to-pdf/#post-15616151)
 * That 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Cart PDF for WooCommerce] Insert button anywhere](https://wordpress.org/support/topic/insert-button-anywhere/)
 *  Thread Starter [Jorge Razor](https://wordpress.org/support/users/jorgehoffmann/)
 * (@jorgehoffmann)
 * [4 years ago](https://wordpress.org/support/topic/insert-button-anywhere/#post-15612249)
 * All 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.

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/users/jorgehoffmann/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jorgehoffmann/replies/page/2/?output_format=md)