close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
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 12:18 pm by asksales313066 | Last modified 3/15/2010 7:11 pm by asksales313066 | 3439 views | 25 replies

Eric Mittman

You can make the shipping charge rule a flat rate based on a particular value, like PO BOX or something like that.

You will need to first determine how you would like to trigger the alternative charge rule, then craft the rule and amount for the charge.

One way I can see you doing something like this would be to add a checkbox to the shipping information portion of the checkout form. In here you can just give it a label like 'check here if sending to a PO BOX or APO/FPO' and set the value. Next you would need to add a set session value server behavior to your confirm page based on this checkbox, you can set the value to the value of the checkbox.

Lastly you would then go into the shipping tab of the cart object and setup a new shipping charge rule. In here you would base the trigger on 'if session variable exists' and also based on the value of the session variable, then enter the name of your session variable you added to the confirm page. For the charge portion you can just set it to flat rate and enter an amount.

There is one more part to this that will need to be edited to make sure that you do not have the regular shipping and this other flat rate at the same time. You will need to edit the trigger for shipping quote server behavior you are using. It will need to take into account the new session variable and ensure that it is not set, the updated trigger might look like this:

php:
if (($WAGLOBAL_Shipping_Enabled != "0") && (isset($_SESSION['pobox'])?$_SESSION['pobox']:"" != 1)) {



This is saying if you have shipping enabled and the session variable 'pobox' is set and not equal to 1 then do the regular ups shipping. This is assuming that the name of your session variable is pobox and the value you are setting it to is 1.

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