VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: VMx on May 28, 2018, 15:48:21 PM

Title: Shipping - override prices
Post by: VMx on May 28, 2018, 15:48:21 PM
The shipping plugin doesn't fit me, because I would need product or category based shipping calculation, so I am wondering where can I write some code to override the shipping cost and just use my own calculation (just set if one of products use category X shipping price is X, if he uses category Y, shipping price is Y...)?

I was thinking on modifying plugin to take product weight and use that as shipping cost and than just sum together all product weight numbers and use that as shipping cost - maybe any idea how to modify shipping plugin to enable that?
Title: Re: Shipping - override prices
Post by: Jörgen on May 28, 2018, 19:27:12 PM
It is a "standard" plugin, copy the filesan rename file and classes. You can find more about writing a plugin here;
https://docs.virtuemart.net/tutorials/development/84-extension-plugins.html (https://docs.virtuemart.net/tutorials/development/84-extension-plugins.html)

regards

Jörgen @ Kreativ Fotografi