Search in blog
Categories
Related products
Required update of the Booking module
An important bug that occurred when updating or adding a booking-type product from the Backoffice has been fixed.
Recent changes:
--- PrestaShop 1.7 ---
VERSION 2.0.1 (05/02/2019)
- * FIX: use actionMarketplaceAfterAddProduct hook to add and update product booking from seller account
--- PrestaShop 1.6 ---
VERSION 1.0.1 (05/02/2019)
- * FIX: use actionMarketplaceAfterAddProduct hook to add and update product booking from seller account
---
In this new version 2.0.1 for PrestaShop 1.7 and version 1.0.1 for PrestaShop 1.6 an important error that occurred when updating, activating and / or deactivating a product from the Backffice has been corrected. The fact is that the reservation information was lost after these actions.
To solve this problem, what we have done is to use the hook 'actionMarketplaceAfterAddProduct' that only runs after adding or updating a product from the seller account. In this way, the hook 'ActionProductSave' is no longer used from the seler account. This last function is only executed when a product is created or added from the Backoffice in a conditional manner.
In this way, the 'ActionProductSave' function is conditioned and only executes when you are adding or editing a product from the Backoffice. In this way, it avoids that the information of the reservation is eliminated in case there is.