How to add dynamic content to products in the “Related products” block
-
Hi
I noticed that the “Related products” block outputs different HTML and can be styled differently than the rest of blocks. How can I add content to these blocks so that it is aware of the product it is in?
I need it to output an inline script with product data, such as product name, sku, id, price, tax, shipping class, etc. \Data in every product needs to be different of course. Unfortunately I cannot find any actions or filters for modyfying their HTML. And inner blocks added inside the product blocks are unaware of the product they are in.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add dynamic content to products in the “Related products” block’ is closed to new replies.