VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: eddydesigner on May 24, 2012, 09:23:43 AM

Title: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 24, 2012, 09:23:43 AM
Hy!

I have a clean istallation the last virtuemart (2.0.6).

I have Product father with childrens

Father
- children 1
- children 2
- children 3
- children 4

When delete or repleace  image father, in frontend disappear all children in their category and in category father. In backen disapper all children photos!!

You have any idea.

Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 25, 2012, 11:00:01 AM
up
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: Milbo on May 25, 2012, 19:57:27 PM
I am sorry, I do not understand your description,

You delete the parent product, and what happens then with category? images?
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: CE WebDesign München on May 27, 2012, 10:34:38 AM
j2.5.4 vm2.0.6 - same issue here:

when deleting an image of the parent product (which is unpublished) and then save,
the child products get unpublished and loose their category setting (parent still in correct category).

can't reproduce the loss of the child products images, like i think it happend to 'eddydesigner'...
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 28, 2012, 15:11:31 PM
when deleting or  replace an image of parent product (published) and save, the childs product get unpublished and loose cetegory and image
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 29, 2012, 15:44:58 PM
up
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 30, 2012, 09:18:28 AM
This is a severe bug...

nobody cares fix it?

when deleting or  replace an image of parent product (published) and save, the childs product get unpublished and loose cetegory and image
Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: eddydesigner on May 30, 2012, 09:53:24 AM
ok!! The problem is fixed with vm 2.0.7d

Now bug is on mulltilanguage...


When add a new child product i have this error:

vmError: Database error: createChild Table 'dima.v8urx_virtuemart_products_en_GB' doesn't exist SQL=INSERT INTO `v8urx_virtuemart_products_en_GB` (`virtuemart_product_id`,`slug`) VALUES ("46","trattamento-evolution-pro24");
vmError: Database error: createChild Table 'dima.v8urx_virtuemart_products_it_IT' doesn't exist SQL=INSERT INTO `v8urx_virtuemart_products_it_IT` (`virtuemart_product_id`,`slug`) VALUES ("46","trattamento-evolution-pro24");

in italian child product work, but in english not add..

I fix the problem modifing:

administrator/components/com_virtuemart/models/product.php

online 1192-1195



$db->setQuery('SELECT `product_name` FROM `#__virtuemart_products_'. strtolower($lang) .'` WHERE `virtuemart_product_id` = "'.$prodTable->virtuemart_product_id.'" ');
$res = $db->loadResult();
if(!$res){
$db->setQuery('INSERT INTO `#__virtuemart_products_'. strtolower ($lang) .'` (`virtuemart_product_id`,`slug`) VALUES ("'.$prodTable->virtuemart_product_id.'","'.$newslug.'");');


Title: Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
Post by: Milbo on May 30, 2012, 23:04:44 PM
thx, is added as you described in your email.