Woocommerce - insert product gallery image into template?

3 March, 2025 20:31:44
Nate
Topics: 1
Messages: 2
I'm using E2pdf to create a downloadable technical data sheet based on content within a woocommerce product.

As such, I've got the 'featured' image in with a value of [e2pdf-wc-product key="get_image"], but now I'd like to put the first image from the product gallery in also.

Is there a way to achieve this?

I really appreciate any advice!
3 March, 2025 23:16:43
E2Pdf
Support
Topics: 7
Messages: 3438
Hello,

If the E2Pdf template is connected to "WooCommerce" → "Products" it should be possible to use the shortcode to retrieve the first gallery image as:

[e2pdf-wc-product key="get_gallery_image_ids" path="0" attachment_image_url="true" size="full"]
We would really appreciate your feedback at WordPress.org!
4 March, 2025 13:51:37
Nate
Topics: 1
Messages: 2
Perfect, thank you!