Bug with warehouse theme

1 minuteread

The add to cart popup does not display anything with a warehouse theme or displays product unavailable.

the warehouse theme has a javascript error, a variable is missing : themes/warehouse/ps_shoppingcart/ps_shoppingcart.js

note that this variable is native prestashop, used by the native customization function of Prestashop

look for this :

if (event && event.reason) {
                    requestData = {
                        id_product_attribute: event.reason.idProductAttribute,
                        id_product: event.reason.idProduct,
                        action: event.reason.linkAction
                    };
                }

replace with :

if (event && event.reason) {
                    requestData = {
                        id_customization: event.reason.idCustomization,
                        id_product_attribute: event.reason.idProductAttribute,
                        id_product: event.reason.idProduct,
                        action: event.reason.linkAction
                    };
                }

Popup mode does not respond or closes automatically

 

The Warehouse theme blocks any action on modals by a css line. (?!)

Remove or comment out this line in the css.

search

.modal-body{
pointer-events: none; /*(raise this rule)*/
}

 

 

 

 

knowledgebase