close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eCart 4 issue with PowerStore 3

Thread began 4/26/2010 1:52 pm by elton | Last modified 4/28/2010 11:20 am by Jason Byrnes | 1285 views | 3 replies |

elton

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.

Attached Files
WA_Store_Cart_PHP.zip
product_detail_php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I have seen this happen before, seams editing the cart object will mangle the triggers for the shipping rules.


see the following post for a fix:
showpost.php?p=55503&postcount=8

Sign in to reply to this post

elton

eCart mangles shipping rules

Has the problem with eCart 4.5 where it mangles shipping rules ( if (true && ()) { ) been fixed in 5.0?

Sign in to reply to this post

Jason ByrnesWebAssist

No, it will be fixed in future update to eCart 5.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...