close ad
 
Important WebAssist Announcement
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 10:59 am by elton | Last modified 4/27/2010 7:21 am by Jason Byrnes | 988 views | 1 replies |

elton

eCart 4 issue with PowerStore 3

PowerStore 3
eCart 4.5.2
Dreamweaver CS4
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.

Procedure to follow

Create new field (Taxable) in table ps3_products
open product_detail.php
select->Insert->WebAssost->eCart->eCart Object
Edit->Column->Add->Taxable, init.
Edit Tax rule
Save

Sign in to reply to this post

Jason ByrnesWebAssist

this is a duplicate post, see my reply to your other thread you started on the same subject:
showthread.php?p=56070#post56070

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...