Canada shipping going out for free? Not supposed to. Started after Update.

Started by samlf3rd, April 19, 2016, 19:38:07 PM

Previous topic - Next topic

samlf3rd

 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

GJC Web Design

if you mean your using the std VM weight plugin turn on VM debug

should be obvious why
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samlf3rd

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

samlf3rd

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.

samlf3rd

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

samlf3rd


GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samlf3rd

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...

GJC Web Design

no idea.. it needs testing and debugging.... for that access is needed
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samlf3rd

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?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation