Author Topic: Add existing products as child products  (Read 1386 times)

JestaBlunt

  • Beginner
  • *
  • Posts: 35
  • Skype Name: donjestablunt
Add existing products as child products
« on: July 08, 2015, 15:15:52 pm »
hi,

a customer made a product for each color, but now he asks for a color attribute. can i connect all the existing products to a parent product? or do i have to create a new for every existing and copy the data?

peace, jesta


Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4367
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Add existing products as child products
« Reply #1 on: July 08, 2015, 15:40:03 pm »
Hi jesta,

You can buy this tool  from my shop:
http://shop.st42.fr/en/tools/vm-be-pro-batch-product-edit.htm
Then you can set in this tool options :
show : parent_id

after this, you can simply change the parent id, to change the parent id in VM be pro.
You can batch remove the categories with the same tools, to not display your children in the category, to only see children in product.

DO not forget to add the customfield "Generic child variant" in the parent product or you cannot display the children in the product.

Best Regards,
Patrick

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1418

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4367
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Add existing products as child products
« Reply #3 on: July 08, 2015, 22:48:09 pm »
Balai, he's main problem is to set an existing product as children.
This is not a core functionality.
Of course, you can always use mysql and change the parent id

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1418
Re: Add existing products as child products
« Reply #4 on: July 09, 2015, 09:30:03 am »
Yes with the plugin i suggested he can do exactly that.

JestaBlunt

  • Beginner
  • *
  • Posts: 35
  • Skype Name: donjestablunt
Re: Add existing products as child products
« Reply #5 on: July 09, 2015, 10:53:30 am »
thx, balai...works like a charm...and looks better then vanilla fields ^^

is there a way to exclude variations from search?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4367
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Add existing products as child products
« Reply #6 on: July 09, 2015, 11:17:15 am »
To exclude result, you have to remove categories.
See explain before, or go to each product and remove categories by hand

thx, balai...works like a charm...and looks better then vanilla fields ^^

is there a way to exclude variations from search?

JestaBlunt

  • Beginner
  • *
  • Posts: 35
  • Skype Name: donjestablunt
Re: Add existing products as child products
« Reply #7 on: July 09, 2015, 11:26:07 am »
maybe its not that bad, i have to talk to the customer first. what i dont like on search result is, that now even the child product has the text "choose variation first". but the child product is the variation, so it shold be putable in the cart without choosing.