Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I'm wondering how I can add VAT to the shipping costs.
Any idea pointers as to where to start?
What I'm trying to achieve is this:
I have my products on which I include a VAT rate and I need another VAT rate for the shipping. So that on checkout I have something like this:
Product 30€
Shipping cost:10€
VAT on product: 6€ (20%)
VAT on shipping cost:1€ (10%)
Total: 47€
any help would be appriciated
Comments
Comment #1
jkuma CreditAttribution: jkuma commentedHello sir,
You can easily append a VAT component price trough a custom Rules.
• Simply create a new rule using the event "calculating a shipping rate".
• Then attach a condition "shipping line item exists" in order to make sure the proper shipping service has been selected.
• Finally, add the rule action to append a new component price to your shipping line item "Add an amount to the unit price"
I'm closing this post because this question is not specific to commerce_socolissimo module but it's more drupal commerce related.
best, jonathan