Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Quantity dropdown list on shopping_cart.php


Recommended Posts

Hi Guys


I have a wine site sellings wines in boxes of only 6.


Iv located the quantity input on shopping_cart.php here:




'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']));




Now, I'd like to have a dropdown menu with options [6, 12, 18, 24 etc.]


Is there any way I can hardcode this onto shopping_cart.php ?




Link to comment
Share on other sites

yes. there is a contrib on a quantity input box for product info. You can tehre create a loop with multiples of 6 only to display. You will need to add the same contrib for the cart page also, or people will be able to modify quantity there!




addicted to writing code ... can't get enough of databases either, LOL!


my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum


Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites


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

  • Create New...