I have been looking at ways to allow pre orders of products that are out of stock and also show customers a stock status (not stock level EG: 4 in stock) so for example if i have an item which has plenty of stock simply display In Stock, if i have an item which is down to 1 in stock i wanted display Limited Stock and if the product was out of stock display Out of Stock etc etc.
what i did was add the following code:
Basically it works like this:
If stock is not monitored it will simply display: Availability: In Stock
If stock is monitored and the stock level is greater than warn if below level display: Availability: In Stock
If stock is monitored and stock level is less than the warn level but greater than the suspend level and at least 1 in stock display: Availability: Limited Stock
If stock is monitored and and stock level greater than suspend level equal to or less than 0 display: Availability: Pre Order
If stock is monitored and stock level less than or equal to suspend level display: Out of stock
My thoughts here were during busier times such as Christmas and we are out of stock of a product but know stock is arriving and how many I can set the suspend level to the quantity I know is coming and effectively take pre-orders instead of potentially loosing a sale, I can also limit the times when we have 1 in stock, 2 people order and i have to call/email a customer with the unexpected bad news albeit i still have to call/email them at least they have had a warning that the item was limited stock.
I then thought wouldn't it be good if i could expand this so if items are out of stock allow ordering but also display a stock due date and instead of an add to cart button change the button to a pre order button to try and limit the confusion for customers ordering the product and make them very aware they are pre-ordering the product.
Rather than waffle on more (as i'm sure a few of you are on your third flask of coffee by now anyway) and go through the relatively simple changes i made to do this i'll see if there is any interest in the above stock status tweak and if anyone is then interested in adding a pre order button and a stock due date before i add the details of what i did to achieve them both.
what i did was add the following code:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e%20%3d%3d%200" > </br>Availabilty: In Stock </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e%20%3d%3d%201%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%3d%20%3cactinic%3avariable%20name%3d%22StockWarningLevel%22%20%2f%3e" > </br>Availabilty: In Stock </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%200%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%20%3cactinic%3avariable%20name%3d%22StockWarningLevel%22%20%2f%3e"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e%20%3d%3d%201%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%3d%200" > <br/>Availabilty: Limited Stock </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%200%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%20%3cactinic%3avariable%20name%3d%22StockSuspendLevel%22%20%2f%3e"> <actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e%20%3d%3d%201%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3e%3d%20%3cactinic%3avariable%20name%3d%22StockSuspendLevel%22%20%2f%3e"> <br/>Availabilty: Pre Order</font> </actinic:block> </actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%200%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%20%3cactinic%3avariable%20name%3d%22StockSuspendLevel%22%20%2f%3e" > <actinic:block if="%3cactinic%3avariable%20name%3d%22IsStockMonitored%22%20%2f%3e%20%3d%3d%201%20AND%20%3cactinic%3avariable%20name%3d%22StockLevel%22%20%2f%3e%20%3c%3d%20%3cactinic%3avariable%20name%3d%22StockSuspendLevel%22%20%2f%3e" > <br/>Availabilty: Out of Stock </actinic:block> </actinic:block>
If stock is not monitored it will simply display: Availability: In Stock
If stock is monitored and the stock level is greater than warn if below level display: Availability: In Stock
If stock is monitored and stock level is less than the warn level but greater than the suspend level and at least 1 in stock display: Availability: Limited Stock
If stock is monitored and and stock level greater than suspend level equal to or less than 0 display: Availability: Pre Order
If stock is monitored and stock level less than or equal to suspend level display: Out of stock
My thoughts here were during busier times such as Christmas and we are out of stock of a product but know stock is arriving and how many I can set the suspend level to the quantity I know is coming and effectively take pre-orders instead of potentially loosing a sale, I can also limit the times when we have 1 in stock, 2 people order and i have to call/email a customer with the unexpected bad news albeit i still have to call/email them at least they have had a warning that the item was limited stock.
I then thought wouldn't it be good if i could expand this so if items are out of stock allow ordering but also display a stock due date and instead of an add to cart button change the button to a pre order button to try and limit the confusion for customers ordering the product and make them very aware they are pre-ordering the product.
Rather than waffle on more (as i'm sure a few of you are on your third flask of coffee by now anyway) and go through the relatively simple changes i made to do this i'll see if there is any interest in the above stock status tweak and if anyone is then interested in adding a pre order button and a stock due date before i add the details of what i did to achieve them both.
Comment