Author Topic: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT  (Read 3267 times)

eddydesigner

  • Beginner
  • *
  • Posts: 8
[VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« 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.


eddydesigner

  • Beginner
  • *
  • Posts: 8
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #1 on: May 25, 2012, 11:00:01 am »
up

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9825
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #2 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?
I should 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

  • Jr. Member
  • **
  • Posts: 112
  • CE WebDesign München
    • CE WebDesign München
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #3 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'...
CE WebDesign München: https://ce-webdesign.de | Websites, eCommerce WebShops | Responsive Design | SEO

eddydesigner

  • Beginner
  • *
  • Posts: 8
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #4 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

eddydesigner

  • Beginner
  • *
  • Posts: 8
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #5 on: May 29, 2012, 15:44:58 pm »
up

eddydesigner

  • Beginner
  • *
  • Posts: 8
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #6 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

eddydesigner

  • Beginner
  • *
  • Posts: 8
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #7 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

Code: [Select]

$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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9825
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: [VM 2.0.6] BUG CHILD PRODUCT WHEN DELETE IMAGE PARENT
« Reply #8 on: May 30, 2012, 23:04:44 pm »
thx, is added as you described in your email.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/