Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    4
    Plugin Contributions
    0

    help question Negative price factor not working

    Hi, I have a product (not priced by attributes) that has a base price of $20. I have an attribute with several values, each of which should reduce the base price by a certain factor.
    Here's what I have set for one of them:
    Click image for larger version. 

Name:	pricefactor.jpg 
Views:	204 
Size:	9.0 KB 
ID:	5737

    The attributes controller shows the expected price reductions properly:
    Click image for larger version. 

Name:	attribctrlr.png 
Views:	226 
Size:	10.0 KB 
ID:	5738

    as does the selector on the product page:
    Click image for larger version. 

Name:	productattrib.png 
Views:	222 
Size:	4.3 KB 
ID:	5741


    the problem is that after I have added the product to the cart, the price reduction is not shown. The expected total is $10.
    Click image for larger version. 

Name:	cart.jpg 
Views:	197 
Size:	8.9 KB 
ID:	5743

    If I change the factor so that it is no longer negative (I changed -0.5 to 0.5), it adds it in as would be expected. With the positive factor, the price shown in the cart was $30.

    Is this a bug in zen cart? Or am I doing something wrong?

  2. #2
    Join Date
    May 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Negative price factor not working

    I just wanted to point out that I know there are other ways to achieve the same thing. But if I can get this working, price changes would be much easier in the future.

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

    Default Re: Negative price factor not working

    Try instead to use:
    Price Factor: 0.5
    Offset: 1.0
    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. #4
    Join Date
    May 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Negative price factor not working

    Thanks for the reply. After finding out exactly what the Offset does, I see that this will work just fine.

    But I don't really understand what the purpose of the offset is. I'm quite likely missing the entire point of it, but from my perspective, if negative price factors did work, then the offset would not be necessary.

    In addition to that, I do not understand why negative price factors should not work anyway. The Attributes Controller does not do input validation on the field that prevents it from being negative, and it even handles them properly, as seen in my second image.

    In any case, the code changes described in my bug report do not appear to have caused any side effects, and they will allow negative price factors to work as one would assume they should.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 6 Sep 2011, 11:29 PM
  2. Replies: 17
    Last Post: 21 Mar 2010, 05:57 PM
  3. [Done v1.3.9] Negative price factor does not work
    By ctlajoie in forum Bug Reports
    Replies: 1
    Last Post: 19 May 2009, 02:44 PM
  4. Attributes Price Factor Not Showing on Cart
    By Decostyle in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 15 Apr 2009, 04:17 PM
  5. Price factor not being applied correctly
    By Stone10 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 20 Dec 2006, 02:31 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