Announcement

Collapse
No announcement yet.

Disable in stock message for some items

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

    Disable in stock message for some items

    Hi,

    I have Enable Online Stock control ticked.

    For 99% of products this is fine and shows a In stock message and changes to out of stock when falls to 0.

    For some products though I want to take orders but they are a special order, so I don't have them In Stock but still want to sell them.

    If I disable Stock monitoring next to the product then I still have an In Stock message showing, which can cause confusion for the customer.

    How do I remove this In Stock message for non stock items?

    David
    David Sewell
    The Cotton Patch
    http://www.cottonpatch.co.uk
    http://www.rotarycuttershop.co.uk

    #2
    There might be an easier way but I'd just create a modified layout template for those products that didn't have the stock display message in it.

    Or if you want a common product layout you could use a blockif around the stock display message to check if stock control is enabled or not.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    Comment


      #3
      Thanks Mike,

      I have managed to create a modified layout for the spp layout, but when you are viewing the section product list it is still showing, so I'll have to experiment with a block if. Not quite sure how to do it on if enabled, but will have a search.
      David Sewell
      The Cotton Patch
      http://www.cottonpatch.co.uk
      http://www.rotarycuttershop.co.uk

      Comment


        #4
        If following Mike's solution, the variable IsStockMonitored could be used in a Condition.
        E.g.
        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e">
        this shows only if stock is monitored
        </actinic:block>
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Norman, many thanks that is great. Works a treat.

          Getting more familiar with blockifs but that would have taken me some time to figure out.

          David
          David Sewell
          The Cotton Patch
          http://www.cottonpatch.co.uk
          http://www.rotarycuttershop.co.uk

          Comment

          Working...
          X