Announcement

Collapse
No announcement yet.

Dropdowns with blank"select one" option, not required, AND use inventory variants?

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

    Dropdowns with blank"select one" option, not required, AND use inventory variants?

    My problem is really specific... I have the default label in the dropdown hidden and replaced with just a blank select one like here
    https://www.miva.com/blog/quick-tip-...ttribute-mach/
    (We're just using labels above each attribute instead of inside the dropdown, that's why I hid the normal top option)
    On normal products it works perfectly, you can leave it on "select one" and add to cart with that option left blank. But as soon as I generate inventory variants for a product, it will gray out the add to cart button until that attribute is selected (even when it isn't required). Anyone know what could be happening?
    Thank you!

    #2
    Have you set the attributes option to say that the select contains a Select One?
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Originally posted by Matt Zimmermann View Post
      Have you set the attributes option to say that the select contains a Select One?
      Yeah it's on "Preload - Drop-Down Lists Contain Select One" and it definitely works on non-inventory variant products. Maybe it grays out add to cart because there technically isn't a variant including a blank selection?
      There might not be a way to have it work like how I want it.

      Comment


        #4
        Yes, when you do not have a valid set of attributes selected, the add to cart button will be grayed out.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment

        Working...
        X