Remove product from /collections/all page

Remove product from /collections/all page

dvaughn
Excursionist
176 0 9

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.

Replies 6 (6)

Liquid_xPert_SJ
Shopify Partner
1176 130 167

@dvaughn

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. 

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
dvaughn
Excursionist
176 0 9

Yes, this would be great. How?

Liquid_xPert_SJ
Shopify Partner
1176 130 167

@dvaughn

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>

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
dvaughn
Excursionist
176 0 9

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

Liquid_xPert_SJ
Shopify Partner
1176 130 167

You want to take instead the home to inventory page? 

- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂- If you need any technical assistance, feel free to send me a DM. You no longer have to search for answers without getting a response.
- Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
- Your Shopify Solution Specialist For further discussion contact: Email ID- Liqud_3xPert_SJ OR Whatsapp
- Buy a Coffee for me to get more frequently help 🙂
- Hire Me to unlock the full potential of your e-commerce store Now 🙂
dvaughn
Excursionist
176 0 9

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.

Screenshot 2024-08-14 000141.pngScreenshot 2024-08-14 000153.png