# Trouble with adding shipping to ecart

Thread began 8/14/2012 11:02 am by sam431537 | Last modified 9/11/2012 12:55 pm by Jason Byrnes | 874 views | 5 replies |

## 8/14/2012 11:02 am  |  #1 sam431537

### Trouble with adding shipping to ecart

Hello, I've had the e-cart and data assist package for adding ecommerce to my site. Ive have the ordering part complete and functional but Ive not been able to figure out how to place shipping for each items. At this time, I have one flat rate for everything with is not the way it should be done.

I need help. I've watched the videos and read tutorials and Im lost.
Maybe I'm not reading the correct material.

This is what I'm trying to achieve is...
The shipping should be based on the price.
Example orders under 50.00 would be \$5.00 shipping
Orders of 50.01 - 100.00 would be 10.00 in shipping
Orders of 100.01 - 150.00 would be 15.00 in shipping
Any orders over 150.01will require a quote.

How would I achieve this?
Can it be done in the ecart or do I have to form a data base?
If someone could let me know which avenue to take and
where the instructions are that would be most helpful.

## 8/14/2012 1:40 pm  |  #2 Jason ByrnesWebAssist

you will need to create a shipping rule for each shipping amount. use the taxable total for the cart trigger to create rules base on your price breaks.

for example the first rule would be created as:

Triggers:
"Taxable total For the Cart"
if the taxable total price for the cart is ">" a value of "0"

AND
"Taxable total For the Cart"
if the taxable total price for the cart is "<=" a value of "50"

calculation:
falt rate Charge of "5"

the second rule would be created as:
Triggers:
"Taxable total For the Cart"
if the taxable total price for the cart is ">=" a value of "50.01"

AND
"Taxable total For the Cart"
if the taxable total price for the cart is "<=" a value of "100"

calculation:
falt rate Charge of "10"

the other rules would follow the similar pastern just changing the comparison values and the calculation amount.

## 9/08/2012 3:03 pm  |  #3 Sam Barnhart

### Adding Shipping with ecart issue

Thanks for the help, it works.

I have one additional question, if I have a certain amount for instance...
Any order over 300.00 I would like for them to see a message that they will be contacted with the shipping cost.

Is there any way to do this?

At this time I have 2 other rules with triggers for the shipping based on the taxable total for the cart.

Thanks, Sam

## 9/10/2012 11:30 am  |  #4 Jason ByrnesWebAssist

you would need to hand code an if statement to show the message:

php:
``````<?php if(\$yourCart->GrandTotal() > 300) { ?>
we will contact you for with the shipping cost
<?php } ?>``````

where yourCart is the name of your cart object

## 9/11/2012 11:35 am  |  #5 Sam Barnhart

### Just a bit more help (:

Thanks so much for the info. I would like to implement but I'm a novice in php. Im not sure where you place the if statement. Could you let me know where to place it. I was not sure what you meant by
"where yourCart is the name of your cart object"
Do I put it by each item or I was not sure.

Thanks, Sam

## 9/11/2012 12:55 pm  |  #6 Jason ByrnesWebAssist

the code should go where ever you want the message to be shown.

I was not sure what you meant by
"where yourCart is the name of your cart object"

the if statement has the following code in it:

\$yourCart->GrandTotal()

this references the grand total for your eCart object, but this is just an example as i don't know what you named the eCart object when you created it.

so you will need to adjust the code to use your eCart object name.

if you named the cart object "eCart1" which is the default name, the code would be:
\$eCart1->GrandTotal()

## 9/12/2012 9:07 am  |  #7 Sam Barnhart

### Thanks

Thank you, I will be giving this a try.

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

## Everything else!

Close Window

Account or customer service questions?

Need technical support?

Content

Layout

Ease of use

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 Window

## We were unable to retrieve the attached file

Close Window

### Attach and remove files

• Text Formatting
• Insert Element
• Block Formatting
• Cancel
Close Window

Close Window

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