Develonet Posted May 10, 2007 Share Posted May 10, 2007 Hello, I am looking for a contribution or some method of listing the actual price of product options in products attributes drop down instead of show something like (+5.00). In other words, If I have 3 product sizes small = $1 medium=$2 and large=$3 I would like my drop downs to display the actual price $1, $2 and $3. Currently, my drop downs show the plus sign and the price added to the base price so a medium would be (+$1.00) large=(+$2.00). Thanks for any help! Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted May 10, 2007 Share Posted May 10, 2007 Try this .. In catalog/product_info.php Find ... $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'])) .') '; Replace with .. $products_options_array[sizeof($products_options_array)-1]['text'] .= $currencies->display_price(($products_options['options_values_price'] + $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])); Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
swamyg1 Posted May 14, 2007 Share Posted May 14, 2007 Try this .. In catalog/product_info.php Find ... $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'])) .') '; Replace with .. $products_options_array[sizeof($products_options_array)-1]['text'] .= $currencies->display_price(($products_options['options_values_price'] + $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])); Wow this definitely did the trick, waaaay less buggy than the Actual Attribute Price contrib. One question though, how do I put an extra blank space in front of the price? It runs right into the name of my attribute. Thanks all! Quote Link to comment Share on other sites More sharing options...
♥FWR Media Posted May 14, 2007 Share Posted May 14, 2007 $products_options_array[sizeof($products_options_array)-1]['text'] .= ' ' . $currencies->display_price(($products_options['options_values_price'] + $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])); Quote Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.