checkout / checkout-magento2-plugin

Checkout.com Magento 2 official extension
MIT License
32 stars 32 forks source link

Unable to configure module, unless #513

Closed kpitn closed 1 year ago

kpitn commented 2 years ago

When you install the module and go to Setup > Configuration > Sales > Payment Method, you can't configure the module, the button is disabled.

disable

You need to remove disabled mention in html console to configure module.

Dnd-Gimix commented 2 years ago

Hello @kpitn ,

Hope you are fine.

Can you please provide more detail on your Magento setup please:

Thanks a lot! Regards

kpitn commented 2 years ago

Hello @Dnd-Gimix,

Nice to see you here

As you can see it's the last version of checkout module v4.0.0 With Magento 2.4.4 and php 7.4.

The problem is I don't have activity_path

activity_path

deepaknair3 commented 2 years ago

Facing this issue in Magento 2.4.3-p1, any solution yet?

@Dnd-Gimix please help to fix it, as this is a major issue, and not able to save configurations.

deepaknair3 commented 2 years ago

@kpitn have you got any solution?

kpitn commented 2 years ago

I don't understand why payment module (not only checkout.com) want to disable the configure button. Even more when this module override payment method selection to force checkout to appear selected by default. https://github.com/checkout/checkout-magento2-plugin/blob/master/view/frontend/web/js/model/checkout-data-resolver.js

1 - Quick solution : Right Click > Inspect and remove disabled from dom. 2 - Lasting solution : Override the block with a preference or a plugin on the _isPaymentEnabled function with "return true"

Strange name for this function _isPaymentEnabled (underscore mean old magento private method name) and the scope is public ?

Dnd-Gimix commented 2 years ago

Hello @deepaknair3 @kpitn ,

Thank you both for the feedback.

It seems that there is currently an issue when the "Paypal" module is disabled, causing the Checkout "Configure" button to disappear.

Can you confirm that you both disabled the native "Paypal" extension? While we proceed to fix this issue, could you maybe re-enable the extension to prevent this behavior?

Thank you. Regards,

kpitn commented 2 years ago

Hi @Dnd-Gimix , You are right paypal module is disable in my store

deepaknair3 commented 2 years ago

Hi @Dnd-Gimix , Yes, paypal modules are disabled.

Dnd-Gimix commented 2 years ago

Hello @kpitn @deepaknair3 ,

Thank you for the confirmation. I confirm to you that a new release at the end of the month will contain a bug fix for this issue.

Have a good day. Regards,

deepaknair3 commented 2 years ago

Hello @Dnd-Gimix ,

When we can expect a new release with this fix.

Thanks

dio5 commented 2 years ago

On Magento. 2.4.2-p1 we have similar issues, even with paypal enabled.

The configure button is enabled but getting JS errors in both Chrome and FF, though different ones and the behaviour is different but comes down to being unable to save or click/open anything (not only just the checkoutcom parts).

This happens with 4.0.0, wasn't happening with the previous version.

JS errors vary from

Uncaught ReferenceError: ckoToggleSolution is not defined

to

Uncaught TypeError: Cannot set properties of undefined (setting 'innerText') at processABC ((index):6032:52) at checkService ((index):6046:13)

Dnd-Gimix commented 1 year ago

Hello @kpitn @deepaknair3 @dio5 ,

The fix for Paypal module disabled causing the configuration to disappear has been released in the latest version of the extension : 4.1.1

Can you please upgrade and try again?

Many thanks. Regards,

kpitn commented 1 year ago

It's ok for me with last version

Dnd-Gimix commented 1 year ago

Great, thank you @kpitn for the feedback, let's close this issue then! Have a good day. Regards,