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

UPS Shipping Error

Thread began 11/17/2009 9:35 am by rdubill357341 | Last modified 4/19/2010 3:17 pm by Eric Mittman | 1000 views | 3 replies |

rdubill357341

UPS Shipping Error

Please help...

Using ASP VB...

Receiving the following error from UPS:

SHIPPING QUOTE FAILED

Missing/Illegal Service/Code


This is after I hit 'submit order' on the confirm.asp page...

The confirm.asp page is already showing the correct calculated shipping amount based on the weight of the order, the shipping destination, and the service type selected (i.e, ground, next day air, etc.)..

I added the service_type field to the checkout.asp page to allow users to select their shipping method (ground, next day air, etc.)...

Any suggestions?

thanks in advance...

Sign in to reply to this post

Eric Mittman

When you added the service type did you also add in a session variable to hold this value? If not you should add in a set session variable server behavior on your confirm page and set the value of that session variable to the posted value from your service list.

Once you have done that you should also add in a new hidden form element to the form and give it the same name as the select list on the checkout page. You will then set the value of this hidden form element to the session variable you just created.

I think this would fix the problem because it seems that you are referencing the posted value of the service directly in the shipping server behavior. The problem is that when you confirm the order the values from the form on this confirm page are posted and the service is missing, adding in the hidden form element and setting it's value to the value of the session variable should ensure that the value is posted to the page again.

Sign in to reply to this post

Badger

To add in a set session variable server behavior on the confirm page is it:
server behaviours/eCart/general/set session value

Then:

a/ what would the trigger be, is it dynamic (eg UPS Result...)?
b/ Is the value of the session variable of the posted value from the service list from the checkout page EG "UPS_Service" and is this the session name?
c/ Where do I find the value?
c/ What is a new hidden form element I add to the form and is the form on the confirm page?
d/ Where do I find the same name as the select list on the checkout page.
e/ How do I set the value of this hidden form element to the session variable just created.

Sign in to reply to this post

Eric Mittman

I will answer your questions in the order they are posted.

Yes, this is the way to add a set session value server behavior.

You can use a dynamic trigger, set it to the posted service select list.
Yes, you can have use the same name as the posted element, and it's value for the value of your session var.
For the value use the lightning bolt icon to select the select list.
The form is on the confirm page, you would add in a hidden form element like the others, but the name will be the same as the name from the checkout form, and the value will be set to the session variable.
To set the value select the element and go to the bindings to select the session variable and bind it.

For question d/ I do not understand what you mean on this one.

Sign in to reply to this post

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