Dennis_gull Posted February 16, 2007 Posted February 16, 2007 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
Dennis_gull Posted February 18, 2007 Author Posted February 18, 2007 Does anyone know a solution on this problem?
Dennis_gull Posted February 25, 2007 Author Posted February 25, 2007 Last time im going to bump this, would really appreciate some help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.