Brand logos

Brand logos for Shop-Script 7

The ability to add a logo to the brand

Description

Brand logos plugin for Shop-Script

Features

Shop administrators can add logo file to each brand feature and then display these images in frontend.

Specificity

Enable 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.

The showing of the brand image in the product page:

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>

The showing of the brand image in the categories, lists:

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.