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

Coupons - Exclude certain products?

Thread began 11/15/2009 3:49 pm by psychobilly1165508 | Last modified 11/25/2009 12:44 pm by psychobilly1165508 | 5444 views | 47 replies


Okay - Thank you for this step-by-step instruction. That's exactly what I needed. I really appreciate the help Jason.

Originally Said By: Jason Byrnes
  NO, set it to 1 for items that should be charged shipping.

Set it to 0 for items that should not be charged shipping.

It does not matter if the cart column and the DB column are named the same.

The data type of the cart column does not matter either.

The recordset on the product detail is too complex for dreamweaver to parse it.

In the product detail page, temporarily change the recordset code:
$query_WADAProducts = sprintf("SELECT * , (ProductStock - (SELECT Coalesce(Sum(DetailQuantity),0) FROM orderdetails INNER JOIN orders ON OrderID = DetailOrderID WHERE DetailProductID = ProductID AND OrderDate > ProductUpdateDate))*ProductLive AS NumLeft FROM products WHERE ProductID = %s OR ( -1= %s AND ProductID= %s)", GetSQLValueString($ParamProductID_WADAProducts, "int"),GetSQLValueString($ParamProductID2_WADAProducts, "int"),GetSQLValueString($ParamSessionProductID_WADAProducts, "int"));

to a simpler recordset:
$query_WADAProducts = sprintf("SELECT * FROM products";

Then double click the add to cart button server behavior. On the bindings tab, bind the new cart column to the recordset column.

You will then have to change the WADAProducts code back to the origianl.  

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





Ease of use


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