<?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; theme</title>
	<atom:link href="https://nemops.com/tag/theme/feed/" rel="self" type="application/rss+xml" />
	<link>https://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>PrestaShop Themes Crash Course &#8211; Released!</title>
		<link>https://nemops.com/prestashop-themes-crash-course-released/</link>
		<comments>https://nemops.com/prestashop-themes-crash-course-released/#comments</comments>
		<pubDate>Mon, 28 Nov 2016 14:34:03 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2910</guid>
		<description><![CDATA[<p>If you have been waiting for a crash course on PrestaShop Templates, here it is! I am pleased to announce that I just finished editing my new premium course, this time on PrestaShop Themes! Many merchants usually spend hundreds or thousands, to hire professionals  for basic modifications. With this course, anyone can learn to customize [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-themes-crash-course-released/">PrestaShop Themes Crash Course &#8211; Released!</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you have been waiting for a crash course on PrestaShop Templates, here it is!</p>
<p><span id="more-2910"></span></p>
<p>I am pleased to announce that I just finished editing my new premium course, this time on PrestaShop Themes! Many merchants usually spend hundreds or thousands, to hire professionals  for basic modifications. With this course, anyone can learn to customize a PrestaShop template and save plenty of bucks!</p>
<p>The course has been released! <strong>Click on the image for more info about it.</strong></p>
<p><a title="PrestaShop Themes Crash Course" href="http://nemops.com/prestashop-themes-crash-course/"><img class="aligncenter size-large wp-image-2903" src="http://nemops.com/wp-content/uploads/2016/11/ad-680x513.jpg" alt="PrestaShop Themes Crash Course" width="680" height="513" /></a></p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-themes-crash-course-released/">PrestaShop Themes Crash Course &#8211; Released!</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-themes-crash-course-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prestashop Theme Configurator module overview</title>
		<link>https://nemops.com/prestashop-theme-configurator-overview/</link>
		<comments>https://nemops.com/prestashop-theme-configurator-overview/#comments</comments>
		<pubDate>Tue, 24 Feb 2015 10:47:19 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[product list]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2336</guid>
		<description><![CDATA[<p>The Prestashop Theme Configurator comes with a few, sometimes overlooked options, that can make our lives a lot easier when customizing our web store. Let&#8217;s check them out! Version used: Prestashop 1.6 Watch the screencast</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-theme-configurator-overview/">Prestashop Theme Configurator module overview</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The Prestashop Theme Configurator comes with a few, sometimes overlooked options, that can make our lives a lot easier when customizing our web store. Let&#8217;s check them out!<br />
<span id="more-2336"></span></p>
<ul>
<li>Version used: Prestashop 1.6</li>
</ul>
<h2>Watch the screencast</h2>

	<div class="video-embed">
		<iframe width="640" height="360" src="http://www.youtube.com/embed/a_SRPcpbyP0#038;feature=youtu.be" 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>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-theme-configurator-overview/">Prestashop Theme Configurator module overview</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-theme-configurator-overview/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grid display for Prestashop 1.5 default theme</title>
		<link>https://nemops.com/grid-display-prestashop-1-5/</link>
		<comments>https://nemops.com/grid-display-prestashop-1-5/#comments</comments>
		<pubDate>Wed, 03 Oct 2012 10:09:00 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=485</guid>
		<description><![CDATA[<p>I&#8217;ve been frequently asked how to turn Prestashop&#8217;s default theme product list view into a grid. Today, we will take the basic theme and turn the product list display into a cool grid with 4 items per row. Finished result Note: I used Prestashop 1.5.0.17 for this tutorial. Since 1.5.1, the image type name must [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/grid-display-prestashop-1-5/">Grid display for Prestashop 1.5 default theme</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been frequently asked how to turn Prestashop&#8217;s default theme product list view into a grid. Today, we will take the basic theme and turn the product list display into a cool grid with 4 items per row.<span id="more-485"></span></p>
<a class="download-files button style1" href="http://nemops.com/wp-content/uploads/2012/10/product_list_grid_projectfiles.zip" title="Download Project Files">Download Project Files</a>
<h2>Finished result</h2>
<p><a href="http://nemops.com/wp-content/uploads/2012/10/Presta15.png"><img class="aligncenter size-large wp-image-486" title="Grid display for Prestashop 1.5 default theme" src="http://nemops.com/wp-content/uploads/2012/10/Presta15-617x1024.png" alt="Grid display for Prestashop 1.5 default theme" width="617" height="1024" /></a></p>
<p><strong>Note:</strong> I used Prestashop 1.5.0.17 for this tutorial. Since 1.5.1, the image type name must be followed by <strong>_default</strong>, so, in the &#8220;home&#8221; case, it will be &#8220;home_default&#8221;</p>
<div class="separator"></div>
<h2>Let&#8217;s get started!</h2>
<p>No time for chitchat. If you clicked to see this tut, you only want to turn the considerably not-so-good-looking Prestashop default product list into a cooler product grid. Please, note that <strong>the tutorial is for Prestashop 1.5</strong> and uses the base product-list.tpl file of the default theme for this version only. If you are using 1.4 ,you can try to follow along, but don&#8217;t blindly copy/paste stuff, or you might get some errors!</p>
<p>Knowing this, login to the admin panel and go to <strong>Preferences > Themes.</strong> Prestashop 1.5 allows us to create new themes directly from the back office. Click <strong>Add new</strong> in the top left corner of the page and fill the form as shown in the picture:</p>
<p><a href="http://nemops.com/wp-content/uploads/2012/10/addNew.png"><img class="aligncenter size-large wp-image-488" title="Prestashop 1.5 create new theme" src="http://nemops.com/wp-content/uploads/2012/10/addNew-680x283.png" alt="Prestashop 1.5 create new theme" width="680" height="283" /></a>Of course, you are free to use any name you want. Just be sure you select a theme to copy missing files from, since we are creating a new theme. Choose the default theme for this.</p>
<blockquote><p><span class="bqstart">“</span>Before editing TPL files, be sure you set Template Caching to <strong>Compile cache if templates are updated</strong> or <strong>Force Compile</strong> under Advanced parameters > Performance<span class="bqend">”</span></p></blockquote>
<p>Now, you might have noticed I have removed the left column to give the grid a bit more space, and have the design feel less cluttered. To do it, open <strong>header.tpl</strong> and look for the following lines:</p>
<pre class="brush: php; title: ; notranslate">			&lt;!-- Left --&gt;
				&lt;div id=&quot;left_column&quot; class=&quot;column grid_2 alpha&quot;&gt;
					{$HOOK_LEFT_COLUMN}
				&lt;/div&gt;

				&lt;!-- Center --&gt;
				&lt;div id=&quot;center_column&quot; class=&quot; grid_5&quot;&gt;</pre>
<p>We need to hide the left column, and widen the center one, so modify it like this:</p>
<pre class="brush: php; title: ; notranslate">			{*&lt;div id=&quot;left_column&quot; class=&quot;column grid_2 alpha&quot;&gt;
					{$HOOK_LEFT_COLUMN}
				&lt;/div&gt;*}

				&lt;!-- Center --&gt;
				&lt;div id=&quot;center_column&quot; class=&quot; grid_7 alpha&quot;&gt;</pre>
<p><strong>Explanation: </strong>I used smarty comments ({* content commented out *}) to hide the left column, then changed the center column class to <strong>grid_7</strong> to take up the 2 grid units left empty by the left column. Notice that I added the <strong>aplha</strong> class so that the column doen&#8217;s have a left margin.</p>
<p>Please note that, by just doing this, all modules hooked to the left column will still be processed. To remove them completely and save some memory you will have to go to <strong>modules/positions</strong> in the admin panel, and remove them from there.</p>
<p>&nbsp;</p>
<h3>Let&#8217;s get rid of the list</h3>
<p>Now that we have a new theme to play with, go to the newly created folder, then, inside this, <strong>css/</strong> and open up <strong>product_list.css</strong>. This is the stylesheet responsible of the look of the list. Delete everything inside this file, since we will do it from scratch.</p>
<p>Now open the template file <strong>product-list.tpl</strong><strong> </strong>that you find in the theme&#8217;s root. Delete everything <strong>from line 31 to line 71</strong>. The file should now look like this:</p>
<pre class="brush: php; title: ; notranslate">{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA &lt;contact@prestashop.com&gt;
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 7457 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark &amp;amp; Property of PrestaShop SA
*}

{if isset($products)}
	&lt;!-- Products list --&gt;
	&lt;ul id=&quot;product_list&quot; class=&quot;clear&quot;&gt;
	{foreach from=$products item=product name=products}
	{/foreach}
	&lt;/ul&gt;
	&lt;!-- /Products list --&gt;
{/if}</pre>
<p>Of course, if you now refresh a category page, you&#8217;ll see nothing anymore. Be sure you change the ul class from clear to <strong>clearfix</strong>.</p>
<div class="separator"></div>
<h2>The TPL file</h2>
<p>Let&#8217;s go ahead and add some content to this template, shall we? Start by adding the following lines after line 30 (but before the closing foreach):</p>
<pre class="brush: php; title: ; notranslate">	&lt;li class=&quot;ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.iteration%4 == 0}last_row_item{else}item{/if}&quot;&gt;
			&lt;a href=&quot;{$product.link|escape:'htmlall':'UTF-8'}&quot; class=&quot;product_img_link&quot; title=&quot;{$product.name|escape:'htmlall':'UTF-8'}&quot;&gt;
				&lt;img src=&quot;{$link-&gt;getImageLink($product.link_rewrite, $product.id_image, 'home')}&quot; alt=&quot;{$product.legend|escape:'htmlall':'UTF-8'}&quot; {if isset($homeSize)} width=&quot;{$homeSize.width}&quot; height=&quot;{$homeSize.height}&quot;{/if} /&gt;
				{if isset($product.new) &amp;amp;&amp;amp; $product.new == 1}&lt;span class=&quot;new&quot;&gt;{l s='New'}&lt;/span&gt;{/if}
			&lt;/a&gt;
			&lt;p class=&quot;clear&quot;&gt;&lt;/p&gt;
			&lt;h3&gt;&lt;a href=&quot;{$product.link|escape:'htmlall':'UTF-8'}&quot; title=&quot;{$product.name|escape:'htmlall':'UTF-8'}&quot;&gt;{$product.name|escape:'htmlall':'UTF-8'|truncate:26:'...':true}&lt;/a&gt;&lt;/h3&gt;

		&lt;/li&gt;</pre>
<p><strong>Explanation: </strong>The first line is the most important one. Have a close look (I know it&#8217;s a bit messy, unfortunatly the syntax highlight doesn&#8217;t have a smarty brush!) at the class of the list item:</p>
<pre class="brush: php; title: ; notranslate">class=&quot;ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.iteration%4 == 0}last_row_item{else}item{/if}&quot;</pre>
<p>Notice the &#8220;<strong>{if $smarty.foreach.products.iteration%4 == 0}last_row_item</strong>&#8221; part of the code. If you want to change the number of items displayed, change the 4 to something else. Of course, you&#8217;ll then need to change the css accordingly.</p>
<p>The first item we are placing in the list item is the product image, wrapped in a link that points to the single product view. We also add a <span class="new"> to ensure new products can be hotspotted inside the link. Then, we place an H3 tag with the name of the product, and again, link it to the product itself.</p>
<p>Next, we have to deal with the price block. Add the following just after the closing h3:</p>
<pre class="brush: php; title: ; notranslate">		
&lt;div class=&quot;content_price&quot;&gt;

    {if isset($product.show_price) &amp;amp;&amp;amp; $product.show_price &amp;amp;&amp;amp; !isset($restricted_country_mode)}&lt;span class=&quot;price&quot; style=&quot;display: inline;&quot;&gt;{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}&lt;/span&gt;&lt;br /&gt;{/if}
				{if isset($product.available_for_order) &amp;amp;&amp;amp; $product.available_for_order &amp;amp;&amp;amp; !isset($restricted_country_mode)}&lt;span class=&quot;availability&quot;&gt;{if ($product.allow_oosp || $product.quantity &gt; 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) &amp;amp;&amp;amp; $product.quantity_all_versions &gt; 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}&lt;/span&gt;{/if}
&lt;/div&gt;</pre>
<p><strong>Inside this last div</strong>, we can also place some text to let customers know if a product is on sale, or has a reduced price. If none of this situations is true, we just add an empty span to fill the space and give a uniform height to the elements:</p>
<pre class="brush: php; title: ; notranslate">{if isset($product.on_sale) &amp;amp;&amp;amp; $product.on_sale &amp;amp;&amp;amp; isset($product.show_price) &amp;amp;&amp;amp; $product.show_price &amp;amp;&amp;amp; !$PS_CATALOG_MODE}&lt;span class=&quot;on_sale&quot;&gt;{l s='On sale!'}&lt;/span&gt;
				{elseif isset($product.reduction) &amp;amp;&amp;amp; $product.reduction &amp;amp;&amp;amp; isset($product.show_price) &amp;amp;&amp;amp; $product.show_price &amp;amp;&amp;amp; !$PS_CATALOG_MODE}&lt;span class=&quot;discount&quot;&gt;{l s='Reduced price!'}&lt;/span&gt;
				{else}
				&lt;span style=&quot;height:16px; margin: 5px 0; display: block&quot;&gt;&lt;/span&gt;
{/if}</pre>
<p>Finally, we can add the &#8220;add to cart&#8221; button (again, inside the same content_prices div):</p>
<pre class="brush: php; title: ; notranslate">			{if ($product.id_product_attribute == 0 || (isset($add_prod_display) &amp;amp;&amp;amp; ($add_prod_display == 1))) &amp;amp;&amp;amp; $product.available_for_order &amp;amp;&amp;amp; !isset($restricted_country_mode) &amp;amp;&amp;amp; $product.minimal_quantity &lt;= 1 &amp;amp;&amp;amp; $product.customizable != 2 &amp;amp;&amp;amp; !$PS_CATALOG_MODE}

					{if ($product.allow_oosp || $product.quantity &gt; 0)}
						{if isset($static_token)}
							&lt;a class=&quot;button ajax_add_to_cart_button exclusive&quot; rel=&quot;ajax_id_product_{$product.id_product|intval}&quot; href=&quot;{$link-&gt;getPageLink('cart',false, NULL, &quot;add&amp;amp;id_product={$product.id_product|intval}&amp;amp;token={$static_token}&quot;, true)}&quot; title=&quot;{l s='Add to cart'}&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/a&gt;
						{else}
							&lt;a class=&quot;button ajax_add_to_cart_button exclusive&quot; rel=&quot;ajax_id_product_{$product.id_product|intval}&quot; href=&quot;{$link-&gt;getPageLink('cart',false, NULL, &quot;add&amp;amp;id_product={$product.id_product|intval}&quot;, true)}&quot; title=&quot;{l s='Add to cart'}&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/a&gt;
						{/if}						
					{else}
						&lt;span class=&quot;exclusive&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/span&gt;&lt;br /&gt;
					{/if}
				{/if}</pre>
<p>&nbsp;</p>
<p>The list is already finished, and you can jump to the next section at this point. However, if you need a further feature, you can add the comparator link. As before, in the same div.</p>
<pre class="brush: php; title: ; notranslate">{if isset($comparator_max_item) &amp;amp;&amp;amp; $comparator_max_item}
				&lt;p class=&quot;compare&quot;&gt;
					&lt;input type=&quot;checkbox&quot; class=&quot;comparator&quot; id=&quot;comparator_item_{$product.id_product}&quot; value=&quot;comparator_item_{$product.id_product}&quot; {if isset($compareProducts) &amp;amp;&amp;amp; in_array($product.id_product, $compareProducts)}checked=&quot;checked&quot;{/if} /&gt; 
					&lt;label for=&quot;comparator_item_{$product.id_product}&quot;&gt;{l s='Select to compare'}&lt;/label&gt;
				&lt;/p&gt;
{/if}</pre>
<p>And that&#8217;s it! Now, reload a category page, it should look more or less like this (yes, all screwed!):</p>
<p><a href="http://nemops.com/wp-content/uploads/2012/10/grid_screwed.png"><img class="aligncenter size-large wp-image-526" title="Prestashop template screwed" src="http://nemops.com/wp-content/uploads/2012/10/grid_screwed-680x606.png" alt="Prestashop template screwed" width="680" height="606" /></a></p>
<div class="separator"></div>
<h2>The Stylesheet</h2>
<p>Now that the html part is done, the only thing left is the CSS. Open up <strong>product_list.css</strong> that you cleared before, and start by adding the following code:</p>
<pre class="brush: css; title: ; notranslate">ul#product_list {
	list-style-type: none
}
#product_list li {
	text-align: center;
	float: left;
	width: 142px;
	padding: 16px;
	margin-bottom: 14px;
	margin-right: 20px;
	background-color: #f9f9f9
}
#product_list li.last_row_item {margin-right: 0;}</pre>
<p><strong>Explanation:</strong> first, we remove the list bullets, since we won&#8217;t need those, and then setup the style for each list item. Note that the width is calculated based on 4 products per row, and you&#8217;ll have to do some math to adjust it to other numbers. The last style is to remove the margin from each last element in a row. If we didn&#8217;t do this, the element would just fall to the next line.</p>
<p><strong>If you are experiencing uneven height issues, add a fixed height to #product_list li.</strong></p>
<p>Now, let&#8217;s style the image and give a basic color to links</p>
<pre class="brush: css; title: ; notranslate">#product_list li a {
	color: #374853;
	text-decoration: none
}
#product_list a.product_img_link {
	overflow:hidden;
	position:relative;
	float: left;
	display:block;
	border: 1px solid #ccc
}
#product_list a.product_img_link img {
	display: block;
	vertical-align: bottom
}</pre>
<p>It is important to set the position of <strong>a.product_img_link</strong> as <strong>relative</strong> since we will be adding the &#8220;new product&#8221; label over it, absolutely positioned.</p>
<pre class="brush: css; title: ; notranslate">#product_list li span.new {
	display: block;
	position: absolute;
	top: 15px;
	right:-30px;
	padding: 1px 4px;
	width: 101px;
	font-size:10px;
	color: #fff;
	text-align: center;
	text-transform: uppercase;
	-moz-transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	-o-transform:rotate(45deg);
	-ms-transform: rotate(45deg);
	background-color: #990000
}</pre>
<p>&nbsp;</p>
<p>Then, it&#8217;s time for product data. Note that I&#8217;m hiding the &#8220;availability&#8221; label, since i don&#8217;t need it.</p>
<pre class="brush: css; title: ; notranslate">#product_list li h3 {
	padding:0 0 10px 0;
	font-size:13px;
	color:#000
}

#product_list li p.product_desc {
	overflow: hidden;
	padding:0;
	line-height:16px;
}
#product_list li p.product_desc,
#product_list li p.product_desc a {
	color:#666;
}

#product_list li .discount, ul#product_list li .on_sale, ul#product_list li .online_only {
	display: block;
	font-weight: bold;
	margin: 5px 0;
	padding: 1px 5px;
	color: #990000;
	text-transform: uppercase
}
#product_list li .discount {
	display: inline-block;
	font-size: 10px;
	color: #fff;
	background: none repeat scroll 0 0 #9B0000
}

#product_list li .content_price {
	width: 142px;
	float: left;
}
#product_list li .price {
	display: block;
	padding-bottom: 15px;
	font-weight:bold;
	font-size: 16px;
	color:#990000
}
#product_list li span.availability {
	display:none; /* remove to show availability */
	color: #488C40
}</pre>
<p>&nbsp;</p>
<p>Finally, the &#8220;Add to cart&#8221; button and the optional compare checkbox</p>
<pre class="brush: css; title: ; notranslate">#product_list li .ajax_add_to_cart_button {
	padding-left: 20px
}
#product_list li .ajax_add_to_cart_button span {
	display: block;
	position: absolute;
	top: -1px;
	left: -12px;
	height: 26px;
	width: 26px;
	background: url(../img/icon/pict_add_cart.png) no-repeat 0 0 transparent
}
#product_list li p.compare {padding-bottom: 0;margin-top: 10px;}</pre>
<p>&nbsp;</p>
<p>Save and refresh the page. It should now look like this. If it doesn&#8217;t go back and check that your code matches. You can always download the project files to copy directly from there.</p>
<p><a href="http://nemops.com/wp-content/uploads/2012/10/Presta15.png"><img class="aligncenter size-large wp-image-486" title="Grid display for Prestashop 1.5 default theme" src="http://nemops.com/wp-content/uploads/2012/10/Presta15-617x1024.png" alt="Grid display for Prestashop 1.5 default theme" width="617" height="1024" /></a></p>
<div class="separator"></div>
<h2>Final Sources</h2>
<h3>product-list.tpl</h3>
<p><strong>Notice:</strong> For some reason, the plugin I use to highlight te code changes line 34. Be sure you download the project files and replace that line with the correct img tag, or remove the &#8220;if&#8221; part (you can also fix it if you know smarty!).</p>
<pre class="brush: php; title: ; notranslate">
{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 7457 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark &amp; Property of PrestaShop SA
*}
 
{if isset($products)}

    &lt;ul id=&quot;product_list&quot; class=&quot;clearfix&quot;&gt;
    {foreach from=$products item=product name=products}

	&lt;li class=&quot;ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if} {if $smarty.foreach.products.iteration%4 == 0}last_row_item{else}item{/if}&quot;&gt;
	    &lt;a href=&quot;{$product.link|escape:'htmlall':'UTF-8'}&quot; class=&quot;product_img_link&quot; title=&quot;{$product.name|escape:'htmlall':'UTF-8'}&quot;&gt;
	       &lt;img src=&quot;{$link-&gt;getImageLink($product.link_rewrite, $product.id_image, 'home')}&quot; alt=&quot;{$product.legend|escape:'htmlall':'UTF-8'}&quot; {if isset($homeSize)} width=&quot;{$homeSize.width}&quot; height=&quot;{$homeSize.height}&quot;{/if} /&gt; 
	        {if isset($product.new) &amp;&amp; $product.new == 1}&lt;span class=&quot;new&quot;&gt;{l s='New'}&lt;/span&gt;{/if}
	    &lt;/a&gt;
	    &lt;p class=&quot;clear&quot;&gt;&lt;/p&gt;
	    &lt;h3&gt;&lt;a href=&quot;{$product.link|escape:'htmlall':'UTF-8'}&quot; title=&quot;{$product.name|escape:'htmlall':'UTF-8'}&quot;&gt;{$product.name|escape:'htmlall':'UTF-8'|truncate:26:'...':true}&lt;/a&gt;&lt;/h3&gt;
		&lt;div class=&quot;content_price&quot;&gt;
		 
		    {if isset($product.show_price) &amp;&amp; $product.show_price &amp;&amp; !isset($restricted_country_mode)}&lt;span class=&quot;price&quot; style=&quot;display: inline;&quot;&gt;{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}&lt;/span&gt;&lt;br /&gt;{/if}
		                {if isset($product.available_for_order) &amp;&amp; $product.available_for_order &amp;&amp; !isset($restricted_country_mode)}&lt;span class=&quot;availability&quot;&gt;{if ($product.allow_oosp || $product.quantity &gt; 0)}{l s='Available'}{elseif (isset($product.quantity_all_versions) &amp;&amp; $product.quantity_all_versions &gt; 0)}{l s='Product available with different options'}{else}{l s='Out of stock'}{/if}&lt;/span&gt;{/if}


			{if isset($product.on_sale) &amp;&amp; $product.on_sale &amp;&amp; isset($product.show_price) &amp;&amp; $product.show_price &amp;&amp; !$PS_CATALOG_MODE}&lt;span class=&quot;on_sale&quot;&gt;{l s='On sale!'}&lt;/span&gt;
			                {elseif isset($product.reduction) &amp;&amp; $product.reduction &amp;&amp; isset($product.show_price) &amp;&amp; $product.show_price &amp;&amp; !$PS_CATALOG_MODE}&lt;span class=&quot;discount&quot;&gt;{l s='Reduced price!'}&lt;/span&gt;
			                {else}
			                &lt;span style=&quot;height:16px; margin: 5px 0; display: block&quot;&gt;&lt;/span&gt;
			{/if}
			{if ($product.id_product_attribute == 0 || (isset($add_prod_display) &amp;&amp; ($add_prod_display == 1))) &amp;&amp; $product.available_for_order &amp;&amp; !isset($restricted_country_mode) &amp;&amp; $product.minimal_quantity &lt;= 1 &amp;&amp; $product.customizable != 2 &amp;&amp; !$PS_CATALOG_MODE}
			 
			    {if ($product.allow_oosp || $product.quantity &gt; 0)}
			        {if isset($static_token)}
			            &lt;a class=&quot;button ajax_add_to_cart_button exclusive&quot; rel=&quot;ajax_id_product_{$product.id_product|intval}&quot; href=&quot;{$link-&gt;getPageLink('cart',false, NULL, &quot;add&amp;id_product={$product.id_product|intval}&amp;token={$static_token}&quot;, true)}&quot; title=&quot;{l s='Add to cart'}&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/a&gt;
			        {else}
			            &lt;a class=&quot;button ajax_add_to_cart_button exclusive&quot; rel=&quot;ajax_id_product_{$product.id_product|intval}&quot; href=&quot;{$link-&gt;getPageLink('cart',false, NULL, &quot;add&amp;id_product={$product.id_product|intval}&quot;, true)}&quot; title=&quot;{l s='Add to cart'}&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/a&gt;
			        {/if}                       
			    {else}
			        &lt;span class=&quot;exclusive&quot;&gt;&lt;span&gt;&lt;/span&gt;{l s='Add to cart'}&lt;/span&gt;&lt;br /&gt;
			    {/if}
			{/if}
			{if isset($comparator_max_item) &amp;&amp; $comparator_max_item}
                &lt;p class=&quot;compare&quot;&gt;
                    &lt;input type=&quot;checkbox&quot; class=&quot;comparator&quot; id=&quot;comparator_item_{$product.id_product}&quot; value=&quot;comparator_item_{$product.id_product}&quot; {if isset($compareProducts) &amp;&amp; in_array($product.id_product, $compareProducts)}checked=&quot;checked&quot;{/if} /&gt; 
                    &lt;label for=&quot;comparator_item_{$product.id_product}&quot;&gt;{l s='Select to compare'}&lt;/label&gt;
                &lt;/p&gt;
			{/if}		
		&lt;/div&gt;

	 
	&lt;/li&gt;

    {/foreach}
    &lt;/ul&gt;

{/if}	
</pre>
<p>&nbsp;</p>
<h3>product_list.css</h3>
<pre class="brush: css; title: ; notranslate">ul#product_list {
	list-style-type: none
}
	#product_list li {
		text-align: center;
		float: left;
		width: 142px;
		padding: 16px;
		margin-bottom: 14px;
		margin-right: 20px;
		background-color: #f9f9f9
	}
	#product_list li.last_row_item {margin-right: 0;}

	#product_list li a {
		color: #374853;
		text-decoration: none
	}
	#product_list a.product_img_link {
	overflow:hidden;
	position:relative;
	float: left;
	display:block;
	border: 1px solid #ccc
	}
	#product_list a.product_img_link img {
		display: block;
		vertical-align: bottom
	}

	#product_list li span.new {
		display: block;
		position: absolute;
		top: 15px;
		right:-30px;
		padding: 1px 4px;
		width: 101px;
		font-size:10px;
		color: #fff;
		text-align: center;
		text-transform: uppercase;
		-moz-transform: rotate(45deg);
		-webkit-transform: rotate(45deg);
		-o-transform:rotate(45deg);
		-ms-transform: rotate(45deg);
		background-color: #990000
	}
	#product_list li h3 {
		padding:0 0 10px 0;
		font-size:13px;
		color:#000
	}

	#product_list li p.product_desc {
		overflow: hidden;
		padding:0;
		line-height:16px;
	}
	#product_list li p.product_desc,
	#product_list li p.product_desc a {
		color:#666;
	}

	#product_list li .discount, ul#product_list li .on_sale, ul#product_list li .online_only {
		display: block;
		font-weight: bold;
		margin: 5px 0;
		padding: 1px 5px;
		color: #990000;
		text-transform: uppercase
	}
	#product_list li .discount {
		display: inline-block;
		font-size: 10px;
		color: #fff;
		background: none repeat scroll 0 0 #9B0000
	}

	#product_list li .content_price {
		width: 142px;
		float: left;
	}
		#product_list li .price {
			display: block;
			padding-bottom: 15px;
			font-weight:bold;
			font-size: 16px;
			color:#990000
		}
		#product_list li span.availability {
			display:none; /* remove to show availability */
			color: #488C40
		}
	#product_list li .ajax_add_to_cart_button {
		padding-left: 20px
	}
	#product_list li .ajax_add_to_cart_button span {
		display: block;
		position: absolute;
		top: -1px;
		left: -12px;
		height: 26px;
		width: 26px;
		background: url(../img/icon/pict_add_cart.png) no-repeat 0 0 transparent
	}
	#product_list li p.compare {padding-bottom: 0;margin-top: 10px;}</pre>
<div class="separator"></div>
<h2>Conclusion</h2>
<p>And that&#8217;s it! You should now have a clean grid display for your Prestashop theme, and be able to set up a new one with your own dimensions in the future.</p>
<p>The post <a rel="nofollow" href="https://nemops.com/grid-display-prestashop-1-5/">Grid display for Prestashop 1.5 default theme</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/grid-display-prestashop-1-5/feed/</wfw:commentRss>
		<slash:comments>167</slash:comments>
		</item>
	</channel>
</rss>
