
Originally Posted by
robbie269
Worked it out by using the freeshipping options instead.
Glad you figured it out. Off the top of my head I didn't have a solution to your problem.

Originally Posted by
robbie269
Would really like to discount the Express Post option if they are entitled to free shipping though and not show the standard shipping option.
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:
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) ; }
This example is for the 500gm Express Satchels. It will need to be replicated/added for each of the other satchels and Express parcels.
Unfortunately you will need to re-do this whenever the ozpost module is upgraded.
Cheers
RodG
Bookmarks