Running 1.50 BETA 20110828. I have a product defined with a negative attribute price factor and while the price factor displays as a negative value in my admin ... it was not being applied in my storefront (also verified on a clean install of the beta).
The fix was to make the following four changes to /includes/classes/shopping_cart.php:
Code:
// if ($attribute_price->fields['attributes_price_factor'] > 0) { /* Line 758 */
if ($attribute_price->fields['attributes_price_factor'] != 0) {
// if ($attribute_price->fields['attributes_price_factor_onetime'] >0) { /* Line 784 */
if ($attribute_price->fields['attributes_price_factor_onetime'] != 0) {
// if ($attribute_price->fields['attributes_price_factor'] > 0) { /* Line 927 */
if ($attribute_price->fields['attributes_price_factor'] != 0) {
// if ($attribute_price->fields['attributes_price_factor_onetime'] > 0) { /* Line 1011 */
if ($attribute_price->fields['attributes_price_factor_onetime'] != 0) {
Bookmarks