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 | 2051 views | 14 replies

danjenBeta Tester

Yes - checkboxes are in a form and they are checked.
Here is URL: ProductsDetail.php?SKU=EIFLW55HMB
I am only wokring on Recommended models right now. Then I will do warranties and accessory items
Here is form code:
<?php if ($totalRows_RelatedModel > 0) { // Show if recordset not empty ?>
<h2 style="background-color: #D3E1FB;width:680px;height:20px;padding-top:10px;"> Recommended models:</h2>
<form name="relatedmodel" method="post">
<?php do { ?>
<hr/>
<table>
<tr>
<td><table width="100%" border="0">
<tr>
<td align="left" valign="bottom"><img src="<?php echo $row_RelatedModel['thumbnail']; ?>" height="50" width="50" /></td>
<td width="100" valign="bottom" >
<input type="checkbox" name="addtocartmodel[]" id="addtocartmodel" value="<?php echo $row_RelatedModel['ModelItem']; ?>" align="top"/>
<a href="ProductsDetail.php?SKU=<?php echo $row_RelatedModel['ModelItem']; ?>"><?php echo $row_RelatedModel['ModelItem']; ?></a>
</td>
<td valign="bottom" width="200"><?php echo $row_RelatedModel['brand_name']; ?><br />
<?php echo $row_RelatedModel['medium_description']; ?></td>
<td valign="bottom" align="right" width="100">$<?php echo $row_RelatedModel['price']; ?></td>
<td valign="bottom" align="right" width="200"><form name="WA_Store_Cart_3_ATC_<?php echo $row_RelatedModel['ModelItem']; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".$_SERVER["QUERY_STRING"]:""; ?>">
<input type="hidden" name="WA_Store_Cart_3_ID_Add" value="<?php echo $row_RelatedModel['ModelItem']; ?>" >
<input type="text" name="WA_Store_Cart_3_Quantity_Add" value="1" size="1" >
<input type="submit" value="Add to Cart" name="WA_Store_Cart_3_ATC" align="absmiddle">
</form></td>
</tr>
</table></td>
</tr>
</table>
<?php } while ($row_RelatedModel = mysql_fetch_assoc($RelatedModel)); ?> </form>
<?php } // Show if recordset not empty ?>

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