Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help?


Guest

Recommended Posts

Posted

Hi

 

whow do I hide this code as I need it to work but not to be see:

 

<?php
							if ($product_info['products_price']>0) {

							$qty_array = array();

							for ($i=0; $n2 = (($product_info['products_quantity'] < 20) ? $product_info['products_quantity'] : 20), $i <= $n2; $i++) {

							$qty_array[] = array('id' => $i, 'text' => $i); 
						}}
						?><?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;
						}

 ?>

Posted

If you don't want anything to echo to the screen, then remove (or comment) the ECHO statements.

 

-jared

Archived

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

×
×
  • Create New...