Can I hide products but keep them available for purchase / buyable?
Sometimes, you may want the products to be sold as bundles instead of selling them individually on your Shopify store. In other words, you want the individual products hidden from customers but available for purchase.
* Coding may be required for the following tutorial
Steps:
- Remove these products from any collection but leave them available on the online store sales channel.
- 2 options
- If you want these products to be hidden from storefront search, you can set a metafield for each of them. After that, the links to these products are hidden from the customers unless you share them.
- Alternatively, you can change the button text and link with javascript (coding requires), e.g. redirect the customers to the bundle page instead of adding to cart like below:
- Adding a product tag for these products, e.g. "BYOB modify products"
- Add a javascript on the product liquid to detect the product tag. When you add .json to a product link, you'll see the product data in JSON format. Send a request the .json link to detect if the product should be modified.
- If the tag is found on the product pages, change the button text and link