close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping charge not reflecting quantity purchased of same item

Thread begun 1/16/2012 9:53 am by jam396972 | Last modified 1/16/2012 12:48 pm by jam396972 | 2754 views | 9 replies |

jam396972

Shipping charge not reflecting quantity purchased of same item

Hi Jason,
First of all, wishing you a Happy New Year!

I have set up the site with UPS shipping and a handling charge for each item. Everything seems to be working fine with a single purchase of an item, however, the UPS charge is not reflecting any increased item sales (more than 2 sold of the same item). It just keeps the same single item shipping charge no matter how much the quantity is increased. The handling charge does increase accordingly to the larger quantity sales. I am sure I tried this out before and the UPS amount was working fine. I don't know what I did or how to change the code to have the UPS pick up the total quantity of items when duplicates are ordered of the same item.

Many thanks!

Sign in to reply to this post

Ray BorduinWebAssist

Please upload a copy of the page where the UPS shipping server behavior is applied and I can take a look at what is wrong.

Most likely you are referring to the field value for "Weight" instead of "TotalWeight" when passing the value to UPS, but if I look at the page I can refer to line numbers and the specific code you need to update.

Sign in to reply to this post
Did this help? Tips are appreciated...

jam396972

UPS Shipping Charge & Quantities Sold

Hi Ray,
I did look into the coding for "Weight" vs. "TotalWeight", but when I adjusted things it didn't resolve the issue. I am attaching the cart.php and confirm.php pages. Thank you so much for your help and attention on this.

Sign in to reply to this post

jam396972

Total Weight

Hi Ray,
I just noticed that it is the "TotalWeight" that is not calculating the Weight * Quantity correctly. Again, I know this was working before and I don't know what I could have done to change it. I'll be looking into this, but if you can direct me to the appropriate location to adjust this, it would be greatly appreciated! :)

Sign in to reply to this post

jam396972

Total Weight

Sorry about this. I found where to correct the TotalWeight increment and it is working fine. However, I am still having the same problem with the UPS shipping amount. I am attaching the updated files.

Sign in to reply to this post

Ray BorduinWebAssist

What is the issue you are having now? I'm a bit confused when you say:

"working fine. However, I am still having the same problem with the UPS shipping amount"

I'm not sure how it can be working fine but you still have the same issue. Please describe in detail what the current issue is and I'll try to figure out the cause.

Sign in to reply to this post
Did this help? Tips are appreciated...

jam396972

I was refering to the TotalWeight column amount, that it was working properly. The UPS shipping amount is picking up only a single item sale, not the "TotalWeight" increment. I am very sorry about the confusion.

Sign in to reply to this post

jam396972

Ray,
On the confirm.php, I adjusted the 'Weight' to 'TotalWeight' on line 188. That does seem to increase the shipping amount according to the total weight ordered. Since we have to ship each item individually (and I did note this going through the checkout wizard when I set the shipping up), how can I set up the shipping charge by quantity instead of by weight. In other words, for example, right now for a single item:Table 1 the shipping is $17.48. On a quantity of two it is $28.80, not $34.96 (double the $17.48 charge). I can't adjust it with a shipping rule. Can this even be done? Thanks again.

Sign in to reply to this post

Ray BorduinWebAssist

You could try replacing the code:

$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$guitartables->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = "1";
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($guitartables->WeightUnits)."LBS" ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($guitartables->DisplayInfo('Weight'), true, 1) ."";



with:

$Shipping_PackageArray[$Shipping_PackageIndex]["eCart_Quantity"] = (($Shipping_Packaging == 1)?$guitartables->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["IsPackage"] = "true";
$Shipping_PackageArray[$Shipping_PackageIndex]["Quantity"] = (($Shipping_Packaging == 1)?$guitartables->DisplayInfo("Quantity"):1);
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($guitartables->WeightUnits)."LBS" ."";
$Shipping_PackageArray[$Shipping_PackageIndex]["PackageWeight"] = "".WA_eCart_FormatNumber($guitartables->DisplayInfo('Weight'), true, 1) ."";
Sign in to reply to this post
Did this help? Tips are appreciated...

jam396972

Works perfectly! Thank you so much!

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