Firstly, a huge thanks for purchasing our themes and plugins. If you still had any problem with our themes or plugins, please feel free to contact us via our Support Ticket System then we will support you until you feel happy with our product!

Normally, with a variable product in WooCommerce:

  1. All variations of Variable product will be shown on Select option.
  2. User can only add a variable product on the product page.

However,  our SWG Swatches Variation plugin gives you an alternative to the default WooCommerce dropdown fields so that the variations on your products can be their actual colors, images, and labels. Besides, It will also allow user to be able to purchase variable products directly from the homepage or product listing page without going to a single product page. So, how to install and configure this plugin on your site, let’s start together now.

 

I. INSTALL AND ACTIVE SWG SWATCHES VARIATION PLUGIN

To install this theme, please follow the below steps:

  1.  Download the plugin from our site. You can purchase it here
  2. Login to your site’s admin panel and navigate to Plugins -> Add New -> Upload.
  3. Click choose plugin’s file package, select the plugin file and click install
  4. Click activate button to active SWG Swatches Variation plugin on your site

Note: This plugin will be included in our WordPress’s theme. So, If you are using our WordPress themes, you can skip this step.

 

II: ENABLE/DISABLE SWATCHES IMAGES FEATURES

  1. Go to WooCommerce > Settings > Choose tab SWG Wooswatches to open the SWG Swatches Variation Settings
  2. Check for the Enable Swatches Variation parameter to enable the swatch feature on your site.
  3. Check for the Enable Swatches Variation Listing parameter to enable swatches variation on the product listing page.
  4. Enable and disable tooltip from Enable Tooltip settings.
  5. Choose image size of Tooltip in the Image Tool Tip parameter
  6. Set the size for product variable in the Product Variable width parameter and Product Variable height parameter.
  7. Add color code for activation status in the Active Color parameter.
  8. Click on the save changes button

 

III: CREATE PRODUCT ATTRIBUTES

 

Two different product attribute types are available in WooCommerce, local and global product attributes. In WooCommerce, both options are called attributes, but there is a difference in the functionality of these attributes.

3.1 GLOBAL ATTRIBUTE

These are the properties that you will find in the WP-Admin under Product > Attributes. All attributes created here are at on a global website level and can be used with all products. Here you can quickly and easily add attributes and their terms.

To create a Global Attribute, please follow the below steps:

Step 1: Create Global Attribute

  1. Login to your site’s admin panel and navigate to Product -> Attributes -> Add new attribute
  2. Add a Name.
  3. Add a Slug; (optional); this is the URL-friendly version of the name.
  4. Enable Archives if desired. If enabled, you can view a page with all products having this attribute. For example, if you have this enabled, and “black” is one of the options under “color”, you can add http://yourstore.com/pa_color/black/ to your menu to only display black clothing – pa stands for “product attribute.”
  5. Set type of attribute: select or checkbox
  6. Select a Default sort order. Choose between “Name”, “Name (numeric)”, “Term ID” or “Custom ordering” where you decide by dragging and dropping the terms in the list when configuring the terms (see below). “Name (numeric)” is relevant if the values are numbers. If you select “Name”, it sorts alphabetically with 1 and 10 preceding 2. If you select “Name (numeric)” it sorts based on numerical value.
  7. Click to Add Attribute.

Step 2: Create Attribute’s Term

  1. Click on the “Configure terms” text to add attribute values.  
  2. Add Name
  3. Add a Slug
  4. Add Description. This field isn’t required. So, you can empty if you want
  5. If you want to show this term in color, please click on the Select Color button and set color
  6. If you want to show this term in image, please click on the Upload/Add an image to update an image for this term

3.2 LOCAL ATTRIBUTE:

These attributes are created when you create or edit a product. You can’t use these attributes to filter and they are only visible on the product page itself. Alternatively, add an attribute you only want to use for one product. This would only be ideal if you have a product with unique variations.

To create a Local Attribute, please follow the below steps:

  1. Login to your site’s admin panel and navigate to Product -> Add Product(or edit an existing one).
  2. Scroll down at product data and click to the Attributes tab.
  3. Select Custom product attribute in the drop-down and click on the Add button.
  4. Add Name
  5. Add Values( each attribute’s value will separated by “|”)
  6. Check for the Used for variations checkbox
  7. Click on the Save attributes button
  8. Click on the Update button
  9. Scroll down at product data section and click on the Sw WooSwatches tab
  10. Click on the Local Attribute which do you want to configure
  11. Select COLOR or IMAGE.
  12. Set color if you choose color or add an image if you choose Image
  13. Select Attribute type : Select/ checkbox

For both of attribute types, Please note that:

  • Label, Color and image only show if you set product attribute type : Checkbox.
  • If you add value for both of Color and Image parameters for the term, the Image will be priority to show.
  • If you don’t add value for both of the color or thumbnail  for the term, label will be shown in the front end

IV. ADD ATTRIBUTES TO VARIABLE PRODUCT

 

  1. Go to Products -> Add Product (or edit an existing one).
  2. Select the Attributes tab in the Product Data.
  3. Select Product Type : Variation Product.
  4. Click to Attributes tab
  5. In this tab, you can select a global attribute or add new custom attribute in the drop-down => and click on the Add button
    • Global Attribute: You can click on the Select All button to get all terms or click on the Select One button to choose some terms which do you want to add (3.1)
    • Local Attribute: Add Name of product attribute => then Add Values. Please note that each attribute’s value will separated by “|” (3.2)
  6. Check for the Used for variations checkbox
  7. Click to the Save Attributes button
  8. Click to the Variations tab
  9. Select Add Variation and click on the Add button
  10. Choose Term values for each attribute and do some necessary info for it as Add image, Add SKU, Add Price….
  11. Set Default Form Values
  12. After all, click on Update product to update the variation to the product.

Now you complete the task of creating a product with color and image swatches.

Currently, our top best themes are ready for this features. Let’s enjoy our demos for more experience. (See our best themes)

×