close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ecart 5.2 Database driven shipping

Thread began 11/10/2010 9:32 pm by kris517211073 | Last modified 1/26/2011 12:11 pm by kris517211073 | 21839 views | 24 replies

Jason ByrnesWebAssist

in your database you would need to create a tax and shipping table.

I'll give an example for tax, but the same concept works for shipping:

taxes:
taxID - Primary Key
taxState - Text - 2 character state abbreviation, CA = California, TX= Texas, AZ= Arizona etc.
taxRate - number - this is the tax percentage, fore example 0.825


the checkout page will post the billing state to the confirm page.

On the confirm pate, create a recordset that will filter the taxState column on the state_province form element.

Then add a set session value server behavior. On the server behaviors panel, click the plus button and select eCart -> General -> Set Session Value.

Use Any Form Post for the trigger.

Use taxRate for the name

for the value, click the lightning bolt and select the taxRate column form the recordset. this will store the tax percentage in a session.

Now you need to create the tax rule.

On the tax tab of the eCart object add a new rule, set the trigger to If session Variable 'taxRate' exists.

set the calculation to Based on the Cart Subtotal:
Cart Subtotal 'times' '$_SESSION['taxRate']'

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