Announcement

Collapse
No announcement yet.

Actinic V8 Stock

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

    Actinic V8 Stock

    Guys/Girls

    I am after showing the current stock levels in my product page, i.e. the stock in hand value, I have seen in the advance user guide that you can show when a item is running low and give a warning i.e. Call us for availability but i want to show the current stock levels or a comment showing that if the stock is over 50 then show 50+ or if its below show the actual stock level, or any one of these.

    I.e: Over 50 Of these in stock
    or
    7 In stock

    Thanks for your help

    #2
    Entering <actinic:variable name="StockLevel" /> will display the current stock level.
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    Comment


      #3
      only logged in?

      How would you do this for only those that have logged into the site?

      Comment


        #4
        Create a condition, checking for B2B. There are a few of these already in various places, just copy them.

        Comment


          #5
          example

          I'm a newbie with this software and am trying different block if statements and nothing seems to be working. Do I need to create a new variable? and if so what.

          We only display prices if a user is logged in and I just want to display the stock the same way.

          Can you give me an example?

          Thanks ahead of time for your help.

          Comment


            #6
            Try planting this into one of your product templates

            Code:
            <Actinic:ShowForPriceSchedule Schedules="2,3,4,5" HTML='
            	<actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%3d%20%2250%22">More than 50 in stock!</actinic:block>
            	<actinic:block if="%28%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%20%2210%22%29%20AND%0d%28%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%20%2250%22%29" >Less than 50 in stock!</actinic:block>
            	<actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%2010"><actinic:variable name="StockLevel" /></actinic:block>
            ' />
            If you've got 50 or more in stock, it will tell a logged-in customer that you've got more than 50.

            If you've got less than 50 in stock but more than 10, it will tell a logged-in customer that you've got less than 50

            If you've got 10 or less, it will give the quantity remaining to the customer.

            You need to change the schedules="2,3,4... etc. so that the info is displayed to the correct customer group. Schedule 1 is retail.

            It should be easy to tweek to your requirements.

            Comment


              #7
              THANK YOU.

              This helped tremendously!

              I was able to tweek the code for my needs.

              Comment


                #8
                hi i like the sound of this feature

                would it work the same for people not logged in?

                and could it be tweaked to indicate say "back order avaliable" if stock was awaiting reordering etc
                Remembering the road to Actinic enlightenment is a long and sometimes painful one.
                Current project:
                cheapadulttoys4u.co.uk
                cheaplingerie4u.co.uk
                Something for the Missus,Something for the Weekend

                Comment


                  #9
                  I decided to use it only for those logged on. But you could easily use the the same type of thing by adding the StockLevel variable to any page you would like to display the price or to the code above just add price level 1 in with the 2,3,4,5.

                  Comment


                    #10
                    many thanks off to try it now

                    ive got the AUG version working saying phone for avaliablity
                    but i cant seem to get this working

                    sounds daft but where should i be putting this?

                    just want to check before i go dafter than i already am

                    many thanks
                    Last edited by Cheapprices4u; 21-Apr-2007, 07:57 AM. Reason: addition to comments
                    Remembering the road to Actinic enlightenment is a long and sometimes painful one.
                    Current project:
                    cheapadulttoys4u.co.uk
                    cheaplingerie4u.co.uk
                    Something for the Missus,Something for the Weekend

                    Comment


                      #11
                      It should be put into whichever product template you want to show a stocklevel on.

                      If you want it to work for all customers logged-in or not, you can do away with the <Actinic:ShowForPriceSchedule... bits altogether. i.e.

                      Code:
                      <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%3d%20%2250%22">More than 50 in stock!</actinic:block>
                      	<actinic:block if="%28%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%20%2210%22%29%20AND%0d%28%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%20%2250%22%29" >Less than 50 in stock!</actinic:block>
                      	<actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%2010"><actinic:variable name="StockLevel" /></actinic:block>
                      To change the operating perameters of the stock indicator, just double click on the "block if" in your design view and change the contents. If you were to put StockLevel <= "0", whatever text is within the block if.../block will be displayed if the stock is less than or equal to 0.

                      Comment


                        #12
                        cheers got it working
                        just a quick question is there a simple way of moving the stock to the left hand side of the text

                        eg:

                        5 in stock
                        not
                        stock 5
                        Remembering the road to Actinic enlightenment is a long and sometimes painful one.
                        Current project:
                        cheapadulttoys4u.co.uk
                        cheaplingerie4u.co.uk
                        Something for the Missus,Something for the Weekend

                        Comment

                        Working...
                        X