nenes25 / eicaptcha

Captcha module for prestashop
292 stars 84 forks source link

Override with One Page Checkout Prestashop [enhancement]: #283

Open miguelpicher opened 4 months ago

miguelpicher commented 4 months ago

Check if your feature request exists

Is your feature request related to a problem?

Failed to Enable module onepagecheckoutps. Cannot install overload: The initContent method in the AuthController class has been overridden by the eicaptcha module version 2.5.0 at 2024-03-15 15:34:10.

The module is

https://www.presteamshop.com/es/modulos-prestashop/one-page-checkout-prestashop.html

Describe the solution you'd like

Is it possible not to use override?

Additional context

No response

nenes25 commented 4 months ago

Hello,

This is a well known issue with prestashop modules when several modules overrides the same function. Regarding the override of eicaptcha for the AuthController, starting with Prestashop 8 it can be removed.

It's a new functionality from the version 2.4.5, you just need to configure the option in the Advanced settings tabs. And then drop the override file.

Regards

miguelpicher commented 3 months ago

I don't understand what you mean by "And then drop the override file." Because in the advanced options of Prestashop 8.1.1 there is no place to drop the file. The only option is to disable all non-native override

lolop93 commented 3 months ago

image same error, i cant enable it

nenes25 commented 3 months ago

I don't understand what you mean by "And then drop the override file." Because in the advanced options of Prestashop 8.1.1 there is no place to drop the file. The only option is to disable all non-native override

Just remove the file into the directory of the module before enable it.

@lolop93 in your case you have to fix the issue yourself if you want to use captcha in checkout. Remove the controller file, and then you'll need to manually apply the modification into the file override/controller/OrderController.php