Fix for: Canada Shipping Post Add-on for Marketpress
!important: Make sure that you are testing with a product having weight.
Filename: mp-canada-post.php
Line Number: 613 (or near)
Find the following code snippet:
$shipping_meta['weight'] = (is_numeric($shipping_meta['weight']) ) ? $shipping_meta['weight'] : 0;
Now observe it that shouldn’t it be inside the foreach?
See here
foreach ($cart as $product_id => $variations) {
$shipping_meta = get_post_meta($product_id, 'mp_shipping', true);
$shipping_meta['weight'] = (is_numeric($shipping_meta['weight']) ) ? $shipping_meta['weight'] : 0;
Perfectly Working View:
Last updated: April 17, 2014