close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

2 Basic Shipping Options required

Thread began 1/03/2011 7:16 pm by craig158722 | Last modified 2/07/2011 8:32 am by craig158722 | 2958 views | 10 replies

CraigRBeta Tester

Here's one approach which may work for you.

In the option list, (on the cart page or wherever), give the free shipping a value of 0, the paid shipping a value of 1.

set the session variable to be the value of the list option

In the shipping tab for the eCart object, create a new shipping rule, and test for the existence of the session variable you created.

set the calculation to be flat rate, $_SESSION['testshipping'] * 8.

in the case where the free shipping is selected 0 * 8 will give you 0, but the other option will give you 1 * 8

the screenshot for the eCart object is attached, the code block in the cart_PHP.php page looks like this...

//eCart Rule
function WAEC_rainbowcart_test() {
$totalShipping = 0;
if (true && ((isset($_SESSION['testshipping'])))) {
$totalShipping += $_SESSION['testshipping'] * 8;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule

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