close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ecart shipping rules

Thread began 4/04/2011 3:45 pm by david73021 | Last modified 4/05/2011 7:50 am by david73021 | 1099 views | 1 replies

david73021

Ecart shipping rules

Has anyone heard of this I have created two shipping rules based on the rule:

Number of items with a specific column value

It works perfectly for the one that is top in the list but not for the second one. If i then select the second one and move it to the top the second one works and now the one that was at the top no longer works.

In short which ever one is at the top of the list works until moved down the list. The code in ecart is:

//start node
//eCart Rule
function WAEC_Stoveworlduk_fittings() {
$totalShipping = 0;
if (false && (($this->ConditionalTotal("Quantity", "shippingCategory", "Fittings") > 0))) {
$totalShipping += $_SESSION['shipcostfittings'];//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//eCart Rule
function WAEC_Stoveworlduk_stoves() {
$totalShipping = 0;
if (true && (($this->ConditionalTotal("Quantity", "shippingCategory", "Stoves") > 0))) {
$totalShipping += $_SESSION['shipcoststove'];//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule
//end node

In the above the rule for Fittings shipping will work as it is top of the list until i move it down in the ecart shipping rules section then the stoves rule will work.

Any help appreciated,

Fully

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