Mediacom87 Posted January 2, 2021 Share Posted January 2, 2021 (edited) Hi and Happy New Year! To start the year well, here is a free module to take care of the particular management of orders for the United Kingdom following the Brexit. You know, this principle of tax according to the value in pounds sterling of the order. Presentation : https://www.prestatoolbox.com/free-prestashop-modules/447-free-module-for-the-brexit.html Compatible : PrestaShop 1.6 Direct download : https://link.prestatoolbox.fr/medbrexitvatfree Edited January 2, 2021 by Mediacom87 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted January 2, 2021 Share Posted January 2, 2021 Hum... attention hein, ton module ne modifie que l'affichage du panier mais pas la façon dont sont gérées les taxes dans le commande^^ Il faut se hooker sur taxManager si tu veux que ce soit fonctionnel Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 2, 2021 Author Share Posted January 2, 2021 (edited) Bonjour @Eolia, Je viens de tester sur mon installation PrestaShop 1.6 et je n'ai pas rencontré le moindre souci, la facture est juste. Donc je ne comprends pas où tu as pu identifié un souci. Comme je l'explique dans mon article, je me suis basé sur le module vatnumber qui n'est pas non plus greffé sur ce Hook. Edited January 2, 2021 by Mediacom87 (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted January 4, 2021 Share Posted January 4, 2021 Je comprends mais vu que ce système utilise un cookie spécifique j'ai un gros doute avec un module de paiement comme Paypal (qui ne passe pas du tout par CartSummary mais directement par Cart::getOrderTotal()) ou pour les commandes manuelles (où le contexte est un mix BO/FO) Link to comment Share on other sites More sharing options...
Sickboards Posted January 4, 2021 Share Posted January 4, 2021 Hi, it there also a module for 1.7? Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 4, 2021 Author Share Posted January 4, 2021 Le 02/01/2021 à 2:56 AM, Eolia a dit : Il faut se hooker sur taxManager si tu veux que ce soit fonctionnel You have to hook into taxManager if you want it to be functional En reprenant le code complet, la procédure utilisée ici greffe automatiquement le module sur TaxManager. By taking over the complete code, the procedure used here automatically hook the module to TaxManager. class MedBrexitVATFree extends TaxManagerModule abstract class TaxManagerModuleCore extends Module { public $tax_manager_class; public function install() { return (parent::install() && $this->registerHook('taxManager')); } public function hookTaxManager($args) { Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 4, 2021 Author Share Posted January 4, 2021 Il y a 2 heures, Sickboards a dit : Hi, it there also a module for 1.7? It is true that it is rather strange that PretsaShop does not offer a free module to respect this new legal instruction. Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 4, 2021 Author Share Posted January 4, 2021 update : 1.2.0 - 2021-01-04 Added taking into account the recalculation of the basket when deleting a product from it 1.1.0 - 2021-01-03 Added a shopping cart refresh for UK customers to make sure taxes are correctly displayed Link to comment Share on other sites More sharing options...
Sickboards Posted January 5, 2021 Share Posted January 5, 2021 Hi, will you also make a version which works with 1.7? Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 5, 2021 Author Share Posted January 5, 2021 il y a 18 minutes, Sickboards a dit : Hi, will you also make a version which works with 1.7? yes, but not a free one. Link to comment Share on other sites More sharing options...
Sickboards Posted January 5, 2021 Share Posted January 5, 2021 Where can I find it? Or is it still being made? Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 5, 2021 Author Share Posted January 5, 2021 I finalize the tests to propose it quickly. 1 Link to comment Share on other sites More sharing options...
Mediacom87 Posted January 5, 2021 Author Share Posted January 5, 2021 Il y a 9 heures, Sickboards a dit : Where can I find it? Or is it still being made? done Link to comment Share on other sites More sharing options...
contactovisual Posted January 7, 2021 Share Posted January 7, 2021 Hi Prestashop 1.6.1.3 here. I'm trying to get the module to work, but it looks like it ignores the 135 pounds limit. Country of origin: Portugal Sell to UK address Under 135 £, no VAT is included. Above 135 £, it's the same. My settings: Localization > Taxes: GB VAT tax at 20% Localization > Tax Rules: GB Standard Rate (20%) - United Kingdom - This tax only - 20.000% Brexit VAT Free module: Maximum amount 135 £ Country: United Kingdom Tested buying a product, under 135 £, no tax charged over 135 £, no tax charged. Want to test? Please access https://www.copper-alembic.com/ Please don't complete the order, as it is a live site. How does your module works? Nelson / Contacto Visual, Portugal 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