<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NemoPS &#187; brands</title>
	<atom:link href="http://nemops.com/tag/brands/feed/" rel="self" type="application/rss+xml" />
	<link>http://nemops.com</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Wed, 05 Dec 2018 13:25:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>Manufacturers in alphabetical list in PrestaShop 1.7</title>
		<link>http://nemops.com/prestashop-17-alphabetical-manufacturers/</link>
		<comments>http://nemops.com/prestashop-17-alphabetical-manufacturers/#comments</comments>
		<pubDate>Tue, 07 Feb 2017 11:50:04 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[alphabetical]]></category>
		<category><![CDATA[brands]]></category>
		<category><![CDATA[manufacturers]]></category>
		<category><![CDATA[prestashop 1.7]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2975</guid>
		<description><![CDATA[<p>As we did for PrestaShop 1.5, let&#8217;s see how to turn the boring manufacturer list into an alphabetical, fancy one, for PrestaShop 1.7 Full Code to display manufacturers in an alphabetical list</p>
<p>The post <a rel="nofollow" href="http://nemops.com/prestashop-17-alphabetical-manufacturers/">Manufacturers in alphabetical list in PrestaShop 1.7</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>As we did for PrestaShop 1.5, let&#8217;s see how to turn the boring manufacturer list into an alphabetical, fancy one, for PrestaShop 1.7</p>
<p><span id="more-2975"></span></p>

	<div class="video-embed">
		<iframe width="640" height="360" src="http://www.youtube.com/embed/e5jc5Fv64D8" frameborder="0" allowfullscreen></iframe><p><a href="https://www.youtube.com/user/NemoPostScriptum/videos" rel="nofollow" title="Subscribe Post Scriptum's Youtube Channel">Subscribe Post Scriptum's Youtube Channel</a></p>	</div>
<h2>Full Code to display manufacturers in an alphabetical list</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">
 &lt;div class=&quot;all-brands&quot;&gt;
      
      &lt;ul class=&quot;letter-select clearifx&quot;&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_0&quot;&gt;#&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_A&quot;&gt;A&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_B&quot;&gt;B&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_C&quot;&gt;C&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_D&quot;&gt;D&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_E&quot;&gt;E&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_F&quot;&gt;F&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_G&quot;&gt;G&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_H&quot;&gt;H&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_I&quot;&gt;I&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_J&quot;&gt;J&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_K&quot;&gt;K&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_L&quot;&gt;L&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_M&quot;&gt;M&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_N&quot;&gt;N&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_O&quot;&gt;O&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_P&quot;&gt;P&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_Q&quot;&gt;Q&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_R&quot;&gt;R&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_S&quot;&gt;S&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_T&quot;&gt;T&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_U&quot;&gt;U&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_V&quot;&gt;V&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_W&quot;&gt;W&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_X&quot;&gt;X&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_Y&quot;&gt;Y&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href=&quot;#letter_Z&quot;&gt;Z&lt;/a&gt;&lt;/li&gt;        
      &lt;/ul&gt;

  
      &lt;div class=&quot;brands-by-letter&quot;&gt;
          {$current_letter = '#'}
          {foreach from=$brands item=brand}
            {$first_letter = $brand.name|substr:0:1}
            {if $current_letter != $first_letter}
              {if !$first_letter|in_array:['0','1','2','3','4','5','6','7','8','9']}
                {$current_letter = $first_letter|upper}
                &lt;/div&gt;
              &lt;/div&gt;
              {/if}
              
              &lt;div class=&quot;box-letter clearfix&quot; id=&quot;letter_{if $current_letter == '#'}0{else}{$current_letter|upper}{/if}&quot;&gt;
                &lt;div class=&quot;box-title&quot;&gt;{$current_letter|upper}&lt;/div&gt;
                &lt;div class=&quot;letter-content&quot;&gt;
            {/if}
            &lt;p&gt;
              &lt;a href=&quot;{$link-&gt;getManufacturerLink($brand.id_manufacturer)}&quot;&gt;{$brand.name}&lt;/a&gt;
            &lt;/p&gt;
          {/foreach}
        &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;
</pre>
<pre class="brush: css; title: ; notranslate">


.all-brands .letter-select li {
	float:left;
}

.all-brands .letter-select a {
	padding: 11px;
	font-weight: bold;
	font-size: 14px;
	display:block;
}

.all-brands .box-letter .box-title {
	width: 100%;
	display:block;
	background: #ccc;
	font-weight: bold;
	height: 40px;
	line-height: 40px;
	padding-left: 10px
}

.all-brands .box-letter .letter-content {
	line-height: 32px;
	padding-left: 10px
}

.all-brands .box-letter p {
	margin-bottom: 0;
	float: left;
	width: 25%;
}

</pre>
<p>The post <a rel="nofollow" href="http://nemops.com/prestashop-17-alphabetical-manufacturers/">Manufacturers in alphabetical list in PrestaShop 1.7</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nemops.com/prestashop-17-alphabetical-manufacturers/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Flash Tip: Brand logos to Prestashop Manufacturers/Suppliers blocks</title>
		<link>http://nemops.com/brand-logos-prestashop-manufacturers-suppliers/</link>
		<comments>http://nemops.com/brand-logos-prestashop-manufacturers-suppliers/#comments</comments>
		<pubDate>Thu, 19 Sep 2013 07:35:59 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[brands]]></category>
		<category><![CDATA[manufacturers]]></category>
		<category><![CDATA[suppliers]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=1590</guid>
		<description><![CDATA[<p>In this Flash tip we will see how to add brand logos to both the manufacturer and supplier block in Prestashop Whether you want to use Manufacturers or Suppliers to display your brands across your web store, it&#8217;s a good idea to showcase their Logos, instead of names, in the menu. Let&#8217;s see how to [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://nemops.com/brand-logos-prestashop-manufacturers-suppliers/">Flash Tip: Brand logos to Prestashop Manufacturers/Suppliers blocks</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this Flash tip we will see how to add brand logos to both the manufacturer and supplier block in Prestashop</p>
<p><span id="more-1590"></span></p>
<p>Whether you want to use Manufacturers or Suppliers to display your brands across your web store, it&#8217;s a good idea to showcase their Logos, instead of names, in the menu. Let&#8217;s see how to do it for both entities. As always, note that I&#8217;m using the default theme and your css or tpl files might differ.</p>
<div class="separator"></div>
<h2>Displaying Brand Logos in the Manufacturers block</h2>
<p>Open up <strong>blockmanufacturer.php</strong>, located in your theme&#8217;s folder <em>/modules/blockmanufacturer</em>. If this folder is not present, reach your main <em>/modules/</em> folder, then open <em>blockmanufacturer/</em> and copy <strong>blockmanufacturer.tpl</strong> in the previously mentioned location.</p>
<p>In this .tpl file, locate, at about line 35, the following code snippet:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">

&lt;li class=&quot;{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}&quot;&gt;&lt;a href=&quot;{$link-&gt;getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)|escape:'html'}&quot; title=&quot;{l s='Learn more about' mod='blockmanufacturer'} {$manufacturer.name}&quot;&gt;{$manufacturer.name|escape:'htmlall':'UTF-8'}&lt;/a&gt;&lt;/li&gt;

</pre>
<p>We want to grab the image instead of text:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">

&lt;li class=&quot;{if $smarty.foreach.manufacturer_list.last}last_item{elseif $smarty.foreach.manufacturer_list.first}first_item{else}item{/if}&quot;&gt;&lt;a href=&quot;{$link-&gt;getmanufacturerLink($manufacturer.id_manufacturer, $manufacturer.link_rewrite)}&quot; title=&quot;{l s='More about' mod='blockmanufacturer'} {$manufacturer.name}&quot;&gt;&lt;img src=&quot;{$base_dir}img/m/{$manufacturer.id_manufacturer}.jpg&quot;/&gt;&lt;/a&gt;&lt;/li&gt;

</pre>
<p><strong>Please note that the file extension might change if you use .png as your base image format in .Preferences -> Images</strong>.</p>
<p>Of course, you can hardcode the image&#8217;s max width according to your layout! As a final touch, let&#8217;s get rid of those useless arrows at the left side: Open up the theme&#8217;s <strong>global.css</strong> located inside the theme&#8217;s folder, <em>/css/</em>, and look for </p>
<pre class="brush: css; title: ; notranslate">
	.blockmanufacturer li a {
		display:block;
		padding:7px 11px 5px 22px;
		color:#333;
		background:url(../../../modules/blockmanufacturer/img/arrow_right_2.png) no-repeat 10px 10px transparent
	}
</pre>
<p>Then, change it to</p>
<pre class="brush: css; title: ; notranslate">
	.blockmanufacturer li a {
		display:block;
	}
</pre>
<p>Done!</p>
<p><img src="http://nemops.com/wp-content/uploads/2013/09/manufacturers.png" alt="Brand Logos in the Manufacturers List in Prestashop" width="206" height="259" class="alignnone size-full wp-image-1592" /></p>
<div class="separator"></div>
<h2>Displaying Brand Logos in the Suppliers block</h2>
<p>This is quite similar as before, open up <strong>blocksupplier.php</strong>, located in your theme&#8217;s folder <em>/modules/blocksupplier</em>. If this folder is not present, add it as we did before.</p>
<p>Now locate the following snippet in the file:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">

&lt;li class=&quot;{if $smarty.foreach.supplier_list.last}last_item{elseif $smarty.foreach.supplier_list.first}first_item{else}item{/if}&quot;&gt;
			&lt;a href=&quot;{$link-&gt;getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'html'}&quot; title=&quot;{l s='More about' mod='blocksupplier'} {$supplier.name}&quot;&gt;{$supplier.name|escape:'htmlall':'UTF-8'}&lt;/a&gt;
		&lt;/li&gt;

</pre>
<p>Add the image to replace the text inside the anchor tag:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">

&lt;li class=&quot;{if $smarty.foreach.supplier_list.last}last_item{elseif $smarty.foreach.supplier_list.first}first_item{else}item{/if}&quot;&gt;
	&lt;a href=&quot;{$link-&gt;getsupplierLink($supplier.id_supplier, $supplier.link_rewrite)|escape:'html'}&quot; title=&quot;{l s='More about' mod='blocksupplier'} {$supplier.name}&quot;&gt;&lt;img src=&quot;{$base_dir}img/su/{$supplier.id_supplier}.jpg&quot;/&gt;&lt;/a&gt;
&lt;/li&gt;

</pre>
<p><strong>Again, note that the file extension might change if you use .png as your base image format in .Preferences -> Images</strong>.</p>
<p>And once more, let&#8217;s get rid of the arrows as we did before, in <strong>global.css</strong></p>
<pre class="brush: css; title: ; notranslate">
	.blocksupplier li a {
		display:block;
		padding:7px 11px 5px 22px;
		color:#333;
		background:url(../../../modules/blocksupplier/img/arrow_right_2.png) no-repeat 10px 10px transparent
	}

</pre>
<p>Then, change it to</p>
<pre class="brush: css; title: ; notranslate">
	.blocksupplier li a {
		display:block;
	}

</pre>
<p>Again, done!</p>
<p><img src="http://nemops.com/wp-content/uploads/2013/09/suppliers.png" alt="Brand Logos in the Suppliers List in Prestashop" width="214" height="207" class="alignnone size-full wp-image-1591" /></p>
<p>The post <a rel="nofollow" href="http://nemops.com/brand-logos-prestashop-manufacturers-suppliers/">Flash Tip: Brand logos to Prestashop Manufacturers/Suppliers blocks</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nemops.com/brand-logos-prestashop-manufacturers-suppliers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
