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

Product quick actions menu & displayAdminProductsExtra #36046

Open
2 tasks done
musaffarpatel opened this issue Apr 29, 2024 · 1 comment
Open
2 tasks done

Product quick actions menu & displayAdminProductsExtra #36046

musaffarpatel opened this issue Apr 29, 2024 · 1 comment
Labels
8.1.x Branch Bug Type: Bug Hook NMI Status: issue needs more information Waiting for author Status: action required, waiting for author feedback

Comments

@musaffarpatel
Copy link

Prerequisites

Describe the bug and add attachments

When a module implements the "displayAdminProductsExtra" it is capable of displaying additional module content under the menu tab when editing a product in the back office.

However, since Prestashop 8.1, if the modules makes any ajax requests via JS, the items in the product quick actions menu become disabled. It seems Prestashop 8.1 has implemented an event handler for ajax requests somewhere and disabled the items and never reenables them.

screenshot

Expected behavior

No response

Steps to reproduce

Create a new blank module which implements the displayAdminProductsExtra hook
The hook should perform an ajax requests to any valid url via JS
The menu items show in the attachment are now disabled when you hover over them or try to click them.

PrestaShop version(s) where the bug happened

8.1.x

PHP version(s) where the bug happened

No response

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

@musaffarpatel musaffarpatel added Bug Type: Bug New New issue not yet processed by QA labels Apr 29, 2024
@florine2623
Copy link
Contributor

Hello,

Could you send an example module ?
I can't reproduce your issue.

Thanks!

@florine2623 florine2623 added Waiting for author Status: action required, waiting for author feedback NMI Status: issue needs more information Hook 8.1.x Branch and removed New New issue not yet processed by QA labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.1.x Branch Bug Type: Bug Hook NMI Status: issue needs more information Waiting for author Status: action required, waiting for author feedback
Projects
None yet
Development

No branches or pull requests

2 participants