close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

add 7% to UPS shipping rate

Thread began 9/10/2015 3:39 pm by Mark | Last modified 9/14/2015 4:17 pm by Ray Borduin | 1944 views | 11 replies |

Mark

add 7% to UPS shipping rate

I need to add 7% to my UPS shipping rate. With the eCart object, I added "times 1.07" to the UPS shipping quote. I confirmed this addition on the cool cart_PHP.php page - but nothing is being added to the shipping. Here is the code on the coolcart_PHP page:

//eCart Rule
function WAEC_coolCart_UPSShipping() {
$totalShipping = 0;
if (true && (("UPS"=="UPS")&&(isset($_SESSION["coolCart_UPS_Quote"]))&&(floatval($_SESSION["coolCart_UPS_Quote"]) != 0))) {
$totalShipping += floatval($_SESSION["coolCart_UPS_Quote"]) * 1.07;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}

Sign in to reply to this post

Ray BorduinWebAssist

That should work... was the shipping working before adding the surcharge? Is it possible you didn't upload the page?

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

Mark

Yes, the shipping was working - and is still working. It's just on adding the 7%. I have uploaded the page, emptied the cache, etc. The shipping amount has not changed.

Sign in to reply to this post

Ray BorduinWebAssist

I don't see how that would be possible... the code looks correct. Are you sure you uploaded the file. That is the cart you are using?

What if you change it more dramatically like: * 5

Is it possible the change is so slight it is working and you just don't notice it?

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

Mark

I'll try *5 now. OK nothing changed. Is there some way to look at the code in the browser and see whats there?

Could this have something to do with the extra UPS choices we added?

Sign in to reply to this post

Ray BorduinWebAssist

Maybe... send me a copy of your cart file and I'll take a look.

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

Mark

Here's some of the files that may be pertinent.

Sign in to reply to this post

Mark

Ray, any updates on this issue?

Sign in to reply to this post

Ray BorduinWebAssist

It looks like it would work... Can I get FTP access and a URL to test? I'll play around with it and see what is going on.

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

Mark

OK Ray, attached is FTP access.

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