Access product field from variation field
There are a bunch of product images that are named same as SKU, so I’m just using field–commerce-product-variation–sku.html.twig to show them. All is fine.
I’d like to use the parent product image as fallback image for when the SKU image doesn’t exist.
How do I access a parent product field from the product variation field template?
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.