close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to add UPS shipping?

Thread began 11/06/2009 9:18 am by asksales313066 | Last modified 3/15/2010 4:11 pm by asksales313066 | 5615 views | 25 replies

Eric Mittman

To show the service type that was selected you can use a switch statement like this:

php:
<?php

$_SESSION
['UPS_ServiceName'] = "";
switch(
$_SESSION['UPS_Service']){
    case 
"01":
        
$_SESSION['UPS_ServiceName'] = "Next Day Air";
        break;
    case 
"02":
        
$_SESSION['UPS_ServiceName'] = "2nd Day Air";
        break;
    case 
"03":
        
$_SESSION['UPS_ServiceName'] = "Ground";
        break;
    case 
"07":
        
$_SESSION['UPS_ServiceName'] = "Worldwide Express";
        break;
    case 
"08":
        
$_SESSION['UPS_ServiceName'] = "Worldwide Expedited";
        break;
    case 
"11":
        
$_SESSION['UPS_ServiceName'] = "Standard";
        break;
    case 
"12":
        
$_SESSION['UPS_ServiceName'] = "3 Day Select";
        break;
    case 
"13":
        
$_SESSION['UPS_ServiceName'] = "Next Day Air Saver";
        break;
    case 
"14":
        
$_SESSION['UPS_ServiceName'] = "Next Day Air Early AM";
        break;    
    case 
"54":
        
$_SESSION['UPS_ServiceName'] = "Worldwide Express Plus";
        break;
    case 
"59":
        
$_SESSION['UPS_ServiceName'] = "2nd Day Air AM";
        break;
    case 
"65":
        
$_SESSION['UPS_ServiceName'] = "Express Saver";
        break;
    default:
        
$_SESSION['UPS_ServiceName'] = "NA";
        break;
}
?>



You will need to add this to your confirm page after you set the session variable to hold the service type from the select list. In this example the session variable that holds the service type is named $_SESSION['UPS_Service']. You will need to replace this with the session variable that holds your service type from the select list if it is any different.

Once you do this you will have a session variable named $_SESSION['UPS_ServiceName'] that will hold the service type name, use it anywhere that you would like to see the service selected.

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