close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Having a problem sending toogle option selections to the cart display and customer / store receipt

Thread began 6/28/2013 2:26 pm by elewis93815 | Last modified 7/01/2013 1:22 pm by elewis93815 | 353 views | 6 replies

Jason ByrnesWebAssist

1) The checkboxes for the small sandwich platter are named:
Sandwiches[]2

that needs to be changed to:
Sandwiches2[]


2) the add to cart code for the small platter is at lines 345 - 380:

php:
<?php

// WA eCart AddToCart
if (isset($_POST["cupcake1_13_ATC"]) || isset($_POST["cupcake1_13_ATC_x"]))     {
  
$ATC_itemID $_POST["cupcake1_13_ID_Add"];
  
$ATC_AddIfIn 0;
  
$ATC_RedirectAfter "order_display.php";
  
$ATC_RedirectIfIn  "";
  if (isset(
$totalRows_rsCaterLunch) && $totalRows_rsCaterLunch 0)     {
    
$row_rsCaterLunch WAEC_findRecordMySQL($rsCaterLunch"PRODUCTID"$ATC_itemID);
    if (
$row_rsCaterLunch)     {
      
$ATC_itemName "Small Sandwich Platter";// column binding
      
$ATC_itemDescription "";// column binding
      
$ATC_itemWeight floatval("0");// column binding
      
$ATC_itemQuantity "".$_POST["cupcake1_13_Quantity_Add"]  ."";// column binding
      
$ATC_itemPrice floatval("34.95");// column binding
      
$ATC_itemPlatterOptions "";// column binding
      
$ATC_itemTaxable "1";// column binding
      
mysql_data_seek($rsCaterLunch0);
      
$row_rsCaterLunch mysql_fetch_assoc($rsCaterLunch);
    }
  }
  
$ATC_itemQuantity floatval($ATC_itemQuantity);
  if (
is_numeric($ATC_itemQuantity) && $ATC_itemQuantity != 0)     {
    
$cupcake1->AddToCart($ATC_AddIfIn$ATC_RedirectIfIn$ATC_itemID$ATC_itemName$ATC_itemDescription$ATC_itemWeight$ATC_itemQuantity$ATC_itemPrice$ATC_itemPlatterOptions$ATC_itemTaxable);
    if (
$ATC_RedirectAfter != "" && $cupcake1->redirStr == "")     {
      
$cupcake1->redirStr $ATC_RedirectAfter;
    }
    if (isset(
$_SERVER['QUERY_STRING']) && $_SERVER['QUERY_STRING'] != "")  {
      
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING'];
    }
    else  {
      
$_SESSION['WAEC_ContinueRedirect'] = $_SERVER['PHP_SELF'];
    }
  }
}
?>




line 360 sets the options:

php:
$ATC_itemPlatterOptions = "";// column binding




change that to:

php:
$ATC_itemPlatterOptions = "".((isset($_POST["Sandwiches2"]))?implode(", ",$_POST["Sandwiches2"]):"")  ."";// column binding

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