Re: Conditional shipping option?
It does seem to be working, but I noticed a side effect. For a domestic customer, the FedEx option is showing up on the checkout page. It has no price, its just the text that reads " FedEx (1 x 0.66lbs)" FedEx is only used for International shipping and should never appear for Domestic.
I backed out the and $rates[$i]['module'] != 'usps') or $size == 1 change and it persists, so it was apparently introduced with previous changes.
Re: Conditional shipping option?
If you go to Modules ... Shipping ... and look in the right hand panel for FedEx fedexwebservices ... what do you see?
Re: Conditional shipping option?
I see the green enabled circle and a sort value of 10. The only other ship module enabled is USPS and it has a sort value of 20.
Re: Conditional shipping option?
When clicked on the FedEx fedexwebservices, in the right hand column is a long list of settings ... could you post that?
Re: Conditional shipping option?
Enable FedEx Web Services
true
FedEx Account Number
ZZZZZZZZZ
FedEx Meter Number
XXXXXXXX
Weight Units
LB
First line of street address
100 G Steet
Second line of street address
City name
Vegas
State or Province name
TX
Postal code
77777
Phone number
1112223333
Drop off type
1
Enable Express Saver
false
Enable Standard Overnight
false
Enable First Overnight
false
Enable Priority Overnight
false
Enable 2 Day
false
Enable International Priority
true
Enable International Economy
false
Enable Ground
false
Enable International Ground
false
Enable Freight
false
Tax Class
--none--
Handling Fee
1
Shipping Zone
--none--
Sort Order
10
1 Attachment(s)
Re: Conditional shipping option?
Here is the checkout page showing the FedEx appearing for Domestic orders
Attachment 13372
Re: Conditional shipping option?
What version of FedEx fedexwebservices are you running>
If you customize the fedexwebservices.php and add the code in RED:
Code:
if (sizeof($methods) == 0) return false;
$this->quotes['methods'] = $methods;
if ($this->tax_class > 0) {
does it fix this issue?
Re: Conditional shipping option?
In looking at the admin panel and the shipping modules page, I noticed the error message:
ERROR: module not loaded due to missing language file:/includes/languages/english/modules/shipping/usps_xx.php
At some point I had renamed the usps.php file to usps_xx.php, as a way to make a copy. Somehow, Zen now thinks that the file is called usps_xx. I'm at a loss to understand how this has happened. I'm sure it is something I did some time ago.
Its may be unrelated to this issue, I'm not sure.
The webservices module does not appear to have a version number. But I believe it is 1.3.2
Re: Conditional shipping option?
When renaming modules, you cannot leave them with the .php extension as those are auto loading directories ... instead ues something like:
usps.php_xx
now it will not auto load ...
Re: Conditional shipping option?
If I had to guess, I would say this problem was introduced when the new rate module was released for USPS
USPS Module for Zen Cart v1.3.x thru v1.6
* USPS RateV4 Intl RateV2 - January 28, 2013 Updates to: July 28, 2013 Version J