Variants not showing up

Solved
Tourist
5 0 2

Hi, I'm using the Supply Theme.  I have four variants on most of my products, but none of them are showing up.  The price of the first variant appears under the product title. I went through and checked the variants with inventory in stock and without, and it's happening on all of them.  What am I missing?

0 Likes

Success.

Shopify Staff
Shopify Staff
466 37 80

Hey there, @Andrew2018 

 

Bo here from Shopify Support! 

 

That is a really interesting issue, in my experience, this generally happens when the javascript that controls the variant function has been deleted. Can you please do the following: 

  • Go to Online Store > Current Theme > Actions > Edit Code. 
  • Go to the Assets Folder > theme.js.liquid. 
  • At the bottom of this file paste the following code:
$(document).ready(function() {
  var sections = new theme.Sections();
  sections.register('collections-list-template', theme.FeaturedCollections);
  sections.register('collection-row-section', theme.CollectionRows);
  sections.register('collection-template', theme.Collection);
  sections.register('header-section', theme.HeaderSection);
  sections.register('list-collections-template', theme.ListCollections);
  sections.register('map-section', theme.Maps);
  sections.register('product-template', theme.Product);
  sections.register('slideshow-section', theme.SlideshowSection);
});
  • Click Save.

Let me know how this goes and if there is anything else I can assist you with, I'm happy to help!

 

All the Best,

Bo

Bo | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
Highlighted
Tourist
5 0 2

Wow, that worked a treat.  Copied/pasted the theme.js.liquid code into a document first (just in case), but was pleased that your solution was so effective.  Thanks!

1 Like