Got an odd one here,
Im using CMS made simple and basically I have a cart. By default it's hidden until someone clicks on the "view my cart" option and the cart slides in using jQuery toggle.
This is actually working fine.
The issue arises when the cart is updated. As its a form structure, you have to make your edits (to qty or 'check' item for removal) then click "update cart". The page refreshes and so the cart hides again.
Is there anyway to make it so that upon clicking this link (specifically), the page refreshes but the cart is showing by default?
Heres my code, I think I could attach a 'class' to the link maybe, but I'm not sure.
<script type="text/javascript" charset="utf-8">
(function($) {
$('#show_basket').click(function() {
$('#basket_box').toggle('slow');
});
$('#lclose_basket').click(function() {
$('#basket_box').hide('slow');
});
$('#continue_shop').click(function() {
$('#basket_box').hide('slow');
});
$('#continue_shop2').click(function() {
$('#basket_box').hide('slow');
});
}(jQuery));
N.B: There is 2 links each as I have a mobile and desktop version of the basket.
ALSO:
How do I make it so the basket closes when I click off of it? Is there a way to do that? At the moment, I need to click a "Continue shopping" link in order to close the basket.