Skip to content

LeeStevens318/shopify-recormendations-by-metafield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shopify: Recormendations by metafield

This example was tested on the Venture Theme, results may differ between themes

Admin

  • Add metafield in Admin under Product Category Product Recommendation Tag it will generate the namespace and key as my_fields.product_recommendation_tag. Click "select content type", select Text and leave as default. Save.

Theme

  • Copy Liquid Template product-recommendations-metafield.liquid in Sections
  • Copy Liquid Template product-card-cart.liquid in Snippets
  • Add {% section 'product-recommendations-metafield' %} to product.liquid in Templates (see example file)

Products

For example, we will use a main product and available accessories for that product:

  • Go into each main product and set the metafield value
  • Now add that value as a Tag on each accessory product this will make it show on the main product