close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Shipping calculation - best approach and advice on database driven shipping rates please.

Thread began 8/10/2015 12:43 pm by Nathon Jones Web Design | Last modified 8/10/2015 8:54 pm by Nathon Jones Web Design | 454 views | 3 replies

Nathon Jones Web Design

Shipping calculation - best approach and advice on database driven shipping rates please.

The shipping we're configuring is calculated by weight. When the contents of the cart reaches a particular weight we want the corresponding Shipping Charge to be applied:

up to 6kg - £7.00
6kg-12kg - £10.00

up to 6kg - £10.00
6kg-12kg - £15.00

USA & Rest of World
up to 6kg - £15.00
6kg-12kg - £20.00

Each product has a weight value (a field in the product database) which we've bound to the pre-set Weight column in the Add to Cart behaviour. We can also see the total weight, for the entire cart contents, using the pre-set TotalWeight column so we can perform a calculation, although I'm not sure how, in order to establish the total shipping charge.

Here's where I'm confused....

The customer has to select a country from the country drop down menu however this is automatically installed by the eCart Checkout Wizard and doesn't, as far as I can see, correspond with any shipping charges unless, perhaps, if you use one of the pre-installed carriers (UPS etc).

If a customer selects, for example, France then how do I make sure that the correct shipping charge is applied?

I'm aware that I probably need to create a Shipping Rates table, but I'm completely confused about what fields this should have:
ShippingRegionID - (unique row ID)
ShippingRegionTitle - (Europe, USA, Rest of World etc)
ShippingRegionRate6kg - (price)
ShippingRegionRate12kg - (price)
ShippingRegionRate18kg - (price)
ShippingRegionRate24kg+ - (price)

I then need to create a country table which lists all of the countries that we ship to that also includes the ShippingRegionID and then do an INNER JOIN to link the country to the correct region and rate?

Checking eCart, I can create Shipping Rules but I don't see any tie in with "Country" in the triggers section.

My brain feels like mush with it all so I'd appreciate guidance on the best approach to this because I feel like I'm over-complicating things.

Thank you.

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





Ease of use


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