Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
miguelpicher opened this issue Apr 24, 2024 · 4 comments
Open
1 task done

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

miguelpicher opened this issue Apr 24, 2024 · 4 comments
Assignees

Comments

@miguelpicher
Copy link

Check if your feature request exists

  • My feature request does not already 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
Copy link
Owner

nenes25 commented Apr 29, 2024

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
Copy link
Author

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
Copy link

lolop93 commented May 20, 2024

image
same error, i cant enable it

@nenes25
Copy link
Owner

nenes25 commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants