bettyboop Posted April 24, 2003 Share Posted April 24, 2003 I am simply trying to get the attribute pull-downs to display the actual price of the item, not the +/-price. I've seen this in the forums over and over and haven't come across a real solution. i have edited product_info.php around line 115 to this: // start loop 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']); if ($products_options['options_values_price'] != '0') { // ------------ MINUS --------- if ($products_options['price_prefix'] == '-') { //echo ("minus"); $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_price . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } // ----------- PLUS ------------ if ($products_options['price_prefix'] == '+') { //echo ("plus"); $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_price . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } } // end loop ----------------------- and it displays the correct numbers, but doesn't do the calculations. i've tried and tried to get it to work, and am giving up for now and posting this in hopes some kind soul can show me how to get it right. Thank you so much in advance! I'm a designer by trade - am trying to learn PHP. (as you can see :) Link to comment Share on other sites More sharing options...
bettyboop Posted April 24, 2003 Author Share Posted April 24, 2003 Anyone have any ideas? Link to comment Share on other sites More sharing options...
Mindlash Posted February 10, 2004 Share Posted February 10, 2004 bettyboop, have you been able to do this? I am in need of the same mod. Thanks! Link to comment Share on other sites More sharing options...
♥ecartz Posted February 10, 2004 Share Posted February 10, 2004 There is a contribution. I believe that it is called something like Actual Attribute Price. Hth, Matt Always back up before making changes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.