Quote Originally Posted by slobadog View Post
For a reason I couldn't determine, ozpost.php couldn't resolve the define DIR_WS_TEMPLATES. It was inserting it literally instead of resolving to DIR_WS_INCLUDES . 'templates/. .
This is another known problem. I did have this taken care of at one stage but I appear to have unfixed it again with the latest update.
Quote Originally Posted by slobadog View Post
I got it working by redefining 'DIR_WS_TEMPLATES' with
Code:
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
at both lines 2569 and 3238 of ozpost.php.
A better place for this will be in the configure.php file(s), because that is where they are missing from. This suggests that you are either using an old version of ZenCart, or, your configure.php files haven't been updated along with the rest of the store.

Quote Originally Posted by slobadog View Post
I now have it working except for the shipping estimator. If a weight is set to zero, it defaults to 1000kg! I guess I'll have to tidy up all the customers products...
Before doing anything with the products, the zero = 1000kg are ozpost settings.
The 'kg/gms' switch determines if this value is 1000kg, or 1kg (1000gms).
The value itself is a merchant defined ozpost setting, and is the default weight used if a product doesn't have its own weight assigned. (This is new to V3.5.1)

There is also another ozpost setting that causes products with zero weights to behave in different ways. The default behaviour is to use the weight determined by the weight/kgs/gm settings, but, it can also be set to ignore products with a zero weight (effectively giving the product(s) free shipping), OR, it can be set to produce a 'Contact store owner for shipping costs' type message if a zero weight product is added to the cart. (Also new to V3.5.1)

As for the customers products, there is one simple rule. Accurate weights *and* dimensions = accurate quotes.
Although the weights are generally the most significant factor as far as costs are concerned, the ozpost module attempts to quote using the smallest sized 'standard' package possible for any given quote (envelopes, satchels & boxes). It can only calculate the correct sized package if the items also have correct dimensions.
A common 'trap' is in thinking a 300gm item will fit into a 500gm satchel. Quite often, although the weight is suitable, the physical size of the item(s) may preclude the use of a 500gm satchel, in which case the ozpost module will quote on the next sized satchel that does fit (if at all). Again, correct dimensions are essential for this to function correctly.

Cheers
Rod