Jump to content

Recommended Posts

Posted (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.

couv_addons.thumb.jpg.27d861ac5a585640c7698a997d1a966b.jpg

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 by Mediacom87 (see edit history)

Share this post


Link to post
Share on other sites

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 ;) 

Share this post


Link to post
Share on other sites
Posted (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.

image.png.53dc3d985c3c5721f478ec032b6d74f0.png

Edited by Mediacom87 (see edit history)

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites
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)
    {

 

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More