VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: toad78 on October 17, 2016, 17:40:24 PM

Title: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: toad78 on October 17, 2016, 17:40:24 PM
Joomla 2.5.x
Virtuemart 2.6.x

On this site (http://37.60.239.80/~californianugget/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=49&virtuemart_category_id=11&Itemid=259) I'm using Advanced Custom Fields for All (https://breakdesigns.net/extensions/customfields-for-all) by Break Designs (custom-fields-for-all.JPG) to set up the extra weights for products. I'm using VM's weights_countries shipping plugin to set up different flat rates based upon weight limits (0-5lb.JPG, 5-10lb.JPG, 10-50lb.JPG). After adding a 25lb. product ($50 flat rate shipping), the incorrect flat rate shipping is applied. It results back to the 1lb. flat rate shipping price of $10. Any reason why the correct flat rate shipping is not applying based upon the weight? The Custom Field is set as a Cart Attribute and as a Price Variant.


Title: Re: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: PRO on October 17, 2016, 17:42:33 PM
turn on vmdebug   and see what the weight is
Title: Re: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: toad78 on October 17, 2016, 18:26:52 PM
VM Debug is on.

Title: Re: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: GJC Web Design on October 17, 2016, 18:39:41 PM
I do not see how a 3rd party custom field that u simply label "weight" could have any effect on the shipping plugin
the plugin looks for the vm product weight .. a distinct value

how would it know to look for some other arbitrary value?  you would need to code in the weight plug to look for your new custom field

Title: Re: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: toad78 on October 17, 2016, 18:40:57 PM
And how would I do that?
Title: Re: Custom Fields For All: Weights Not Counted in weights_countries shipment
Post by: GJC Web Design on October 17, 2016, 18:54:43 PM
by recoding the weight plugin to look for your specific custom field (if this is possible) and use that for its weight conditions