Quote Originally Posted by RodG View Post
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.
Hi Rod

You were correct and it does work. For your reference I did think that there was something wrong with the update and it seams I was correct. Once i put the print code in it told me straight away that I needed to uninstall and reinstall OZpost. I had to do that three times and then it worked.

I did notice while I was checking that there were some odd boxes that kept appearing and disappearing. For example under the tick boxes for e-go.com.au & Insured e-go.com.au it kept showing two text fields with nothing in it. Only after the third uninstall and install they have disappeared (sorry I should have taken screenshots but didn't think of it).

Anyway is fixed now so I can show it to the client :-) As always you have been great.

Thanks

Tassos