Brand logos plugin for Shop-Script
FeaturesShop administrators can add logo file to each brand feature and then display these images in frontend.
SpecificityEnable the plugin in settings, select the feature which you want to add logos and upload images for each value of the feature.
To output the brand logo in shop frontend paste in the product template the following code:
{shopBrlgsPlugin::displayProductBrandLogo($product.id)} - as a method parameter it is necessary to specify the product id.
Add a call to the plugin in the right place in the product.html file as shown below:
<div class="corner top left">
{shopBrlgsPlugin::displayProductBrandLogo($product.id)}
</div>
You need to edit the template that generates the product lists. In the basic themes of Shop-Script is used for this list-thumbs.html template. Add the next code:
{$product_brand_logos = shopBrlgsPlugin::displayProductListBrandLogos($products)}
Warning: This code should be added above the code with foreach loop:
{foreach $products as $p}
Then inside the foreach add the next:
<div class="corner top left">{$product_brand_logos[$p.id]}</div>
The pictures show the principle and the approximate location of the calling plugin can be added to template files of basic design theme Custom. In other themes the plugin is installed the same way.