Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

get rid of the tep_draw_pull_down_menu for the...


Recommended Posts

Hey, I would like to make this tep_draw_pull_down_menu to a hidden field:

$lc_text .= tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]);


That code is the code that selects the attribute but if I just write top_draw_hidden_field It wont select the attribute.


For product_info.php theres a contribution that will fix this but Im trying to do the same thing in product_listing, this is the other fix that doesnt work on this one

$Option_IDNumber_Query = tep_db_query("select options_values_id from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" .  (int)$HTTP_GET_VARS['products_id'] . "'");
$Option_IDNumber = tep_db_fetch_array($Option_IDNumber_Query);
$Option_IDNumber = $Option_IDNumber['options_values_id'];

echo '<input type="hidden" name="id[' . $products_options_name['products_options_id'] . ']" value="' . $Option_IDNumber . '">'; ?>


By the way, im using the "Display Add Multiples with Buy Now column" contribution to display the attribute in product_listing

Link to comment
Share on other sites


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

  • Create New...