VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: itye2012 on June 12, 2012, 14:44:44 PM

Title: How to add sizes to a product in Virtuemart 2
Post by: itye2012 on June 12, 2012, 14:44:44 PM
I have looked but cant seem to find the easy answer.

I have a product, in this example a Canvas artwork. I have created the product and allocated it to a category.

What i need to do now is allow the customer to choose what size canvas they want and add it to the cart with the relevant price.

How do you do this? Ive looked at custom fields but not sure what to do

Can someone help?
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: itye2012 on June 12, 2012, 15:17:31 PM
surely there must be a way to do this?
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: mowgs on June 13, 2012, 12:26:18 PM
Are the lengths going to be set?

i.e. the customer has a choice of say, 50cm, 100cm, 150cm

or are they figures that the customer inputs?
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: mrooks1984 on June 13, 2012, 12:54:01 PM
hello, i would do it using custom fields one of two ways.

if you need to do it height and width.

1. goto virtumart on your admin panel, custom fields, click the new button.
it will then ask you some questions, select the following:

Custom Field Type: Cart Variant
title: width
make sure publish is set to yes
Cart Attribute: yes
all rest leave.
click save.
do same but title: height

2.
Custom Field Type: Cart Variant
title: size or dimensions
make sure publish is set to yes
Cart Attribute: yes
all rest leave.
click save.

once you have done 1 or 2

go to products and find the product you want to add these options to and click the title of it.
click on custom fields, look down the page until you see, Custom Field Type. Click the dropdown menu and select the name of the custom field title you gave above.
you will then see it adds the title for selected custom field title, there is also a value and price box in there, you need to fill out value with the size e.g. 20cm x 30cm (depending on if you did 1 or 2 above) and fill out price per size, if there isnt one and you dont want the no additional charge coming up, delete anything in the price box so its empty. do same for all options you want, then click save at top.

hope this helps and let me know if its not how you want to do it and how you got on.
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: itye2012 on June 16, 2012, 15:14:08 PM
many thanks for you instructions, it worked and was just what was required for the website

Thanks again
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: mrooks1984 on June 18, 2012, 16:35:56 PM
no problem, glad i could help
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: jimsake on June 18, 2012, 22:18:33 PM
As i see beginers are more qualificated than members, or not?
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: mrooks1984 on June 20, 2012, 10:14:44 AM
its looking like that lol, i need a pro to help me on a couple of issues, but none seem to be about.
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: itye2012 on July 02, 2012, 13:19:33 PM
Many Thanks for your help on the cart items , I am having a few issues and was hoping you can advise on what to do with regards to the custom fields

website is www.tinytotsart.com

If you click on BOYS Canvas then select  the cart icon on the ROCKET canvas you will see that the sales price is 45.00.

What i want to do is allow the user to select different sizes and the price automatically updates based on the size selected

As you can see there is an option called 12 x 12 inches which is 10.00 extra. This correctly adds the 10.00 to the base price of 45.00 making 55.00

However what I wanted to do is have the options like above in the drop down box but without the 10.00 showing. I want the additional cost to be hidden and only added to the sales price.  Is this possible?

Many Thanks
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: mrooks1984 on July 04, 2012, 11:38:18 AM
hello, no i dont think it is without changing the code.
i in the past was trying to get a answer for this, but no one seems to know.
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: itye2012 on July 04, 2012, 12:22:41 PM
thanks for the reply, im also looking at Hika Shop at moment which seems to be a lot easier than virtuemart.
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: anistonemily4 on July 06, 2012, 12:46:28 PM
Once the new field is created in the database we will need to add that new field to the VirtueMart 2 Administration Panel so that when the new product is created/updated in the VirtueMart 2 we can set the value to our new 'product size' field. 
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: codeice2 on October 12, 2012, 18:32:42 PM
Quote from: mowgs on June 13, 2012, 12:26:18 PM
Are the lengths going to be set?

i.e. the customer has a choice of say, 50cm, 100cm, 150cm

or are they figures that the customer inputs?

I have a similar issue with my site (selling prints) however I do need the ability for the customer to input custom sizes which then goes to calculate a price.
Anyone have any other thoughts on this?
Thanks
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: dudumizi on December 01, 2012, 22:37:04 PM
Quote from: itye2012 on July 02, 2012, 13:19:33 PMHowever what I wanted to do is have the options like above in the drop down box but without the 10.00 showing. I want the additional cost to be hidden and only added to the sales price.  Is this possible?

Many Thanks

itye2012, i have checked your website seems you have succeeded to hide the additional cost and only added to the sales price, can you share with us how you did it?
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: capewellmj on February 22, 2013, 22:55:00 PM
To remove the annoying "no additional charge"

find these files:

/language/en-GB/en-GB.com_virtuemart.ini
adminstrator/language/en-GB/en-GB.com_virtuemart.ini

Edit the string in notepad (or whatever) to:
COM_VIRTUEMART_CART_PRICE_FREE="No additional charge" 
to:
COM_VIRTUEMART_CART_PRICE_FREE=""

bye bye words.
Title: Re: How to add sizes to a product in Virtuemart 2
Post by: Happyjack on June 23, 2014, 03:47:24 AM
 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.

Title: Re: How to add sizes to a product in Virtuemart 2
Post by: Cygnus6 on November 13, 2014, 01:32:18 AM
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?