close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add Amount to UPS Shipping

Thread began 5/20/2010 1:29 pm by rdubill357341 | Last modified 5/24/2010 6:27 pm by Jimmy Wu | 1074 views | 5 replies |

rdubill357341

Add Amount to UPS Shipping

OK - I have the UPS shipping amounts being returned correctly after setting up Ecart.

What I'd like to do now is take the shipping amount returned and add 15% to it.

I went into the ecart object and set up a rule under shipping to take the amount returned and apply this percentage.

When I click OK to save it and go back into the ecart object to view it it is gone.

Using ecart 4.5.2

Suggestions?

thanks

Sign in to reply to this post

Jimmy Wu

When you say you go back into the eCart Object to view it and its gone, what do you mean? Is the UPS shipping rule not there or is the addition not there?

When you want to add 15% to your shipping charge, you can try setting up to use times instead of add and set the value to 1.15. I'll attach a screen shot so you can see how it is set up. Once you've applied the 1.15, try hitting tab to set the focus to another field before hitting ok.

If you're still having trouble with adding the rule, please explain in more detail what steps you are taking.

Sign in to reply to this post

rdubill357341

UPS Shipping

When I am on screen to add the calculation on the bottom I enter times 1.15.

I tab - then click OK.

I go back into the ecart object and it is back to plus zero.

the 1.15 is gone.

thanks

Sign in to reply to this post

Jimmy Wu

I'm not sure why you aren't able to make the modification through the interface, but you can manually add the multiply by 1.15 by opening up your WA_eCart/[storename]_PHP.php file and doing a search on the name of the rule without spaces. So if your shipping rule is called USPS Shipping, search for USPSShipping. Then you would add * 1.15 to the $totalShipping variable like this:
//eCart Rule
function WAEC_store1_USPSShipping() {
$totalShipping = 0;
if (true && (("USPS"=="USPS")&&(isset($_SESSION["store1_USPS_Quote"]))&&(floatval($_SESSION["store1_USPS_Quote"]) != 0))) {
$totalShipping += floatval($_SESSION["store1_USPS_Quote"]) * 1.15;//Result
}
return WA_eCart_FormatNumber($totalShipping, $this->ForceDecimalsC, $this->DecimalPlacesC);
}
//eCart Rule

the part in bold is what you want to add.

Sign in to reply to this post

rdubill357341

Add to UPS Shipping

Jimmy - many thanks!

That did it!

Sign in to reply to this post

Jimmy Wu

Great to hear it. If you run into any additional issues, feel free to open a new thread.

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