Show items out of stock/custom message
Posted 05 February 2010 - 12:34 AM
It would be nice to be able to show how many items there are in stock and if in case one item goes out of stock to be able to show a custom message something like "We will be restocking soon this items, please come back later"
Any ideas, please?
Posted 07 February 2010 - 11:51 PM
To do it you should uncheck the "Hide if Out Of Stock" checkbox in the Edit Product form. After that you can display the number of items in stock and the out of stock message using the following code:
<? if ($product->track_inventory && $product->in_stock > 0): ?> <p>Number of items in stock: <strong><?= $product->in_stock ?></strong></p> <? endif ?> <? if ($product->is_out_of_stock()): ?> <p> <strong>This product is temporarily unavailable</strong> <? if ($product->expected_availability_date): ?> <br/>The expected availability date is <strong><?= $product->displayField('expected_availability_date') ?></strong> <? endif ?> </p> <? endif ?>
The Expected Availability Date field has been added a couple of days ago. You can find it on the Inventory tab of the Create/Edit Product page. We will update the Demo store template soon, and it will include all added features.
Posted 10 April 2012 - 02:33 PM
No updates yet, sorry. We will try to publish this feature in version 1.0, or soon after the release.
I know you've got loads on, and I for one appreciate all the work that has gone into Lemonstand, but do you think this feature could be implemented?
My client recently has been dreaming up hacks to get this to work. Like sending people off to a subs page where they can check a box in a Campaign Monitor form. Personally I don't think it's worth hacking like that, a native Lemonstand solution would be awesome.