Shopify Product Variants: How To Add Variants to Shopify Products?

Shopify Product Variants

What are Shopify Product variants?

Shopify Product Variants let you develop variants of a product on your Shopify shop quickly and easily. For example, you may create a “blue” and “red” variation of the same shirt that will be available for purchase via your e-commerce site.

Shopify Product Variants are a fantastic approach to increase the number of items you sell on your online store.

In this blog article, we’ll teach you how to use Shopify’s Variant feature as well as some best practices for creating effective variants.

What are Shopify Product variants?

shopify-variants

Store owners have the option to develop additional variants for their items on Shopify. Variants are product choices with a different color, size, or feature based on the original product model that appear only on items with more than one choice.

Other platforms, such as Shopify, may only have a maximum of 100 variations per product and three different options when compared to other ecommerce platforms.

When you create a new variant for your product, you are usually able to alter the price of the product to match each variant and establish additional parameters like inventory and shipment choices.

Some products may have various options while others don’t. For example, one product might allow buyers to pick their own sizes, colors, and materials, whereas another simply has weight, color, and style as options.

If you want to go above the capabilities and choices limits, please see the applications we recommend in the following section. If you want to set it up manually, you may change the code. However, it will need some technical know-how, which is common for most business owners.

It’s also worth noting that if your business has more than 50,000 variants, you’ll be restricted to a certain number of variants uploaded every day using any third-party apps or CSV file imports. Every day, you may submit only 1,000 new variants. As a result, if you want to get around this restriction, a Shopify Plus membership is necessary.

If you’re adding a variant for the online store and choose to Continue selling out of stock, you can sell items until your inventory is depleted and below.

For example, you have no goods but are using a product listing as a pre-order and want consumers to be able to buy the item.

When an item is purchased, your stock levels will go to zero. Customers, however, may not purchase a product that has sold out if you choose this option since they won’t be able to.

How To Add Shopify Product Variants To Shopify Products?

Shopify product variants

Adding new variants to your Shopify products takes a few minutes at most. Here we’ve outlined all of the techniques for adding new ones quickly.

#1. Add shopify product variants to new product

To add variants right away while working on new items, follow these steps:

  • The first step is to go to your Shopify admin area and select the Product section. Look for the Variants section on the Add product page and press Add variant.
  • Next, name the option as you wish, such as “Color” or “Weight,” and start building many alternative values like Green, Red, Blue, etc., which will be available to customers on the front end.
  • Remember to add a comma after each option value that you want to split with another. These values will later be used as tags for easy sorting and filtering.
  • If your product has multiple variants, you may Add Another Option to your product. Always keep in mind that the maximum number of options for each item is three.
  • After you’ve completed adding new product options, your imported variants will display on the product information page next to Modify the variants to be created. Now you may simply uncheck checkboxes for options you don’t want to offer by turning them off.

Add any other information to your product’s details, including new pricing, barcodes, or even product SKUs. Finally, click Save to finish your work.

#2. Add Shopify product variants to existing product

There’s no need for store owners to create new goods from scratch when they can simply extend existing ones.

It would be much faster and less complicated for shop owners to add new variants to existing items rather than creating completely new items. The following are the precise actions that would be required to accomplish the task.

If you wish to add another version of an item that you already have, follow these easy instructions to complete the process.

Step 1: Select an existing product in your Shopify Admin

1. To begin, log into your Shopify account, go to the Products area, and then choose the product you wish to enhance. In this example, I’ve chosen Leather Shoes as my product.

Products - Shopify Product variants

Step 2: In the Variant section, click Add variant

If you scroll down, you’ll see a Variants section. Continue by clicking Add variant after seeing this.

Variants - Shopify Product variants

Step 3: Enter Option name

The name of the option is set to Size by default. However, there is good news: you may modify it to meet your needs.

option names - Shopify Product variants

Step 4: Enter Option values

If you want to associate a color with your Option name, add multiple values to your Option values field, such as Black or Brown. To disentangle these values, use a comma between them.

option values - Shopify Product variants

Step 5: Add another variant option

Click the Add another option button to add another choice, if your variants differ in more than one way. Repeat the above procedures to add your variants as well.

add option

Step 6: Manage variant options

If you do not sell those goods, on the left-hand side of each variant, there is a tiny checkbox that you may uncheck. You can also alter the prices, SKUs, and barcodes in this step.

Shopify Product variants

Step 7: Save variants

Click Save to save your work when you’ve completed it.

#3. Add a variant with the duplicating method

Instead of spending a bunch of time manually creating a new variant with the same information as the prior one, you may utilize the duplicating approach. To put it another way, you don’t have to re-enter the same data if you duplicate a variant and use it as a foundation for new ones.

The steps are pretty simple:

  • To add new variants for an existing product, go to the Products section via your Shopify admin page and select All products; then click on the product you’d like to modify.
  • Look for the Variants section on the just-shown product information page. Select the variant you wish to duplicate next, then click Duplicate.
  • Remember that Shopify will not allow you to save the duplicate variant unless there are significant differences between them. So, at a bare minimum, please change one of its details.
  • Click Save to complete the process.

How To Add Multiple Shopify Product Variants In Shopify?

multiple-shopify-variants- products

Even if you’re not a designer, utilizing bulk action to add variants even faster, especially if your store sells a large number of items.

Follow our instructions below to make it convenient for you.

  • To begin, log in to your Shopify account and go to the Products area. From your left menu, select All products from the Shopify admin page. Then choose the product you want to add variant options for.
  • Next, check for the Variants section on the product information page. Then, choose the options you’d want to duplicate with the same option value by clicking on the variants you wish to duplicate.
  • You’ll need to employ a large action now. When the Create Duplicate Variants window appears on the screen, type in new variant values and select information from existing variants.
  • Finally, click Duplicate to complete the procedure. When it’s finished, save it.
  • When you switch to the next product page, it applies all of your previous choices. It now contains new options with the option value you selected, as well as other option values from the product you previously picked. Depending on what you want to copy from the original,

Recommended Shopify Product Variants Apps

If you run a store and want to make further changes to the variant’s capabilities, consider downloading one of these top 5 Shopify product variant apps.

#1. Variant Option Product Options

Relentless Apps’ Variant Option Product Options went a step farther than the standard variants settings by removing limitations and enhancing the overall customer testing.

  • You can also use this feature to set up different pricing rules for product variations, values, and options.
  • Display options in a coherent manner.
  • Customize your product page with text boxes, photos, attachments, and color swatches to make it more appealing.
  • Remove the Shopify defaults settings’ limitation.

#2. Variants Options Swatch King

Variant options Swatch King by StarApps Studio is a paid one-for-all solution that allows you to extend your customization potential with various swatch features for product variations.

  • Variant swatches that are automatically generated.
  • Swatches can now be added for color and custom graphics.
  • Turn product groups into swatches by creating swatch books.
  • Create swatch collections.
  • Swatches can be imported/exported quicker by bulk upload/migration.
  • Allow for the creation of out-of-stock product variants.

#3. Variant Title King

Variant Title King by StarApps Studio may be a free alternative to enhance your variants and options for items. The app focuses on optimizing variant titles for possible SEO advantages.

  • Create title-style templates for your products.
  • All new products will have the title templates you choose automatically applied.
  • Any new or existing product swatches and variants will be used.
  • Compatible with all marketplace designs.

#4. 100+ Variants & Product Options

100+Variants & Product Options, which is an excellent solution for increasing the product variant and option customizing ability. The app, like its name implies, enables you to do the following:

  • Over 100 variant and option elements must be included on the product page.
  • You can use smart & conditional logic controls to modify the price automatically.
  • You may use bulk option sets when you work with several options.
  • The live preview allows you to make changes and see how they look in real-time.
  • You can also use the Custom Fields module to build your own custom fields with various settings and types.

#5. Product Option Variants Option

Product Option Variants Option by PxApps is Provides a wide range of features that can be used to drive sales and enhance productivity for commercial organizations. The app offers:

  • There are far more color options and swatches available for this product.
  • Custom fields may be used to add custom types of your choice.
  • Make options, alternatives, and values infinite.
  • Optimize bulk variants for large Shopify shops.

How to hide Shopify product variants

You should link these options to avoid displaying unavailable combinations of alternatives when a client selects one of the choices.

hide shopify variant options

To connect the options, follow these steps:

  1. Go to Online Store > Themes.
  2. Click Actions > Edit code.
  3. Click the link Add a new snippet under Snippets to create a new one.
  4. Give your new snippet the name “linked-product-options“.
how to hide options in product page shopify

5. In your new snippet file, add the following code:

<script>

window.addEventListener(‘DOMContentLoaded’, function() {

  var Shopify = Shopify || {};

  // Required functionality from depricated options_selection.js

  Shopify.arrayIncludes = function(e, t) {

    for (var n = 0; n < e.length; n++)

        if (e[n] == t) return !0;

    return !1

  }, Shopify.uniq = function(e) {

      for (var t = [], n = 0; n < e.length; n++) Shopify.arrayIncludes(t, e[n]) || t.push(e[n]);

      return t

  }

  Shopify.optionsMap = {};

  Shopify.updateOptionsInSelector = function(selectorIndex) {

    switch (selectorIndex) {

      case 0:

        var key = ‘root’;

        var selector = jQuery(‘.single-option-selector:eq(0)’);

        break;

      case 1:

        var key = jQuery(‘.single-option-selector:eq(0)’).val();

        var selector = jQuery(‘.single-option-selector:eq(1)’);

        break;

      case 2:

        var key = jQuery(‘.single-option-selector:eq(0)’).val();  

        key += ‘ / ‘ + jQuery(‘.single-option-selector:eq(1)’).val();

        var selector = jQuery(‘.single-option-selector:eq(2)’);

    }

    var initialValue = selector.val();

    selector.empty();    

    var availableOptions = Shopify.optionsMap[key];

    for (var i=0; i<availableOptions.length; i++) {

      var option = availableOptions[i];

      var newOption = jQuery(‘<option></option>’).val(option).html(option);

      selector.append(newOption);

    }

    jQuery(‘.swatch[data-option-index=”‘ + selectorIndex + ‘”] .swatch-element’).each(function() {

      if (jQuery.inArray($(this).attr(‘data-value’), availableOptions) !== -1) {

        $(this).removeClass(‘soldout’).show().find(‘:radio’).removeAttr(‘disabled’,’disabled’).removeAttr(‘checked’);

      }

      else {

        $(this).addClass(‘soldout’).hide().find(‘:radio’).removeAttr(‘checked’).attr(‘disabled’,’disabled’);

      }

    });

    if (jQuery.inArray(initialValue, availableOptions) !== -1) {

      selector.val(initialValue);

    }

    selector.trigger(‘change’);

  };

  Shopify.linkOptionSelectors = function(product) {

    // Building our mapping object.

    for (var i=0; i<product.variants.length; i++) {

      var variant = product.variants[i];

      if (variant.available) {

        // Gathering values for the 1st drop-down.

        Shopify.optionsMap[‘root’] = Shopify.optionsMap[‘root’] || [];

        Shopify.optionsMap[‘root’].push(variant.option1);

        Shopify.optionsMap[‘root’] = Shopify.uniq(Shopify.optionsMap[‘root’]);

        // Gathering values for the 2nd drop-down.

        if (product.options.length > 1) {

          var key = variant.option1;

          Shopify.optionsMap[key] = Shopify.optionsMap[key] || [];

          Shopify.optionsMap[key].push(variant.option2);

          Shopify.optionsMap[key] = Shopify.uniq(Shopify.optionsMap[key]);

        }

        // Gathering values for the 3rd drop-down.

        if (product.options.length === 3) {

          var key = variant.option1 + ‘ / ‘ + variant.option2;

          Shopify.optionsMap[key] = Shopify.optionsMap[key] || [];

          Shopify.optionsMap[key].push(variant.option3);

          Shopify.optionsMap[key] = Shopify.uniq(Shopify.optionsMap[key]);

        }

      }

    }

    // Update options right away.

    Shopify.updateOptionsInSelector(0);

    if (product.options.length > 1) Shopify.updateOptionsInSelector(1);

    if (product.options.length === 3) Shopify.updateOptionsInSelector(2);

    // When there is an update in the first dropdown.

    jQuery(“.single-option-selector:eq(0)”).change(function() {

      Shopify.updateOptionsInSelector(1);

      if (product.options.length === 3) Shopify.updateOptionsInSelector(2);

      return true;

    });

    // When there is an update in the second dropdown.

    jQuery(“.single-option-selector:eq(1)”).change(function() {

      if (product.options.length === 3) Shopify.updateOptionsInSelector(2);

      return true;

    });  

  };

  {% if product.available and product.options.size > 1 %}

    var $addToCartForm = $(‘form[action=”/cart/add”]’);

    if (window.MutationObserver && $addToCartForm.length) {

      if (typeof observer === ‘object’ && typeof observer.disconnect === ‘function’) {

        observer.disconnect();

      }

      var config = { childList: true, subtree: true };

      var observer = new MutationObserver(function() {      

        Shopify.linkOptionSelectors({{ product | json }});

        observer.disconnect();

      });  

      observer.observe($addToCartForm[0], config);

    }

  {% endif %}

  var selector = jQuery(‘.single-option-selector:eq(0)’);

  selector.trigger(‘change’);

  {% if product.options.size == 1 %}

    {% for variant in product.variants %}

      {% unless variant.available %}

        jQuery(‘.single-option-selector option’).filter(function() { return jQuery(this).text().trim() === {{ variant.title | json }}; }).remove();

      {% endunless %}

    {% endfor %}

    jQuery(‘.single-option-selector’).trigger(‘change’);

  {% endif %}

});

</script>

6. Go to the theme.liquid file.

7. On this document, before the closing </body> tag, insert the following code:

{%- if template contains ‘product’ -%}

    {% render ‘linked-product-options’ %}

  {%- endif -%}

hide unavailable shopify variant

Let’s get started! Now only relevant choices are shown:

link shopify related options

Conclusion

Prioritizing product variants may help you develop a useful Shopify eCommerce product page.

By understanding the fundamentals of Shopify product variants and how to create and connect them, customers will be able to save time by reducing the number of clicks. Clients will be able to discover their desired items faster and with greater ease.

About the author

Ra Karthik

Ramachandiran Karthik is the Digital Marketing Manager at Adnabu. He loves to help Shopify stores grow their business with Google Shopping & Google Ads, using advanced features like multi-currencies, multi-languages, Metafields. Karthik has a lot of experience in digital marketing and enjoys exploring new ways to make advertising more effective for both advertisers and customers.

By Ra Karthik