close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DW questions-presales

Thread began 5/01/2010 8:24 am by lemurs406415 | Last modified 5/05/2010 9:39 am by lemurs406415 | 1538 views | 3 replies

Jason ByrnesWebAssist

1) There is not built in multiple shipper option, but it can be accomplished with a little work.

the basic idea is to create a select list for the different shipping options, on the checkout page:

<select name="shippingOption">
<option value="FedEx">FedEx</option>
<option value="UPS">UPS</option>
</select>



Then on the confirm page, crate a hidden form element with the same name to capture the value that was posted:

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



Using the eCart Set Session Value server behavior, capture the selected shipping option in a session variable.
Go to Window -> Server Behavior.

Click the plus button in the server behaviors window and select eCart -> General -> Set Session Value.

set the name to "shippingOption"

Set the trigger to any form submit.

for the value, click the lightning bolt and select the shippingOption form element.


Then apply the FedEx and UPS server behaviors to the confirm page.

the last step is to manually add an if statement around the code for each shipping type so it will only be used if it was selected:

php:
<?php if((isset($_SESSION["shippingOption"]))?$_SESSION["shippingOption"]:"") && $_SESSION["shippingOption" == "FedEx"); { ?>

<fed ex code>
<?php ?>



php:
<?php if((isset($_SESSION["shippingOption"]))?$_SESSION["shippingOption"]:"") && $_SESSION["shippingOption" == "UPS"); { ?>

<ups code>
<?php ?>



2) Yes, you can use your own design with eCart

3) The extensions needed to create the back end are DataAssist and Security Assist at a minimum. There is a tutorial for creating The admin back end on the Data Assist support page:
dataassist/

look in the how to section.

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