Announcement

Collapse
No announcement yet.

Default inventory message trumps message on inventory variant

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

    Default inventory message trumps message on inventory variant

    I've got products that have varying inventory levels using the inventory variants "edit inventory" tab.

    I've got "track product" selected for all the auto-created variant products and inventory is being displayed (or hidden) correctly.

    However, the "In Stock" inventory message (which is set in my default inventory settings in the Miva Merchant left-hand navigation is overriding any individual in stock message that I enter for a particular inventory variant product.

    Is this a bug? Why does My store's default instock inventory message trump the variant product's instock inventory message?

    #2
    Re: Default inventory message trumps message on inventory variant

    Make sure you made your Template Edits (assuming this is an upgrade) to include these (and that they're configured):

    Inventory Element: inventory-message

    See the posts on Template Changes for PR7 that you have to do by hand. Unless you've got that setup it won't alter your message.
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Default inventory message trumps message on inventory variant

      This was a clean install, built from scratch. Perhaps I deleted something while editing templates after the clean install. I'll doublecheck.
      Last edited by skepticwebguy; 02-07-11, 11:06 AM.

      Comment


        #4
        Re: Default inventory message trumps message on inventory variant

        Ok, BTW this should now be posted in the normal 5.5 forum as there's no active Beta's.

        I'm going to move the thread.
        Thanks,

        Rick Wilson
        CEO
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          Re: Default inventory message trumps message on inventory variant

          I've got the following in my PROD (Product Display) page (in head):

          Code:
          <mvt:item name="attributemachine" param="head" />
          then, after closing head:

          Code:
          <mvt:item name="attributemachine" param="body" />
          I've got this in my PROD page under 'Product Display Layout" tab:

          Code:
          <mvt:if expr="l.settings:product:inv_active">
          &mvt:product:inv_long;
          </mvt:if>
          Products with attributes (i.e. sizes and colours) are displaying correctly according to the inventory levels I've set for the variants. For instance, if we're out of black in size medium, then size medium doesn't show up as an option when black is selected. So, that works fine.

          But, when I adjust the "inventory" tab settings for a particular product variant (i.e. for the black, large tshirt), the inventory message still says "In stock" (which is my default In Stock inventory message controlled by the master inventory setting in the left-hand navigation) even though I've typed "Test Test" in the long inventory message for the product variant.
          Last edited by skepticwebguy; 02-07-11, 11:51 AM.

          Comment


            #6
            Re: Default inventory message trumps message on inventory variant

            Yeah it looks like your missing the div id I mentioned, here's the default template:

            Code:
            <div id="inventory-message">
            		<mvt:if expr="l.settings:product:inv_active">
            		&mvt:product:inv_long;
            		</mvt:if>
            Thanks,

            Rick Wilson
            CEO
            Miva, Inc.
            [email protected]
            https://www.miva.com

            Comment


              #7
              Re: Default inventory message trumps message on inventory variant

              Originally posted by Rick Wilson View Post
              Yeah it looks like your missing the div id I mentioned, here's the default template:

              Code:
              <div id="inventory-message">
              		<mvt:if expr="l.settings:product:inv_active">
              		&mvt:product:inv_long;
              		</mvt:if>
              Nope. It's there. I just didn't cut and paste the whole thing. I added <p> tags to mine. Though, I don't see what difference the div makes, since there doesn't seem to be any css in the PR7 stylesheet that references an ID of "inventory-message". Besides, AN inventory message is showing up. It's just the default short one instead of the product variant long one that is supposed to be showing up.

              Code:
              	<div id="inventory-message">
              		<p><mvt:if expr="l.settings:product:inv_active">
              		&mvt:product:inv_long;
              		</mvt:if></p>
              	</div>
              Here's my source code from the page displayed in a browser:
              Code:
              <div id="inventory-message">In Stock</div>
              Last edited by skepticwebguy; 02-07-11, 11:58 AM.

              Comment


                #8
                Re: Default inventory message trumps message on inventory variant

                The div is what tells the JS where to substitute the info from the variable. It's controlled under your Attribute Inventory tab on your PROD (or any other page using it) page.

                I would suggest checking with support.
                Thanks,

                Rick Wilson
                CEO
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment


                  #9
                  Re: Default inventory message trumps message on inventory variant

                  Even if I set the PROD Display, Product Attribute Template, and Product Display Layout to "original" and update, the short default "In Stock" message is still shown, trumping the long In Stock message that I've set for a particular product variant. And, if I uncheck the "track inventory" on my master inventory (link in left-hand navigation) then attribute machine doesn't work at all.
                  Last edited by skepticwebguy; 02-07-11, 12:15 PM.

                  Comment


                    #10
                    Re: Default inventory message trumps message on inventory variant

                    Originally posted by Rick Wilson View Post
                    The div is what tells the JS where to substitute the info from the variable. It's controlled under your Attribute Inventory tab on your PROD (or any other page using it) page.

                    I would suggest checking with support.
                    For years, I got free support from Miva Merchant. I would fill out a ticket and someone would respond. Then, one day, that all stopped. I was told that I had to pay for service now. When I pointed out that I had been getting free service for years, I was told that that was a mistake and that I shouldn't have been getting free service all along.
                    Last edited by skepticwebguy; 02-07-11, 12:36 PM.

                    Comment


                      #11
                      Re: Default inventory message trumps message on inventory variant

                      They are correct, you shouldn't have been getting free support all that time. At the cost of our licenses it would be impossible to provide unlimited free support to everyone.

                      One other thing you can try to see if it's something on the page template. Roll the page template back to stock (you can revert it back to your customizations afterward) and see if it works as you'd expect.

                      That should narrow it down to being either a setting that's screwed up, a broken page template or something else entirely.
                      Thanks,

                      Rick Wilson
                      CEO
                      Miva, Inc.
                      [email protected]
                      https://www.miva.com

                      Comment


                        #12
                        Re: Default inventory message trumps message on inventory variant

                        Originally posted by Rick Wilson View Post
                        One other thing you can try to see if it's something on the page template. Roll the page template back to stock (you can revert it back to your customizations afterward) and see if it works as you'd expect. That should narrow it down to being either a setting that's screwed up, a broken page template or something else entirely.
                        I mentioned that I rolled the PROD page back at 12:14 PM. It still showed the master "In Stock" message despite that I had set a custom short and long 'in stock' message at the product variant level. And, this is using the "original" settings across all PROD display and layout templates.

                        It should be a BIG clue that it's the short master In Stock inventory message that is showing up even though the PROD "Product Display Layout" page is set to display the long inventory message:
                        Code:
                        &mvt:product:inv_long;

                        Comment


                          #13
                          Re: Default inventory message trumps message on inventory variant

                          Well this isn't happening across the board, so unless someone else jumps in, I would suggest:

                          a) Checking with your host to see if they can troubleshoot it in lieu of our support

                          or

                          b) Signing up for support
                          Thanks,

                          Rick Wilson
                          CEO
                          Miva, Inc.
                          [email protected]
                          https://www.miva.com

                          Comment


                            #14
                            Re: Default inventory message trumps message on inventory variant

                            Weird. This raises the question for me:

                            Why does 'track inventory" have to be ON store-wide in order for product inventory variants to work? Turning it off under STORE > Inventory (which is what I have been calling the default master inventory setting in the left navigation) makes it so that none of my inventory variants work correctly in the store.

                            Seems to me that I should be able to have the default "track inventory" unchecked in Store > Inventory, and then just turn on "Track Inventory" on ALL the product variants that get auto-created. But, that doesn't work at all.

                            Comment


                              #15
                              Re: Default inventory message trumps message on inventory variant

                              That's how it's supposed to work, it's like a master on/off switch for that feature.
                              Thanks,

                              Rick Wilson
                              CEO
                              Miva, Inc.
                              [email protected]
                              https://www.miva.com

                              Comment

                              Working...
                              X