Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Kaimee,
    Product thumbnails are part of the premium templates, which you can get here:
    https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/

    To get the product ID, you can use $item[‘product_id’]. For variable products, this will only display the main product id. If you want to display the variation id to, you can use the following snippet:

    <?php echo !empty($item['variation_id'])?$item['variation_id']:$item['product_id']; ?>

    Hope that helps!

    Ewout

    geraldpasion

    (@geraldpasion)

    Hi Ewout,

    $item[‘product_id’] worked! but how about the other elements like product description? is there any list of elements i can put into $item[] to get specific data? Thanks so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add product thumbnail and ID (not SKU) to template?’ is closed to new replies.