Inventory Element Inventory Level on SRCH screen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lesliekirk
    Super Moderator











    • Aug 2008
    • 9295

    #1

    Inventory Element Inventory Level on SRCH screen

    I have searched and searched trying to find all the pieces for this puzzle. Trying to implement the Inventory Message for the Inventory Variants on the SRCH screen.

    I have enabled the Attribute Machine
    I have added <mvt:item name="attributemachine" param="head" /> to the head tag
    I have added <mvt:item name="attributemachine" param="body" /> in the body, below the <mvt:item name="search_results" />
    In the Search Results Layout tab, I have added
    Code:
    <div id="inventory-message">
            <mvt:if expr="l.settings:product:inv_active">
            &mvt:product:inv_long;
            </mvt:if>
    </div>
    but I think it might be wrong and this is why I've been searching through the forums to try and figure out this and the next part.

    I have added inventory-message in the Inventory Element field.

    I have made sure the variants have levels set.

    I am still getting the "out of stock" message that would display for the Master Product level.

    What is missing here?

    Leslie
    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: X | Facebook | Pinterest
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    Re: Inventory Element Inventory Level on SRCH screen

    Any time you have multiple instances of attribute machine on a page such as CTGY or SRCH you need to add the product id as a unique identifier to each of the attribute machine required elements.

    main_image_%product_id%
    thumbnails_%product_id%
    closeup_div_%product_id%
    closeup_image_%product_id%
    closeup_close_%product_id%

    The in the page template make sure you do the same when when defining the divs on the page.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • lesliekirk
      Super Moderator











      • Aug 2008
      • 9295

      #3
      Re: Inventory Element Inventory Level on SRCH screen

      Okie dokie - I have inventory-message_%product_id% in the Inventory Element

      What do I put in the div tag?
      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: X | Facebook | Pinterest

      Comment

      • Brennan
        Super Moderator









        • Jun 2009
        • 3481

        #4
        Re: Inventory Element Inventory Level on SRCH screen

        They would look like this:

        <div id="thumbnails_&mvte:product:id;" ></div>
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment

        • lesliekirk
          Super Moderator











          • Aug 2008
          • 9295

          #5
          Re: Inventory Element Inventory Level on SRCH screen

          Thanks, I added the _&mvte:product:id; but I'm still getting an out of stock message. I'm wondering it it's because only one product ID is shown (in the div tag)? How does it "know" to check the product ID's of the other variants?
          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: X | Facebook | Pinterest

          Comment

          • Brennan
            Super Moderator









            • Jun 2009
            • 3481

            #6
            Re: Inventory Element Inventory Level on SRCH screen

            It should only need the product id of the master product. That should allow attribute machine to initialize for that product.

            It will only show the variant inventory message when a variant is selected. You actually have the attributes on the category/search page for the customer to select or Miva will never know what variant to get the inventory message for.

            Here is an example with swatches (not inventory). Attribute Machine is being used to change the images based on which swatches you select.

            It's not Rocket Science. It's Pocket Science! We started with vests and now we use our Pocket Science in jackets, hoodies and so much more!


            Actually... now that I think about it further, the inventory message is always pulled from the master product. You won't be able to pull the variant inventory message, but you should be able to display the In Stock or Out of Stock and the quantity on hand of each variant.
            Brennan Heyde
            VP Product
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment

            • lesliekirk
              Super Moderator











              • Aug 2008
              • 9295

              #7
              Re: Inventory Element Inventory Level on SRCH screen

              Originally posted by Brennan View Post
              Actually... now that I think about it further, the inventory message is always pulled from the master product. You won't be able to pull the variant inventory message, but you should be able to display the In Stock or Out of Stock and the quantity on hand of each variant.
              But to do so - it would still need to have the attributes actually on the SRCH page?
              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: X | Facebook | Pinterest

              Comment

              • Brennan
                Super Moderator









                • Jun 2009
                • 3481

                #8
                Re: Inventory Element Inventory Level on SRCH screen

                how else would you display the variant inventory? Do you want to list all attributes and inventory levels on CTGY/SRCH?
                Brennan Heyde
                VP Product
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment

                • lesliekirk
                  Super Moderator











                  • Aug 2008
                  • 9295

                  #9
                  Re: Inventory Element Inventory Level on SRCH screen

                  Nope
                  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: X | Facebook | Pinterest

                  Comment

                  Working...
                  X