Jump to content

Unable to install customtax module. The form is invalid and cannot be loaded.


Recommended Posts

Hi i've create module to manage tax with table and admin interface.

The structure is:

/modules
   /ps_customtax
       ps_customtax.php
       customtax.tpl
       customtax.php
       /controllers
            /admin
               AdminCustomTaxController.php

The module to install appear in the admin panel but cannot install. Tried to put message to identify errors.
Can you help me for prestashop 8.1.0?
Thanks.
 

ps_customtax.zip

Link to comment
Share on other sites

Hello,

There are multiple issues with the module. PrestaShop has a free module validator, where you can check as well: https://validator.prestashop.com/ (you need to check the Compatibility tab)

But, basically, in order to fix it, you need to do the following:
- rename the folder to 'customtax'
- rename the ps_customtax.php file to customtax.php
- rename the class from Ps_CustomTax to CustomTax
- remove the Tools::displayWarning calls

You should be able to install it at this point.

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