close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Order page adds item to wrong line item on cart page

Thread began 10/27/2010 1:48 pm by elewis93815 | Last modified 11/04/2010 6:03 pm by elewis93815 | 1557 views | 21 replies

elewis93815

Hello Jason, In reference to your last post, we would like to discover where we are going wrong at, I'll respond to what we have done based upon your statements and hopefully you can show us what we have failed to do correctly Thanks!!

J: the items are not being added to the caret because you added the check boxes for the sandwich options manually instead of through the add to cart button.

Erick: We are working on only the lunch section of the page, the other check boxes have not been deleted - sorry about the confusion. This is what we did for the sandwich section:

1: Added a column for each sandwich option in the eCart Object
2: We added an add to cart button that includes all sandwich options, and made them all updateable, and changed the "text" type to "checkbox" in the code, once we did that the text boxes changed to check boxes within the add to cart form area (red dotted line area)
3. We created a new order display page and grouped the sandwich options with the previous column, and then tested the order process.

All sandwich options are displayed however our sandwich choices are defined i.e. type of sandwich that I chose are not apparent no check box, etc. are apparent.

You need to create a column in your cart for each sandwich option, and set that column to be update from a text box in the add to cart button to have eCart create the text box for you, then change the type attribute:
type="text"

to:
type="chcekobox"

Erick: explained in previous paragragh


top hide the column add an if statement around it, for example:
[php]
<?php if($cupcake1->DisplayInfo("HummusWrap") != "") { ?>
<p class="eC_ItemHummusWrap">HummusWrap:&nbsp;<?php echo $cupcake1->DisplayInfo("HummusWrap"); ?></p>
<?php } ?>

Erick: Is this a show if command in the drop down section of the server behaviors? i.g.
Server Behaviors > + > Show if Recordset is Not Empty.

Thank you!

Erick

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