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

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 | 781 views | 5 replies |

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.

Thanks in advance. Sam

Sign in to reply to this post

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.

Sign in to reply to this post

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

Sign in to reply to this post

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

Sign in to reply to this post

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

Sign in to reply to this post

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()

Sign in to reply to this post

Sam Barnhart

Thanks

Thank you, I will be giving this a try.

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