Tags/topics: 
1
Answers
Vote up!
0
Vote down!

conditional tax field

Hi,

I have a Drupal 7.17 installation with Drupal Commerce 7.x-1.4
and I want to implement the following:

1) in the section "billing information" I have added a field "field_vat_number"; now I want to add
a conditional sale tax that is applied only if the field-vat-number is pouplated

2) I want to add the following two payment methods: "cash on delivery" and "bank transfer"

Thank you for any suggestion or guideline.
Regards Marco

Asked by: mmariott
on November 28, 2012

1 Answer

Vote up!
2
Vote down!

Hi,

You should first have a look at the 2 following modules which handle VAT in Europe:

Concerning your questions, here is what I would do:
1) Create a Rule which is triggered when "Calculating the sale price of a product":
Condition: "Data value is empty" on your VAT field (set it as "Negate" since it shouldn't be empty).
Action: "Calculate taxes for a line item" on your [commerce-line-item] with the Tax type of your choice.

2) Use the following 2 modules:

Hope that helps !

Augustin Delaporte
Posted: Mar 13, 2013