News:

Looking for documentation? Take a look on our wiki

Main Menu

[VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT

Started by eddydesigner, May 24, 2012, 09:23:43 AM

Previous topic - Next topic

eddydesigner

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.



Milbo

I am sorry, I do not understand your description,

You delete the parent product, and what happens then with category? images?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

CE WebDesign München

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'...
CE WebDesign München: https://ce-webdesign.de | Websites, eCommerce WebShops | Responsive Design | SEO

eddydesigner

when deleting or  replace an image of parent product (published) and save, the childs product get unpublished and loose cetegory and image


eddydesigner

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

eddydesigner

#7
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.'");');



Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/