sphinx797 Posted October 20, 2010 Posted October 20, 2010 Hey everyone, I've been searching for ages for a way to show the actual product with different attribute prices easily. I had problems with installing Actual Attribute v1.8 and so decided to search these forums more until I finally found a solution from a very very old post. If you don't mind still using the +amount pricing in the attribute manager then this is for you: user yuharry00 created this code so I can't take any credit, just passing along what I discovered from an old post that worked for me. in product_info.php find if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } and replace with: ///// ### Display actual Price ### ////// if ( $products_options['price_prefix'] == '+' ) { $actual_price = $product_info['products_price'] + $products_options['options_values_price']; } else { $actual_price = $product_info['products_price'] - $products_options['options_values_price']; } $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($actual_price, tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } if ($products_options['options_values_price'] == '0' && $products_options['price_prefix'] == '+') { if ( $products_options['price_prefix'] == '+' ) { $actual_price = $product_info['products_price'] + $products_options['options_values_price']; } $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($actual_price, tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } Remember, this is merely a temporary display fix. My store deals with every product having attributes with different prices and I have yet to find a contribution that can manage that well. I'm still having problems with items being on sale only affecting the base price before the attribute price change is taken into effect. If someone can recommend me a Specials contribution that takes into account attributes' price changes I would be greatly appreciative. Thanks!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.