Announcement

Collapse
No announcement yet.

Update product with conditional - select this before you can see the other options

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

    Update product with conditional - select this before you can see the other options

    This seems like a basic ecommerce functionality, but I'm not sure how to do it.

    I have a product that comes in different sizes, but also comes as flexible or rigid. I'd love for users to be able to select if it's flexible or rigid, then the appropriate sizes would be displayed.

    How do I do this?

    #2
    You can do this in Miva using Inventory Variants.

    Here is a link to a video with an example of a product using inventory variants: https://docs.miva.com/videos/using-inventory-variants

    Here is some documentation around the functionality:
    https://docs.miva.com/miva10/referen...s-and-variants
    https://docs.miva.com/miva10/referen...ating-variants

    My suggestion would be to first create the product with the all attributes and options available. Then once the product is created you can generate variants and remove the ones that are not available.

    A variant in Miva is an inactive (or active) product that is linked to a single or combination of options. This allows Miva store additional product data like inventory and images for example.

    If you the store is using a default Shadows framework the frontend will show the unavailable options greyed out. Here is a quick example I set up in my development store: https://mivalearn.mivamerchantdev.com/shirt.html
    Nicholas Adkins
    Technical Training Specialist / Miva, Inc.
    [email protected]
    https://www.miva.com/mivalearn

    Comment


      #3
      Hi Nick,

      Thanks for the explanation and your quick example but I'm using Collasus and radio buttons dont work/look the same as you have it. I've almost got it working with dropdowns, I just need to have a 'Select' option that the dropdown defaults to of zero dollars. I'm working on the live site so you can see how both rigid and flex default to the first attribute.

      https://www.imagescienceassociates.c...et-family.html

      I screenshot what's in the admin.
      Attached Files

      Comment


        #4
        What happens if you make that SELECT the default? Currently I see it's set to "No". try "Yes".
        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
          Hi Leslie!

          When I set it to default then refresh that product page you can see SELECT in the drop down for a split second and then it disappears. I also thought a negative number in the price field might have been screwing it up so I set that to zero and the same thing happens.

          Comment


            #6
            Is "SELECT" an Inventory Variant product?

            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


              #7
              Hmmm... this is my first time doing this, but I think it is NOT a Inventory Variant cause I added it AFTER generating them.

              Comment


                #8
                Originally posted by jfazar View Post
                Hmmm... this is my first time doing this, but I think it is NOT a Inventory Variant cause I added it AFTER generating them.
                In a galaxy far far away I found this tidbit from Matt Zimmermann
                On your product details page, do you have attribute machine set to accept a Select One option?
                Now I'm not sure how this might apply to your current set up but it's worth a try and maybe Matt might be able to chime in.
                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


                  #9
                  lesliekirk That could have something to do with it, although in that case the Select One is manually added to a select as the first option and not as an attribute option.


                  jfazar You could try having a set of radios, one for flexible and one for rigid, and then a select with all the options for both. Then, following Nick information, generate the variants, and remove the ones that aren't available for the initial selection.
                  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


                    #10
                    I'm looking at the Inventory Variants tab for the first time and I'm trying to wrap my head around this. I kind of understand, and the video link from above doesn't get into the removing of variants part so I'm struggling a bit. I think what I should do is try and make a new product just like Nick did with a simple t-shirt and colors, versus what I have with all my crazy naming ala OL1-1X-Flex. Maybe that will help be understand this better.

                    I've attached what it looks like in the Admin under the variants tab.
                    Attached Files

                    Comment


                      #11
                      Can someone let me know if this makes sense to set the product up like this...

                      Object Level Target (Product Name)

                      Flexibility (Attribute 1)
                      • FLEXIBLE
                      • Rigid
                      Size (Attribute 2)
                      • 0.5x
                      • 1.0x
                      • 2.0x
                      BUT how to I handle cases? A user can purchase a case with all three sizes of the rigid target, or two sizes of the rigid targets (0.5x and 1x). I think these extra cases are going to be a problem?
                      Last edited by jfazar; 03-24-23, 02:48 PM.

                      Comment


                        #12
                        Matt Zimmermann figured out how to get it to work:

                        https://www.imagescienceassociates.c...l-targets.html

                        But now I'd like to have different images for most of the variations however I'm not sure where to add images - or how to get them to change on selection.

                        Comment


                          #13
                          I figured out how to have the image change based on what's been selected which is awesome, but when I add an image to the main images tab and set it to 'Main' then it breaks it and it ONLY shows that image. I played around and removed some variants which helped, even got the main image to appear BUT when I did that it made the product able to purchased WITHOUT selecting anything. We need to have it say 'Please select a valid combination of attributes.' (and a greyed out Add to Cart button).

                          Comment


                            #14
                            jfazar If I remember correctly, setting a "main" image for the parent product and all the variants will make it so when landing on the page, there's an image and when you choose a variant, the main image changes. As long as you're not tracking inventory on the parent product, you should get the message you are referring to.
                            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


                              #15
                              Once I set all the product variant images to main, then it worked!

                              Comment

                              Working...
                              X