close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

UPS Shipping Increments

Thread began 4/19/2011 3:39 pm by scaphis417771 | Last modified 5/23/2011 10:28 am by Jason Byrnes | 1821 views | 11 replies |

scaphis417771

UPS Shipping Increments

We need to have shipping set up as follows:

One product is 1 lb, 14 oz.

For shipping 1 product = 2 lbs
however if customer orders:
2 products, charge for 3 lbs.
3 products, charge for 4 lbs.
4 products, charge for 5 lbs.

handling charge for order $5.00

Is there a way to accomplish this?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

In the UPS Server behavior, enter the following code for the weight:

php:
<?php echo (abs($eCart1->DisplayInfo("Quantity")>1)?$eCart1->DisplayInfo("Quantity")+1:($eCart1->DisplayInfo("Quantity")*2)); ?>



you will also need to create a second shipping rule to apply the flat rate $5 charge.

Sign in to reply to this post

scaphis417771

Additional help

Thank you,

but is it possible to have

1 - 2 lb package be charged for 2 lbs
1 - 4 lb package be charged for 3 lbs
etc?

Sign in to reply to this post

Jason ByrnesWebAssist

So you want the weight to be calculated differently on an item by item basis? is this what you mean?

Sign in to reply to this post

scaphis417771

Nevermind

We have talked with the client and he in not interested in calculating on an item by item basis anymore. We are having much more serious problems now with the checkout process.

When My assistant uses PayPal to checkout, it works for her, but when I do it through PayPal it goes to checkout failure page or your cart is empty page.

We also tried to implement the script you gave us for shipping options via air, ground express etc. Once we implemented the script it said :
missing - illegal service - code

We have since changed the script back to where it was before the shipping options. You can see it at order.php

Sign in to reply to this post

Jason ByrnesWebAssist

see the "Debugging eCart transaction failed issues" tutorial on the eCart support page:
ecart/

for the shipping problem, see my reply to your other thread.

Sign in to reply to this post

James L

Where is UPS Server behavior?

I want to use this code also, but when I choose "Server Behaviors" (in the Applications panel) I see nothing with UPS in the listing...

Sign in to reply to this post

Jason ByrnesWebAssist

The eCart UPS Shipping server behavior will be applied to the confirm.php page or the pp_confirm.php page for PayPal Express Checkout.

Sign in to reply to this post

James L

but where on the Confirm page?

I'm uncertain as to where on the confirm page this code goes?

Also, how does the code affect Weight when it only refers to Quantity?

<?php echo (abs($eCart1->DisplayInfo("Quantity")>1)?$eCart1->DisplayInfo("Quantity")+1:($eCart1->DisplayInfo("Quantity")*2)); ?>

Sign in to reply to this post

Jason ByrnesWebAssist

On the confirm page, there is the eCat UPS server behavior, this code goes in the weight section of the USPS server behavior.


This code sets the number of pounds being shipped based on the quantity. It looks at the quantity and sets the weight accordingly.

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