My customer wants to charge a 2% shipping insurance cost if the user selects credit card as Payment method is there a way to add tis cost in Expresso Store?
2 Answers
There is nothing out of the box that would allow you to do this. The best option would be to build an extension that uses one of store_order_recalculate hook to add the percentage to the order.
The other option would be to modify the payment gateway in question to add the 2%. If the gateway is one of the default you will need to reapply this each time you update Store.
You could create a "tax" for it, that applies to any country and region, and call it "Shipping Insurance". That seems to be the most straight way, but of course it would be applied to all payment methods.
View docs here
-
thanks rodrigo this seems to be a simpler way! I'll dig into it! Commented May 4, 2015 at 10:50
-
Happy to help, but do you mind voting my answer up? I am trying to up my profile. Thanks! Commented May 5, 2015 at 12:35
-
Sorry Rodrigo but the right answer was the justin's one because adding a tax (as you said) applies to all payment methods, anyway thanks! Commented May 5, 2015 at 14:28
-
Hey guys, I need to do something similar to Francesco - do you have any code you could post as a starting point. I'm totally confused on writing an extension at the moment Commented Mar 1, 2017 at 23:36