Designing color swatches on your Magento e-commerce website can take much time and effort, but it is usually compensated with higher sales. You increase your chances to make a sale on the Internet when items are there on the page of the offered product. You will never have an opportunity to win on sales once you count just on “related products.” Making personal products for every variation in fabric, size and color can be a real nightmare. Magento 1.9 configurable swatches are a revolutionary and up-to-date feature, and this article you are reading will help you set them up.
There are no limits in fabric, size and color. Magento configurable swatches can appear as any kind of an attribute, and you have a chance to design your own. Additionally, you can use them on a private product page, in layered navigation and product lists. Once the attendant of your website clicks a swatch, the image of the product can immediately update to show explicitly how the product appears with that attribute. This assists in boosting sales by improving customers’ confidence in the actual appearance of the chosen item. They are aware of only what they are receiving, and they are sure they have selected the proper item before they have placed an order.
In case you are working with Magento Enterprise Edition 1.14.1 (or later version) or Magento Community Edition (1.9.1 or later version), you are free to use this guide as a simple and productive way to create custom swatches. (If you use an older Magento version, check Amasy’s Color Swatch Pro continuation, which perfectly integrates with their Booted Layer Navigation.)
In case you have configurable products already setup you can continue reading from here
Add Swatches to Catalog Items: How To
First of all, ensure the attribute you need has been previously created. Otherwise, do it right away with the help of a simple scheme: Select Catalog -> Attributes -> Manage Attributes. There must be the following properties:
- Scope = Global
- Type of Catalog Input for Store Owner = Dropdown
- Apply to = All Product Types or Configurable Product
- Use to Create a Configurable Product = Yes
Then, to design an Attribute Set which has all the desirable options (such as blue, yellow, red, etc.) do the following things. Manage the attribute set simply following the plan: Catalog -> Attributes -> Manage Attribute Sets “Add New Set”. Entitle the attribute set, for instance, name it “Demo Set”. The attribute set may inherit the features of an existing attribute set (“Based On”).
Save it. Then drag the Attribute created in the previous step (or already existing) to a convenient group on the left side and save it.
Design a Configurable Product (Catalog -> Manage Products “Add Product”). Set the attribute set to the already created Attribute Set, for example, “Canvas Posters”. Set the Product Type to “Configurable Product” and go on. Choose and put a tick in the boxes for the attributes that you wish to be configurable and proceed. After this, you will have to design the base product that you wish to be configurable. Fill in the following information: Name, Description, Short Description, SKU, Status, Visibility (Catalog Search), then save.
Prices screen should load, and then fill in the product Price and Tax Class. Then from the sidebar you should choose Categories. Tick those categories where you wish the configurable product to appear. In case you own several stores, click Websites and select the web stores where you want the configurable product to appear.
Afterwards, move to Inventory. At this stage you can select to either get every single product managed separately or get the products and have them all based off of the same inventory stock (that is, if a manufacturer had a white T-shirt that has been colored with several different shades, as opposed to 10 green, 5 white and 6 red shirts). To do this, leave the default settings and simply modify the “Stock Accessibility” to “In Stock” and save the changes. Then you’ll have to design the Associated Products. Name and SKU for every configurable product can be set with the help of “Auto-generate” option. Modify the Status to “Enabled”, Stock Availability to “In Stock” and Visibility to “Not visible individually”. Fill in the quantity. Our swatch in this example will be based on color. That is why we have selected the color field.
In case you enter price at this stage, it will be automatically added to the price which was defined as you designed the base product. Choose “Quick Create”. You are free to add as many products as you want, then click Save. If you don’t save it, the items will be shown as created in the Manage Products area though will not be associated with the Main Product.
Now if we check this product on the frontend it will look like this.
Now, you’ll definitely need to enable Configurable Swatches (System -> Configuration). Next, under “Catalog” choose “Configurable Swatches”. Check the “Enabled” to be switched to “Yes”. Besides, make sure that “Product Attributes to Show as Swatches in Product Detail” includes the attribute that you are currently using. (In our example, it is the color.) Save the Config.
If take a look at the frontend the product will look like this. As you can notice the dropdown changed to icons or buttons.
Now let’s upload the images. Move back to Catalog -> Manage Products -> (The Main Product You Created) -> Images.
I’ll do it just for blue and red colors. 1 image for product and another for swatch, so we need 4 images. Don’t forget to save the product.
Swatches should have “-swatch” postfix in the label name.
Now the product will look like this.
Clicking a swatch will change the main image
If image label doesn’t match the attribute frontname option value then it won’t be recognized to be used with swatches and will be used as a gallery image. To demonstrate it I made a misprint.
Let’s reload the product frontend page. You can see that clicking the blue swatch doesn’t change the main image now and a blue t-shirt image appeared in the gallery
We’ve set up all images in configurable product itself. Sometimes it might be easier to use simple product images (when they are already set up so you don’t waste your time)
Just make sure the desired image is based image in simple product.