Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Price Factor and Offset

    I have only now become aware of price-factor and offset. I don't know if I have overlooked it for a year or two, or if it wasn't there in the previous versions. (not important enough for me to check at this instant)
    What I want is to have an item priced by attribute, then have another attribute that has a price-factor of 1.1 and offset of 1 (10% upcharge).
    My problem is that it is calculating the factor from the lowest priced attribute.
    Is there a way of making it factor according to the selected attribute?
    (I'm figuring it would probably need javascript in the tpl and a change to some function.)
    Any ideas?

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

    Default Re: Price Factor and Offset

    The Attributes Price Factor is computed off of the Product Price ...

    In Priced by Attribute, there usually is no Product Price so the Attribute Price Factor has nothing to base itself off of ...
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Price Factor and Offset

    Quote Originally Posted by Ajeh
    ...In Priced by Attribute, there usually is no Product Price...
    That's right, I set the item price to $0.00
    (for a printing site)
    I then have an attribute name "Print run quantity"
    and attribute values "500","1000","2500" etc.
    then I'd do something like set "500" to $99 and "1000" to $180...

    Coating X is standard, but coating Y is 10% more.
    I set coating Y to price factor 1.1 and it showed a price of 9.90.
    So the function is aware of the $99 price. (I added it to cart, and was given a price of 108.90, so it works at least that well.) I just need to find a way of making it ... (Hold that thought, An idea just came to me. If it works I'll let everyone know.)

  4. #4
    Join Date
    Feb 2005
    Posts
    246
    Plugin Contributions
    0

    Default Re: Price Factor and Offset

    Quote Originally Posted by TecBrat
    I just need to find a way of making it ... (Hold that thought, An idea just came to me. If it works I'll let everyone know.)
    Okay, my idea put me in over my head, so I didn't make any changes. Perhaps my idea will make enough sense to a more experienced zenner who could help me out. It might help others as well.

    find the code where "(+$9.90)", the computed additional cost due to the factor, is concatenated to the name of the attribute value in the dropdown menu.
    change that to display the factor as a percent. ie 1= null, 1.1=+ 10%, 2=+100%(price would double)
    when the item is added to the cart, and the price is figured, have the function that figures the factor-to-add check the attribute price prior to computation.

    anyone care to help me on this? :-)

    I am not asking someone to code it for me, but rather point me in the right direction. If it is the same function that causes it to display, I may need to copy it and call the copy(altered to show percent) for display and then call the original(altered to check attribute price) for add-to-cart.

    I guess what I need then is the name of the function(s) and the filename(s) and approx line number(s) where it/they are called.

    I think I know the answer to this (that would be "NO.") but can the functions_*.php be overridden?

 

 

Similar Threads

  1. Concept of Price Factor and Offset
    By liizz in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 24 Jan 2011, 03:46 PM
  2. Including Attribute Price Factor In Base Price Dropdown Menu
    By rob28870 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 1 Oct 2008, 10:14 AM
  3. How to make Radio Attribute with Offset factor but not add up the price
    By maximist in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Mar 2008, 12:16 PM
  4. Quantity Discounts and Price Factor
    By rmullaney77 in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 12 Mar 2007, 03:59 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR