Product variations not showing on PDF invoice – which shortcode to use?

Forums PDF Invoicing for WooCommerce Product variations not showing on PDF invoice – which shortcode to use?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #166496
    iCrea
    Participant

    Hi,

    I’m using a plugin to generate PDF invoices for customer orders.

    In my custom invoice template, I’m displaying the list of ordered items using the [item_name] shortcode to show the product name. However, I’ve noticed that product variations (such as size, color, etc.) are not showing up on the invoice.

    I’ve tried using [item_meta] and [item_meta_data], but nothing displays or the field stays empty.

    👉 Which shortcode should I use to properly display product variations on the PDF invoice?
    I’m trying to achieve something like:
    T-shirt – Size: M – Color: Red

    For reference, I’m using the Attribute Stock plugin to manage stock per variation.

    Any help or guidance would be greatly appreciated.
    Thanks in advance!

    #167755
    Taha
    Moderator
    Plugin Support

    Hi iCrea,

    Thank you for reaching out. I hope you’re doing well, and apologies for the delayed response.

    To display the color and size, please use the following shortcodes:

    [item_meta key="pa_color" before="Color: " after="<br>"]
    [item_meta key="pa_size" before="Size: " after="<br>"]

    Kindly try them and let me know if you need any further assistance.

    Best regards,
    WPFactory support team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.