Title: Shortcode does not appear on .pdf (incl. code)
Last modified: November 21, 2016

---

# Shortcode does not appear on .pdf (incl. code)

 *  Resolved [jorismeermans](https://wordpress.org/support/users/jorismeermans/)
 * (@jorismeermans)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-does-not-appear-on-pdf-incl-code/)
 * I have a small issue with my .pdf invoices.
 * At the bottom (last line) HTML template of the .pdf, the shortcode [wcj_product_width]
   works fine, but in the table it does not appear. Below is the code of de .pdf
   template, who can help me out?
 * ⌊Logo Beyond Borders⌉⌊Logo Beyond Borders⌉
    <h1>FACTUUR</h1> <p> <table class
   =”pdf_invoice_heading_table”> <tbody> <tr><th>Factuur Nr.</th><td>[wcj_invoice_number]
   </td></tr> <tr><th>Factuurdatum</th><td>[wcj_invoice_date]</td></tr> <tr><th>
   Voor bestelbon</th><td>[wcj_custom_doc_number]</td></tr> </tbody> </table> </
   p> <p> <table class=”pdf_invoice_seller_buyer_table”> <tbody> <tr><th>Verkoper
   </th><th>Klantgegevens</th></tr> <tr><td>BEYOND BORDERS bvba<br>Sparrenweg 29
   <br>3520 ZONHOVEN<br>+32 498 66 35 95<br>www.beyondborders.be<br>BANK BE19 0689
   0410 6412<br>BTW BE 0643879862<br></td><td>[wcj_order_billing_address]<br>[wcj_order_billing_phone]
   <br></td></tr> </tbody> </table> </p> <p> [wcj_order_items_table table_class=”
   pdf_invoice_items_table” columns=”item_number|item_name|item_quantity|line_total_tax_excl”
   columns_titles=”|Reisomschrijving|Hvl|Totaal” columns_styles=”width:5%;|width:
   75%;|width:5%;|width:15%;text-align:right;”] <table class=”pdf_invoice_totals_table”
   > <tbody> <tr><th>BTW</th><td>[wcj_order_total_tax hide_if_zero=”no”]</td></tr
   > <tr><th>Totaal</th><td>[wcj_order_total]</td></tr> <tr><th>Te betalen 1 april
   2017 (resterend bedrag)</th><td>[wcj_product_length]</td></tr> <tr><th>Te betalen
   voorschot</th><td>[wcj_product_width]</td></tr> </tbody> </table> </p> <p> [wcj_order_items_table
   table_class=”pdf_invoice_items_table” columns=”item_short_description” columns_titles
   =”Beschrijving van de reis” columns_styles=”width:100%;”] <table class=”pdf_invoice_totals_table”
   > </table> </p> <p>Betalingsmethode: [wcj_order_payment_method]</p> Te betalen
   voorschot: [wcj_product_width]

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Algoritmika](https://wordpress.org/support/users/algoritmika/)
 * (@algoritmika)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-does-not-appear-on-pdf-incl-code/#post-8474999)
 * Hi,
 * `[wcj_product_width]` shortcode is not intended to use in PDF invoices. As order
   in invoice may have more that one product, it’s not clear which product’s width
   do you need.
 * I’ve just made some changes to the plugin. Please download the development version
   here – [http://booster.io/dev/](http://booster.io/dev/). You will need to uninstall
   the old version first (don’t worry your saved settings won’t disappear). In this
   new version I’ve added `item_length`, `item_width` and `item_height` columns,
   so now you can use them in `[wcj_order_items_table]` shortcode, something like
   this:
 *     ```
       [wcj_order_items_table table_class="pdf_invoice_items_table"
       columns="item_number|item_name|item_quantity|line_total_tax_excl|item_length|item_width|item_height"
       columns_titles="|Reisomschrijving|Hvl|Totaal|Length|Width|Height"
       columns_styles="width:5%;|width:45%;|width:5%;|width:15%;text-align:right;|width:10%;|width:10%;|width:10%;]
       ```
   
 * Please let me know if it works as expected or if you have any questions.
 * Best regards,
    Tom
    -  This reply was modified 9 years, 5 months ago by [Algoritmika](https://wordpress.org/support/users/algoritmika/).
 *  Thread Starter [jorismeermans](https://wordpress.org/support/users/jorismeermans/)
 * (@jorismeermans)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-does-not-appear-on-pdf-incl-code/#post-8476086)
 * Hi Tom
 * I just uninstalled the old version and installed the new one, but a lot of functions
   don’t work anymore:
 * – the proforma invoice, packing slip, credit note and custom document don’t generate
   anymore;
    – also this code doesn’t work anymore: (the short discription of the
   product)
 * <p>
    [wcj_order_items_table table_class=”pdf_invoice_items_table” columns=”item_short_description”
   columns_titles=”Inbegrepen in de reis” columns_styles=”width:100%;”] <table class
   =”pdf_invoice_totals_table”> </table> </p>
 * – and the numbering of [wcj_custom_doc_number] is not correct (I think because
   the documents above don’t generate automatically anmyore).
 * Can I give my login codes of my WordPress site so you can have a look?
 * Best regards
    Joris Meermans

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode does not appear on .pdf (incl. code)’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-jetpack/assets/icon-256x256.png?rev=3351194)
 * [Booster for WooCommerce – PDF Invoices, Abandoned Cart, Variation Swatches & 100+ Tools](https://wordpress.org/plugins/woocommerce-jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-jetpack/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jorismeermans](https://wordpress.org/support/users/jorismeermans/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-does-not-appear-on-pdf-incl-code/#post-8476086)
 * Status: resolved