"Featured Products of Category" plugin generates and displays lists of favorite products for a given category. The functionality of plugins is similar to the dynamic lists built into the Shopy-Script application, but product selection for the list is made from the current or specified category, not from all store products.
Displaying a list above the main product list in a category helps draw customer attention to new products, best-selling items, discounted offers on products within the category being viewed by a potential customer.
Lists are created without sorting parameters and category filters, even if the visitor has set them.
The maximum number of products per list is defined in the plugins settings. Avoid unnecessarily large numbers; 6-12 products per list will be sufficient. The actual number of products displayed may be less than specified if the category does not contain enough products. The list can even be empty.
Plugin generates four types of lists:
The embedded theme includes three variables, two of which - wa_theme_url and wa_theme_path - are similar to the template variables of the main application themes. They can be used, for example, to include a standard template from the project theme for displaying lists, typically list-thumbs.html or list-thumbs-mini.html. This can help unify the appearance with other parts of the theme.
The embedded theme also passes the lists variable as an associative array with list identifiers as keys and products as values.
Allowed keys are: newest, top_rated, top_selling and best_buys.
array(
'newest' => array(/* product array */),
'top_rated' => array(/* product array */),
'top_selling' => array(/* product array */),
'best_buys' => array(/* product array */)
);
Each list has the same format as the product array in a category or product list.
The built-in theme is displayed at the location defined by the frontend_category hook. In the plugins settings, you can optionally specify that the theme is shown only on the first category page if you use pagination. You can also completely disable hook handling.
If you want to display the result of plugins using the built-in theme in any location on the category page, you can use the method shopFeaprocatPlugin::render($category_id), replacing $category_id with the category ID (it can be different from the current one, but why would you do that?)
Example call from the category.html file:
{shopFeaprocatPlugin::render($category.id)}
You can simply retrieve the data as an array without using the built-in theme or plugin options. To do this, call the method shopFeaprocatPlugin::getProducts($options), where $options is an array with settings. The settings array format:
$options = array(
'category_id' => category_id /* Category ID. Required key */
'list_types' => array( /* Array of requested lists. The list identifier should */
'newest'=> 1, /* be the array key, and the value should be */
... /* greater than 0 */
),
'max_products' => 12, /* Maximum number of products per list, default is 12 */
'days_new' => 30 /* Limit for the "age" of new products; set */
/* 0 to disable. Default is 30 days */
)
| Technical specifications | |
Developed for | Shopy-Script |
Localization settings | English, Polish, Russian |
UI backend support | 1.3, 2.0 |
Software type | Plugin |
Free | No |
| Developer and version plugins | |
Developer | Syrnik |
License | Web Systems Pro |
Version | 1.0.0.3.wsp |
Update | 06/08/2025 |