VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: servlet on June 11, 2017, 14:59:35 PM

Title: How to add insurance fee to shipping price
Post by: servlet on June 11, 2017, 14:59:35 PM
Hello
There is only one option in shipping plugin
Shipment Cost: $5
How to add insurance fee which is % of total cart price (0,2%)

Every one shipping company has such option but we cannot apply it in our webshop.
Title: Re: How to add insurance fee to shipping price
Post by: GJC Web Design on June 11, 2017, 16:48:45 PM
You don't say what shipping method you use...

but normally u need to code that into it if it isn't present
Title: Re: How to add insurance fee to shipping price
Post by: servlet on June 11, 2017, 17:29:55 PM
Thank you for replay
I am talking about
VM shipment - by weight, ZIP and countries

I think this is a missing option of VM core

There is such option in standard payment plugin...
Title: Re: How to add insurance fee to shipping price
Post by: GJC Web Design on June 11, 2017, 23:13:04 PM
perhaps so... but the code would be relatively simple if u look in the getCosts function of that plugin
Title: Re: How to add insurance fee to shipping price
Post by: servlet on June 12, 2017, 07:30:33 AM
GJC Web Design, thank you for replay
It may be is simple, but I dont have PHP coding skills. If I have such skills I will do it without forum questions.
It will be nice if someone did it while drinking your morning coffee...
Title: Re: How to add insurance fee to shipping price
Post by: AH on June 12, 2017, 09:22:48 AM
QuoteIt will be nice if someone did it while drinking your morning coffee...

Whilst it may be simple for someone who has a good understanding of the code, it is not a quick task.  Things need to be developed and tested, which takes time.  In addition, if this modifies the core then you would have issues whenever you updated.

Adding a parameter is considerably more work than "hard coding" a value.

You could possibly employ someone to do this work for you.




Title: Re: How to add insurance fee to shipping price
Post by: Studio 42 on June 12, 2017, 23:16:29 PM
Quote from: AH on June 12, 2017, 09:22:48 AM
QuoteIt will be nice if someone did it while drinking your morning coffee...

Whilst it may be simple for someone who has a good understanding of the code, it is not a quick task.  Things need to be developed and tested, which takes time.  In addition, if this modifies the core then you would have issues whenever you updated.

Adding a parameter is considerably more work than "hard coding" a value.

You could possibly employ someone to do this work for you.


Insurance is a cost specific to each compagny.
You have a fixed rate, but in other case this can depend the total in cart or why not fixed price for 1 shipping.
VM shipment - by weight, ZIP and countries is a basic plugin, when you don't find another specific to your shipping compagny.
You can chek http://extensions.virtuemart.net/checkout/shipments/pro-shipment-detail, that include more options.
Title: Re: How to add insurance fee to shipping price
Post by: servlet on June 17, 2017, 10:31:10 AM
Studio 42 Thank you for directions...
Yes I have fixed rate + % form total cart. That is what I am looking for.
Yes each company has own rate for insurance, but if this option exist in shipping plugin, it is not a problem to set it.

I cant see such option in PRO SHIPMENT plugin. Is it possible to quote exact text from description.
Title: Re: How to add insurance fee to shipping price
Post by: Studio 42 on June 18, 2017, 02:45:17 AM
You can contact the developer here for any feature:
https://www.alatak.net/contactez-nous.html
The website is in french, but she answer in english and i know she added already other feature on updates.
Title: Re: How to add insurance fee to shipping price
Post by: servlet on June 18, 2017, 08:10:07 AM
Thank you
I will contact her