VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: samlf3rd on April 19, 2016, 19:38:07 PM

Title: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 19:38:07 PM
 Hello we have a "Free shipping" method for US customers only. Somehow anyone in Canada is able to place an order and be eligible for free shipping.
Any help would be appreciated!
How can I block Canada from the free shipping method we created?
Sam
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: GJC Web Design on April 19, 2016, 19:49:53 PM
if you mean your using the std VM weight plugin turn on VM debug

should be obvious why
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 20:16:10 PM
I get this when turning on Debug:

vmdebug LangCount: 1 $siteLang: en-GB self::$vmlangSef: en self::$_jpConfig->lang en_gb DefLang en_gb
vmdebug vmTime: time to load config: 0.00338888168334961
vmdebug Start used Ram 3.5M
vmdebug Created new cart
vmdebug getVendorId normal shopper
vmdebug Use setMenuItemId
vmdebug Created new Calculator Instance
vmdebug shipmentmethod Free U.S Shipping = TRUE for variable weight = 0 Reason: no boundary conditions set
vmdebug shipmentmethod Free U.S Shipping = TRUE for variable order amount = 29 Reason: no boundary conditions set
vmdebug shipmentmethod Free U.S Shipping = TRUE for variable zip = K1A 0G9 Reason: is lower than the set 99999
vmdebug shipmentmethod Free U.S Shipping = FALSE for variable virtuemart_country_id = 38, Reason: Country 223 does not fit
vmdebug calculateShipmentPrice $shipment INVALID set cart->virtuemart_shipmentmethod_id = 0 Var1:
1
vmdebug vmTime: Time consumed for shipment/payment plugins: 1.08263111114502
vmdebug Nothing to require
vmdebug Going to set core fields unrequired
vmdebug End used Ram 19M
vmdebug Peak memory peak 19.25M
vmdebug vmTime: vm view Finished task : 1.5024299621582
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 20:20:18 PM
It looks like because of the ZipCode? I have our Free Shipping method set to United States for the Country and zip start and stop to 00000-99999. Should I remove the zipcode numbers?
Also, this just started happening. This site has been up and running for a couple years now. It started after the update I believe.
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 20:21:58 PM
Quote from: GJC Web Design on April 19, 2016, 19:49:53 PM
if you mean your using the std VM weight plugin turn on VM debug

should be obvious why
I posted the results above.
Sam
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 20:22:46 PM
I tried removing the start and end zip, but still nothing.
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: GJC Web Design on April 19, 2016, 20:35:45 PM
something else must be going on because this method is correctly failing on Canada

vmdebug shipmentmethod Free U.S Shipping = FALSE for variable virtuemart_country_id = 38, Reason: Country 223 does not fit

this is not the method giving free shipping
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 20:37:49 PM
Quote from: GJC Web Design on April 19, 2016, 20:35:45 PM
something else must be going on because this method is correctly failing on Canada

vmdebug shipmentmethod Free U.S Shipping = FALSE for variable virtuemart_country_id = 38, Reason: Country 223 does not fit

this is not the method giving free shipping
What else can I do? We already lost a hundred dollars in the past couple of days from these free shipping charges...
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: GJC Web Design on April 19, 2016, 22:27:37 PM
no idea.. it needs testing and debugging.... for that access is needed
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: samlf3rd on April 19, 2016, 22:52:56 PM
Quote from: GJC Web Design on April 19, 2016, 22:27:37 PM
no idea.. it needs testing and debugging.... for that access is needed
Any chance you/someone could take a look?
Title: Re: Canada shipping going out for free? Not supposed to. Started after Update.
Post by: GJC Web Design on April 19, 2016, 23:37:26 PM
Any time used would be charged for.. if interested just PM me