Glad you figured it out. Off the top of my head I didn't have a solution to your problem.
This would only be possible by modifying the ozpost code. I don't think it'd be too difficult to do. The 'hard' part would be adding the checks needed to determine if a discounted rate is applicable for any given order. The ozpost code itself (V3.5.4+) already contains code that applies discount rates for the bulk purchase of prepaid satchels so this can be copied/modified so discounts can be applied to the various express post methods.
Example:
This example is for the 500gm Express Satchels. It will need to be replicated/added for each of the other satchels and Express parcels.Code:if ((in_array("500g Express Satchel", $this->allowed_methods)) && ($quote->id == "PPSE5")) { $handlingFee = MODULE_SHIPPING_OZPOST_PPSE_HANDLING; if (defined('PPSE5_description')) $quote->description = PPSE5_description; if ( MODULE_SHIPPING_OZPOST_AP_DISCOUNT1E == '1') { $quote->cost = (float)$quote->cost - ((float)$quote->cost * 0.05 ); } elseif (MODULE_SHIPPING_OZPOST_AP_DISCOUNT1E == '2') { $quote->cost = (float)$quote->cost - ((float)$quote->cost * 0.125) ; } elseif (ADD YOUR CHECK HERE) { $quote->cost = (ADD YOUR REQUIRED COST OR FORMULA HERE) ; }
Unfortunately you will need to re-do this whenever the ozpost module is upgraded.
Cheers
RodG
I looked at some other websites that offer free postage beyond a certain amount and they don't seem to discount the Express Post. So maybe I won't bother either. I may just see how it goes for now.
Hi ROBG
I am using the latest ZEN Cart Version and have had your Ozpost Module installed when i go to the product and enter the dimensions and weights that's fine then go to and preview update i went back in to the product to find the measurements are blank i entered L 8.50 W 5.50 H 3.50 and when i returned they all read 0.00 could please give me some idea as to the cause please
Thanks John
This sounds like the file /youradmin/includes/modules/update_product.php either didn't get modified during the install/update, or perhaps it was modified or replaced by another add-on that you've installed?
The 1st thing to do is navigate you way to the shipping module settings, click the button to uninstall ozpost, then click again to re-install. Most (if not all) of your current settings will be retained during this process.
The ozpost installation code will attempt to (re)modify the files it needs to function and all should be good. It will generate warnings about any files can't be updated (which would typically be caused if the file or folder permissions are too restrictive).
Please let me know if you still have the problem after doing this because if it is caused from changes made to the file(s) by another module it may require a manual approach to merge the changes. We'll cross that bridge if we come to it.
Cheers
RodG
Hi Rodg
Thank you for your reply
I did as you suggested uninstalled and reinstalled and i still have the same problem it will not hold the dimensions
thanks john
Question time. :)
1) Please confirm that the uninstall/reinstall that you did was via the store configuration and NOT by removing/replacing the ozpost files.
2) What versions of ZenCart and Ozpost are you using?
3) With the ozpost module *installed* does the file /YOURADMIN/includes/modules/update_product.php_ozpRestore exist?
4) If this file DOES exist, is it the same size, larger, or smaller than /YOURADMIN/includes/modules/update_product.php?
5) With the ozpost module *uninstalled* (via admin) does the date/timestamp of /YOURADMIN/includes/modules/update_product.php match the date/timestamp of most (if not all) of the other files in the folder?
This info should be enough to allow me to determine the best way for you to proceed.
Cheers
RodG
I'm afraid I can't offer much advice here. It isn't something I've needed to do before. I have no idea how easy/hard it is for one shipping module to determine what another shipping module is doing.
This should be quite easy. The ozpost servers return quotes in the order lowest to highest, which means it will be possible to save the Standard postage cost into a variable and then subtract this value from the Express postage cost for the adjustment.
IOW, the second part of the calculation will read something like
$quote->cost = ( $quote->cost - $STDcostVariable. ) ;
I wish I could help more, but at the moment I'm flat out updating the client modules for the other shopping carts that ozpost supports so my mindset is in a completely different place.
It's quite possible that someone like Ajeh (who has more experience with the other shipping modules than I) could provide advice as to the easiest way for ozpost to detect if the Free Postage is applicable or not.
Cheers
RodG