Re: Handling Fee as Percentage?
Ya, this:
$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) );
Re: Handling Fee as Percentage?
Could you go to your Admin and look in Modules ... Order Total ... and click on Subtotal ot_subtotal and make sure it is installed ...
Also change your echo in the USPS shipping module to:
Code:
echo 'I See USPS type: ' . $type . ' order subtotal: ' . $order->info['subtotal'] . ' Cost: ' . $cost . ' Extra: ' . ($order->info['subtotal'] * .03 + 1.75) . ' = ' . (($order->info['subtotal'] * .03 + 1.75) + $cost) . '<br>';
what comes up?
Re: Handling Fee as Percentage?
Ya installed:
Order Sub-Total
This module is installed
true
Sort Order
100
****************************
Ok changed echo:
I See USPS type: EXPRESS order subtotal: Cost: 31.25 Extra: 1.75 = 33
I See USPS type: PRIORITY order subtotal: Cost: 5.65 Extra: 1.75 = 7.4
I See USPS type: PARCEL order subtotal: 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 ]
Re: Handling Fee as Percentage?
It does not make a lot of sense ...
What version of Zen Cart are you using?
Clean install or an upgrade?
If you switch to the Classic template does it work in the shipping estimator?
Re: Handling Fee as Percentage?
Ok, this is weird, if I log in with my testing customer info two different ids both in FL and NY it shows the 1.75 plus 3%, if I'm not logged in it only shows the 1.75....wha??
I'm using version 1.3.9h clean install, I'm using the classic template, I've just tweeked it to what I want.
Re: Handling Fee as Percentage?
Well this makes it harder to debug ...
I have tried this code in my v1.3.9h and it works in both the shipping estimator whether I am logged in or not and the checkout ...
For giggles and grins, go to the Modules ... Shipping ... and click on USPS and EDIT it and save the settings to NotePad ... then, do a REMOVE, INSTALL and reconfigure it ...
Re: Handling Fee as Percentage?
Ok, removed, re-installed, no change....
Could something here be the problem:
Enable USPS Shipping
True
Enter the USPS Web Tools User ID
*************
Which server to use
production
Quote Sort Order
Price
Handling Fee - US
0
Handling Fee - International
0
Handling Per Order or Per Box
Order
Decimal Settings
3
Tax Class
--none--
Tax Basis
Shipping
Shipping Zone
--none--
Sort Order
1
All Packages are Machinable
True
USPS Options
Display transit time
Domestic Shipping Methods
EXPRESS, PRIORITY, FIRST CLASS, PARCEL
International Shipping Methods
Global Express, Priority Mail International, First Class Mail Int Parcel
Debug Mode
Off
Re: Handling Fee as Percentage?
So far nothing is indicating the problem ...
If you look at the usps.php file, and find the line that starts as:
Code:
function quote($method = '') {
what are the next 2 lines?
Re: Handling Fee as Percentage?
Code:
function quote($method = '') {
// BOF: UPS USPS
global $order, $shipping_weight, $shipping_num_boxes, $transittime;
Re: Handling Fee as Percentage?
I am not finding a reason for this issue ...
Without going through your site and checking all of the files, I am not sure what the reason is ...
You can hide the problem by turning off the shipping estimator or you can see if you can find someone to pursue this further and try to hunt down the problem ...