I am looking to retrieve an array with all of the final_prices for a grouped product.
The goal is to be able to use this information in product/view.phtml and display a price range that reads From: $25.00 – $899.00
I have been able to get the array somewhat working in price.phtml using:
$prices = array ($_taxHelper->getPrice($_product, $_product->getFinalPrice()));
print_r ($prices);
This will give me the array, but in the price fields of each grouped item. I need to be able to get the data and then I am thinking to use php’s min & max functions to get the values with ease and display the data as shown above.
This data needs to be able to be used in the view.phtml file so this creates a bit more trouble. I have tried using price in view.phtml but it seems the function becomes quite unhappy outside of the price loop.
Any help would be greatly appreciated!
Cheers!
You could try this in view.phtml file:
Hope this helps!