Skip to product information
1 of 1
Published:2024.03.22

Example of settings to prevent specific products from appearing in related products for the Shopify theme "Dawn" (products to be excluded can be specified by collection)

Example of settings to prevent specific products from appearing in related products for the Shopify theme "Dawn" (products to be excluded can be specified by collection)

Applications

  • Collection information management and editing

How to implement

  • LIQUID
View full details

The "Related Products" section is displayed by default on Shopify product details, but it can sometimes include products that you don't want to recommend, such as shoppers (paper bags). This is an example of a setting that allows you to exclude all of the relevant products at once.


Example of settings to prevent specific products from appearing in related products for the theme "Dawn" (products to be excluded can be specified in collections)


[Setting method ①] Add the schema to "related-products.liquid" and the label to "ja.schema.json"


[Setting Method 2] Add code to "related-products.liquid"


[Exclusion specification] Create a collection and specify it from the section settings item


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Add scheme to "related-products.liquid"

Add a label to "ja.schema.json"

Related Post