daxit_x Posted August 29, 2015 Share Posted August 29, 2015 Hello There is an issue with tax excluded labelling using prestashop 1.6.1 and eu advanced compliance Having B2B activated, and using a client group with tax excluded activated in the catalogue the prices are shown without taxes, but the label shown is "tax included" How can I solve this problem? Thank you in advance Bye Link to comment Share on other sites More sharing options...
daxit_x Posted August 30, 2015 Author Share Posted August 30, 2015 Hello I am trying to understand what causes this error, I am not an expert so I am really trying to guess, by the way I gave a look at advancedeucompliance.php and found this: /* Handle taxes Inc./Exc. and Shipping Inc./Exc.*/ if ($param['type'] == 'price') { $smartyVars['price'] = array(); $need_shipping_label = true; if ((bool)Configuration::get('AEUC_LABEL_TAX_INC_EXC') === true) { if ((bool)Configuration::get('PS_TAX') === true) { $smartyVars['price']['tax_str_i18n'] = $this->l('Tax included', 'advancedeucompliance'); } else { $smartyVars['price']['tax_str_i18n'] = $this->l('Tax excluded', 'advancedeucompliance'); } if (isset($param['from']) && $param['from'] == 'blockcart') { $smartyVars['price']['css_class'] = 'aeuc_tax_label_blockcart'; $need_shipping_label = false; } } it seems to be correct, it states that if PS_TAX output "true" then the label "tax included" is used, otherwise the label Tax excluded is used. So now I am trying to understand why the wrong label is used, how can I check if the module receives the wrong info from PS_TAX? In the case PS TAX gives the wrong info happens because it does not give info about the group rule, in fact I found this problem only setting a group to see the prices WITHOUT taxes, and it happens correctly, prices are without taxes and correctly computed, but the label is showing the written tax included. I am thinking that is possible also that it should get the info form another table, eg. the group table, does this make sense? Anyone can help me to go further? Thank you in advance Regards Link to comment Share on other sites More sharing options...
thijsvk Posted October 22, 2015 Share Posted October 22, 2015 (edited) Bump, did you manage to figure this out? I'm running into this exact same issue right now. The easy, quick and dirty solution is to just switch the included/excluded labels around. Since it is just a label, it shouldn't create any other issues. Another issue however is that in the cart summary the total including VAT is displayed. On the summary page, step 1 in check out, it gives 'total products (tax excl.)' followed by any shipping costs, and then at the bottom it gives the total cost including tax. However, when you finish check out at step 5 it only shows the total excluding tax, which it should do on the summary step as well. Nevermind that, sorted it out in localisation > taxes My boss has just informed me that even though we are B2B, we still need to charge VAT, so my issue is now a non-issue for. Thanks for your input El Patron Edited October 22, 2015 by thijsvk (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted October 22, 2015 Share Posted October 22, 2015 please check back office-->localization-->countries edit a country, then scroll down.. here you can tell PS for this country if it should 'display tax label'. Hope that helps. Link to comment Share on other sites More sharing options...
thijsvk Posted October 22, 2015 Share Posted October 22, 2015 Hi El Patron, That actually doesn't work, it only enables/disables the label. The problem is that even though the customer group is set to have prices displayed excluding taxes, the label doesn't change with it. The prices themselves are correctly displayed without taxes, it is just the 'including or excluding' part of the label. Which I still need, so back to swapping the label content in advancedeucompliance.php 1 Link to comment Share on other sites More sharing options...
eleazar Posted January 25, 2016 Share Posted January 25, 2016 I fixed this issue in Advancedeucompliance last December and it'll be merged soon: https://github.com/PrestaShop/advancedeucompliance/pull/47#issuecomment-174434469 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now