Announcement

Collapse
No announcement yet.

Remove Add To Cart Button Out of Stock Suivant Theme

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

    Remove Add To Cart Button Out of Stock Suivant Theme

    I would like to hide the Add to Cart Button when an item is out of stock.

    I do track inventory.

    But when an item is out of stock, it still shows the add to cart button.

    Using a slightly modified version of the suivant theme.

    Thank you.
    Mark Romero
    ~~~~~~~~

    #2
    Hi Mark,

    You can surround your add to cart button with this IF statement:
    Code:
    <mvt:if expr="l.settings:product:inv_level NE 'out'"></mvt:if>
    Matt Zimmermann
    Front-End Development Director / Miva, Inc.

    Comment


      #3
      Originally posted by Siamese-Dream.Com View Post
      I would like to hide the Add to Cart Button when an item is out of stock.

      I do track inventory.

      But when an item is out of stock, it still shows the add to cart button.

      Using a slightly modified version of the suivant theme.

      Thank you.
      Do you have the short & long messages activated on the inventory track product screen & the defaults changed for your store's situation? I've done it globally and on each individual product item. Only the Wish List button should show up if you have the wording activated and the default options chosen. If you don't have that done but still just have the Inventory Tracked box checked, the Add to Cart button is still active (at least that is what happens on my website).



      Kathleen Steimle-Hermes
      , owner
      Miss Kate's Creations
      [email protected]
      www.misskatescreations.com


      Handcrafted fabric covered photo albums, frames, brag books and MORE


      Comment


        #4
        Originally posted by Miss Kate View Post

        Do you have the short & long messages activated on the inventory track product screen & the defaults changed for your store's situation? I've done it globally and on each individual product item. Only the Wish List button should show up if you have the wording activated and the default options chosen. If you don't have that done but still just have the Inventory Tracked box checked, the Add to Cart button is still active (at least that is what happens on my website).
        Thanks for the note, Miss Kate:

        I think I have done that but it still is showing the add to cart button.

        Home > Catalog > Inventory I have the following settings:

        Track Inventory checked

        Track Out of Stock Level checked

        Out of Stock Level: 0

        Out of Stock Message (Short): Sold Out

        Out of Stock Message (Long): Sorry, we are currently sold out of '%product_name%'. Please click the Wait List link below and you will be notified when it is back in stock.

        Then on the individual product Inventory page, I have the following settings:

        Track Product Checked

        Current Stock -2

        Track Out of Stock Level: Yes

        Hide Out of Stock Products: No

        Out of Stock Level: Default (I have tried 0 as well but it doesn't work either)

        Out of Stock Message (Short): Out of stock

        Out of Stock Message (Long): Sorry, this item is currently out of stock.
        Mark Romero
        ~~~~~~~~

        Comment


          #5
          OK, so I guess I got it figured out.

          I had to add the waitlist paramater to the prod page.

          Plus I had to use the conditional tags that Matt Suggested to remove add to cart button. But I have another question:

          If I track inventory at the variant level, will that conditional that Matt gave if only ONE of the variants is out of stock?
          Mark Romero
          ~~~~~~~~

          Comment


            #6
            Originally posted by Siamese-Dream.Com View Post
            OK, so I guess I got it figured out.

            I had to add the waitlist paramater to the prod page.

            Plus I had to use the conditional tags that Matt Suggested to remove add to cart button. But I have another question:

            If I track inventory at the variant level, will that conditional that Matt gave if only ONE of the variants is out of stock?
            Oh goodness, you've got the same problem I worked weeks on. You need to use attributes rather than the variants. The variants will only count inventory. Go to one of my website www.misskatescreations.com under Miscellaneous > Plush > Cubbies and checkout what I had to do for different sayings. I went around and around with support over this issue. Come to find out variants only tally inventory numbers. That is not clear at all in the instruction manual. I have MIVA 10 installed at this point.



            Kathleen Steimle-Hermes
            , owner
            Miss Kate's Creations
            [email protected]
            www.misskatescreations.com


            Handcrafted fabric covered photo albums, frames, brag books and MORE


            Comment


              #7
              Originally posted by Siamese-Dream.Com View Post
              OK, so I guess I got it figured out.

              I had to add the waitlist paramater to the prod page.

              Plus I had to use the conditional tags that Matt Suggested to remove add to cart button. But I have another question:

              If I track inventory at the variant level, will that conditional that Matt gave if only ONE of the variants is out of stock?
              Hi Mark,

              No, that conditional will not affect variants as that code runs on page load. With variants, the button does not get removed when out of stock.
              Matt Zimmermann
              Front-End Development Director / Miva, Inc.

              Comment

              Working...
              X