Show All Brands Logos Of Frontpage

Anyone know if it is possible (and how) to get the brands-block to show all logos on the frontpage, and not just a scrolling list.



Or if there is an addon somewhere that can do this?

Hi @Onkel_Sid,

You need to override actual scrolling list .tpl, for this you need My Changes add-on enabled



#add the code bellow to file [color=#ff0000]design/themes/[SKIN_NAME]/templates/addons/my_changes/overrides/blocks/our_brands.tpl[/color]

```php

{assign var=“obj_prefix” value=“$block.block_id000”}

{assign var=“delim_width” value=“50”}

{math equation=“delim_w + image_w” assign=“item_width” image_w=$block.properties.thumbnail_width delim_w = $delim_width}

{assign var=“item_qty” value=$block.properties.item_quantity}


{assign var="image_h" value=$block.properties.thumbnail_width}
{assign var="text_h" value="65"}
{math equation="item_qty + image_h + text_h" assign="item_height" image_h=$image_h text_h=$text_h item_qty=$item_qty}

    {foreach from=$brands item="brand" name="for_brands"}

  • {assign var="obj_id" value="scr_`$block.block_id`000`$brand.variant_id`"}
    {include file="common/image.tpl" assign="object_img" class="grayscale" image_width=$block.properties.thumbnail_width image_height=$block.properties.thumbnail_width images=$brand.image_pair no_ids=true}
    {$object_img nofilter}

  • {/foreach}


```

Will be listed inline, if you need otherwise please let me know

I hope that helps,

---
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Thanks so much for your help, Valentin. That looks very nice. Any chance you can get the code to show 7-9 logos per row horizontally - kind of like this: (see pic):



#please add content

```php

{assign var=“obj_prefix” value=“$block.block_id000”}

{assign var=“delim_width” value=“50”}

{math equation=“delim_w + image_w” assign=“item_width” image_w=$block.properties.thumbnail_width delim_w = $delim_width}

{assign var=“item_qty” value=$block.properties.item_quantity}


{assign var="image_h" value=$block.properties.thumbnail_width}
{assign var="text_h" value="65"}
{math equation="item_qty + image_h + text_h" assign="item_height" image_h=$image_h text_h=$text_h item_qty=$item_qty}

    {foreach from=$brands item="brand" name="for_brands"}

  • {assign var="obj_id" value="scr_`$block.block_id`000`$brand.variant_id`"}
    {include file="common/image.tpl" assign="object_img" class="grayscale" image_width=$block.properties.thumbnail_width image_height=$block.properties.thumbnail_width images=$brand.image_pair no_ids=true}
    {$object_img nofilter}

  • {/foreach}


```

#add css:```php
.hw-brands ul,
.hw-brands ul li{ margin:0; padding:0; overflow:hidden; list-style:outside one none }
.hw-brands ul li{ display:block; float:left; text-align:center; width:11.11%; margin-bottom: 15px }
```

#add min-height to cell :```php
.hw-brands ul li{ min-height:120px }
```

I hope that helps,

---
Valentin
[color=#808080][size=2]part of hungryweb.net[/size][/color]

Is there a step by step manual to show how to add brands to a page. It doesn't need to scroll for me. I would just like to list them in multivendor 4.

Any help is appreciated.



Thanks

AlmondJoy

Just plain curiousity of mine, Valentin, how is it or how can it be that when I add new product images my self, these images appear to be so much smaller of the originals that are in place with just about any template that is shipped with CS-Cart ?



Kind regards

[quote name='Webmaster_at_Mungotedo' timestamp='1405685566' post='187787']

Just plain curiousity of mine, Valentin, how is it or how can it be that when I add new product images my self, these images appear to be so much smaller of the originals that are in place with just about any template that is shipped with CS-Cart ?



Kind regards

[/quote]



Try to disable the “HiDPI displays support” module. Hope that helps.

[quote name='eComLabs' timestamp='1405687637' post='187788']

Try to disable the “HiDPI displays support” module. Hope that helps.

[/quote]



I think I know why Nik, HiDPI display depend on real higher resolution images. In order to have a decent image with hiDPI enabled I must have images of a higher resolution than just 300 x 95 or so …300 x 300 pixels would prob. do it.

.

Enable GingerCannot connect to Ginger Check your internet connection
or reload the browserDisable in this text fieldEditEdit in GingerEdit in Ginger×