How to Display the available item numbers of the product option in Kentico

To display the number of available items of the product option you have to modify the ProductOptionSelector control
Process of Displaying the available item Numbers:
1) Open <your project>\App_Code\CMSModules\Ecommerce\ProductOptionSelector.cs file
2) Find line about 431 - item.Text += " (" + preffix + formattedPrice + ")"; here you can add the number of available items.
3) You can get it using this piece of code:
int items = ValidationHelper.GetInteger(row["SKUAvailableItems"], 0);
- My ASP.NET Application
We use cookies to provide the best possible browsing experience to you. By continuing to use our website, you agree to our Cookie Policy