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

rating

Shipping Based on DB column

Thread began 5/08/2012 2:49 pm by Armen | Last modified 5/09/2012 5:54 pm by Armen | 738 views | 4 replies |

Armen

Shipping Based on DB column

I have a database containing a table for products. One of the fields is the shipping charge for the specific item. How can I add up all the shipping charges based on a given item and its corresponding shipping charge and quantity?

I am using eCart 5.0.4 PHP/MySQL

Sign in to reply to this post

Jason ByrnesWebAssist

in the eCart object, add a column for itemShipping. on the calculations tab add a new calculation as:

TotalShipping
[itemShipping] * [Quantity]

on the shipping tab, create a new shipping rule using the following trigger:
"Total number of Unique Items In the cart"
if the total number Of unique items in the cart is ">" a value of "0"

and set the calculation to:
"Based on multiple of column subtotal"
Subtotal of column "TotalPrice" "Times" "1" "Plus" "0"

in the add to cart button behavior, bind the itemShipping cart column to the shipping column in your products table.

Sign in to reply to this post

Armen

Thanks Jason. How about adding an additional charge when there is more than one item in the cart (unique or multiple of the same item)? I want to do the following:

$7.95 shipping for the first item, additional $3 charge (one-time) if more than one item is ordered (same item or different items).

Sign in to reply to this post

Jason ByrnesWebAssist

2 new shipping rules:

base:
Subtotal for any column:
If the subtotal of column "Quantity" is ">=" a value of "1"

Calculation:
Flat rate charge of 7.95


2 items or more:
Subtotal for any column:
If the subtotal of column "Quantity" is ">=" a value of "2"

Calculation:
Flat rate charge of 3

Sign in to reply to this post

Armen

Thanks Jason!

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