Adding ACF image to Woocommerce Product PDF

WooCommerce
August 17, 2022 07:21:44
twocolours
Topics: 3
Messages: 6
Hello, I'm trying to map custom field from ACF (image) to PDF generated when product is purchased. Field is related to the product.

Instead of image I'm getting ID of this photo in PDF. Can you help me?

Thanks!
August 17, 2022 07:25:12
E2Pdf
Topics: 7
Messages: 3617
Support
Hi,

You need to modify the shortcode to convert "Image ID" to "Image URL" as follows:

[e2pdf-wc-product key="zdjecie123" meta="true" attachment_image_url="true" size="full"]

We remain at your service.

We would really appreciate your feedback at WordPress.org!
August 17, 2022 08:12:55
twocolours
Topics: 3
Messages: 6
It works! Fantastic! You rock! Thank you.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.