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

Multiple Add to Cart

Thread began 6/24/2009 3:30 am by danjen | Last modified 6/29/2009 12:15 pm by danjen | 2907 views | 14 replies

danjenBeta Tester

ok if I add that to the code, the page doesn't load. Just dies with filter:

I have not changed the name of the button and the main product is added to the cart. Now just the accessory items are not added with it.
Is there any kind of training recipe for add multiple items to cart. I am so close on this, but am getting frustrated that I am getting no where.

Here is my filter at the beginning of the page.

//WA Database Search (Copyright 2005,
//Recordset: AddToCartItems;
//Searchpage: ;
//Form: ;
$WADbSearch1_DefaultWhere = "";
if (!session_id()) session_start();
if (isset($_POST["WA_Store_Cart_1_ATC_x"])) {
$WADbSearch1 = new FilterDef;
//keyword array declarations

//comparison list additions

//save the query in a session variable
if (1 == 1) {
else {
$WADbSearch1 = new FilterDef;
//get the filter definition from a session variable
if (1 == 1) {
if (isset($_SESSION["WADbSearch1_ProductsDetail"]) && $_SESSION["WADbSearch1_ProductsDetail"] != "") {
$WADbSearch1->whereClause = $_SESSION["WADbSearch1_ProductsDetail"];
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
else {
$WADbSearch1->whereClause = $WADbSearch1_DefaultWhere;
$WADbSearch1->whereClause = str_replace("\\''", "''", $WADbSearch1->whereClause);
$WADbSearch1whereClause = '';
Here is recordset:
$MMColParam_AddToCartItems = "-1";
if (isset($_POST['addtocartmodel[]'])) {
$MMColParam_AddToCartItems = (get_magic_quotes_gpc()) ? $_POST['addtocartmodel[]'] : addslashes($_POST['addtocartmodel[]']);
mysql_select_db($database_localhost, $localhost);
$query_AddToCartItems = sprintf("SELECT, CartItems.brand_name, CartItems.color_code, CartItems.medium_description, CartItems.thumbnail, CartItems.Price FROM CartItems WHERE %s =", GetSQLValueString($MMColParam_AddToCartItems, "text"));
$AddToCartItems = mysql_query($query_AddToCartItems, $localhost) or die(mysql_error());
$row_AddToCartItems = mysql_fetch_assoc($AddToCartItems);
$totalRows_AddToCartItems = mysql_num_rows($AddToCartItems);

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