
Originally Posted by
HeleneWallis
It is actually picking up the prices correctly and showing them in the shopping cart, just not on the product display, if that's any help in figuring it out.
Try (on a test site, I might have also changed something else and forgot):
in includes/modules/attributes.php insert after line 169:
if ($_SESSION['customer_whole'] = '0') {
and then insert after the neew line 173:
} else {
$new_attributes_price = $products_options->fields['options_values_price_w'];;
}
so now lines 169-177 look like this:
PHP Code:
if ($products_options->fields['attributes_discounted'] == 1) {
if ($_SESSION['customer_whole'] = '0') {
// apply product discount to attributes if discount is on
$new_attributes_price = zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1, '', 'false', $products_price_is_priced_by_attributes);
//$new_attributes_price = zen_get_discount_calc((int)$_GET['products_id'], true, $new_attributes_price);
} else {
$new_attributes_price = $products_options->fields['options_values_price_w'];;
}
} else {
IMPORTANT!! - This isn't a complete fix! There are certain pricing scenarios this is not factoring for such as the next section down in that file 'discount is off do not apply'.
Bookmarks