Technology + People + Process

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

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);

*****************************************************************************


Request for Quote

Drop us a line and we'll get in touch with you as quick as we can