Announcement

Collapse
No announcement yet.

Show stock count

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

    Show stock count

    Is there any away to show stock count online?
    as i have limited products and i cant have customers ordering more that i have in stock.

    Its ok if just updates when I download the orders and upload the site again.

    #2
    See here and here.
    Peblaco

    Comment


      #3
      Thx for the help that works alright.

      the code is
      Code:
      <actinic:variable name="IsStockMonitored" /> AND (<actinic:variable name="StockLevel" /> < 10)
      But is there another code that variable instead of adding '10' i can show the stock level?

      Comment


        #4
        Originally posted by mogdesign View Post
        But is there another code that variable instead of adding '10' i can show the stock level?
        Any chance you can rewrite this, not sure what you are saying.

        The 3 stock level variables are available at product level, have a look in the variable list, they are easy to spot and named logically.

        Comment


          #5
          Originally posted by leehack View Post
          Any chance you can rewrite this, not sure what you are saying.

          The 3 stock level variables are available at product level, have a look in the variable list, they are easy to spot and named logically.
          What i meant is is there anyway to show the actual number of stock available.
          because it wont work for me if only shows "high stock or low stock"

          So if I put 10 then will show 10 on the product page.

          Comment


            #6
            Yes it will do that, if you locate the 3 variables as mentioned, one of those will do just that for you.

            Comment


              #7
              I'm having trouble finding the right variable.

              I tried adding like:
              Code:
              <actinic:variable name="IsStockMonitored" /> AND (<actinic:variable name="StockLevel" /> == <actinic:variable name="StockLevel" />)
              but it didn't work

              Comment


                #8
                no offence but you don't really appear to know what you're doing with the block or the variable.

                Hunt down Gabe's (gabrielcrowe) tutorial post on using blocks and maybe working through that might help

                LINK TO TUTORIALS
                Tracey

                Comment


                  #9
                  Originally posted by TraceyHand View Post
                  no offence but you don't really appear to know what you're doing with the block or the variable.

                  Hunt down Gabe's (gabrielcrowe) tutorial post on using blocks and maybe working through that might help

                  LINK TO TUTORIALS
                  Yea you are right, I'm not a programmer, I'm a designer.
                  thx for the link

                  Comment


                    #10
                    Originally posted by mogdesign View Post
                    I'm having trouble finding the right variable.

                    I tried adding like:
                    Code:
                    <actinic:variable name="IsStockMonitored" /> AND (<actinic:variable name="StockLevel" /> == <actinic:variable name="StockLevel" />)
                    but it didn't work
                    That's the kind of code you'd have within a blockif, that's not how you add variable contents to a product layout. Add the plain variables to just the product layout so you can see them working. Then try and get clever with your calculations and blockifs etc. Looks like you are trying to do a little too much at the same time, but your knowledge/understanding does not quite match that requirement yet.

                    Comment


                      #11
                      Originally posted by leehack View Post
                      That's the kind of code you'd have within a blockif, that's not how you add variable contents to a product layout. Add the plain variables to just the product layout so you can see them working. Then try and get clever with your calculations and blockifs etc. Looks like you are trying to do a little too much at the same time, but your knowledge/understanding does not quite match that requirement yet.

                      I figure it out, just had to add a new variable on the product layout:
                      Code:
                      <actinic:variable name="StockLevel" />
                      Now shows the stock on the product.

                      Comment

                      Working...
                      X