CyberStore Documentation
New And Modified Widgets
In This Topic

The following CyberStore e-commerce Widgets have been added or modified in the 2.20 release:

New Widgets

The following Controls have been added to CyberStore in this version:

Modified Widgets

The widget markup for the following controls have been modified in this version.

If you use the standard CyberStore widgets within your web store, these are automatically updated with your installation of version 2.20. However, if you have a custom version of any of the widgetslisted, you must make the following changes to the markup to maintain full functionality. For the markup of each widget, you only need to adjust the text from version 2.19 that changes in version 2.20, as listed below. The placement of that text within the markup and the surrounding text remain the same.

Modified Widget

Classification

Description of Modification
Items_TileListing Widget

Recommended

Purpose: Enable display of search results limited to a specified search category.

Modification: Change only the text within the widget markup that differs from version 2.19 to 2.20, as shown below:

Modify the GetSearchParameters function in Items_TileListing.html, updating the SearchCategoryID property as follows:

  • From 2.19:
         var PARAMS = {
            SearchString: (QueryString['SearchStr'] != null) ? QueryString['SearchStr'] : '',
            SearchCategoryID: widgetOptions.overrideCategoryList || PAGE_CATEGORY,


    To 2.20:
        var hasSCID = (QueryString['SCID'] != null && QueryString['SCID'] !== undefined && !isNaN(QueryString['SCID']));
        var PARAMS = {

                SearchString: (QueryString['SearchStr'] != null) ? QueryString['SearchStr'] : '',

                SearchCategoryID: widgetOptions.overrideCategoryList || ((hasSCID)

                    ? parseInt(QueryString['SCID'])

                    : PAGE_CATEGORY),

Implementer's Note:

If you have custom versions of the above modified widget Files in your Site/Widgets folder, please compare them with their released versions in the /ecommerce/Widgets folder for compatibility.