Magento table rates custom options

Posted by Usman Ahmad on Stack Overflow See other posts from Stack Overflow or by Usman Ahmad
Published on 2012-11-13T16:57:40Z Indexed on 2012/11/13 17:00 UTC
Read the original article Hit count: 201

Filed under:
|
|
|
|

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

© Stack Overflow or respective owner

Related posts about magento

Related posts about table