Hi all,
I have a niggling issue that I’m struggling to fix. For the mobile version of my shopify store I can’t click on the cart icon in the corner. When I do It just does nothing. When I’m in the customise view and click on the icon it simply shows a scroll bar and then takes it away.
This should go directly to the shop page.
The desktop version works fine.
If you need access to the site please msg me and I’ll provide the password for the site.
Thanks in advance!
Hii can you provide a site link so I can check Thank you
Hi,
please use the following for access.
www.dolliescookies.co.uk
hiafew
In the file sections.js you have the following:
//Toggle mini-cart with menu icon
if(Shopify.theme_settings.cart_action != 'redirect_cart') {
$(".mini_cart").on("click", function(e) {
var $cart_container = $(this).parent();
if($cart_container.hasClass('active_link')) {
closeMiniCart();
$('body').removeClass('blocked-scroll');
} else {
openMiniCart($cart_container);
$('body').addClass('blocked-scroll');
}
if (is_touch_device() || Shopify.media_queries.medium.matches) {
e.preventDefault();
}
});
}
$('.cart_content__continue-shopping').on('click', function(e){
closeMiniCart();
})
Two solutions you may try are:
-
In your theme settings, set the Cart icon action to Redirect Cart. (easiest solution)
-
You check that the code containing the mini cart is actually loading on the page - I only had a brief look but it appears there is no mini cart on the page and therefore no mini cart to display when the icon is clicked.
Hi,
Thank you for your feedback.
I don’t actually want the mini cart to show. The icon should redirect to the actual cart page.
1. In your theme settings, set the Cart icon action to Redirect Cart. (easiest solution)
I don’t have access to this. I’m currently using the Turbo theme and there is no where to directly redirect this from the theme settings.