Thanks, guys. You are both referring to the same plugin. Glad to see the plugin (which was enabled already) lets me change the pop-up duration. It felt a little long at 5 seconds, so I reduced it a bit.
I have the add to cart function working perfectly from within a store item page. It's from an article that I get redirected. Specifically, I do these steps:
- Edit an item in the back end
- Copy the "Add to cart HTML link"
- Exit the item and open an article
- Paste the HTML code into the article
- Save the article
When I test this, the the page does not redirect, however the item is not added to the cart. The HTML code from the item looks like this:
<a class="hikashop_html_add_to_cart_link" href="http://[mysite]/index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=2">Add to cart</a>
(Note that I replaced my domain with [mysite]) If I use this link instead:
https://[mysite]/shop/disc-profiles/product/updatecart/add-1/cid-2
then the item is added to the cart, but the page redirects to the checkout page.
This is not a showstopper for me right now and I've got other priorities, so this can sit a while if the answer isn't immediately obvious.