Continue Shopping button Bug

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 năm cách đây
If you visit a product page by navigating through the categories, then add to cart, then click "continue shopping" the button works correctly. However, if you navigate to a product through search, the "continue shopping" button still takes you to the last category page you were on.

"Continue shopping" button should take you back to exactly the same page you left when you clicked "add to cart" or "view cart"
12 năm cách đây
Thanks! Fixed. See changeset 4699c1866e3c
12 năm cách đây
a.m. wrote:
Thanks! Fixed. See changeset 4699c1866e3c


So what has changed?  Is this fixed in 2.4?  I tried to compare the code in the link to what I currenlty have and it looks the same.
11 năm cách đây
hi i am using  nop 2.7
and i am having the same problem

the "continues hopping" button
will take you to the home page
insted of the last product page
....
knowen issue ?
11 năm cách đây
"Continue shopping" button works as expected. It redirects only to catalog pages (category, manufacturer, or search). It should not redirect to the last visited product details page.
11 năm cách đây
ok. but  in my site it is redirecting to the homepage .

you can see it here

www.mitpachat.com/en
11 năm cách đây
Please try the following:

1. Open "ContinueShopping" method of \Nop.Web\Controllers\ShoppingCartController.cs
2. Replace
if (!String.IsNullOrEmpty(returnUrl) && Url.IsLocalUrl(returnUrl))

with
if (!String.IsNullOrEmpty(returnUrl))


Please let me know if it helps
11 năm cách đây
how do i set the debug ?
11 năm cách đây
ai changed the coded it didnt work
11 năm cách đây
ok it solved the problem i only needed to clear the cach or somthing

tns andrei
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.