Author Topic: How to delete child product?  (Read 8285 times)

Bruce Morgan

  • Full Member
  • ***
  • Posts: 672
How to delete child product?
« on: April 12, 2012, 00:05:38 am »
I was playing with the "add a child product" on the product information tab of one of my prducts and it added an entry below but there does not seem to be a way to get rid of it.  I am running a test site locally with VM 2.0.4 over J2.5.4.  I even tried clicking "cncel" instead of "save" and child remained.  Is this a bug?

Bruce Morgan

  • Full Member
  • ***
  • Posts: 672
Re: How to delete child product?
« Reply #1 on: April 24, 2012, 21:55:34 pm »
Bump!  Could use some help here.  Anyone else have the sam problem?

vigier

  • Jr. Member
  • **
  • Posts: 124
Re: How to delete child product?
« Reply #2 on: April 28, 2012, 18:29:10 pm »
You can find the childproduct in the overview of products. Delete it...

Bruce Morgan

  • Full Member
  • ***
  • Posts: 672
Re: How to delete child product?
« Reply #3 on: April 29, 2012, 18:28:42 pm »
Thanks.  I was trying to dot it a different way and it was driving me nuts!

memel

  • Beginner
  • *
  • Posts: 2
Re: How to delete child product?
« Reply #4 on: May 27, 2012, 22:20:57 pm »
Have same problem. Any solutions?

Bruce Morgan

  • Full Member
  • ***
  • Posts: 672
Re: How to delete child product?
« Reply #5 on: May 28, 2012, 20:38:13 pm »
The created child cannot be deleted when editing the parent product.  To delete unwanted children you must go the top level (master) product list within VM and delete it from that list.  I would not call this a bug but it is not user friendly.  If you create a child from within a parent prpoduct, it would seem reasonable that you could also delete it in the same manner, but you cannot.

jstratos

  • Beginner
  • *
  • Posts: 42
Re: How to delete child product?
« Reply #6 on: September 27, 2012, 05:33:08 am »
Thanks for the solution here Bruce.  I was trying to work within a product category and did not realize you had to "view all categories" to see the unwanted child products. Saw them and then I was able to delete all.

Not too user friendly!

ekerner

  • Beginner
  • *
  • Posts: 4
Re: How to delete child product?
« Reply #7 on: January 08, 2015, 20:43:20 pm »
You can find child products like (where tp_ is your table prefix) ...
Code: [Select]
select * from tp_virtuemart_products where product_parent_id > 0;You can remove the child association like (where tp_ is your table prefix and 999999 is your virtuemart_product_id found in the previous select) ...
Code: [Select]
update tp_virtuemart_products set product_parent_id = 0 where virtuemart_product_id = 999999;