
Originally Posted by
RodG
The ozpost module should be using the attributes weights without you needing to do anything special. Is it possible that the ozpost module has been set to use Kgs but you are entering the attribute weights as grams?
If that's not the problem, if you could load /includes/modules/shipping/ozpost.php into a text editor, and locate the line that reads like:
$myorder = $_SESSION['cart']->get_products();
(line#472 in ozpost v3.5.2)
Then add a line immediately after, that reads:
print_r($myorder) ; exit ;
Save the file then add one of the products with a weight attribute to the cart:
You should see something like:
-----------------------
Array ( [0] => Array ( [id] => 213:d0ed1015312c8acbd387f5fd75950e7d [category] => 17 [name] => Test 7 (weight by attributes) [model] => [image] => [price] => 100.0000 [quantity] => 1 [weight] => 750 [final_price] => 100 [onetime_charges] => 0 [tax_class_id] => 0 [attributes] => Array ( [1] => 29 ) [attributes_values] => [products_priced_by_attribute] => 0 [product_is_free] => 0 [products_discount_type] => 0 [products_discount_type_from] => 0 ) )
--------------------------------------
Check that the [weight] => value is the same as your attribute weight setting. If not, what does it show?
Cheers
Rod.
Bookmarks