DEV Community

Discussion on: Shopify - Create a custom variant selector

 
stephenrichard profile image
Stephen Richard

I looked into your liquid code (tested in a demo store) and it works so this part is sure, let's check the CSS and JS part !

  • First of all, do you have variants setup for your product ?
  • Can you see the url change when you press on the different sizes ? (If yes it's already working, the issue should come from the javascript file)

Can you then check your theme.js file against this gist (gist.github.com/stephenrichard/f88...) which is the article implementation on a debut theme.
Let me know your progress or provide your theme.js if you can't find a solution.

Thread Thread
 
dasian_long_56b27e7dcb82c profile image
Dasian Long

I also embedded the CSS code into theme.css and it still shows up like this
docs.google.com/document/d/14MWox5...

Thread Thread
 
stephenrichard profile image
Stephen Richard

Unfortunately I can't do much without seeing some code. Can you share the url of your shop so I can look up the css and js ? Feel free to contact me here : stephen.richard44@gmail.com if you want to share code or urls.

Thread Thread
 
dasian_long_56b27e7dcb82c profile image
Dasian Long

ok i am going to email you