EDIT: I managed to call the data I was looking for but it seems it’s just reading the first line in the table.
I’m using the Premium Matrixrate extension and on the collection.php file, setWeightRange() function obviously sets the weight range for the rate result, and it’s this I’m trying to call on the Estimate Shipping page: template/checkout/cart/shipping.phtml.
This is what I’ve written:
<?php $collection = Mage::getResourceModel('premiumrate_shipping/carrier_premiumrate_collection');
foreach($collection as $rate)
$weighttomax = $rate->getData();
This echoes ‘30’ which is right but when I increase the cart weight to over 30, this figure should increase to the next ‘weight_to_value’ in the table rates which is ‘60’ - it doesn’t, it just echoes 30.
Sunovisio THANK YOU!!!
You are awesome! I grabbed the data from the array that I needed and now I can use that value to in a variable that I can call my ‘Maximum weight’ value. Your article is super! You should re-post it here for all to see. A* my friend!