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
if you mean your using the std VM weight plugin turn on VM debug
should be obvious why
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
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.
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
I tried removing the start and end zip, but still nothing.
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
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...
no idea.. it needs testing and debugging.... for that access is needed
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?
Any time used would be charged for.. if interested just PM me