News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

weight_countries not working

Started by toad78, October 14, 2016, 22:24:53 PM

Previous topic - Next topic

toad78

Joomla 2.5
VM 2.6.x

I have the following weight_countries rules set up (.jpgs attached).

None seem to be working when I'm at the checkout

All products have the correct weight.

I have only one rule applied to all the products (dollar-deduction.jpg).

Result: no matter how many items are in the cart that, they all get a shipment cost of $10.00. This shouldn't be. If I have products in the cart that are 25lbs, it should have a Shipment Fee of $50.00 and not $10.00.

Any reason why the incorrect shipping is posting?

GJC Web Design

switch on the VM debug .. you will see the reason then
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

toad78

Attached is the debug info.

From what I gather, it says that "vmdebug checkConditions Shipping 10-50lbs does not fit Var1:". Why not? The product is 25lbs!

GJC Web Design

would assume because 25lb isn't am integer!
[customsforall_value_name] => 25lb

have u set the actual vm product weight to -> 25
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

toad78

VM Product weight is 1lb. I use Custom Fields to allow for additional weights of product options to be added.

GJC Web Design

a custom field will play no part in the conditions testing - how could it?
if the vm weight is 1 then vmdebug shipmentmethod Shipping 1-5lbs is true

if u want to use a custom field as a condition u need to hack the ship method
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