petsk Posted December 9, 2005 Posted December 9, 2005 (edited) Hi :D I can't get these two contributions working together: Actualy Price in Pull down option menus QTpro v1.0 - Quantity Tracking Professional The actual attributes prices (instead of eg. +50 €) won't show up in product_info.php when I'm using QTPro. In includes/classes/pad_base.php 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($this->products_tax_class_id)) .')'; } Changed to: $original_price = $product_info['products_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'] != '') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($this->products_tax_class_id)) .')'; } Does anyone have a clues why it's not working? :blink: Best wishes, Peter Edited December 9, 2005 by petsk Quote
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.
Note: Your post will require moderator approval before it will be visible.