Could you post the exact settings on one of the Attributes that is not working?
Could you post the exact settings on one of the Attributes that is not working?
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!
Sure, see attached ZIP file with CSV
Thanks!
Could you perhaps make life easier on me and also supply an image of the Attributes Controller if you EDIT the Attribute that you are testing?![]()
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!
Sure, no problem.. Will these work?
http://i48.tinypic.com/2uix2za.jpg
http://i46.tinypic.com/4ktvle.jpg
Congratulations ... you found a bug!
Unfortunately, you found a bug ...
Good news ... I may already have a fix for you ...
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:
Does this magically fix the problem?Code://// // 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; }
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!
I <3 YOU!
That fixed it!
Thank you so much for taking the time to help solve the problem!!
I have one other problem you might be able to help me with?
If I set my attribute percentage in "attributes_price_factor_onetime" - it displays the correct dollar amount for the attribute on the product detail page. However, when I go to complete checkout, I get an error (see my other threads)
If I set my attribute percentage in "attributes_price_factor" - it displays the wrong dollar amount for the attribute on the product detail page. However, when you add to cart it is the correct dollar amount, and when you complete checkout you get no errors.
So, basically, I need to figure out how to display the correct dollar amount for the attribute, using "attributes_price_factor", so that everything works
Any ideas?
It could be here? /includes/modules/attributes.php
PHP Code:// collect price information if it exists
if ($products_options->fields['attributes_discounted'] == 0 && $products_options->fields['options_values_price'] == '0.0000') {
// apply product discount to attributes if discount is on
// $new_attributes_price = $products_options->fields['options_values_price'];
$new_attributes_price = zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1, '', 'false');
$new_attributes_price = zen_get_discount_calc((int)$_GET['products_id'], true, $new_attributes_price);
} else {
// discount is off do not apply
$new_attributes_price = $products_options->fields['options_values_price'];
}
A Bazzillion people and you want me to find which of your other threads relates to the problem ... work with me here and tell me which thread(s) refer to this new issue?![]()
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!
lol, sorry
http://www.zen-cart.com/forum/showthread.php?t=145749
Right now, everything works on the cart - when I add the product with attribute, it correctly adds in the cart, and checkout works without issue. I think I just need to figure out how to properly calculate the attribute cost on the detail page, because the only problem is it just displays the wrong price
I have two attributes though, to note, one is a flat charge ($350 for example) and the one that I'm having trouble with is the second attribute which calculates as a percentage of the cost of the product
If you look at this product detail page, look in the attribute drop down, you'll notice those two dollar values are not 20% and 40% as they should be
http://tinyurl.com/yf5zhwh