Jump to content

[FREE MODULE] Brexit


Mediacom87

Recommended Posts

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

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)
Link to comment
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)

Link to comment
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)
    {

 

Link to comment
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

Link to comment
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...