VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: guardiano78 on January 17, 2018, 13:54:00 PM

Title: get shipment cost out of virtuemart
Post by: guardiano78 on January 17, 2018, 13:54:00 PM
Hello,
i have to make a exportation csv file that contain the catalogue of virtuemart products.
I did it, but i need also the shipment cost for each products.

Pratically, i have to make a function where, i send virtuemart_product_id and product_weight, and the function return to me the shipment cost that match in "jos_virtuemart_shipmentmethods" reading the field "shipment_params".

Can anyone help me?

Thanks!
Title: Re: get shipment cost out of virtuemart
Post by: Studio 42 on January 17, 2018, 17:31:33 PM
Using Virtuemart, you need to get product from model and add shipment as in product details.
But this can be very slow.
Another solution, is to check the weight and add shipment with excel or Calc depending the weight(or write a Virtuemart extension to do it for you).
Title: Re: get shipment cost out of virtuemart
Post by: guardiano78 on January 18, 2018, 09:04:29 AM
understood, thank you!