Jump to content

Edit History

Kami Solutions

Kami Solutions

On 6/19/2020 at 6:09 AM, Rajehs Kumar said:

Can someone give solution for PS 1.7 

Go to ps_shoppingcart.js file inside your modules/ps_shoppingcart module directory (I would hardly advise to do it in your theme folder, theme/modules/ps_shoppingcart/ps_shoppingcart.js) and go to line

if (resp.modal) {
  showModal(resp.modal);
}

Where you want to change it to:

if (resp.modal) {
	window.location.replace(prestashop.urls.pages.cart+'?action=show'); 
}

 

This will solve the issue when the customer is logged in or not (guest and customer).

Remember to clear the cache in var/cache by deleting the cache folder, otherwise your changes might be unaffected.

Kami Solutions

Kami Solutions

On 6/19/2020 at 6:09 AM, Rajehs Kumar said:

Can someone give solution for PS 1.7 

Go to ps_shoppingcart.js file inside your modules/ps_shoppingcart module directory (I would hardly advise to do it in your theme folder, theme/modules/ps_shoppingcart/ps_shoppingcart.js) and go to line

if (resp.modal) {
  showModal(resp.modal);
}

Where you want to change it to:

if (resp.modal) {
	window.location.replace(prestashop.urls.pages.cart+'?action=show'); 
}

 

This will solve the issue when the customer is logged in or not (guest and customer).

×
×
  • Create New...