Magento table rates custom options
- by Usman Ahmad
in Tablerate.php I want to change the calculation.
So for some Products with custom options like width, height the shipping cost must change.
I tried with this method to find out if one product in cart has width or height greater than 60cm (example).
But currently I have no Idea how to get custom option values...
this code working well.
foreach ($request->getAllItems() as $item) {
echo 'Name: '.$item->getName().
'<br/> SKU:'.$item->getSku().
'<br/> ProductID: '.$item->getProductId().
'<br/> Price: '.$item->getPrice().'<br/>'; }
Thanks