Announcement

Collapse
No announcement yet.

Quantity Limits by Miva

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

    Quantity Limits by Miva

    The How To Guide for the Quantity Limits is okay but it could really use some better examples of how (and where) to best place the functions shown much like the MM10 Template Changes page.

    To say the least, the module isn't working and yes the Item quanlimits is assigned
    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

    #2
    One thing I noticed in the brief glance is that the functions parameters are dependent on the screen (and location possibly) being used. So, test those first (i.e., <!-- &mvt:group:id; --> etc)

    Also test the outputs:

    Max Quantity: &mvte:product:limits:max_quan;
    Min Quantity: &mvte:product:limits:min_quan;

    Some other duhs...

    the mvt item inside the correct foreach (on bask or ctgy)
    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 Bruce - PhosphorMedia View Post
      One thing I noticed in the brief glance is that the functions parameters are dependent on the screen (and location possibly) being used. So, test those first (i.e., <!-- &mvt:group:id; --> etc)

      Also test the outputs:

      Max Quantity: &mvte:product:limits:max_quan;
      Min Quantity: &mvte:product:limits:min_quan;

      Some other duhs...

      the mvt item inside the correct foreach (on bask or ctgy)
      Sort of missed the point - it would be better to have examples of the code similar to how it's outlined in the template update examples. This module sort of reminds me of Bill's stuff but at least Bill would show where and how to implement the required code to make the module work.

      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


        #4
        oh, i agree...i was trying to help you get it working :)
        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


          #5
          I placed these on the PROD page in the Header (since I don't know where it should go)

          Max Quantity: &mvte:product:limits:max_quan;
          Min Quantity: &mvte:product:limits:min_quan;

          It displayed the correct amounts but nothing prevented me from adding more than the max to the basket.

          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


            #6
            Originally posted by lesliekirk View Post

            It displayed the correct amounts but nothing prevented me from adding more than the max to the basket.
            It allows me to add however many I want to the basket, but it won't let me check out with any more than the quantity limit allows. I believe it's designed that way.

            Comment


              #7
              Yes, there doesn't seem to be any javascript/jquery which would be needed to work on the product page. I presume you'd use the values from

              Max Quantity: &mvte:product:limits:max_quan;
              Min Quantity: &mvte:product:limits:min_quan;

              In a script that displayed a message when quantities selected did match. At the very least, you could use these variables to display a message.

              [code]


              <mvt:if expr="l.settings:limits_max_quan AND l.settings:limits_min_quan">
              You must order between &mvt:limits_min_quan; AND &mvt:limits_max_quan;.
              <mvt:elseif expr="l.settings:limits_max_quan AND NOT(l.settings:limits_min_quan">
              Sorry, this product is limited to &mvt:limits_max_quan; items.
              <mvt:elseif expr="NOT(l.settings:limits_max_quan) AND (l.settings:limits_min_quan">
              You must order at least &mvt:limits_min_quan;.
              </mvt:if>

              [/code/]
              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


                #8
                There are two places the module validates the min/max:

                1. When the customer submits OCST (bill to ship to page)
                2. On the AUTH action which is the final action to process the payment

                If either of these fail it will redirect the custom back to the Basket page with an error message.

                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment


                  #9
                  Originally posted by Brennan View Post
                  There are two places the module validates the min/max:

                  1. When the customer submits OCST (bill to ship to page)
                  2. On the AUTH action which is the final action to process the payment

                  If either of these fail it will redirect the custom back to the Basket page with an error message.
                  Well, it needs to stop them on the page they are trying to add from the Product Page, the Category Page, or trying to increase at the BASK screen. Stopping someone once they have added all this to their cart, started the checkout process, and then are told "OOOPS you have too much in your cart" is only going to piss the customer off...
                  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


                    #10
                    Originally posted by kat_oakos View Post

                    It allows me to add however many I want to the basket, but it won't let me check out with any more than the quantity limit allows. I believe it's designed that way.
                    Yeah, I see this. It's definitely NOT what the store owner wanted. He thought he did something wrong when he installed it.
                    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


                      #11
                      As previously mentioned, you can get what you want with some additional javascript/jquery. That being said, I believe Scot of Scotsscripts.com has a module (don't believe its listed) that does this which might be less than a custom js/jquery. My guess would be $40/$60 to hire out. Less if you can get just some js jockey to create the script and you plug in the variables from Miva. Might also find something on stackoverflow and other places.
                      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

                      Working...
                      X