News:

Support the VirtueMart project and become a member

Main Menu

How to add sizes to a product in Virtuemart 2

Started by itye2012, June 12, 2012, 14:44:44 PM

Previous topic - Next topic

Happyjack

 How to Add Attributes (Sizes and Colours) to Virtuemart 2 Products

Written by Jennifer Gress.

After searching multiple sources on how to add attributes to Virtuemart 2 and finding a bit here and a bit there and then just messing around to get it to work, I've decided to type it up for the benefit of humanity. Here goes. May you have a simpler time than I did.

    Login to backend administration to joomla.
    Hover over Components and click on Virtuemart
    From the Products Menu, click on "Custom Fields"
    Click on the "New" icon at the top right (the big orange circle with the + in it)
    In the "Custom Field Type:" dropdown, select "Cart Variant
    Type the Title as you want it to appear on the front end of your store. Example: Size or Colour.
    Make sure it is published.
    Do not select a parent
    Make sure the "Cart Attribute" is set to "Yes"
    Leave Description blank
    In the "Default" field, type your attributes separated by a semi-colon.
    Example for Size: XXL;XL;L;M;S
    Example for Color: Black;White;Red;Blue
    Leave the "Admin only" radio button set to "No"
    Have the "Is a list?" radio button set to "Yes"
    Have the "Hidden" radio button set to "No"
    Save & Close

Next, add it to the product:

    Click "Products" from the Product Menu
    Click the name of the desired product to add the attribute to
    Click the "Custom Fields" tab at the far right of the product tabs
    Click the dropdown under "Custom Field Type"
    The title of the custom fields you just created should appear in the drop down
    For each of the items you added to the "Default" field in the custom field, click the desired custom field title that many times. So, if you have 3 sizes, small, medium and large, you click the dropdown under the Custom Field Type 3 times.
    When you do so, 3 new lines will appear under the Custom Field Type area showing the title, a value (with a dropdown), price field, type, cart attribute and delete.
    In each of the new lines that were created for your title, select the "Value" desired to show up in the store. So, if you had 3 sizes, you would select "Small" from one drop down, "Medium" from the next drop down and "Large" from the 3rd dropdown.
    To show a different price for different attributes, enter that price into the "Price" field. To have no price show at all, make sure the field is blank. Remove the "0."
    Click Save & Close.
    Check it from the front end.


Cygnus6

I do not have the option to choose Cart Variant. I have Child Variant and Generic Child Variant. Which of those equates to Cart Variant?