I need to set Open Graph price grouped product in <head>
section.
I can get price of simple product in this way:
<meta property="og:price:amount" content="<?php echo $_product->getPriceHtml($_item, true) ?>">
and it works well. But… how can I get price of grouped product (the price of the product associated with the lowest price)?
Best Answer
I solved this way getting the price of the last product associated (the prices of my products associated are the same for each product so I need to check what is the lowest):