Make a variety of product options on woocommerce in wordpress

When I create an online shop with wordpress using the wooCommerce plugin of course, I find a case in adding a variety of options to the products, my case is like this:

I have a product called “Pie Susu” with 2 types of product variants, namely “Pie Susu contains 10 pcs” and “Pie Susu contains 20 pcs”

To solve my case I use “Variable Product in WooCommerce”, using Variable Product in WooCommerce allows me to provide a series of variation options on a product, with this feature I can control the price, stock, images, and more for each option variation in each product.

Table of contents :

1. Setting Attributes
2. Create a new product
3. Closing

1. Setting Attributes

Our first step is setting Attributes by:

Select Product then Attributes and enter a name, I use name: “chose package” and the slug is also the same as “chose package” then save it by clicking add attribute as shown below

After that the attribute we just created will appear on the right as shown below

then click “Configure terms” and it will appear as shown below

Enter name and slug and description then save by clicking add new. in my case there are only 2 options for my product so I only made 2 items for the attribute, namely “Pie Susu 10 pcs” and “Pie Susu 20 pcs” as shown below

After we create the attributes, the next step is to create a new product.

2. Creating a New Product

We will create a new product by clicking Product > clicking add new, it will appear as shown below

Enter the Product name, and for “Product data” select “Variable Product” from the drop down menu that appears as shown below

In the “inventory” section, enter the SKU of our product, then in the “attributes” section, select the name of the attributes that we created earlier, here the name of my attributes is “chose package” from the dropdown menu that appears, then click “add” and a form will appear containing setting for the attribute ā€œchose packageā€, in the value(s) column click the ā€œselect allā€ button to enter all the contents of our attributes, then tick ā€œVisible on the product pageā€ and ā€œUsed for variationsā€ then click ā€œSave Attributesā€ as shown below this

On the “Variations” menu select “Create variations from all attributes” then click “GO” the contents of the attributes that we have created will appear as shown below

then we will set each variation of the attributes that we have created, if here I will set the first variation, namely “10 Pcs” click the arrow next to the “remove” button on the right, then a form will appear containing the settings for the 10 Pcs variation product as shown below this

fill in all the forms then click “Save Change” to save it, repeat this step in all the variation attributes that we created. if everything goes right then our product will appear with a choice of products containing 10 pcs and contents 20 pcs as shown below

3. Closing

That’s the tutorial for making variations of product options on woocommerce in wordpress, hopefully it’s useful and thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *