Looking to access your theme's code or language options with Shopify's new theme editor layout?
In your Shopify admin click on Online store > Themes
Next to the theme that you want to edit click on the Menu button which is a small square with 3 blue dots
This will open a submenu of options which includes: Edit HTMl / CSS and Edit Language
This is to encourage shoppers to continue shopping within the store without ushering them directly to the cart & checkout where the temptation would be to finish their shopping session on your store.
For some customers that would prefer for the customer to be sent difrectly to the cart when adding a product this is very simple and requires an easy code alteration.
- Click on Themes > Customize theme > Theme options > edit HTML / CSS
- On the next page choose the Assets folder and click on: theme.js.liquid
- On this page scroll down to line: 168 - 169
you will see the following code:
// Add to cart from anywhere $('.add').on('click', addToCart );
- Delete this and click Save
Customers will now go directly to the cart when clicking the Add to Cart button