Jump to content

Deleted product showing when click on browser back button after deleting product from compare page


jafakash cp

Recommended Posts

Hi ,

 

I would like to share a scenario in prestashop , i have added two product in product compare page. after going to compare page i have deleted one of the product and click browser back button but still it showing old deleted product in compare page .

please give a solution for this  

Link to comment
Share on other sites

pls check my scenario after adding two product for comparison i click compare page and my url will be like  

 

http://my site url/products-comparison?compare_product_list=1%7C483.(am not providing exact site url bcs of security reason)

 

then i delete product from this page  then my url become http://my site url/products-comparison?compare_product_list=1.

 

so basically when i click back button from this page it will show last url   http://my site url/products-comparison?compare_product_list=1%7C483. 

 

but as my project flow i should not show deleted product and its url when ever i click back button after delete .

 

 

Hope you unserstand what i need . looking forward to your reply . if naything possible through jquery script also appreciatable

 

 

Thanks

Jafakash

Link to comment
Share on other sites

Ok, you url remain but did deleting action takes effect? Do still see that product in compare list after deleting it?

yes after deleting, product delete from compare page successfully and url changes as  http://my site url/products-comparison?compare_product_list=1.

 but when i click browser back button it will goes to last url  http://my site url/products-comparison?compare_product_list=1%7C483  shows deleted product also . i just want to hide deleted product in compare page

http://my site url/products-comparison?compare_product_list=1%7C483

Link to comment
Share on other sites

  • 2 months later...

Hi ,

 

I would like to share a scenario in prestashop , i have added two product in product compare page. after going to compare page i have deleted one of the product and click browser back button but still it showing old deleted product in compare page .

 

please give a solution for this  

 

Hi jafakash cp,

 

When you press the Back Button in your browser the previous page is not rendered again but is fetched from the browser cache and is shown to you in the browser.
 
Unfortunately, this behavior cannot be modified as it is being handled by PrestaShop. The product IDs are fetched from the URL and they are shown on the product compare page. For example:
 
 
The above URL means that the products that are compared are 1,2 and 3. The parameter `compare_product_list` is used for fetching the product IDs the parameter means 1|2|3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...