Author Topic: When deleting product, price is removed from other product.  (Read 1816 times)

Peter Pillen

  • Jr. Member
  • **
  • Posts: 223
When deleting product, price is removed from other product.
« on: April 17, 2013, 14:36:20 pm »
Joomla 2.5.9
Virtuemart 2.0.20b

When I delete a product in the backend (lets say product with id 316), the price of product with id 317 is deleted. Tested it many times and this bug is consistent.

It's the first time that I have deleted products since I upgraded to 2.0.20b two weeks ago. Can someone test this out? Because I don't recall changing anything that could cause this  ???

franzpeter

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 467
    • 2in1-online | Software, Mac, PC, Netzwerk, Drucker, Pad, Display
  • VirtueMart Version: Virtuemart 3.2.6
Re: When deleting product, price is removed from other product.
« Reply #1 on: April 17, 2013, 14:52:45 pm »
Did try it out and in my case everything works fine while deleting products. The product with next or previous id are not changed and the price is still available.

Peter Pillen

  • Jr. Member
  • **
  • Posts: 223
Re: When deleting product, price is removed from other product.
« Reply #2 on: April 17, 2013, 14:55:34 pm »
damm ... I must reïnstall then  :(

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: When deleting product, price is removed from other product.
« Reply #3 on: June 14, 2013, 15:34:26 pm »
No, not reinstall. I cannot believe it, lets find the reason for it
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Peter Pillen

  • Jr. Member
  • **
  • Posts: 223
Re: When deleting product, price is removed from other product.
« Reply #4 on: June 15, 2013, 12:18:39 pm »
I was planning to reïnstall next week, but i can postpone it for a while. The problem still persists and I'm willing to look for the cause. But is there a VM speshitpillt that can guide me in the direction I need to search? I'm pretty good with php, mysql and virtuemart in general, but I don't always find the necessary files involved.

Now it deletes the price of a random product... I can't seem to find a connection between the product I delete and the price deleted by VM. With debug mode enabled, I also don't get any extra information on the delete action. It just shows me the same debug info as if I was navigating with the page numbers.

Peter Pillen

  • Jr. Member
  • **
  • Posts: 223
Re: When deleting product, price is removed from other product.
« Reply #5 on: June 17, 2013, 21:20:12 pm »
I found the link in this bug.

When deleting a product with id 1279 for example... my virtuemart deletes the price with virtuemart_product_price_id 1279... without looking to the virtuemart_product_id

where can I find the code that handles this?

Peter Pillen

  • Jr. Member
  • **
  • Posts: 223
Re: When deleting product, price is removed from other product.
« Reply #6 on: June 17, 2013, 23:58:11 pm »
Bug found and will be fixed in VM 2.0.20e

in the products.php the virtuemart_product_id was linked to the unique record id of the prices table.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: When deleting product, price is removed from other product.
« Reply #7 on: June 18, 2013, 00:31:08 am »
It will be F, the other E is already out, ehrm, you got a version "in between"
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

woop

  • Beginner
  • *
  • Posts: 16
  • Php developer
    • diseño web barcelona
  • VirtueMart Version: 2x
Re: When deleting product, price is removed from other product.
« Reply #8 on: August 26, 2013, 19:17:50 pm »
Hi. I have the same problem.... random prices are deleted (I suppose that this happens when products are deleted as it´s said on this topic). Please as I do not find the "E" version, could you please let me know in witch script and wich line do I have to modify in order to solve this problem?
Kind Regards,
Daniel Mateu Solé

AbsoluteVM

  • Jr. Member
  • **
  • Posts: 85
Re: When deleting product, price is removed from other product.
« Reply #9 on: September 24, 2013, 18:39:14 pm »
What an unhelpful reply. Have you ever come to a thread where some moron says he's fixed it and doesn't show how?

'jejejejeje' sets off your stupidity nicely.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10040
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: When deleting product, price is removed from other product.
« Reply #10 on: September 24, 2013, 21:02:45 pm »
Bug found and will be fixed in VM 2.0.20e
in the products.php the virtuemart_product_id was linked to the unique record id of the prices table.

First it is fixed since 2 months, second he describes how to fix it.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/