close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

To request shipping quotes from UPS, in real life ecomm site, ca we use a TEST access key ONLY? Or comply with their certification process to have a production access key?

Thread began 11/26/2013 6:27 am by jocelyne.lavergne349586 | Last modified 11/27/2013 6:37 am by jocelyne.lavergne349586 | 2226 views | 3 replies

Jason ByrnesWebAssist

on the confirm page, the shipping country gets stored to a session named eCartCheckoutForm_shipping_country.

you could add a switch case statement just before the UPS Shipping behavior code to set a new session named UPSService based on the selected shipping state. then go to the bindings panel, click the plus button and select session, name the new session binding UPSService. and in the shipping behavior, bind the service setting to the UPSService session.

an example of the switch statement would look like this:

<?php
/*
UPS Service codes:
01 Next Day Air
02 2nd Day Air
03 Ground
07 Worldwide Express
08 Worldwide Expedited
11 Standard
12 3 Day Select
13 Next Day Air Saver
14 Next Day Air Early AM
54 Worldwide Express Plus
59 2nd Day Air AM
65 Express Saver
*/
@session_start();
switch(isset($_SESSION["eCartCheckoutForm_shipping_country"])?$_SESSION["eCartCheckoutForm_shipping_country"]:"") {
case "CA":
case "US":
$_SESSION['UPSService'] = "03";
break;
case "GB":
case "IE":
$_SESSION['UPSService'] = "07";
break;
default:
$_SESSION['UPSService'] = "03";
break;
}
?>

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