VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Attributes, Child Products VM 1.1 => Topic started by: jjk on June 12, 2008, 09:18:59 am

Title: Add a child (item) product and value for an attribute - step by step
Post by: jjk on June 12, 2008, 09:18:59 am
I think that the current VM logic and the manual are somewhat confusing concerning attributes. So I wrote this explanation a few days ago. Perhaps it is helpful for others, too.

If you want to use products with stock control, the following procedure applies:

1. Add a new product
   - type in SKU (no empty spaces!) for basic product as well as the title, price, tax, description, images,etc.
   - select a category and eventually a manufacturer, if you have defined some already.
   - save the new product and open the saved product again

2. Click on "Add attribute" in the top menu
   - type an attribute name, for example 'SIZE' or 'EDITION' into the "Attribute Name" field. You may leave the "List Order" field empty.
     (Initially I would recommend to actually type i.e SIZE in bold letters, so you can identify and see how this attribute interacts with the
     childlist later, depending on the display options you choose)

3. After you clicked the "Save" button, something like "Attribute List for - Item: Your new product" shows up as a blue headline.
   - click on "Your new product" in this headline to return to your product page.

4. Now you will see a button named "Add New Item" in the menu above your product data. Click it.
   - a new product entry form appears, titled "New Item :: Your New Product Title" (from the parent product)

5. Enter a unique SKU for the child product (slightly different from the parent product SKU) and at least the title and price. If you leave the
      description blank, the parent product description will be shown to the customer.
      You can enter different images for this child product, if you like.

6. Click on the "Item Status" tab in the menu. At the bottom of the form (you may have to scroll down) you will find the "Attribute"
     you have defined in step 2.
     In case you named it 'SIZE', you can enter the value, for example 'Medium' here. Now you can save your entries again.

7. Finally you might want to play a little bit with the display options for the parent product and child products, to explore how different
     settings affect your display.
     (click on 'item information' under the product title in the product list to access the childs (items)

If somebody who reads this detects that I missed something in describing the procedure above, feel free to submit a corrected (better) version of this text in a reply.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: inpakken en wegwezen on June 19, 2008, 05:33:55 am
Hi,

Can I see a site where you do use all the ingredients you wrote about. If so I'm wondering why it is still not working at my side.

I hope to see / read soon from you.

Inpakken en wegwezen
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on June 19, 2008, 08:21:50 am
Hi,
Can I see a site where you do use all the ingredients you wrote about.

My VirtueMart shop currently is only on my local PC. It wouldn't help you anyway because you could only view the result, but not how I did it. I suggest that you watch the tutorial video that Soeren uploaded a few days ago. You can access it from the VM homepage.

Follow the link "How to work with Product Attributes" in the latest news tab. (This morning there seems to be a server problem)

Joerg
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Printopia on June 19, 2008, 11:19:38 am
Excellent tutorial, thanks, that was very helpful! I also asked in another thread but maybe you know: how to sort these child items? If you click on "Item Information" at the parent item, you'll get the child products, but neither the arrows nor manually ordering with numbers and saving helps change the order  >:(
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: inpakken en wegwezen on June 19, 2008, 13:42:35 pm
Dear JJK,

It is very clear to me what you wrote but if I want to ad new Attribute(s) with new properties and/or ad custom attributes it doesn't work.

I try to figure it out, and at the parent's and at child's side stil it gave the message:

"notice: To add this product into your cart you have to select a product variant on the details page."

This problem costs me already a lot of time but I still can't find a solution. I hope you can help me further. If you want to try and see what I mean please follow the link:
http://vm.ickkci.eu/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=3&category_id=1&option=com_virtuemart&Itemid=1

Just ad some tekst and fill in the quantity, the message still comes back. If you want to see the backend I can give you the login. Just ask for it.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on June 19, 2008, 18:20:36 pm
Dear JJK,
"notice: To add this product into your cart you have to select a product variant on the details page."

Perhaps you encounter this bug, which should be solved in the recent nightly builds.

# Task #1677 - When no child is presend and List box for child is selected error is shown

You didn't say which version of Joomla/VirtueMart you are using.

As far as I remember, I read somewhere in this forum, that it can also happen if you add attributes to the parent product instead of to the child products (items). If you have child products, attributes should be assigned to the child products only (provided I understand how it works correctly)

Finally, you might check why one of your products shows empty () in the drop down list. VM might expect an attribute value here.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on June 19, 2008, 19:28:11 pm
... but neither the arrows nor manually ordering with numbers and saving helps change the order

Concerning this I have the same problem and until now I didn't find a workaround. Maybe it's a bug. If I click on "item information", the item list on my system is loaded initially without the sort arrows and sort input fields. They only show up after selecting a category. However, they don't work.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Printopia on June 19, 2008, 19:45:36 pm
It's a bug indeed, or at least it's a bug the order does not change in the back-end. It was designed (the arrows) to only change the order in the back-end, not the front-end. This feature is essential to many of us so it has been requested (http://forum.virtuemart.net/index.php?topic=40106.0). Other threads on the subject can be found here (http://forum.virtuemart.net/index.php?topic=39525.0) and here (http://forum.virtuemart.net/index.php?topic=39723.0).
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: muzaffar on June 20, 2008, 07:29:24 am
How I can adjust categories within sub categories within sub categories in virtuemart components for left side menus as shown in the below link
http://demo.virtuemart.net/index.php?page=shop.browse&category_id=94&option=com_virtuemart&Itemid=53
If you have the solution then reply me
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on June 20, 2008, 14:47:16 pm
Muzaffar,

Your question would have been better placed in the "Administration & Configuration" section of this forum.

However, since it seems to be your first question you are welcome  :D

In the Joomla Top Menu go to: Extenstions - Module Manager and look for 'VirtueMart Product Categories". If it is missing, you have to install this Module first. Here you can adjust the position and several other parameters of the category menu.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Cam.G on July 23, 2008, 06:25:55 am
Excellent tutorial, thanks, that was very helpful! I also asked in another thread but maybe you know: how to sort these child items? If you click on "Item Information" at the parent item, you'll get the child products, but neither the arrows nor manually ordering with numbers and saving helps change the order  >:(

I am having the same problem, and no one seems to have the answer!

It seems ridiculous to not be able to sort the order of the options.  What is worse is the sorting Virtuemart does by default seems to follow no particular logic.  It neither sorts in the order that the variants have been added, or alphabetically / numerically!

Very frustrating.  I hope someone can offer some kind of useful suggestion for resolving this issue?!?! Please? :D
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on July 23, 2008, 14:36:46 pm
Sorting child items currently doesn't work! The only way to order them is to enter the child items one after another in the order you want them. If you delete an item from the list or want to add a new one between previously entered ones your sort order is screwed up.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Cam.G on July 25, 2008, 06:12:55 am
The only way to order them is to enter the child items one after another in the order you want.

Unfortunately not even that works ;) That was the first thing I tried,  simply assuming it would work!  There seems to be quite a flaw there.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on July 25, 2008, 07:07:51 am
I didn't try to re-enter items myself yet. Just copied this suggestion from an earlier post. See: http://forum.virtuemart.net/index.php?topic=41992.msg136423#msg136423 (http://forum.virtuemart.net/index.php?topic=41992.msg136423#msg136423)

One thing I did try was to change product IDs manually in the database, but this didn't solve the sorting problem either.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: 3by400, Inc. on July 31, 2008, 18:32:55 pm
Excellent step-by-step! Thanks for creating!

I do have a question about inventory numbers, though. Should my parent item have, as a number in inventory, the total number of all child items? Will this be depleted as child items are purchased?

Thanks,
Beth
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Cam.G on August 01, 2008, 00:56:31 am
I do have a question about inventory numbers, though. Should my parent item have, as a number in inventory, the total number of all child items?

Don't enter any inventory counts for the parent item, just the child items. ;)
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: 3by400, Inc. on August 01, 2008, 05:08:02 am
Thanks!
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on August 02, 2008, 19:43:09 pm
@Beth,

The customer can't buy your parent product. He always has to select one of the child items you have entered. Although the parent product form shows you the stock number field, it will not be updated if you have entered a number. Also, it will not automatically calculate the total from the various child items.

You have to enter the stock number for each child item seperately and this will be updated automatically when you receive an order for the child item.

Regards

Joerg

Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Arni on August 13, 2008, 11:53:12 am
I've had a fully working VM from version 1.0.10, I think, and in those versions child products could have different choises for the customer.
Example:
On the parent the customer chooses what size he/she wants, the shop then displays the child and the customer can choose colour.

After the update to 1.1.0 this child functionality is GONE! The old ones doesn't show and it's impossible to make new ones.
In the administration I can pick a child product and all the options are there but the customer can't see anything in the frontend.

Have I missed anything or is it something that the new 1.1.2 has updated and fixed?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jjk on August 13, 2008, 20:34:23 pm
Arni,

perhaps you currently see one of the problems fixed in 1.1.2. See here:https://dev.virtuemart.net/cb/issue/2219 (https://dev.virtuemart.net/cb/issue/2219)
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: muzaffar on August 14, 2008, 11:55:05 am
joomla component for showing product list under one manufacturer?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Arni on August 19, 2008, 14:34:08 pm
Arni,
perhaps you currently see one of the problems fixed in 1.1.2. See here:https://dev.virtuemart.net/cb/issue/2219 (https://dev.virtuemart.net/cb/issue/2219)
Updated to the latest version of VM but it's still not working.
I can select a child product and it changes the page to display that products information but the addon options that this child is supposed to have is not showing. If I click add to basket a notice pops up saying nothing and the basket is still empty.

Edit:
Solved it, updated again and now it works.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: steshortt on August 21, 2008, 01:46:59 am
Just noticed that if I select an attribute (say Option Pack of 10) and click Ask Question About this Item it goes to root/index2.php..... for the form which shows up but nothing else... is this something I've done somewhere or is it happening to others too?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Arni on August 26, 2008, 17:11:23 pm
It happened to me also but the request contained info about the correct item in the store and I was later able to go back to that item so it works.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: critchy on September 19, 2008, 17:38:36 pm
Well said, that section had me in knots, still does really.

Perhaps you can answer this for me.

I have 100 products and descriptions sitting in my inventory in the correct categories etc.

Most have the same attributes like size and fabric.

Is there a way to add in one step relevant attributes these inventory items in bulk e.g.

All T-shirts get the size Attribute containing the options XS-XXXL... And maybe the colours attribute containing options in colours E.G. red, Green, Black...

Liek OS COmmerce has a bulk attributes interface.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: VGarcia on November 01, 2008, 13:04:54 pm
I wanted to throw in here that you must be in "extended layout" mode of the admin panel of VM, within Joomla. If you try to add new items to a product while you're in the "simple layout" mode, you won't see all of the button you need (specifically, the new item button).

Thanks for this post. The manual is very confusing in this section.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: RobertF on November 06, 2008, 17:20:43 pm
Hello there,
in addition to the last post I want to inform that the command add a new item, on my system only shows while using standard english language not e.g. with german,austria, swiss language update 1.5.7.1
Cheers
Robert
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: treybraid on November 19, 2008, 00:39:30 am
has anyone figured out how to edit and sort the child items... put them in a pre-determined order?

trey
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: sitebuildernow on December 18, 2008, 02:17:41 am
Wow! Thank you soooo much for this simple step by step for adding a "product option" that allows us to charge a different shipping and price! I looked and look for how to do this and finally found your post.

Harmony

Joomla! 1.5.8 / Virtuemart 1.1.2 ;D
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: melynda on January 14, 2009, 14:15:14 pm
i have added the attributes and the value ($5) but when the attribute is chosen on my site it does not add the additional $5 - how do i fix that
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: bergwastl on January 20, 2009, 14:46:41 pm
Thank you for the howto. But in the latest version 1.1.2 the "Add Item" button is in the menu on the left, not the toolbar.

Question: I added child items but have to edit them. How can I list items and edit/delete?

Michael
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Arni on January 20, 2009, 15:07:59 pm
When you look in the main product list you have a link to the parent product but ALSO a link to another thing, Item Information, that is the list of child products that you have added to the parent.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: bergwastl on January 22, 2009, 06:44:33 am
Thanks Arni. I did not notice that little "Item Information" was an active link. It works. Maybe I should get better eyeglasses.

Michael
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: bikash on January 28, 2009, 21:26:02 pm
How can i create sub categories
Thanks
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: cseke18 on February 23, 2009, 10:20:37 am
I would like to ask for help regarding the following problem.

We want to open an internet shop e-mail address  www.pet-shop.hu

The problem is:

The Virtuemart system is 1.1 together with greenshape template joomla 1.5.
I would like to put the child products with different sizes,colours to the cart.

The home page is in hungarian language, but if you could check it that  would be very helpful
for me. I asked this question on joomla forum joomla.org.hu but no one could answer
that.I tried to make a registration on virtuemart.net forum..but I didn't get back a registration link
for my e-mail address.

So ,if you would check please The KUTYA (Dog)

Category          Flexi nyakörvek és pórázok   (Flexi collars and lines)
Product             Flexi Classic 1-5 kék  (blue..and the child product hupikék...)

I would like to put the cart just one of them, but I get the answer:

You can chose from the list,and put the cart ,if you go to The Product Type list and choose
a product from that..

My problem is: First I have put all the products to the list after categories...
Now I know that I have to choose the Product Type list  when I add a colour ,or a size to the product..

But when I try to put one of them to the cart  1.the system puts all of them
                                                                               3. I need that list..
If you woul kindly check that product..the last line instead of Product Type is Product Category...but on the
administrator page it is different..as Product Type is Flexi Lines and the  Product Category
is Flexi collars and lines.

Please advice how can I make a Product Type list for Child Products for the home page...

Many thanks for your kindly help,

Andrea Cseke
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: manjireee on March 14, 2009, 07:34:15 am
Hello,
I read the help document of virtue mart and i have added products attributes and items same way as you said.
I have come accross a mjor issue is,
for the main product, in product display option , i have selected check boxes named as "Use List box for child products ","add to car button for each child" so automatically list options are enabled.
Now when i used these option and see that product page of my site. Display is proper items are listed one by one.
In Firefox, add to cart bottom works properly, when i click on add to cart of indivudial product, it shows the pop up of continue and cart.
But when i use Internet Explorer, click on add to cart, the pop up does not display, jus shows the error object dosent supoort this property or function.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: EquiProVM on April 08, 2009, 16:45:40 pm
OK.  I have a product, which I will call "ET".  ET can be purchased made from 2 different materials, and whichever material a person chooses determines the price.  So, ET1680 is one price and ET0840 is another. Aside from the material weight, the products are exactly the same (same color, same sewing, etc.).

I would like to have my product in Virtuemart be the generic ET (or put the SKU as ET1680/0840) with no price until the attribute of material is applied.  These products are gear to 2 completely different users, so they would choose one material over the other at a different price.

When I try to set this up, however, as ET being the parent, and ET1680 and ET0840 as being the "children", it requires a price on the main ET page, or I get "call in for pricing".  I don't really want to commit to a price in the overview, because price depends on which material is chosen.  I also don't really want to use the "attribute" on the parent page, because it shows the more expensive one as "(+$40.05)" rather than just the price of $110.

I'm really not sure how to solve this in any other way, except to have 2 separate products, which is ridiculous because there is no other variant on them.

Any suggestions?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: sitebuildernow on April 09, 2009, 06:13:26 am
in your templates/common folder there is a template called price.tpl.php - you need to find and comment out the following:

<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
   
   $link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&amp;product_id='.$product_id.'&amp;subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
   echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>

Here is how I did it but I am not a php master so this may not be exactly the right way to comment things out (see my //'s)but it worked:

<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
   
   //$link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&amp;product_id='.$product_id.'&amp;subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
   //echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: EquiProVM on April 09, 2009, 13:43:55 pm
OK - Thanks!  But maybe I'm blind...I couldn't see the difference!  Can you tell me where the change is?  And what is the result?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: saviner on July 20, 2009, 14:33:58 pm
Can anyone help me with this?  We have parent products with children, where there's no price listed on the parent level, but each child has his own price which shows up nicely in the dropdown window on the product page and in the shopping cart – that is, until the user logs in.  Once he logs in, and his shopper group kicks in – in this case, his registered user status that entitles him/her to 10% off his/her purchase – instantly the price of the child turns to zero.  We figured out what’s happening:  the registered-user discount of 10% is applying not to the price of the child, but to that of the parent, which is zero to begin with:  10% off zero is zero.   We tested this by making the parent price $1, and, sure enough, the price of each child turned to $0.90, or 10% off the parent price of $1.00.  Now, how do we correct it?  Any help will be greatly appreciated.  Thank you.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jlwagner on July 20, 2009, 15:59:45 pm
OK - Thanks!  But maybe I'm blind...I couldn't see the difference!  Can you tell me where the change is?  And what is the result?

The double slashes (//) have been added at the beginnings of two of the lines.  They mean that all which follows is a comment, to be ignored rather than acted on.  Therefore the programming that prints "Call for Pricing" when the price is zero will not be executed.

The first "commented out" line constructs what the page content should be.  I don't think it needed to be commented out.  The second "commented out" line (the one beginning with "echo") places that content on the page.  This may be the only line that needed to be commented out.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: derebo on July 23, 2009, 21:05:37 pm
Excellent tutorial! Just too bad I had to learn it by trial and error as the manual was not as clear as your detailed explanation, or at least I didn't find it that clear. Wish I had read your post earlier  ;D
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: derebo on July 23, 2009, 22:07:54 pm
BTW, any solution after over a year to the child items sort issue? Hopefully!
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: madamsplash on July 24, 2009, 09:51:02 am
When a product has multiple Attributes - e.g. Size and Flavour, and we want to use an inventory of the same - is this managed through Items too?

Normal attributes don't appear to affect the count.

e.g.

4 Packs of 200g Lemon Flavour
4 Packs of 100g Vanilla Flavour
4 packs of 100g Chocolate Flavour
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: epek on August 04, 2009, 12:01:13 pm
Probably someone, who is more familiar with the topic could write an FAQ based on the expected results?

I am encountering various issues in understanding and creating products with individual attributes. Should they usually be inherited by children?
If so, I don't seem to be able to find the right settings. The parent will show the ind. attrs, but klicking on the variant won't show them again. Ordering seems to be prohibited then.

As for parent-child products there should be the following scenarios (please enhance the list, if required):

Scenario A:
Parent has attributes and no price (it's a template product) - children will inherit the attributes and set their own price.

Solution:?

Scenario B:
Parent has individual attributes and no price - children will inherit the individual attributes and set their own price.

Solution:?

Scenario C:
Parent has attributes and a price - children will either add further attributes or overlad them.

Solution:?


Solution-based approaches might be closer to real life applications.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: marco.rossi on October 02, 2009, 22:35:58 pm
Regarding the Scenario A

I've added attributes on the parent product and they are inherited in the child products.
But I can't add a child product to the cart, I see an error message "notice: To add this product into your cart you have to select a product variant on the details page.".

I'm using
joomla 1.5.14
virtuemart 1.1.3
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: gtswhitt on October 19, 2009, 17:19:21 pm
Regarding the Scenario A

I've added attributes on the parent product and they are inherited in the child products.
But I can't add a child product to the cart, I see an error message "notice: To add this product into your cart you have to select a product variant on the details page.".

I'm using
joomla 1.5.14
virtuemart 1.1.3


I just ran into a problem like that and it was because my text was too long in the title of my attribute.  Trying shortening it.  It worked for me. 
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: qme1ster on December 01, 2009, 17:45:11 pm
Like Derebo and Treybraid above I too really would like to know if it's possible to control the order in which the child products display.

We have Tshirts available in various colours and sizes and it's important that these display logically. However the sort order in the front-end seems to be all over the place.

(see attachments showing order in back and front end)

I've just upgraded to VM1.1.4 (with Joomla 1.0.15) and there seems to be no change with regards to this issue.

Has anyone else been able to find a solution to this problem ?

Many thanks.

[attachment cleanup by admin]
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Tjackan on January 15, 2010, 12:51:01 pm
Awesome tutorial! Really great stuff.

Thanks,
Tjackan
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: boogily on February 09, 2010, 21:37:05 pm
Can there be a dynamic attribute that allows users to type in a message and preview it in different font styles?  Thanks
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: kdemott on March 06, 2010, 19:57:05 pm
Hate to keep bringing the subject up again, but as asked above by qme1ster and others, has there been any progress on figuring out how to sort child products on the front end. Order in which they are entered, alpha, etc. do not work.

Using VM1.1.4, Joomla 1.0.15

Any help/hack on this would be greatly appreciated.

Thanks
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: kdemott on March 07, 2010, 00:44:57 am
Finally found a solution that works for the sort order in this post

http://forum.virtuemart.net/index.php?topic=52978.0
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: sethniel on March 21, 2010, 20:11:19 pm
When I add an attribute or child to a product, there is no 'add to cart' button. How can I make 'choose colour' button appear?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jehanon on March 24, 2010, 11:39:21 am
using VirtueMart 1.1.4 / joomla 1.5.15

if you want to add  an attribute like COLOR and a list of Attributes like SIZE with properties = 41,42,43,44, it doesn't work , it seems that you cannot have both

is it possible ?

the color is just an information , but he must choose the size

thank you

Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: baggiesmad on May 24, 2010, 17:33:42 pm
HI

I've created a parent product with three child products but the child product details dont display the parent details?

Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: tsili on June 03, 2010, 18:03:20 pm
Hi,

First of all great tutorial!
What I would like to ask is the following: When I am in the Product Details page the "Add to Cart" is still visible for the parent items, which means that someone can click on it with no effect (he will get the message 'To add this product into your cart you have to select a product variant on the details page.'). How I can remove the Add to Cart button or disable it until someone selects a child item?

Thank you!
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: mowlman on June 07, 2010, 21:03:24 pm
Hi,

First of all great tutorial!
What I would like to ask is the following: When I am in the Product Details page the "Add to Cart" is still visible for the parent items, which means that someone can click on it with no effect (he will get the message 'To add this product into your cart you have to select a product variant on the details page.'). How I can remove the Add to Cart button or disable it until someone selects a child item?

Thank you!


You might be able to set the parent Qty to zero, then
Comment out the display of Call for price as mentioned by sitebuildernow earlier in this post. Their solution was:

Quote
in your templates/common folder there is a template called price.tpl.php - you need to find and comment out the following:

<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
   
   $link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&amp;product_id='.$product_id.'&amp;subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
   echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>

Here is how I did it but I am not a php master so this may not be exactly the right way to comment things out (see my //'s)but it worked:

<?php
// User is not allowed to see a price or there is no price
if( !$auth['show_prices'] || !isset($price_info["product_price_id"] )) {
   
   //$link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.ask&amp;product_id='.$product_id.'&amp;subject='. urlencode( $VM_LANG->_('PHPSHOP_PRODUCT_CALL').": $product_name") );
   //echo vmCommonHTML::hyperLink( $link, $VM_LANG->_('PHPSHOP_PRODUCT_CALL') );
}
?>
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: mindblock on June 10, 2010, 15:15:26 pm
Hi

In Atribute List price.i want to show the property , and I dont want to show  - and + price in main page to the user.

How to I remove + and - price. in user side..

can anyone suggest pls

sridhar
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: carlomaria on July 12, 2010, 20:32:26 pm
dopo tanti disperati tentativi ho risolto trovando la soluzione qui:

http://forum.virtuemart.net/index.php?topic=41605.45

I just ran into a problem like that and it was because my text was too long in the title of my attribute.  Trying shortening it.  It worked for me

ovvero:

Ho appena incontrato un problema del genere ed è stato perché il mio testo era troppo lungo nel titolo del mio attributo. Cercando accorciamento esso. Ha funzionato per me

se dovesse servire a qualcuno.!!!!

saluti

Carlo
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: carlomaria on July 12, 2010, 20:33:04 pm
dopo tanti disperati tentativi ho risolto trovando la soluzione qui:

http://forum.virtuemart.net/index.php?topic=41605.45

I just ran into a problem like that and it was because my text was too long in the title of my attribute.  Trying shortening it.  It worked for me

ovvero:

Ho appena incontrato un problema del genere ed è stato perché il mio testo era troppo lungo nel titolo del mio attributo. Cercando accorciamento esso. Ha funzionato per me

se dovesse servire a qualcuno.!!!!

saluti

Carlo
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: jeel2008 on July 25, 2010, 13:40:27 pm
hello jjk,
but when i would have a product, lets say a pencil
and you can buy it in red, yellow and black.
but you want 3 pencils.
2 red, and 1 black.

so, im a customer and i click: pencil.
the little ordercard that is displayed will give 3 options in the drowdownmenu:
red
yellow
black
but how can i tell virtuemart i want 3 pencils, o yes, but 2 reds and 1 black. i can not click this in the dropdownmenu. as when i choose black, i would get 3 blacks. so, what to do?
thanks, jeel2008
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Nille on October 28, 2010, 09:44:01 am
hi, I have set up the product, a sweater, the child would be the color, now in each color there are different sizes if I have understood correctly the sizes should be treated as attributes? Is this correct, if so then I wonder how do I add the stock in each size?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: alpertheidiot on October 30, 2010, 00:52:41 am
Nillie, as far as I know you cant.. the only way to do that is by entering all combinations as a child product ie Red-S, Red-M, Red-L, Blue-S, Blue-M, Blue-L (in this example you would have 6 child products, each with different sku). if you have 5 colours and 5 sizes then you would have 25 items in your dropdown menu, which makes no sense but thats the way it is with virtuemart. there are few other threads asking the same question, obviously with no answer..
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Bubbles86 on December 12, 2010, 20:54:39 pm
When I add an attribute or child to a product, there is no 'add to cart' button. How can I make 'choose colour' button appear?

i also been having this prolem, i posted my problem but seems like no one has found anything yet.

http://forum.virtuemart.net/index.php?topic=77759.0

see this post see if this is what you are having.

anyone please help us?
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: alpertheidiot on December 12, 2010, 21:56:07 pm
a new version of virtuemart is in development, hope in the new version this problem will be addressed.

other than that i couldnt find a solution either.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Bubbles86 on December 18, 2010, 23:19:06 pm
its weird because i got everything working but when a new user comes into my site the list menu which has the child products - the whole thing doesnt respond, what i realised was if i clicked on "notify me" after that the pulldown menu with child products works
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: AngelaGreen on January 14, 2011, 13:03:31 pm
thank you very much for adding this info!
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: vaibhavchhabra on February 15, 2011, 17:45:59 pm
Hello

Thanks for the tutorial it is of great help, But I need to create the product page result look like
 http://www.eagletechonline.com/AEE-Solar-grid-tie-PV-power-systems/

If you see this page u can see "Select Item Code for Discount Price:" here you select the item code and the price varies.

Can you please help me how to create this function.

Please reply it will be of great help.
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: alizarin on September 13, 2011, 21:25:51 pm
Some people were trying to order their child products on the drop down on the front end. Here's what I did to order them by the product names:

Go to this file:\store\administrator\components\com_virtuemart\classes\ps_product_attribute.php
Inside function "list_attribute_drop()" around line 263

Change:
      $q = "SELECT product_id,product_name FROM #__{vm}_product WHERE product_parent_id='$product_id' AND product_publish='Y'" ;
to:
      $q = "SELECT product_id,product_name FROM #__{vm}_product WHERE product_parent_id='$product_id' AND product_publish='Y' ORDER BY product_name" ; // (date) (initials) - Added "ORDER BY product_name" so child products list/dropdown would be alphabetized instead of just order entered


There's about 9 other queries like that that are using "product_parent_id=" in the where clause that I presume are doing something similar that you'd also want to modify.

Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: Gar on October 01, 2011, 06:52:39 am
I will drink to your health tonight alizarin, I've been looking for a solution to that for AGES  :D

You rock!
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: kyovev on October 16, 2011, 15:16:57 pm
guys, how can i add values for some attributes with dots in their names?

For example i have attribute named size and i want to add values

3

3.5

4

4.5

but when i add "." something goes wrong
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: kicimilo on November 21, 2011, 20:40:43 pm
Dear All!
I need help in configuring virtuemart:
I have downloadable product (video).
I wish to let people who allready bought from my store additional files to reach (watch or download)

Can this be done in virtuemart? and how?

Many thanks:
kicimilo
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: wildfirepro on November 24, 2011, 20:13:53 pm
Awesome step by step guide....

So clear and thank you so much!!!  ;)
Title: Re: Add a child (item) product and value for an attribute - step by step
Post by: su89 on February 09, 2012, 06:51:43 am
Hi,
   How to add a drop down for product attributes in virtuemart 2.0.

Your Help will be greatly appreciated.