Nilog Developers
  • Introduction
  • Integrations
    • WooCommerce
      • Adding Products
      • Variable Product
      • Product Attributes
      • Managing Orders
      • Coupon Management
      • Currency Switcher
      • WooCommerce Reports
      • WooCommerce Analytics
      • Tax Settings
      • Multi Vendors
      • Email Settings
      • WooCheckout Webview
      • Web Store Layout
    • App Builder
      • App Builder Widgets
    • User Authentication
      • Login with Google
      • Login with Apple
      • Login with Facebook
      • Login with Firebase OTP
    • Cloud Messaging
      • Firebase Cloud Messaging
      • OneSignal
    • Google Maps API Key
  • Developers
    • React Native Development Setup
    • WP Generate Rest API keys
  • Reference
    • API spec
      • WordPress
    • Language Support
    • Changelog
      • App Builder
      • Nilog Monitor
    • Upgrade Your App
    • License Key
    • Enable WP Debug
    • Troubleshooting
      • JWT Authentication for WP REST API plugin installed
      • Hide Admin Account From Vendor List In Dokan Backend
Powered by GitBook
On this page
  • Adding a Variable product
  • Step 1. Set the Product Type
  • Step 2. Add Attributes to Use for Variations
  1. Integrations
  2. WooCommerce

Variable Product

PreviousAdding ProductsNextProduct Attributes

Last updated 3 years ago

Variable products are a product type in WooCommerce that lets you offer a set of variations on a product, with control over prices, stock, image and more for each variation. They can be used for a product like a shirt, where you can offer a large, medium and small and in different colors.

Adding a Variable product

Step 1. Set the Product Type

To add a variable product, create a new product or edit an existing one.

  1. Go to: WooCommerce > Products.

  2. Select the Add Product button or Edit an existing product. The Product Data displays.

  3. Select Variable product from the Product Data drop-down.

Step 2. Add Attributes to Use for Variations

Global Attributes

To use a global attribute:

  1. Create global attributes.

  2. Select one from the dropdown and click Add.

  3. Choose Select all to add all attributes to the variable product (if applicable).

  4. Enable the Used for variations checkbox to tell WooCommerce it’s for your variations.

  5. Click Save attributes.

Adding a global attribute

Adding global attribute values

Add Variations

To add a variation, go to the Variations section in the Product Data meta box.

Manually Add a Variation

01. Select Add variation from the drop-down menu, and select Go.

02. Select attributes for your variation. To change additional data, click the triangle icon to expand the variation.

03. Edit any available data. The only required field is Regular Price.

04. Click Save changes.

Creating All Possible Variations

Select Create variations from all attributes to have WooCommerce create every possible combination of variations and click Go:

It will create a new variation for each and every possible combination of variation attributes (max 50 per run). If you have more possible combinations you can run it again.

If you have two attributes – color (with values blue and green) and size (with values large and small) it creates the following variations:

  • Large Blue

  • Large Green

  • Small Blue

  • Small Green

If you later add additional attributes, it may require the variables to be redefined for the variation combinations to work correctly.

Editing Many Variations

If you have more than 15 variations, use the buttons to navigate forward and backward through the list. Each time you navigate to a new set of variations, the previous set is saved. This ensures that all data is saved.

Setting Defaults

Set defaults you prefer on variations. In the example, no default form values were set, so users can pick any color and size right away from the product page.

Add an Image to the Variation

  1. Expand the variation.

  2. Click the blue image placeholder (screenshot).

  3. Select the image you wish to use.

  4. Save.

Mark a product as Featured

To mark a product as featured, go to: Products > Products and select the Star in the featured column. Alternatively, select Quick Edit and then the Featured option.

In the Attributes section, before creating variations — use global attributes that are site-wide or define custom ones specific to a product.

add attributes
Mark a product as Featured