Plugin allows adding images for product categories and displaying them in a chosen location of the theme. Supports WEBP and SVG formats!
You can create an unlimited number of image groups to upload to categories
Add desired thumbnail sizes to groups, and they will be automatically generated after uploading an image to a category.
You can specify any size in the image request, and the thumbnail will be created automatically, even if it is not defined in the group.
They are automatically created for high pixel density screens.
Plugin supports drag-and-drop functionality for adding images.
To display a category image, add the helper to the appropriate place in the theme. The helper call passes the image URL.
{shopEwshopcimgHelper::getImage($category_id = int, $group = string, $size = string, $retina = boolean)}
Examples:
{$_image = shopEwshopcimgHelper::getImage($category["id"], "default", "64x64")} - this way you can display an image within a category loop
{$_image_2x = shopEwshopcimgHelper::getImage(3, "other", "200x0", true)} - this way you can display the @2x image of category with id = 3 from the "other" image group
The new parameter depth is not optional and defines the search depth for the category array.
{shopEwshopcimgHelper::getImages($categories = array, $group = string, $size = string, $depth = int)}
Request:
{$categories_images = shopEwshopcimgHelper::getImages($categories, "default", "120x120", 3)}
Result: flat array with key = category id, with search depth - 3 categories
37 => [
'image' => '/wa-data/public/shop/ewshopcimg/37/1/167.97063d124256fbd05.90007669_64x64.webp',
'image_2x' => '/wa-data/public/shop/ewshopcimg/37/1/167.97063d124256fbd05.90007669_64x64@2x.webp',
],
43 => [
'image' => '/wa-data/public/shop/ewshopcimg/43/1/174.97063d1257782ba47.08325660_64x64.webp',
'image_2x' => '/wa-data/public/shop/ewshopcimg/43/1/174.97063d1257782ba47.08325660_64x64@2x.webp',
]
Integration with theme is not included in the price of plugins!
| 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 | |
Designer (programmer) | Easyweb |
License | Web Systems Pro |
Version | 2024.1.0.1.wsp |
Update | 04/15/2025 |