VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: Oliver Griffiths on November 19, 2007, 18:06:20 PM

Title: [FIXED] Ps_product error when saving a product
Post by: Oliver Griffiths on November 19, 2007, 18:06:20 PM
Hi,

Ive found an error in the latest build 1046 in ps_product.php line 582.

The function vmRequest::getInt($d,"shopper_group_id") was returning 0, thus causing the sql statement to return 0 results, this had a nock on effect of not allowing the product to be saved, with the error:

This product already has a price for the selected Shopper Group and the specified Quantity Range.

I resolved this by comparing it to an older version and substituted the function above with:

$d["shopper_group_id"]

hope this helps.

Oli
Title: Re: Ps_product error when saving a product
Post by: Soeren on November 20, 2007, 11:06:11 AM
Thank you for reporting this, it has been fixed in the last SVN commit.

ciao, Sören
Title: Re: [FIXED] Ps_product error when saving a product
Post by: Softwired on January 22, 2008, 20:19:17 PM
Can you please post the entire fix for this? i.e. program name, lines of code...etc.

Thanks!
Title: Re: [FIXED] Ps_product error when saving a product
Post by: aravot on January 22, 2008, 20:25:04 PM
The fix is for VirtueMart 1.1, if you are interested download the VirtueMart 1.1 nightly build (http://forum.virtuemart.net/index.php?topic=31381.0)