Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculating shipping costs

Featured Replies

My goal with this calculation is simple: shipping charges are accrued based upon the subtotal of the purchase. Unfortunately I've spent too much time working on this one to be able to see my mistake. Here are two ways I tried:

If(One Subtotal <= 40, "6", If(One Subtotal > 40 and One Subtotal <= 75, "8.50", If(One Subtotal > 75 and One Subtotal <= 100, "10.50", If(One Subtotal > 100 and One Subtotal <= 150, "13",If(One Subtotal > 150 and One Subtotal <= 200, "15",If(One Subtotal > 200 and One Subtotal <= 10000, "17", "200"))))))

Case(One Subtotal >= 40, "6", One Subtotal >= 41 >= 75, "8.5", One Subtotal >= 76 >= 100, "10.5", One Subtotal >= 101 >= 150, "13", One Subtotal >= 151 >= 200, "15", One Subtotal >= 200, "17","")

Anyone out there able to see my errors? What am I overlooking?

Allegheny

Try this:

code:


Case(One Subtotal <= 40, 6,

One Subtotal >= 41 AND One Subtotal <= 75, 8.5,

One Subtotal >= 46 AND One Subtotal <= 100, 10.5,

One Subtotal >= 101 AND One Subtotal <= 150, 13,

One Subtotal >= 151 AND One Subtotal <= 200, 15,

One Subtotal >200, 17, "")


Result should be set to value.

Have fun

Gerd

  • Author

Thanks! I didn't realize it doesn't matter if there's a carriage return in the middle of the calculation.

Allegheny

I only leave them out when I want the customer to be in total awe of the complexity of the calculation wink.gif" border="0.

-bd

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.