Author Topic: Add a child (item) product and value for an attribute - step by step  (Read 126041 times)

jeel2008

  • Beginner
  • *
  • Posts: 21
Re: Add a child (item) product and value for an attribute - step by step
« Reply #60 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

Nille

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #61 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?

alpertheidiot

  • Jr. Member
  • **
  • Posts: 103
Re: Add a child (item) product and value for an attribute - step by step
« Reply #62 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..

Bubbles86

  • Beginner
  • *
  • Posts: 13
Re: Add a child (item) product and value for an attribute - step by step
« Reply #63 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?

alpertheidiot

  • Jr. Member
  • **
  • Posts: 103
Re: Add a child (item) product and value for an attribute - step by step
« Reply #64 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.

Bubbles86

  • Beginner
  • *
  • Posts: 13
Re: Add a child (item) product and value for an attribute - step by step
« Reply #65 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

AngelaGreen

  • Beginner
  • *
  • Posts: 1
    • colour laser multifunction printer
Re: Add a child (item) product and value for an attribute - step by step
« Reply #66 on: January 14, 2011, 13:03:31 pm »
thank you very much for adding this info!

vaibhavchhabra

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #67 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.

alizarin

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #68 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.


Gar

  • Beginner
  • *
  • Posts: 6
Re: Add a child (item) product and value for an attribute - step by step
« Reply #69 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!

kyovev

  • Beginner
  • *
  • Posts: 48
Re: Add a child (item) product and value for an attribute - step by step
« Reply #70 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

kicimilo

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #71 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

wildfirepro

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #72 on: November 24, 2011, 20:13:53 pm »
Awesome step by step guide....

So clear and thank you so much!!!  ;)

su89

  • Beginner
  • *
  • Posts: 1
Re: Add a child (item) product and value for an attribute - step by step
« Reply #73 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.