Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Show All Brands Logos Of Frontpage Rate Topic   * * * * * 1 votes

 
  • Onkel_Sid
  • Junior Member
  • Members
  • Join Date: 04-Sep 10
  • 301 posts

Posted 29 April 2014 - 08:41 AM #1

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?

Stop smoking start vaping: Dampskyen.no


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1267 posts

Posted 29 April 2014 - 09:19 AM #2

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 design/themes/[SKIN_NAME]/templates/addons/my_changes/overrides/blocks/our_brands.tpl
{assign var="obj_prefix" value="`$block.block_id`000"}
{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}
<div id="scroll_list_{$block.block_id}">
	{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}
	<ul class="text-links text-links-inline">
	{foreach from=$brands item="brand" name="for_brands"}
		<li>
			{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}
			<a href="{"product_features.view?variant_id=`$brand.variant_id`"|fn_url}">{$object_img nofilter}</a>
		</li>
	{/foreach}
	</ul>
</div>

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

I hope that helps,

---
Valentin
part of hungryweb.net

 
  • Onkel_Sid
  • Junior Member
  • Members
  • Join Date: 04-Sep 10
  • 301 posts

Posted 29 April 2014 - 03:11 PM #3

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):

Posted Image

Stop smoking start vaping: Dampskyen.no


 
  • Hungryweb
  • Senior Member
  • Authorized Reseller
  • Join Date: 10-Feb 12
  • 1267 posts

Posted 05 May 2014 - 04:53 AM #4

#please add content
{assign var="obj_prefix" value="`$block.block_id`000"}
{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}
<div id="scroll_list_{$block.block_id}" class="hw-brands">
		{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}
		<ul>
		{foreach from=$brands item="brand" name="for_brands"}
				<li>
						{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}
						<a href="{"product_features.view?variant_id=`$brand.variant_id`"|fn_url}">{$object_img nofilter}</a>
				</li>
		{/foreach}
		</ul>
</div>

#add css:
.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 :
.hw-brands ul li{ min-height:120px }

I hope that helps,

---
Valentin
part of hungryweb.net

 
  • almondjjoy
  • Member
  • Members
  • Join Date: 27-Feb 10
  • 170 posts

Posted 09 July 2014 - 03:58 AM #5

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

 
  • Mongoose
  • Senior Member
  • Members
  • Join Date: 08-Mar 13
  • 999 posts

Posted 18 July 2014 - 12:12 PM #6

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

running CS Cart V4.10.3.SP1 


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20913 posts

Posted 18 July 2014 - 12:47 PM #7

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


Try to disable the "HiDPI displays support" module. Hope that helps.
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • Mongoose
  • Senior Member
  • Members
  • Join Date: 08-Mar 13
  • 999 posts

Posted 12 August 2014 - 12:03 PM #8

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


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.

running CS Cart V4.10.3.SP1 


 
  • TTapio
  • Advanced Member
  • Members
  • Join Date: 21-Jun 18
  • 52 posts

Posted 24 July 2020 - 08:02 AM #9

.

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


* CS-Cart Ultimate 4.11.2 on Dedicated Server

* 28+ Storefronts.......and decreasing...sadly

  (5 moved to other carts)