acoyne Posted March 14, 2008 Posted March 14, 2008 Hello all, Desperately need some help trying to figure this one out. On the product info page where the options dropdown show the full price and the price updates where selected However the price update adds the full value of the option to the base price. eg. jumper base price is 10, large size is 15 in dropdown,but the price shown when this is selected is 25 not 15 What I want is not to show the price in the dropodown just the options and the price updates when you select the option Heres the code // EOF Option Type Feature $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "' order by pa.options_values_id"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); //// BOF Actual Price Pull Down v1.2.3a $new_price ? $original_price = $new_price : $original_price = $product_info['products_price']; //// check if set special price $option_price = $products_options['options_values_price']; if ($products_options['price_prefix'] == "-") // in case price lowers, don't add values, subtract. { $show_price = 0.0 + $original_price - $option_price; // force float (in case) using the 0.0; } else { $show_price = 0.0 + $original_price + $option_price; // force float (in case) using the 0.0; } if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price( $show_price, tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } //// EOF Actual Price Pull Down v1.2.3a PLEASE HELP ME SOMEONE!!! coyners
Recommended Posts
Archived
This topic is now archived and is closed to further replies.