close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How to add UPS shipping?

Thread began 11/06/2009 12:18 pm by asksales313066 | Last modified 3/15/2010 7:11 pm by Eric Mittman | 3530 views | 25 replies |

asksales313066

How to add UPS shipping?

I have an existing cart that has a simple shipping rule where I offer free shipping for all purchases over $50.00 but my customers want some flexabilty with shipping options. I have added UPS shipping rule to the cart object but I can not find instructions on how to bind them to my cart for a shipping quote and passing that information on to my checkout page. Any guidance would be greatly appreciated in advance.
:) TW

Sign in to reply to this post

Eric Mittman

Have you added the server behavior to your confirm page already? If so you can then proceed to create the new shipping rule. In the shipping tab of your cart object if you do not see a shipping rule for your UPS you should add one in.

For the trigger of the rule you can use shipping quote > 0, then for the charge you can just use the shipping quote. There should be options in these select lists that directly reference the shipping quote.

Once you have got the rule in place you may need to update the cart display on your confirm page to see the new shipping rule. Please post back with any questions that you have or if you are having any troubles with any part of this.

Sign in to reply to this post

asksales313066

Ups shipping.

yes, I have added the behavior to my cart object but I have not added it to my confirm page. I guess where I am stuck is which select list should i use to recieve the quote request? Should I bind them to my ship city and my ship zip form elements in the confirm page or my checkout page that is ahead of my confirm page? and what about service types? IE ground, 2 day, 3 day and so on.

Ideally I would like to offer my customers a ship quote on the shopping cart page as an estimator and pass those variables on the followiing pages. If not I am ok with the ship options on the confirm page.

thanks

TW

Sign in to reply to this post

Eric Mittman

If you would like to offer a quote to your user in the cart you must have a destination address, if this is not a value that is known when the user is adding items to their cart then you will not be able to add this.

When it comes to implementing the shipping quote server behavior if you would like to have the user select a service type you will need to add this to the checkout page. There are snippets in eCart for these select lists. You will need to ensure that the select list is placed inside of the checkout form.

The select list can be added to the page from the snippets, go to Window > Snippets, in here find eCart and expand it then look inside of shipping. In here you should see the UPS entries toward the bottom of the list.

You will then need to add the server behavior on the confirm page. When you add in the server behavior you will use the bindings for the shipping fields from the checkout form. If you added the services select list you can use the lightning bolt icon to select this form element for the service type.

Sign in to reply to this post

asksales313066

thanks Eric, that makes sense. Will check it out and see if I can get to work on my testing server.

Tony

Sign in to reply to this post

Eric Mittman

Cool, let us know if you have any issues with it.

Sign in to reply to this post

asksales313066

Showing UPS service types

It has been a while since I last visited this matter but I was hoping to get some input. I have followed your instructions on how to set up the shipping quote and have gotten success in doing so. I can get on my checkout page the UPS service type drop down list to pass the a correct quote on the confirm page but the shipping title is generic.

If a customer chooses next day air as a service type on the checkout page, the confirm page will display a generic title of UPS Shipping with a sum of say $25.00 or so in the shipping value.

I need to be able to display the service type on the confirm page and pass that inforamtion to my checkout success page where I email a copy of the reciept to myself and the customer. Any thoughts will be incredibly helpful.

Thanks
Tony

Sign in to reply to this post

asksales313066

Displaying UPS Services on Confirm Page

I have found a solution for displaying UPS service type on the confirm page if anyone is interested.
1). The checkout page needs to have the dropdown form element UPS_Service found in the snippets tab located by the files and assets menu.
2). On the confirm page choose the bindings tab and choose " Request Variable" Once there Choose Request.Form and type in UPS_Service in the name field. This will retrieve the form element from the checkout page.
3). You will now need to create a simple database table for calling the name for the UPS service. It will only have 3 fields. I used one field as an autonumber. The second field I called UPS_Service and the last was called UPS_Codes. You will find all the values from the dropdown form element UPS_Service on the checkout page.
4). Now you will need to create a recordset querry and lookup your table. Set the filter for UPS_Codes = form variable UPS_Service. This should allow you the choose the recordset and bind the UPS_Service field to your page and now you will have a friendly description on your confirm page of the type of shipping service the customer has selected.

I hope this helps some people. I know that I was struggling with this one for a bit and it helps me identify the shipping service the customer has selected in my email reciept.

Anyways, Cheers

Tony

Sign in to reply to this post

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.

Sign in to reply to this post

asksales313066

asp vb script?

Hi Eric, I am using ASP Vb. Would the example you have presented look differently for that scenerio?

Thanks

Tony

Sign in to reply to this post
loading

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