Shopify themes, liquid, logos, and UX
I was wondering how I could remove a product that appears when I go to the /collections/all url of my site as I already have a page for the shop of my site.
You cannot remove products from this page somehow you can stop user to land on this page and redirect him to the main page or homepage.
Yes, this would be great. How?
Use below code into your theme. Liquid file before </body> close tag
<script>
if(document.location.href.indexOf('/collections/all') > -1) {
// indexOf will return the position of the first occurence of this string in the url
// or -1 it it's not there.
document.location.href = '/';
}
</script>
This did work, thank you. But I was wondering if instead of making it redirect them to where they were before can it take them to the current product page which is /pages/inventory
You want to take instead the home to inventory page?
I've already done this thank you. I'd appreciate assistance on how to change the default cart button automatically placed in the checkout page to my existing cart button that is throughout my whole page. The first image below is the existing button and the second image is the default one for the checkout page.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024