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

pslightcheckout modul - zobrazení tlačítka pro výběr místa #287

Open
TomasZmuda opened this issue Mar 13, 2024 · 1 comment
Open

Comments

@TomasZmuda
Copy link

TomasZmuda commented Mar 13, 2024

Zdravím,
máme na eshopu activityboard.cz nasazený modul pslightcheckout os výrobce Ewonta: https://ewonta.com/prestashop-modules/20-light-checkout-buy-now-module-for-cms-prestashop.html

Jediné co nefunguje, je zobrazení tlačítka pro výběr výdejního místa po kliknutí na dopravce, po refreshi stránky nebo výběru platby se zobrazí a pak již vše funguje.
V popisu modulu je následující postup:
For compatibility with third-party delivery and payment modules, JavaScript initialization during AJAX loading of HTML, you need to use the event
prestashop.on('infoRefreshCheckout', (event) => {});
You need to insert the js initialization of your module into this event This information is for developers of third-party modules.

Bylo by možné přidat tuto kompatibilitu nebo zatím jen hotfix kam tento kus kódu vložit? Díky.
Koukám, že už to jednou bylo řešeno s jiným modulem #45

@TomasZmuda
Copy link
Author

Úpravy realizoval nakonec vývojář modulu, zde jsou jeho poznámky:

  1. There is a gross error in displaying the pick-up point selection button in the module, since the order processing steps are wrapped in the tag the button should have type="button", if this is not done, the oo button has the type type="submit" by default and if the JS has not loaded, then clicking on the button will reload the page packetery/views/templates/front/widget.tpl (screenshot)

  2. Set the update event for the checkout steps
    packetery/views/js/front.js (screenshot)
    65f2a641668ec4

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

No branches or pull requests

1 participant