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

View Cart (Basket) Page Issue

Thread began 6/24/2010 9:44 am by Dave Buchholz | Last modified 6/25/2010 2:49 pm by Jason Byrnes | 752 views | 6 replies |

Dave BuchholzBeta Tester

View Cart (Basket) Page Issue

Just building a new view cart page with the latest eCart version and it comes up blank in the browser, PHP error reporting shows nothing either which is very strange.

For files please open a support ticket and I'll post them there.

Sign in to reply to this post

Dave BuchholzBeta Tester

Please Ignore, there was an issue with one the rules I had set up

Sign in to reply to this post

Jason ByrnesWebAssist

OK, glad to hear you have this working.

Sign in to reply to this post

Dave BuchholzBeta Tester

Update on this Issue

This issue appears to be related to using the taxable total of the cart in the shipping calculation like so:

//eCart Rule
function WAEC_eCart1_OverseasShipping() {
$totalShipping = 0;
if (true && ((sizeof($this->Items) > 0) && (isset($_SESSION['eCartCheckoutForm_shipping_country'])) && ((isset($_SESSION['eCartCheckoutForm_shipping_country'])?$_SESSION['eCartCheckoutForm_shipping_country']:"") != "GB") && ($this->GetTaxableTotal() <= 74.99))) {
$totalShipping += 7.50;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule



whereas using the total of a column of the cart like so:

//eCart Rule
function WAEC_eCart1_BaseUKShipping() {
$totalShipping = 0;
if (true && ((sizeof($this->Items) > 0) && (isset($_SESSION['eCartCheckoutForm_shipping_country'])) && ((isset($_SESSION['eCartCheckoutForm_shipping_country'])?$_SESSION['eCartCheckoutForm_shipping_country']:"") == "GB") && ($this->TotalColumn("TotalPrice") <= 49.99))) {
$totalShipping += 2.50;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule



works without an issue.

Sign in to reply to this post

Jason ByrnesWebAssist

this will happen if you choose the option to include shipping in the tax.


Basically, if you chose the option to include shipping in the tax, and set the shipping to use the taxable total, it will go into an endless loop.

It cant figure out the taxable total, because it is trying to figure out the shipping and add it to the taxable total.

Sign in to reply to this post

Dave BuchholzBeta Tester

Ahh, that makes sense.

It might be worth putting a tech note to that effect in the help docs, especially for us Europeans as carriage is taxable.

Sign in to reply to this post

Jason ByrnesWebAssist

I will forward that along.

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