close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Shipping Multiplier?

Thread began 5/30/2011 9:14 am by codamedia | Last modified 6/01/2011 6:41 am by Jason Byrnes | 2112 views | 5 replies |

codamedia

Shipping Multiplier?

Here are my basic shipping needs.

1: Base rate for shipping up to 1 lb. (easy, and setup)
2: Base rate for each additional lb (easy, and setup)
3: What I need to do now is setup rules based on the province they are being shipped to. Is there an easy way to add a Multiplier to the "$totalShipping" that get's created.
------------------
EXAMPLE
Base Rate "$totalShipping" = $10

Manitoba has a multiplier of 1, so the value is still $10
Alberta has a multiplier of 1.4, so the value is $14.00
etc....
---------------

The way it is now, I know I can add a multiplier in the calculation to the "total weight" - therefore adding a per lb sur charge to each province, but this calculation will not sit well with my client, and it is not nearly as easy to calculate. (It would be great if the $totalShipping variable was stored in one of eCarts calculations, so we could calculate it from within the shipping calculations area. Better yet - add "canada post" as a shipping provider for real time quotes - LOL)

Any suggestions? Or is the above paragraph my only solution?

Sign in to reply to this post

CraigRBeta Tester

Heres something that may work for you.

In your database, add a table which contains all of the shipping states, and a multiplier for each one.

When the customer chooses a shipping state on the checkout page, you could use this value to lookup the multiplier from the recordset and set it as a session value.

use this session value in the shipping calculation.

Sign in to reply to this post

codamedia

Yes - that is almost exactly what I am thinking, however there is no way to apply this to the "total shipping" variable that gets created. The eCart Shipping dialog does not have this option, as far as I can see :)

I need the first two items I listed, "The Base Rate", then the "Per lb" rate. The multiplier needs to be applied to the sum of those two items.

Sign in to reply to this post

Jason ByrnesWebAssist

well, since you want to apply this to the total shipping, you cannot do this on the shipping tab of the eCart object. to do it on the shipping tab would create an endless loop, since eaxh time the shipping is calculated, it would end being recaculated.


you can do this on the charges tab though.

set the calculation of the charge to a flat rate and use the following code:


$this->GetShipping() * $_SESSION['yourSession']


where yourSession is the name of the session you create that contains the multiplier.

Sign in to reply to this post

codamedia

Thanks Jason - that is exactly what I was needing. I never thought about adding it in the calculations.

Thanks also to Craig for pointing this in the right direction! I see now this is what he was suggesting as well.

Sign in to reply to this post

Jason ByrnesWebAssist

No worries, glad to heart it is working.

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