Hi,
This feature hasn't been added to CleanMart at all. But you can do it by a simple coding modification. Please follow the steps:
1- Open the product details' PHP file, which are right here:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/flexv2.php
FYI: There are 2 layouts: default and flexv2. Make your modifications only on the file that you are currently using.
2- You probably want to add that "In Stock Number" right above the "Add to Cart" button, so, find this line:
<div class="addtocart-area">
3- right above it, include this line:
<div class="instockNumber">
<strong>In stock:</strong> <?php echo ($this->product->product_in_stock - $this->product->product_ordered) ?>
</div>
4- (optional) with couple CSS rules, you can make that text little stands out, such as, changing its color to green, or put a margin above-below etc.. something like;
.instockNumber { color:green; margin: 10px 0;}
The result will be:
Attachment ScreenShot2016-01-15at3.17.37AM.png not found
If you like CleanMart and satisfied with the support you have received, please "write a review" on:
www.flexiblewebdesign.com/Virtuemart-2-Templates/CleanMart
Write couple of sentences to share your experience with the support team.
Just 2-3 sentences would be enough ;) It might sound simple to you, but it is extremely important. Potential customers care about product reviews very much.
Thanks in advance!
Regards,
Support