The following shortcode displays the PDF export button for the product ID 76. The button text is at the end:

[print_product id="PRODUCT_ID" mode="pdf" show_icon="no" text="Export Product X as PDF"]

Mode can be set to pdf, word or print. If you let the ID parameter empty, then our plugin tries to get product automatically. 

NEW: Set show_icon parameter to yes or no. Furthermore you can leave out the text parameter now and it will take global text settings.

11 thoughts on “Print Product Shortcode

  1. Rob says:

    The following shortcode displays the PDF export button for the product ID 76. The button text is at the end:

    This is not at all clear. How do I add a shortcode for a product?

    • weLaunch says:

      Sorry, we have updated the FAQ.

      Of course the shortcode should be like this: [print_product id=”76″ mode=”pdf” text=”Print Product (ID 76)”]

  2. Karim says:

    Is there no shortcode that displays the same as if I setup through the plugin page? Like without a button and with the icon?

  3. Marco Gabelli says:

    Hi there,
    is it possible to add a shortcode to the WooCommerce short description tab, that prints the current product, without hardcoding the id of the product?
    Thanks in advance and kind regards
    Marco

  4. jose luis iglesias torres says:

    I have applied the shortcode [print_product id = “jQuery (” # post_ID “). Val (); PRODUCT_ID ”mode =” pdf ”text =” DOWNLOAD SAMPLE SHEET ”] for an elementor template and it works correctly, but I would like to know if it is possible, change the text to an icon or image.

    Thanks

Leave a Reply

Your email address will not be published.