Add to Cart Popup URL

  • Posts: 109
  • Thank you received: 5
10 years 3 months ago #202068

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.8.1

Hello, there.

Good evening!

After the following sequence of steps:
1) Add product to cart
2) The add to cart popup appears showing the "Continue Shopping" and "Checkout" buttons
3) Click on "Continue Shopping" or let the popup disappear after the popup times out
4) The SEF URL is appended with "?popup=1". How can this be get rid of when the "Continue Shopping" button is clicked or when the popup times out?

For example, let's say the http://<domain name>.com/en/products/ displays all the products in the shop. When the user clicks on the add to cart button, the URL then shows http://<domain name>.com//en/products?popup=1 and continues to show this when the popup is closed (either through clicking on "Continue Shopping" or timing out).

Please could you let me know how to fix this? The URL should continue to be as the previous URL (i.e. without the "?popup=1").

Thanks.

Take care!

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

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #202073

Hi,

This will require a redirection, so page reload.
You can potentially edit the view "checkout / notice" in order to add javascript in the "setTimeout()" function and on the "continue shopping" buttons to get the current url, remove the undesired part and do a window.location on the correct url.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum