close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

USPS Shipping charge error

Thread began 7/07/2011 8:56 am by James L | Last modified 7/07/2011 1:47 pm by James L | 1009 views | 2 replies |

James L

USPS Shipping charge error

Sorry about the length of this thread but I don't know how to explain it any more simply...

I had a fully functional cart using UPS for shipping. Client asked to change to USPS. With phone help from Ray we resolved all my issues, but a new problem now exists that I had fixed with UPS, but I can't remember how to reset that for USPS

The shipping charge is to be based on the quantity of items, not the actual weight of the items. Thus, 1 item is considered to weigh 2 lbs, 2 items weigh 3 lbs, 3 items weigh 4 lbs. So the shipping weight is Quantity + 1.

Unfortunately I edited the eCart object and deleted the UPS "Shipping" section before I made a note of how it was written. Now I can't figure out how to add back a shipping rule for USPS. Also, in the "Calculations" rules I set "TotalWeight" to "[Quantity]+1" as well as "boxWeight" to "[Quantity]+1" because I assumed that USPS would look at one of these to calculate shipping.

However, what's happening in real time is that the shipping quote coming back from USPS is now twice what it should be (for 2 items), or 3 times what it should be for 3 items. i.e. to ship locally, 2 items should ship for $5.90, but what shows up on the Confirm page is a shipping cost of $11.80.

Please help, these fixes have dragged on for so long and this looks like the very last thing to fix before we go live...

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

James L

adding suspect code

I assume the problem is in the following code snippet from confirm.php, if not can you tell me where else to look?

while (($Shipping_Packaging == 1 && !$proResCart->EOF()) || ($Shipping_Packaging == 0 && $Shipping_Counter == 0)) {
if (WA_eCart_USPS_IsTrueValue("true")) {
$Shipping_PackageArray[] = array();
$Shipping_PackageIndex = sizeof($Shipping_PackageArray)-1;
$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$proResCart->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "".WA_eCart_FormatNumber($proResCart->DisplayInfo('Quantity'), true, 1) ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($proResCart->WeightSuffix)."S" ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($proResCart->TotalColumn('boxWeight'), true, 1) ."";

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