close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

UspsCom::DoAuth 80040b1aAuthorization failure. You are not authorized to connect to

Thread began 4/09/2012 9:49 pm by lr_leal239405 | Last modified 5/25/2012 12:59 pm by lr_leal239405 | 5832 views | 17 replies

Jason ByrnesWebAssist

on the checkout page, add a selct list to the checkout form to select the USPS Shipping service:

<select name="USPS_Service" id="USPS_Service">
<option value="FIRST CLASS">First-Class</option>
<option value="EXPRESS">Express</option>
<option value="PRIORITY">Priority</option>
<option value="PARCEL">Parcel</option>
<option value="BPM">BPM (Bound Printed Matter)</option>
<option value="LIBRARY">Library</option>
<option value="MEDIA">Media</option>
</select>



on the confirm page, add a hidden form element to collection of existing hidden elements near the bottom of the same name to capture the selection that was made:

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




the add a set session variable behavior, on the server behaviors panel click the plus button and select eCart -> General -> Set Session Value.

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

set the name to USPS_Service.

edit the USPS Shipping behavior and binding the shipping service to the USPS_Service session variable.


to create an additional shipping charge for each multiple of eight, add a new shipping rule, set the trigger to number of Items in cart > 0

for the calculation, sect flat rate and enter the following code:
floor($this->TotalColumn("Quantity")/8) * 5.50

this is an example of charging an additional 5.50 for each multiple of 8

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