Witty and insightful observations on the world? Sorry to disappoint, this is a techie blog purely for self reference - published online in the hope it will help others!

Update cart contents counter after Ajax update

A short post that will hopefully be helpful to somebody - I've had to write this because Shopify have an annoying policy of closing old forum threads when it'd be more useful to keep them open and have them updated. This thread; https://ecommerce.shopify.com/c/shopify-apis-and-technology/t/how-do-i-update-the-cart-counter-immediately-via-ajax-268966 Has an outdated solution for the problem. Problem If you enable the Ajax updating in the drawer / minicart in Shopify you can update the quantities of the individual items in the cart. But you may have a small cart total items icon in your link to that minicart - how to update that without a page refresh? The Solution Part 1 - Collections page If you ... Read more

Shopify – Using Nested Menus in Theme

This is a good article for store owners on the basics of creating a nested menu in the Shopify backend; https://help.shopify.com/en/manual/sell-online/online-store/menus-and-links/drop-down-menus Wordpress site owners and developers will recognise this setup immediately. Draggable/droppable menus were introduced into Wordpress as one of the flagship features of Wordpress 3 in 2010. As always the Shopify documentation is good - an indeed the example used for nested menus shows how to do it for a three level nested menu; https://help.shopify.com/en/themes/development/building-nested-navigation However.... It's not an actual working example per se so I've done one here if you are putting together a nested menu on your theme. This is a two level example, if you need a three level menu I'd be recommended they try to recategorise ... Read more

Shopify Custom Links in Navigation

One of the issues when working with an system is that visual redesigns tend to render 'How To' blog posts obsolete pretty quickly. Hopefully this on won't stay obsolete too long. If you are trying to work out how to add a custom menu link to a Shopify menu and are getting frustrated, chances are it's a UX issue. This wiki; https://help.shopify.com/en/manual/sell-online/online-store/menus-and-links/editing-menus Tantalisingly talks about being able to create menu links to external websites but when you try and do it you find it won't work. What you need to do is paste in the url (let's use a link to the customer account page in this example); https://mydevsite.myshopify.com/account/register Into the input field. Then, you need to wait for that link to ... Read more

Categories