close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How do I prevent checkout if certain shipping rules are triggered?

Thread began 11/05/2015 9:15 am by jlowery | Last modified 11/05/2015 4:26 pm by Ray Borduin | 686 views | 2 replies |

jlowery

How do I prevent checkout if certain shipping rules are triggered?

My client has decided she wants to prevent customers who are in Hawaii or Alaska or ordering more than 24 items from completing the checkout because of additional shipping charges. Is there a way to use eCart variables to set the confirm button to inactive or something similar?

Sign in to reply to this post

Ray BorduinWebAssist

You would probably just use a custom IF statement around the confirm button like:

php:
<?php

if ($eCart1->TotalColumn("TotalPrice")) > 24 && ($_SESSION['ShippingState'] == "AK" || $_SESSION['ShippingState'] == "HI")) {
?>
You can't order more than 24 items shipped to Hawaii or Alaska
<?php } else { ?>
<input type="submit" .... //confirm button here
<?php
}
?>


(of course use your cart name and the correct session variable names based on the version of eCart you are using)

Sign in to reply to this post
Did this help? Tips are appreciated...

jlowery

Perfect - thanks, Ray. I'll give it a shot.

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