Congratulations ... you found a bug! :clap:
Unfortunately, you found a bug ... :blink:
Good news ... I may already have a fix for you ... :flex:
Try a test, and edit the files:
/includes/functions/functions_prices.php
/admin/includes/functions_prices.php
find the function zen_get_attributes_price_factor ... and make the following change:
////
// return attributes_price_factor
function zen_get_attributes_price_factor($price, $special, $factor, $offset) {
// if (ATTRIBUTES_PRICE_FACTOR_FROM_SPECIAL =='1' and $special) {
if ($special) {
// calculate from specials_new_products_price
$calculated_price = $special * ($factor - $offset);
} else {
// calculate from products_price
$calculated_price = $price * ($factor - $offset);
}
// return '$price ' . $price . ' $special ' . $special . ' $factor ' . $factor . ' $offset ' . $offset;
return $calculated_price;
}
Does this magically fix the problem?
Carefully test this as I have not fully tested this yet ... and let us know if this fixes the One Time Factor on your attributes when using a Special on the Product ...
Linda McGrath
If you have to think ... you haven't been zenned ...
**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!