Reconfiguring the behaviour of the continue shopping button

  • Posts: 259
  • Thank you received: 22
8 years 5 months ago #260537

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

Looking for some guidance on whether this is possible (I'm not convinced it is desirable, but a client is demanding it).

Is it possible to get the "continue shopping" button in the add to cart popup to go to the previous page rather than the page where the add to cart was clicked? In other words, if the customer opened the product from the listing and clicked "add to Cart" could the continue button take them back to the listing?

Please Log in or Create an account to join the conversation.

  • Posts: 84048
  • Thank you received: 13623
  • MODERATOR
8 years 5 months ago #260551

Hi,

There is no information of the previous page of the page from which the popup was called in the popup.
So doing that dynamically would require passing that information to the add to cart process.

A simpler solution would be to always redirect to a specific page by just changing a bit the code of the button itself:
www.hikashop.com/forum/3-bug-report/1135...ot-workig.html#11364

The following user(s) said Thank You: rodfarrell

Please Log in or Create an account to join the conversation.

  • Posts: 259
  • Thank you received: 22
8 years 5 months ago #260735

I thought that was the case. I have opted instead for a back button on the product page itself and no popup. This makes more sense in my view because add to cart buttons are in the product listings as well as the product pages so there is no logical "previous page" in the listings.

Please Log in or Create an account to join the conversation.

Time to create page: 0.039 seconds
Powered by Kunena Forum
loading