Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Display Static Cart Qty


DakotaSchool

Recommended Posts

Posted

Hello. I need to change the following code to remove the input field and simply display the cart quantity as a number which can not be edited:

 

 

$info_box_contents[$cur_row][] = array('align' => 'center',

'params' => 'class="productListing-data-print" valign="top"',

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

 

 

Does anyone know if the "tep_draw_input_field" can be replaced with a function which will only display a static number?

 

Thank You!

Posted

Got it with this!

 

$info_box_contents[$cur_row][] = array('align' => 'center',

'params' => 'class="productListing-data-print" valign="top"',

'text' => ($products[$i]['quantity']));

 

If anyone wanted to know.

Archived

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

×
×
  • Create New...