Jump to content

Edit History

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps trying to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, but I really need help because I am practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

On http://demo.prestashop.com/ no request in made when the "Added to cart" modal is closed

 

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps trying to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, but I really need help because I am practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps trying to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, but I really need help because I am practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

[EDIT]

Another thought:

     I think it has product page behaviour on product lists, which is wrong. From what I know, this is correct behaviour if you are on a product page. But it happens on every page with product miniatures....

[/EDIT]

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps trying to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, but I really need help since practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

[EDIT]

Another thought:

     I think it has product page behaviour on product lists, which is wrong. From what I know, this is correct behaviour if you are on a product page. But it happens on every page with product miniatures....

[/EDIT]

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

[EDIT]

Another thought:

     I think it has product page behaviour on product lists, which is wrong. From what I know, this is correct behaviour if you are on a product page. But it happens on every page with product miniatures....

[/EDIT]

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

PrestashopLearner

PrestashopLearner

Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue. 

 

When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page. 

image.png.034de895218f8d2b20602507db945e6e.png

It also changes the url in the search bar, but remains on the current page.

Also, it adds quantity divs to product miniatures, where they should not be....

image.png.45aaa78f31f6ed8a6961f1651b250b16.png

Steps to solve:

I deactivated custom modules.

Cleared cache (manually + from BO).

Upgrade ps_shoppingcart.

Reset ps_shoppingcart.

Same behaviour...

 

Solved with bad hardcoding practice, practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController: 

themes/modules/ph_shoppingcart/modal.tpl removed:

data-dismiss="modal"

 

themes/modules/ph_shoppingcart/modal.tpl added:

     custom-modal class to "Continue Shopping" button and "X" button

<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>

 

I would really appreciate some input here. Even  the place where clicking on a data-dismiss modal element could send this request. Thank you!

×
×
  • Create New...