Zasilkovna / prestashop

module Packeta for PrestaShop 1.7
32 stars 27 forks source link

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

Open TomasZmuda opened 5 months ago

TomasZmuda commented 5 months ago

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 commented 5 months ago

Ú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