tkalfaoglu Posted June 11, 2009 Share Posted June 11, 2009 Hi there. I am trying to get the list of products to show up like this, with one line per product: Maker Model Description Price Quantity Desired OrderIt! Ford Taunus Old car 5000 [ ] Order it! Ford Pinto Older car 5000 [ ] Order it! That is, an empty box for the quantity desired so the customer can type in a number, and a button at the end that submits the form. Does anyone know how to accomplish this? Thanks! -tk Link to comment Share on other sites More sharing options...
Gauravs Posted June 11, 2009 Share Posted June 11, 2009 you would need to setup something like follows .. <form name="cart_quantity" action="http://YOURSERVER/catalog/shopping_cart.php?action=update_product" method="post">Ford Taunus Old car 5000 <input type="text" name="cart_quantity[]" value="1" size="4"><input type="hidden" name="products_id[]" value="ID FOR FORD..."> <input type="image" src="includes/languages/english/images/buttons/button_update_cart.gif" border="0" alt="Update Cart" title=" Order It "> Ford Pinto Older car 5000 <input type="text" name="cart_quantity[]" value="1" size="4"><input type="hidden" name="products_id[]" value="ID FOR FORD..."> <input type="image" src="includes/languages/english/images/buttons/button_update_cart.gif" border="0" alt="Update Cart" title=" Order It "> </form> * I haven't tested or tried this code - but you may try out this pseudo code and modify it as per your requriement. Cheers Best Regards,Gaurav Link to comment Share on other sites More sharing options...
tkalfaoglu Posted June 11, 2009 Author Share Posted June 11, 2009 you would need to setup something like follows ..<form name="cart_quantity" action="http://YOURSERVER/catalog/shopping_cart.php?action=update_product" method="post">Ford Taunus Old car 5000Cheers Thank you so much for answering, and I apologise for not explaining it better: I would need to pull the products and makers from the database, as there are many. I just need a short list of products, not a huge box for each product, as the default template seems to show.Regards, -turgut Link to comment Share on other sites More sharing options...
Gauravs Posted June 11, 2009 Share Posted June 11, 2009 The code I have demonstrated would not create a box, except name of the product, input field and Order It, nothing else would be visible and you can make this dynamic so as to pull the product id directly from database. HTH Best Regards,Gaurav Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.