Рет қаралды 22,038
This tutorial is for all the free Shopify 2.0 themes - Dawn, Craft, Crave, Sense, Taste, Ride, Colorblock, Refresh.
Grab the PRO version on my Gumroad - edcodes.gumroa...
A related products block is really useful for showing other colors of your products, if you have each color split into a separate product, rather than using color variants.
It's also an easy way to add an upsell without the need for an app. If you're selling tech products for example, you could use this block to suggest accessories like a case or charger.
Thanks to Shopify 2.0 Metafields, and specifically the new product reference metafield, it's pretty easy to add related products in the admin, and the code to add a block is pretty straightforward too.
===== Grab the code =====
Free version: ed.codes/blogs...
PRO version: edcodes.gumroa...
===== Who am I? =====
Hey! My name is Eduard.
I teach the tech side of starting and running a Shopify store.
Im a professional web developer, but my goal is to make Shopify easy with simple and straight-to-the-point videos.
Visit my website: ed.codes
===== Join "Shopify DIY" Community on Discord =====
Chat with me and other store owners and developers:
/ discord
===== FAQ's =====
My favorite Shopify Apps - ed.codes/blogs....
My favorite Themes - ed.codes/blogs....
===== Buy me a coffee =====
www.buymeacoff...
===== Chapters =====
00:00 Intro & Problem
02:54 PRO version
04:29 Code Add-ons idea
05:36 Creating the Metafield
08:20 Fill Metafields
10:03 Open the code & customizer
11:00 Add the block in settings schema
14:35 Add the main output code
15:44 You're done!
16:15 Add to specific products
17:31 Code explanation for nerds
22:52 Next video & more
#Shopify #Liquid #metafields