jafakash cp Posted March 25, 2017 Share Posted March 25, 2017 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 More sharing options...
jafakash cp Posted March 28, 2017 Author Share Posted March 28, 2017 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 More sharing options...
jafakash cp Posted March 30, 2017 Author Share Posted March 30, 2017 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 More sharing options...
jafakash cp Posted June 9, 2017 Author Share Posted June 9, 2017 any solution Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 9, 2017 Share Posted June 9, 2017 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: http://www.yourstore.com/en/products-comparison?compare_product_list=1%7C2%7C3 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now