There is a Handling fee on USPS ... what version of Zen Cart are you using? :unsure:
Printable View
There is a Handling fee on USPS ... what version of Zen Cart are you using? :unsure:
Regarding the solution in #17, is this percentage added to the order total or calculated shipping cost of order based on weight? Am needing to do similar and want to confirm it is based on the shipping amount vs the entire order. Thank you for any info.
Thank you for posting your solution, it works nicely. For info my question about what the percent is calculated on, it appears to be order total.
Hello:
I hate to keep this thread going, but based on the title, I think it applies to my dilemma. I am using the latest version of Zen Cart, and I am looking to apply a percentage-based handling fee to my shipping. I am using a priced-based table rate and would like to add a 5% handling fee based on total cost after taxes. I know from reading the other posts as well as other threads where to find the module's php, but am confused on how I would be able to change the formula to multiply by the handling fee instead of adding the fee.
Please help! Thanks!
Ok, this worked on the old version, but it doesn't seem to work on the January 2012 update. Anyone know what I might need to do different or what I'm doing wrong? I'm using .03 + 1.75 for the USPS module.
website: http://earthscauldron.com/store/
Add this line in RED to the code and see what is being calculated:
Code:$cost = preg_replace('/[^0-9.]/', '', $cost);
// add $this->usps_countries to title to test actual country
echo 'I See USPS Cost: ' . $cost . ' Extra: ' . ($order->info['subtotal'] * .03 + 1.75) . ' = ' . (($order->info['subtotal'] * .03 + 1.75) + $cost) . '<br>';
ya, shows it's only adding 1.75 and not the 3%
Could you paste what you see from the echo?
I See USPS Cost: 31.25 Extra: 1.75 = 33
I See USPS Cost: 5.65 Extra: 1.75 = 7.4
I See USPS Cost: 5.55 Extra: 1.75 = 7.3
Estimate Shipping Costs
Total Items: 1 Amount: $140.00
Country: Please Choose Your Country United States Australia Canada United Kingdom United States Minor Outlying Islands
State/Province: Please select ...AlabamaAlaskaAllAmerican SamoaArizonaArkansasArmed Forces AfricaArmed Forces AmericasArmed Forces CanadaArmed Forces EuropeArmed Forces Middle EastArmed Forces PacificCaliforniaColoradoConnecticutDelawareDistrict of ColumbiaFederated States Of MicronesiaFloridaGeorgiaGuamHawaiiIdahoIllinoisIndianaInternationalIowaKansasKen tuckyLouisianaMaineMarshall IslandsMarylandMassachusettsMichiganMinnesotaMississippiMissouriMontanaNebraskaN evadaNew HampshireNew JerseyNew MexicoNew YorkNorth CarolinaNorth DakotaNorthern Mariana IslandsOhioOklahomaOregonPennsylvaniaPuerto RicoRhode IslandSouth CarolinaSouth DakotaTennesseeTexasUtahVermontVirgin IslandsVirginiaWashingtonWest VirginiaWisconsinWyoming
Post/Zip Code:
Shipping quotes are based on the address information you selected:
Maine 04101 United States
Available Shipping Methods Rates
Store Pickup (Walk In) $0.00
United States Postal Service (Parcel Post (4 - 7 days)) $7.30
United States Postal Service (Priority Mail (2 - 3 days)) $7.40
United States Postal Service (Express Mail (1 - 2 days)) $33.00
United Parcel Service (1.00lbs) (Ground) $12.92
[ Close Window ]
And you are using:
Code:$methods[] = array('id' => $type,
'title' => $title,
'cost' => ($cost * $shipping_num_boxes) + ($order->info['subtotal'] * .03 + 1.75) + (MODULE_SHIPPING_USPS_HANDLING_METHOD == 'Box' ? $usps_handling_fee * $shipping_num_boxes : $usps_handling_fee) );