I successfully set up this module on my project. Everything works as expected, except shipping to croatia.
In every country in the eu the VAT is applied correctly, but if i try to ship something to croatia, the VAT is not applied.
I did some research and ended up in the file commerce_eu_vat.rules_defaults.inc.
Here i figured out that in the following code snippet the condition for croatia is missing.
$rule
->condition('component_commerce_vat_profile_address_at', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_be', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_bg', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_cy', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_cz', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_de', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_dk', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_ee', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_es', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_fi', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_fr', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_gb', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_gr', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_hr', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_hu', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_ie', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_it', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_lt', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_lu', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_lv', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_mt', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_nl', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_pl', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_pt', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_ro', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_se', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_si', array('customer_profile:select' => 'customer-profile'))
->condition('component_commerce_vat_profile_address_sk', array('customer_profile:select' => 'customer-profile'));
After adding the condition for croatia everything works as expected.
Can someone please check if i am right?
Comments
Comment #1
vbeakovic commentedIt looks like there is something more to fix. I have modified the code as you did, the Croatian VAT part works now but some of the shipping services are not displayed any more while when Austria is selected everithing works fine. I still didn't find what else should be fixed.
Comment #2
segi commentedHere is my patch, I didn't know reproduce the issue with missing shipping options. If someone will find the solution, maybe update this patch.
Comment #3
drupov commentedComment #4
drupov commentedComment #5
dwkitchen commented