How to show inventory status in shopping cart.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Here is how it looks.
http://imgur.com/Wj3HH9E

Here is the tiny bit of code to do it:

Nop.Web.Controllers.ShoppingCartModel

Line 80 public string StockAvailability { get; set; }


Nop.Web.Controllers.ShoppingCartController

Line 461 StockAvailability = sci.Product.FormatStockMessage(_localizationService)


OrderSummary.cshtml


<div class="stocklevel">
   <strong> @T("ShoppingCart.StockLevel"):</strong> @item.StockAvailability
</div>


And you need a value for "ShoppingCart.StockLevel" in language strings.

Nop Team, Please add this to the next release...

This is such an obvious need, it should have been there versions ago.
9 years ago
Nice feature indeed. But make it a setting since I do not require it. It can be a new feature.
9 years ago
~I did this in my store (2.8) and submitted code for inclusion in 3.0 a way back though it was not adopted.

You can see the changes I made in the fork https://nopcommerce.codeplex.com/SourceControl/network/forks/muns/DisplayStockLevels/changeset/9358dae312c4
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.