close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Multiple Shipping Options

Thread began 1/20/2012 4:12 pm by elewis93815 | Last modified 1/23/2012 10:47 am by elewis93815 | 824 views | 1 replies

Jason ByrnesWebAssist

On the checkout page, add a select list to select the shipping carrier named "shippingCarrier":

php:
<select name="shippingCarrier" id="shippingCarrier">

  <option value="UPS">UPS</option>
  <option value="USPS">USPS</option>
  <option value="FEDEX">FEDEX</option>
</select>




on the confirm page, near the bottom, you will see a collection of hidden form elements near the submit order button, add a new hidden element with the same name as the select list and set the initial value to capture the selection made on the checkout page:

php:
<input name="shippingCarrier" type="hidden" id="shippingCarrier" value="<?php echo((isset($_POST["shippingCarrier"]))?$_POST["shippingCarrier"]:""?>" />




in the server behaviors panel, click the plus button and select eCart -> General -> Set Session Value. set the name to "shippingCarrier", for the trigger and value, click the lightning bolt icon and select the shippingCarrier form element.

click the plus button again and select eCart -> Shipping and select one of the shipping carrier you wish to use that has not already been added to set up the rate lookup for that carrier.

in the eCart object, you will need go to the shipping tab to set up the rules for each carrier, you already have USPS set up, the existing rule will look like:

Triggers:
"Based on US Postal Shipping Quote"
US Postal Shipping Quote is "!=" a value of "0"

Calculation:
"Based on US Postal Service shipping quote value"
Based on US Postal shipping quote "plus" "0"


you need to add another trigger to the rule:
AND
"Based on Session Variable Value"
if the value of session variable "shippingCarrier" has a value of "USPS"


you will need to configure similar shipping rules for each service, all of them using the trigger for the corresponding service and checking the shippingCarrier session variable for the corresponding name.

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