inforgm Posted June 4, 2010 Share Posted June 4, 2010 Hi everybody. First of all, im using an old version of "Product Listing Enhancements, Thumbnails & Manufacturer Headings". Basicaly i want to change a tep_draw_input_field to a tep_draw_pull_down_menu. I dont know much of php, and i´ve tried everything but i cannot get it to work. Actually, this is how it looks: $qty_array = array(); $pstock = min(tep_get_products_stock($products_id),MAX_QTY_IN_CART); $quantity = (PRODUCT_LIST_QUANTITY_BOX == 'true' ? '' . tep_draw_input_field('cart_quantity','1','maxlength="2" size="2"') . '<br />' : ''); I´ve tried something like this, but it doesn´t work: $qty_array = array(); $pstock = min(tep_get_products_stock($products_id),MAX_QTY_IN_CART); $qty_array1[] = array('id' => $i+1, 'text' => $i+1); $quantity = (PRODUCT_LIST_QUANTITY_BOX == 'true' ? '' . tep_draw_pull_down_menu('quantity', $qty_array1, 1) . '' : ''); I only want a simple pull down menu, like 1 to 20. It dont need to get the product quantity. Help me if can. Thank you. If you need more info, tell me. Thanks for your time, Oliveira. Link to comment Share on other sites More sharing options...
♥joli1811 Posted June 5, 2010 Share Posted June 5, 2010 Hi everybody. First of all, im using an old version of "Product Listing Enhancements, Thumbnails & Manufacturer Headings". Basicaly i want to change a tep_draw_input_field to a tep_draw_pull_down_menu. I dont know much of php, and i´ve tried everything but i cannot get it to work. Actually, this is how it looks: $qty_array = array(); $pstock = min(tep_get_products_stock($products_id),MAX_QTY_IN_CART); $quantity = (PRODUCT_LIST_QUANTITY_BOX == 'true' ? '' . tep_draw_input_field('cart_quantity','1','maxlength="2" size="2"') . '<br />' : ''); I´ve tried something like this, but it doesn´t work: $qty_array = array(); $pstock = min(tep_get_products_stock($products_id),MAX_QTY_IN_CART); $qty_array1[] = array('id' => $i+1, 'text' => $i+1); $quantity = (PRODUCT_LIST_QUANTITY_BOX == 'true' ? '' . tep_draw_pull_down_menu('quantity', $qty_array1, 1) . '' : ''); I only want a simple pull down menu, like 1 to 20. It dont need to get the product quantity. Help me if can. Thank you. If you need more info, tell me. Thanks for your time, Oliveira. Hi, Spooks did a nice add on that should solve your problem http://addons.oscommerce.com/info/5553 John To improve is to change; to be perfect is to change often. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.