eCart 4 issue with PowerStore 3
PowerStore 3
eCart 4.5.2
Development platform Windows 7 64 bit
Linux Server
PHP ver 5.2.11
MySQL version 5.1.45-log
When I add a new column (Taxable) tiny init. to the page product_detail.php
eCart 4 is making incorrect changes WA_Store_Cart_PHP.php (At around line 111)
WA_Store_Cart_PHP.php
//ORIGINAL eCart Rule
function WAEC_WA_Store_Cart_USPSShipping() {
global $WAGLOBAL_Shipping_Enabled;
$totalShipping = 0;
if ($WAGLOBAL_Shipping_Enabled == 1 && (("USPS"=="USPS")&&(isset($_SESSION["WA_Store_Cart_USPS_Quote"]))&&(floatval($_SESSION["WA_Store_Cart_USPS_Quote"]) != 0))) {
$totalShipping += floatval($_SESSION["WA_Store_Cart_USPS_Quote"]) + 0;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
is being changed to:
//eCart Rule
function WAEC_WA_Store_Cart_USPSShipping() {
$totalShipping = 0;
if (true && ()) {
$totalShipping += floatval($_SESSION["WA_Store_Cart_USPS_Quote"]) + 0;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
There are several other places in the file that are also screwed up with this
if (true &&()) {
instead of the correct code.