Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change Pull-Down to Textfield


dhotter

Recommended Posts

Hi!

 

I'm trying to change a pull-down menue into a normal textfield in order to define the quantity of an order, but i didn't find a correct way. The code that has to be changed is

 

<?php
	if ($product_info['products_quantity'] > 0)
	{
  echo  TEXT_QUANTITY . '  ' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array);
  }
  elseif
  ((STOCK_CHECK == 'false')&& ($product_info['products_quantity'] < 1)) {
	  $qty_array = array();
		for ($i=0; $ns = 20, $i <= $ns; $i++) {
		$qty_array[] = array('id' => $i, 'text' => $i);
	}	
  echo  TEXT_QUANTITY . '  ' . tep_draw_pull_down_menu('Qty_ProdId_' . $product_info['products_id'], $qty_array);

  } else {
  echo TEXT_STOCK;
}
echo tep_draw_separator('pixel_trans.gif', '30', '10');
?>

 

 

Could anyone change this for a textfield?

Thanx for helping!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...