Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

get rid of the tep_draw_pull_down_menu for the...


Dennis_gull

Recommended Posts

Posted

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

Archived

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

×
×
  • Create New...