Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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