An attribute in VirtueMart is described as any property of a product, for example size and color. Probably you do not want to add every single variations of products you have as it could take time and it will create a long list of products in the Product List.  A simplistic way of defining an attribute would be product variation.

As a result of creating a product attributes, the customer is able to click on a drop-down box and choose from the different attributes (product variations). For example, the product is a pair of shoes. You have to create a Color custom field type and lots of actual attributes — Black, White, Green, Blue etc. The customer could select any of the available colors for that shoes from a single product page. In addition, you can assign each variation with different properties and prices.

This article will guide you to add and create attributes on products. Kindly follow the instructions below.

Add a new custom field

First, we have to add a new custom field.

Step 1: Navigate and click Components at the top admin panel, once a drop down menu appears, click VirtueMart > Products.

virtuemart add product 1

Step 2: Click Custom Fields on the left Products panel.

virtuemart add attributes 1

Step 3: You will be directed to the Custom Field list page. Click on +New to add a custom field.

virtuemart add attributes 2 edited

Step 4: You will notice a Custom Field form. Fill in the following options:

  • - Custom Field Type
  • - Title (Size)
  • - Show Title - Select "Yes"
  • - Published - Select "Yes"
  • - Cart Attribute - Select "Yes"
  • - Cart Input - Select "Yes"
  • - Description

virtuemart add attributes 3

Step 5: Select Save, your changes will be saved and you will remain on this page or select Save & Close, your changes will be saved and it closes this page. You will be directed to the Custom Field list page. A display message will be shown to indicate that your custom field is successfully saved.

virtuemart add attributes 4

Add the custom field to the VirtueMart product

Now that we have created a custom field, let's add the custom field to a VirtueMart product.

Step 1: Under the Products menu, click Products. Find the product you wish to add the custom field to, and click the product name to edit it. Once you arrive at the Product Edit page, click on the Custom Fields tab.

Step 2: Under the Custom Field Type section, click on the drop down menu, and select the custom field you created earlier.

virtuemart add attributes 5

Step 3: If you want to add another field, simply repeat the above step and change its value from default. Doing so, you are actually adding multiple attributes to the product. In addition, you can change the value of the price, as a result, the variant will be more expensive.

virtuemart add attributes 6

Step 4: When you have completed, click on Save button. Head to over your store site and view your product in action.

In the event that you wish to edit the value of the attributes, simply repeat the steps above.

Note: The details shown above were used for demonstration purposes.

If you need assistance or have any further enquiries, feel free to contact our support team.

Was this answer helpful? 0 Users Found This Useful (4 Votes)