Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to convert to a drop down


OSC-Sevilla

Recommended Posts

I would like to turn this into a drop down menu

 

for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

$lc_text = TABLE_HEADING_MODEL;

break;

case 'PRODUCT_LIST_NAME':

$lc_text = TABLE_HEADING_PRODUCTS;

break;

case 'PRODUCT_LIST_MANUFACTURER':

$lc_text = '';

break;

case 'PRODUCT_LIST_PRICE':

$lc_text = TABLE_HEADING_PRICE;

break;

case 'PRODUCT_LIST_QUANTITY':

$lc_text = TABLE_HEADING_QUANTITY;

break;

case 'PRODUCT_LIST_WEIGHT':

$lc_text = TABLE_HEADING_WEIGHT;

break;

case 'PRODUCT_LIST_IMAGE':

$lc_text = '';

break;

case 'PRODUCT_LIST_BUY_NOW':

$lc_text = '';

break;

}

$lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text);

 

echo '<span class="layout_switch">'.$lc_text.'</span>';

 

 

echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);

 

 

 

any code snippets or pointers?

 

Cheers

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...