Announcement

Collapse
No announcement yet.

Miva math error? Negative attribute with discount gives less discount.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Miva math error? Negative attribute with discount gives less discount.

    We have a negative attribute on this item so the customer can save some money on not getting the part painted.

    If that customer is in a price group to get discounts they actually get LESS of a discount instead of more of a discount for some reason so there appears to be a math issue here.

    See picture. (if you don't see a picture below you're not logged into this forum)

    The 150 is actually -150 but the strikethrough makes that not apparent. The other attributes in the picture are normal positive ones.

    negative-attr.PNG

    Thoughts?
    Obviously if this is a known issue and we should not be doing it this way we can tell our client that and he can figure out a way to do it without having negative attribute values on products that get discounts. But in general there seems to be a bug/programming issue here.


    Attached Files
    Last edited by dreamingdigital; 12-10-19, 11:56 AM.
    Colin Puttick
    Miva Web Developer @ Glendale Designs

    #2
    Yea, it seems like, if an attribute has a negate value (say -100), and say a discount of 10% is applied to it, miva should be ADDING 10% to the '100' value.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Originally posted by dreamingdigital View Post
      We have a negative attribute on this item so the customer can save some money on not getting the part painted.

      If that customer is in a price group to get discounts they actually get LESS of a discount instead of more of a discount for some reason so there appears to be a math issue here.

      See picture. (if you don't see a picture below you're not logged into this forum)

      The 150 is actually -150 but the strikethrough makes that not apparent. The other attributes in the picture are normal positive ones.

      negative-attr.PNG

      Thoughts?
      Obviously if this is a known issue and we should not be doing it this way we can tell our client that and he can figure out a way to do it without having negative attribute values on products that get discounts. But in general there seems to be a bug/programming issue here.

      Hi Colin,
      I am able to reproduce what you are seeing, however im not sure that the behavior is incorrect. Because this is an attribute value and not part of the Discount subsystem it is getting treated just like any another attribute would. So all of the attribute prices and product price get added up, and then the discount is applied taking 10% off of the item total.

      In this case the Price of your negative attribute is also reduced by 10%.

      To get the “discounting attribute” to not be affected by the product percentage discount I think you would have to rework it so that all the other attributes added a positive price and the non-painted attribute just added $0.

      Or you could try setting up a different discount module to apply to that product when the specified attribute is selected so that the $150 discount is added after 10% product discount gets calculated.

      Hope this helps
      -Eric
      Eric Foresman
      Software Tester
      Miva Merchant
      http://www.mivamerchant.com/
      [email protected]

      Comment


        #4
        Yeah, it's acting like its a double negative...
        Leslie Kirk
        Miva Certified Developer
        Miva Merchant Specialist since 1997
        Previously of Webs Your Way
        (aka Leslie Nord leslienord)

        Email me: [email protected]
        www.lesliekirk.com

        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

        Comment


          #5
          minus minus a minus is more minus. :)
          anyways, yes, we can try and convince the client to not have negative attributes but they give the shopper such satisfaction - save $$!
          Colin Puttick
          Miva Web Developer @ Glendale Designs

          Comment


            #6
            Originally posted by dreamingdigital View Post
            minus minus a minus is more minus. :)
            anyways, yes, we can try and convince the client to not have negative attributes but they give the shopper such satisfaction - save $$!
            hmm, but its not (minus minus a minus), this is a percentage discount so its (minus X 0.9) which = less minus. right? or am i mathing wrong?

            -Eric
            Eric Foresman
            Software Tester
            Miva Merchant
            http://www.mivamerchant.com/
            [email protected]

            Comment


              #7
              It's whatever the source code for that section says. Feel free to post it. :)
              Colin Puttick
              Miva Web Developer @ Glendale Designs

              Comment

              Working...
              X