Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to customize product listing


tkalfaoglu

Recommended Posts

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

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

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

Cheers

 

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...