I have followed posts in the forum on how to use the add to cart html link without redirecting to cart and this works fine. I used the code below. I read on the forum that I should refresh the page to refresh the cart module. How would I do this, would I add the refresh to the code below, if so where would I insert it?
<a href="index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1" onclick="try{ new Ajax('index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1', { method: 'get' }).request(); }catch(err){ new Request({url:'index.php?option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=1', method: 'get'}).send(); } return false;">Add to cart</a>