CMS MADE SIMPLE FORGE

CGEcommerceBase

 

[#11973] parse_adjustment adds instead of subtract

avatar
Created By: Magal (magallo)
Date Submitted: Tue Feb 19 14:41:20 -0500 2019

Assigned To: Robert Campbell (calguy1000)
Version: None
CMSMS Version: None
Severity: Minor
Resolution: None
State: Open
Summary:
parse_adjustment adds instead of subtract
Detailed Description:
class.cg_ecomm_productinfo.php line 97:

case '-':
                $v = (float) substr($adjustment,1);
                $price = $base_price + $v;
                break;

should be subtructing instead of adding:

case '-':
                $v = (float) substr($adjustment,1);
                $price = $base_price - $v;
                break;


History