This page assumes you are comfortable with tables and can adapt them to fit your needs no matter how you choose to use Amazon Web Services, but you have a need to add mutiple items "to cart forms". I obviously used tables. So here we have simple add to cart forms using tables.


electronics tutorials for ham radio



LAST MODIFIED:

THIS SHOULD BE A "PRINTER FRIENDLY PAGE" - CHECK PRINT PREVIEW.

SIMPLE ADD TO CART FORMS WITH TABLES

This page assumes you are comfortable with tables and can adapt them to fit your needs no matter how you choose to use Amazon Web Services, but you have a need to add mutiple items "to cart forms". I obviously used tables.

How can you test to see if it works? Well the biggest difficulty is that Amazon Web Services have never provided adequate tools to test this type of thing out. One suggestion seems to be that when you have everything running to your complete satisfaction, place an order for several items yourself using weird products no site visitor would possibly buy through your site.

Complete the order on the basis that you will pay by cheque [check]. Once you receive email confirmation, look into your traffic reports the next day, and then go back and cancel the order. Nobody can think of any better test.

If the odd ball items appear in your traffic reports then we must assume it works. If not, let me know.

Copy and paste this code [see below] to a tempory HTML file, make all the necessary changes and then go from there. Experiment...

<div align="center">
<form method="POST"
action="{concat('http://www.amazon.com/o/dt/assoc/handle-buy-box=',ProductInfo/DetailsAsin)}"> <table border="1" cellpadding="3" cellspacing="3"> <tr> <td>First Item Image File</td> <td>First Item yadda, pricing, availability</td> <td><input type="checkbox" name="{concat('asin.', $Asin)}" value="1"/>Add to my Amazon Cart</td> </tr> <tr> <td>Second Item Image File</td> <td>Second Item yadda, pricing, availability</td> <td><input type="checkbox" name="{concat('asin.', $Asin)}" value="1"/>Add to my Amazon Cart</td> </tr> </table>
<input type="hidden" name="tag_value" value="YOUR-AFFILIATE-ID"/> <input type="hidden" name="tag-value" value="YOUR-AFFILIATE-ID"/> <input type="hidden" name="dev-tag-value" value="YOUR-DEVELOPER-ID"/> <input type="image" value="Add this to your Amazon Shopping Cart" name="submit.add-to-cart"
src="http://www.your-site.com/image-files/buy-from-amazon.gif" align="center"
alt="Buy from Amazon" border="0" width="170" height="20"/>
you can always edit your Amazon Shopping Cart at a later date - remove, add, save items... </form> </div>

Which looks like this - add to cart forms with tables

This is purely a demonstration "Buy from Amazon" - which does not actually work. It's for illustration purposes only

book cover First Item yadda, pricing, availability Add to my Amazon Cart 
book cover Second Item yadda, pricing, availability Add to my Amazon Cart 



you can always edit your Amazon Shopping Cart at a later date - remove, add, save items...

Copy and Paste this - "add to cart forms with tables"



RELATED TOPICS ON SIMPLE ADD TO CART FORMS WITH TABLES

xml web services with xslt

xml web services with xslt - FAQ



Copyright Ian C. Purdie © 2000 - 2004, all rights reserved. URL - https://www.electronics-tutorials.com/web-services/add-cart-forms-with-tables.htm

All material at this site may be used by private individuals for their own non-commercial purposes. Single copies of my pages or files may be distributed to other private individuals at no charge, unless other requirements are noted on the relevant page. However, all material remains the intellectual property of Ian C. Purdie, individual contributors, or other sources who gave permission for use of their material at this site. All copyrights and trade marks are reserved by myself or the respective owners. Material may not be republished without prior written permission, nor may it be mirrored on another server without my prior written permission. Other than as provided in these pages or permissions given, translation into another language other than english and hosting pages in another country is stricly prohibited.
Commercial use prohibited without the prior written permission of www.electronics-tutorials.com

Created 6th March, 2004

Updated 9th March, 2004