Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute pricing problem

    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!

  2. #12
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing problem

    Sure, see attached ZIP file with CSV

    Thanks!
    Attached Files Attached Files

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute pricing problem

    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!

  4. #14
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing problem


  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute pricing problem

    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:

    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;
      }
    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!

  6. #16
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing problem

    I <3 YOU!

    That fixed it!

    Thank you so much for taking the time to help solve the problem!!

  7. #17
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing 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?

  8. #18
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing problem

    It could be here? /includes/modules/attributes.php

    PHP Code:
                        // collect price information if it exists
                        
    if ($products_options->fields['attributes_discounted'] == && $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'];
                        } 

  9. #19
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attribute pricing problem

    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!

  10. #20
    Join Date
    Apr 2008
    Posts
    121
    Plugin Contributions
    0

    Default Re: Attribute pricing problem

    Quote Originally Posted by Ajeh View Post
    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?
    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

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Attribute pricing problem
    By macpuppy in forum General Questions
    Replies: 2
    Last Post: 30 Jan 2011, 09:23 PM
  2. Attribute Pricing Problem
    By jvalent in forum General Questions
    Replies: 7
    Last Post: 22 Jan 2010, 11:59 PM
  3. Attribute Pricing Problem
    By GoldBuckle in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 28 Mar 2009, 06:41 PM
  4. Problem with attribute pricing when product on special
    By ekles in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2008, 11:33 AM
  5. Attribute pricing problem
    By leonardawilson in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Jul 2007, 11:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg