<?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; template</title>
	<atom:link href="https://nemops.com/tag/template/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 Debug tip: display template names and path in the front office</title>
		<link>https://nemops.com/prestashop-debug-display-template-names-and-path/</link>
		<comments>https://nemops.com/prestashop-debug-display-template-names-and-path/#comments</comments>
		<pubDate>Wed, 24 May 2017 12:33:27 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=3026</guid>
		<description><![CDATA[<p>In this video we will see how to save hours of debugging, by displaying the name of each template coming from modules in the front office Watch the screencast Text Version Open up Module.php, located in the classes/module/ folder. Reach the display method, and right at the very end, just before the return statement, add [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-debug-display-template-names-and-path/">PrestaShop Debug tip: display template names and path in the front office</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this video we will see how to save hours of debugging, by displaying the name of each template coming from modules in the front office<br />
<span id="more-3026"></span></p>
<h2>Watch the screencast</h2>

	<div class="video-embed">
		<iframe width="640" height="360" src="http://www.youtube.com/embed/exCPVrpfWW4#038;lc=z122zleyvxa5dz10f22zwnjjurqyhbtx004" 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>
<h3>Text Version</h3>
<p>Open up <strong>Module.php</strong>, located in the <em>classes/module/</em> folder. Reach the <strong>display</strong> method, and right at the very end, just before the return statement, add the following:</p>
<pre class="brush: php; title: ; notranslate">
            if($result &amp;&amp; _PS_MODE_DEV_ === true)
            {
                $tpl_path = $this-&gt;getTemplatePath($template);
                $result = '&lt;!-- START ' . $tpl_path .' --&gt;' . $result . '&lt;!-- END ' . $tpl_path .' --&gt;';    
            }
</pre>
<p>Save, make sure dev mode is enabled, then refresh the front office. Open up Chrome developer tools (or equivalent) and inspect the section you need of the template, you will see each module&#8217;s box wrapped with the corresponding template path</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-debug-display-template-names-and-path/">PrestaShop Debug tip: display template names and path in the front office</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-debug-display-template-names-and-path/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 1.7&#8217;s new Theme Preview</title>
		<link>https://nemops.com/prestashop-1-7-new-theme-preview/</link>
		<comments>https://nemops.com/prestashop-1-7-new-theme-preview/#comments</comments>
		<pubDate>Wed, 10 Feb 2016 10:56:31 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[prestashop 1.7]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2703</guid>
		<description><![CDATA[<p>Last week, the PrestaShop Team shared a few info about the new Default Theme that will come with PrestaShop 1.7. Let&#8217;s see how it looks like! Prestashop 1.7&#8217;s Homepage Here is how PrestaShop will (likely) look like in 1.7: The first thing we can notice is that the new template looks a lot more compact [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-1-7-new-theme-preview/">PrestaShop 1.7&#8217;s new Theme Preview</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Last week, the PrestaShop Team shared a few info about the new Default Theme that will come with PrestaShop 1.7. Let&#8217;s see how it looks like!</p>
<p><span id="more-2703"></span></p>
<h3>Prestashop 1.7&#8217;s Homepage</h3>
<p>Here is how PrestaShop will (likely) look like in 1.7:</p>
<p><a href="http://nemops.com/wp-content/uploads/2016/02/new-default-theme-home.png"><img src="http://nemops.com/wp-content/uploads/2016/02/new-default-theme-home-551x1024.png" alt="PrestaShop 1.7&#039;s new Theme Homepage" width="551" height="1024" class="aligncenter size-large wp-image-2707" /></a></p>
<p>The first thing we can notice is that the new template looks a lot more compact than the previous. In the header, they decided to take advantage of the extra space of the navigation bar, and stick the cart there as well. The top menu has been floated to the left, next to the logo, with the search bar presumably being part of it, instead of laying there as separate module (the top horizontal menu had an option to include a search bar).</p>
<p>The slider is still boxed, but we all hope there will be an option to let us make it full width.</p>
<p>There is not much to say about the products list in the homepage, since it looks to be a work in progress (we expect to see more info on hover, in any case).</p>
<p>The footer has been left untouched, with the only difference of the light color scheme against the previous dark one.</p>
<h3>Prestashop 1.7&#8217;s Product View</h3>
<p><a href="http://nemops.com/wp-content/uploads/2016/02/new-default-theme-product.png"><img src="http://nemops.com/wp-content/uploads/2016/02/new-default-theme-product-652x1024.png" alt="PrestaShop 1.7&#039;s new Theme Product Page" width="652" height="1024" class="aligncenter size-large wp-image-2708" /></a></p>
<p>The product page has gone through a diet as well. It switched from a 3-columns to a 2-columns layout for the top part.<br />
The choice is nice, but I find it arguable to keep the tabs on a narrow column as well. Although I can see this has been done to allow images to display without scrolling buttons, it seldom happened to me, workinng with prestashop, to see a product having more than 8 images. That said, the Free shipping info box will hopefully be configurable; nice addition.</p>
<h3>One File to style them all</h3>
<p>Maxime Biloé announced that PrestaShop 1.7&#8217;s theme will compile everything into a single CSS file, and that this will happen for JS as well. Although good for reducing the HTTPS lookups and improving a page&#8217;s rendering speed, there are some potential issues to consider in doing so.</p>
<p>The first is that, being PrestaShop a variegated software that uses third party implementations, you cannot predict if any third party code will break the page rendering. Having them split into multiple files, you would be able not only to easily troubleshoot, but the only broken one would probably not so deadly affect everything as if it were in a single file. You might be familiar with this type of errors if you ever used CCC. A broken comment in one file is enough to kill the whole page, because of compression.</p>
<p>Hopefully, they will opt for a wiser division in groups, to help scalability and maintainability.</p>
<h3>Bottom Line</h3>
<p>Visually speaking, although I kind of like the new clean interface, the theme currently looks poor and aesthetically unappealing. PrestaShop 1.6&#8217;s template looked more professional and &#8220;full&#8221; in comparison. Being it still in development, we will hopefully see changes in this sense, as the release is still a few months ahead.</p>
<p>As a side not, you will notice PrestaShop&#8217;s pink is currently not in the color scheme. The Blue/gray scheme kind of makes it similar to OpenCart.</p>
<p>Notice this is not the Starter Theme, but actually based on it. Starter will be a skeleton that developers will use to build new PrestaShop Templates, instead of doing it from scratch</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-1-7-new-theme-preview/">PrestaShop 1.7&#8217;s new Theme Preview</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-1-7-new-theme-preview/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Guest Post: 10 Free PrestaShop Themes for Your Future Online Store</title>
		<link>https://nemops.com/best-free-prestashop-themes/</link>
		<comments>https://nemops.com/best-free-prestashop-themes/#comments</comments>
		<pubDate>Wed, 30 Sep 2015 09:54:59 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[free themes]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2544</guid>
		<description><![CDATA[<p>In this guest post, Cassie Blackburn lists 10 of the best Free Prestashop Themes you can install on your shop. Written by Cassie Blackburn PrestaShop is one of the best e-Commerce platforms and it has undeniable advantages. Firstly, it’s free and Opensource &#8211; any extra money saved never hurts when you run an online shop. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/best-free-prestashop-themes/">Guest Post: 10 Free PrestaShop Themes for Your Future Online Store</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this guest post, Cassie Blackburn lists 10 of the best Free Prestashop Themes you can install on your shop.<br />
<span id="more-2544"></span></p>
<p><strong>Written by Cassie Blackburn</strong></p>
<p>PrestaShop is one of the best e-Commerce platforms and it has undeniable advantages.<br />
Firstly, it’s free and Opensource &#8211; any extra money saved never hurts when you run an online shop.<br />
Secondly, it’s SEO friendly and multilingual. The latter is incredibly important when your audience speaks several languages.<br />
Thirdly, PrestaShop doesn’t require much in the way of server resources and it’s extremely easy to learn. Consequently you don’t have to pay a lot for any kind of customization work, or, alternatively, you can even do it yourself. It is also light-weight, which is why PrestaShop is one of the best options in the case of someone who wants to create a website for a small store, but hasn’t dealt with coding before.<br />
Apart from all that, you’ll always have access to a big and active PrestaShop community and be able to get answers to your questions.<br />
Now that we’ve outlined the main advantages of this CMS, let’s see what the Web offers us when it comes to free PrestaShop themes.<br />
We’ve chosen the latest and the most beautiful free PrestaShop themes from such providers as <a href="http://www.templatemonster.com/prestashop-themes.php" target="_blank" title="Prestashop Themes at TemplateMonster">TemplateMonster</a>, <a href="http://www.leotheme.com/" target="_blank" title="Prestashop Themes at Leo Theme">Leo Theme</a> and <a href="http://apollotheme.com/" target="_blank" title="Prestashop Themes at ApolloTheme">Apollotheme</a>.</p>
<div class="separator"></div>
<h2>1.	<a href="http://www.templatemonster.com/wheels-tires-free-prestashop-theme.html" target="_blank" title="Free Prestashop Theme Wheels And Tires">Wheels And Tires</a></h2>
<p><a href="http://www.templatemonster.com/wheels-tires-free-prestashop-theme.html" target="_blank" title="Free Prestashop Theme Wheels And Tires"><img src="http://nemops.com/wp-content/uploads/2015/09/1-templatemonster-tire-rack-680x649.jpg" alt="Free Prestashop Theme Wheels And Tires" width="680" height="649" class="aligncenter size-large wp-image-2547" /></a><br />
When speaking about structured designs, this template comes up first: modern looking and carefully designed, this free PrestaShop theme may provide a great basis for a car, interior, sport, fashion and many other online stores. Check it out to see if it can be adapted to your project. </p>
<p><a href="http://www.templatemonster.com/demo/52940.html" target="_blank" title="Free Prestashop Theme Wheels And Tires Live Demo">Live Demo</a><br />
<a href="http://www.templatemonster.com/wheels-tires-free-prestashop-theme.html" target="_blank" title="Free Prestashop Theme Wheels And Tires Download">Download</a></p>
<div class="separator"></div>
<h2>2. <a href="http://www.templatemonster.com/free-prestashop-theme-book-website.html" target="_blank" title="Free PrestaShop Theme for Book Website">Free PrestaShop Theme for Book Website</a></h2>
<p><a href="http://www.templatemonster.com/free-prestashop-theme-book-website.html" target="_blank" title="Free PrestaShop Theme for Book Website"><img src="http://nemops.com/wp-content/uploads/2015/09/2-templatemonster-bookStore-680x593.jpg" alt="Free PrestaShop Theme for Book Website" width="680" height="593" class="aligncenter size-large wp-image-2550" /></a><br />
‘Book Hangover’ is one more free PrestaShop template for an online store produced by TemplateMonster. Flat design, being one of the latest trends in web design, can become a key feature as to why your clients will keep coming back to your website. Besides, there is Parallax effect in the theme which adds depth. </p>
<p><a href="http://www.templatemonster.com/demo/54824.html" target="_blank" title="Free PrestaShop Theme for Book Website Live Demo">Live Demo</a><br />
<a href="http://www.templatemonster.com/free-prestashop-theme-book-website.html" target="_blank" title="Free PrestaShop Theme for Book Website Download">Download</a></p>
<div class="separator"></div>
<h2>3.<a href="http://apollotheme.com/products/ap-travel-theme/" target="_blank" title="Free Prestashop Theme - Ap Travel">Ap Travel Theme</a></h2>
<p><a href="http://apollotheme.com/products/ap-travel-theme/" target="_blank" title="Free Prestashop Theme - Ap Travel"><img src="http://nemops.com/wp-content/uploads/2015/09/3-apollotheme-trevalk-680x704.jpg" alt="Free Prestashop Theme - Ap Travel" width="680" height="704" class="aligncenter size-large wp-image-2551" /></a><br />
Image slider, hover effect, one step Add to cart and color scheme &#8211; these are the features which can help you create a perfect online shop. Apart from that, you can see ghost buttons at the bottom of the template. </p>
<p><a href="http://apollotheme.com/demo-themes/?product=ap-travel-theme" target="_blank" title="Free Prestashop Theme - Ap Travel Live Demo">Live Demo</a><br />
<a href="http://apollotheme.com/products/ap-travel-theme/" target="_blank" title="Free Prestashop Theme - Ap Travel Download">Download</a></p>
<div class="separator"></div>
<h2>4.<a href="http://apollotheme.com/products/ap-culinary-theme/" target="_blank" title="Free PrestaShop Theme - Ap Culinary">Ap Culinary Theme</a></h2>
<p><a href="http://apollotheme.com/products/ap-culinary-theme/" target="_blank" title="Free PrestaShop Theme - Ap Culinary"><img src="http://nemops.com/wp-content/uploads/2015/09/4-apollotheme-Dok-680x583.jpg" alt="Free PrestaShop Theme - Ap Culinary" width="680" height="583" class="aligncenter size-large wp-image-2552" /></a><br />
One of the main rules of culinary themes is having the color red in its design. This one has it. Apart from that, if you have powerful imagery, you can create leverage from it &#8211; this template is illustrated with beautiful pictures, that will showcase your products in the best possible way. </p>
<p><a href="http://apollotheme.com/demo-themes/?product=ap-culinary-theme" target="_blank" title="Free PrestaShop Theme - Ap Culinary Live Demo">Live Demo</a><br />
<a href="http://apollotheme.com/products/ap-culinary-theme/" target="_blank" title="Free PrestaShop Theme - Ap Culinary Download">Download</a></p>
<h2>5. <a href="http://www.leotheme.com/prestashop/themes/234-leo-converse.html" target="_blank" title="Free PrestaShop Theme - Leo Converse">Leo Converse</a></h2>
<p><a href="http://www.leotheme.com/prestashop/themes/234-leo-converse.html" target="_blank" title="Free PrestaShop Theme - Leo Converse"><img src="http://nemops.com/wp-content/uploads/2015/09/5-leotheme-leoConverse-680x625.jpg" alt="Free PrestaShop Theme - Leo Converse" width="680" height="625" class="aligncenter size-large wp-image-2553" /></a><br />
If your aim is to create an online sports shop, you should check out this theme as well. It is responsive, so your website will look good regardless of the size of the gadget’s screen. Image slider and vertical top menu will help you make the display more effective. </p>
<p><a href="http://www.leotheme.com/demo/prestashop14x/?template=leo_converse" target="_blank" title="Free PrestaShop Theme - Leo Converse Live Demo">Live Demo</a><br />
<a href="http://www.leotheme.com/prestashop/themes/234-leo-converse.html" target="_blank" title="Free PrestaShop Theme - Leo Converse Download">Download</a></p>
<div class="separator"></div>
<h2>6.<a href="https://www.omegatheme.com/prestashop/themes/204-ot-jewelry-jewelry-online-store-prestashop-theme" target="_blank" title="Free PrestaShop Theme for Jewelry Website">Ot Jewelry</a></h2>
<p><a href="https://www.omegatheme.com/prestashop/themes/204-ot-jewelry-jewelry-online-store-prestashop-theme" target="_blank" title="Free PrestaShop Theme for Jewelry Website"><img src="http://nemops.com/wp-content/uploads/2015/09/6-omegatheme-otJewerly-680x558.jpg" alt="Free PrestaShop Theme for Jewelry Website" width="680" height="558" class="aligncenter size-large wp-image-2554" /></a><br />
One of the beautiful free PrestaShop themes is this one: a great choice for those who want to incorporate a good description of the product &#8211; a harmonious combination of imagery and text will create a memorable impact on the visitors. </p>
<p><a href="http://demo.omegatheme.com/index.php?t=prestashop&#038;i=ot_jewelry" target="_blank" title="Free PrestaShop Theme for Jewelry Website Live Demo">Live Demo</a><br />
<a href="https://www.omegatheme.com/prestashop/themes/204-ot-jewelry-jewelry-online-store-prestashop-theme" target="_blank" title="Free PrestaShop Theme for Jewelry Website Download">Download</a></p>
<h2>7. <a href="http://www.leotheme.com/prestashop/themes/200-leo-tshirt.html" target="_blank" title="Leo T-Shirt Free PrestaShop Theme">Leo T-Shirt Free PrestaShop Theme</a></h2>
<p><a href="http://www.leotheme.com/prestashop/themes/200-leo-tshirt.html" target="_blank" title="Leo T-Shirt Free PrestaShop Theme"><img src="http://nemops.com/wp-content/uploads/2015/09/7-leotheme-leo-t-shirt-680x669.jpg" alt="Leo T-Shirt Free PrestaShop Theme" width="680" height="669" class="aligncenter size-large wp-image-2555" /></a><br />
A beautiful free PrestaShop theme, which can be a perfect fit for almost any online store. The light colored background provides a great contrast for product images &#8211; nothing superfluous and the viewer’s attention is drawn towards the things you sell. Apart from that, the top horizonal menu is one of the most commonly used and most effective features of online stores. </p>
<p><a href="http://www.leotheme.com/demo/prestashop14x/?template=leo_tshirt" target="_blank" title="Leo T-Shirt Free PrestaShop Theme Live Demo">Live Demo</a><br />
<a href="http://www.leotheme.com/prestashop/themes/200-leo-tshirt.html" target="_blank" title="Leo T-Shirt Free PrestaShop Theme Download">Download</a></p>
<div class="separator"></div>
<h2>8. <a href="http://apollotheme.com/products/ap-office-prestashop/" target="_blank" title="Free PrestaShop Theme Ap Office">Ap Office</a></h2>
<p><a href="http://apollotheme.com/products/ap-office-prestashop/" target="_blank" title="Free PrestaShop Theme Ap Office"><img src="http://nemops.com/wp-content/uploads/2015/09/8-apollotheme-apoffice-680x611.jpg" alt="Free PrestaShop Theme Ap Office" width="680" height="611" class="aligncenter size-large wp-image-2557" /></a><br />
This free theme creates an engaging impression due to the light design, flex and product list carousel, category pages etc. It can serve well for those who need to create a clothing, bag, shoe shop etc. And, as with all of the above and below mentioned themes, it is responsive. </p>
<p><a href="http://apollotheme.com/demo-themes/?product=ap-office-prestashop" target="_blank" title="Free PrestaShop Theme Ap Office Live Demo">Live Demo</a><br />
<a href="http://apollotheme.com/products/ap-office-prestashop/" target="_blank" title="Free PrestaShop Theme Ap Office Download">Download</a></p>
<div class="separator"></div>
<h2>9. <a href="http://prestacoder.com/prestashop-themes/free-prestashop-theme" target="_blank" title="Free PrestaShop 1.5 Theme">Free PrestaShop 1.5 Theme</a></h2>
<p><a href="http://prestacoder.com/prestashop-themes/free-prestashop-theme" target="_blank" title="Free PrestaShop 1.5 Theme"><img src="http://nemops.com/wp-content/uploads/2015/09/9-prestacoder-shoes-store-680x777.jpg" alt="Free PrestaShop 1.5 Theme - Prestacoder" width="680" height="777" class="aligncenter size-large wp-image-2558" /></a><br />
The carefree design of this theme will emphasize the product you sell &#8211; the product and the product only. You can add as many categories to the menu as you wish, and showcase your products using an image slider. </p>
<p><a href="http://shoes.prestacoder.com/" target="_blank" title="Free PrestaShop 1.5 Theme Live Demo">Live Demo</a><br />
<a href="http://prestacoder.com/prestashop-themes/free-prestashop-theme" target="_blank" title="Free PrestaShop 1.5 Theme Download">Download</a></p>
<div class="separator"></div>
<h2>10. <a href="http://www.leotheme.com/prestashop/themes/216-leo-sportshoes.html" target="_blank" title="Free PrestaShop Theme for shoes store">Leo Sport Shoes</a></h2>
<p><a href="http://www.leotheme.com/prestashop/themes/216-leo-sportshoes.html" target="_blank" title="Free PrestaShop Theme for shoes store"><img src="http://nemops.com/wp-content/uploads/2015/09/10-leotheme-leoShoesSport-680x620.jpg" alt="Free PrestaShop Theme for shoes store" width="680" height="620" class="aligncenter size-large wp-image-2559" /></a><br />
If you need your template to be lightweight and modern &#8211; you should check out this free PrestaShop theme as well. PSD files are included and the images gradually get smaller as you get closer to the bottom of the theme, which makes a complete logical layout. </p>
<p><a href="http://www.leotheme.com/demo/prestashop14x/?template=leo_sportshoes" target="_blank"  title="Free PrestaShop Theme for shoes store Live Demo">Live Demo</a><br />
<a href="http://www.leotheme.com/prestashop/themes/216-leo-sportshoes.html" target="_blank" title="Free PrestaShop Theme for shoes store Download">Download</a></p>
<p>Well, now that you’ve seen 10 free PrestaShop themes, you can start work on creating your own profitable online store website.<br />
By the way, which theme of these ten do you like the most? Please feel free to mention in the comments below. </p>
<p>The post <a rel="nofollow" href="https://nemops.com/best-free-prestashop-themes/">Guest Post: 10 Free PrestaShop Themes for Your Future Online Store</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/best-free-prestashop-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Essential Prestashop Functions – Day 5</title>
		<link>https://nemops.com/prestashop-functions-5/</link>
		<comments>https://nemops.com/prestashop-functions-5/#comments</comments>
		<pubDate>Tue, 08 Sep 2015 08:40:16 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[smarty]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2522</guid>
		<description><![CDATA[<p>Prestashop has lots of time-saving functions that we can use when developing modules or extensions. In today&#8217;s batch, we will examine template level functions. Assigning variables to smarty from PHP Creating translatable strings These are to be used whenever you want to create a translatable string in a template. After adding them, you can reach [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-functions-5/">Essential Prestashop Functions – Day 5</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Prestashop has lots of time-saving functions that we can use when developing modules or extensions. In today&#8217;s batch, we will examine template level functions.</p>
<p><span id="more-2522"></span></p>
<h2>Assigning variables to smarty from PHP</h2>
<pre class="brush: php; title: ; notranslate">

$this-&gt;context-&gt;smarty-&gt;assign('variablenameinsmarty', $myvalue); // you will be able to access this as {$variablenameinsmarty} in the template

// same as above, but in batch
$this-&gt;context-&gt;smarty-&gt;assign(array(
	'variablenameinsmarty' =&gt; $myvalue,
	'anothervariablenameinsmarty' =&gt; $myothervalue,
));

</pre>
<div class="separator"></div>
<h2>Creating translatable strings</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{l s='This is my string'} // theme template
{l s='This is my string' mod='modulename'}// module template
{l s='There are %s errors' sprintf=[$account_error|@count]} // theme template with variable replacement
{l s='No file selected' js=1} // supposed to be used in a javascript script, only within addJsDef (see below)
{l s='Billing Address' pdf='true'} // only used within PDF templates
</pre>
<p>These are to be used whenever you want to create a translatable string in a template. After adding them, you can reach out the translations page in the back office and add them into other languages. &#8220;mod&#8221; ones will be found under &#8220;Installed Modules Translations&#8221;; &#8220;pdf&#8221; ones under PDF Translations; theme ones under Front Office Translations, choosing the specific template.</p>
<div class="separator"></div>
<h2>Adding javascript variable definitions</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{addJsDef wishlistProductsIds=$wishlist_products}

{addJsDef mySliderCount=7}

{addJsDefL name='youhavelides'}{l s='You save Slides!' js=1}{/addJsDefL}

</pre>
<p>These are needed when you want to pass data from the template to any attached .js file. You will have to make sure to write any script inside a jquery ready statement if you load them in the header, or variables won&#8217;t be readily available. Notice how the first one uses the javascript variable name, while the language one sets it using name=&#8221;.</p>
<h3>Example Usage</h3>
<pre class="brush: jscript; title: ; notranslate">
// will alert &quot;You have slides!&quot; in the current language
if(mySliderCount &gt; 0)
	alert(youhavelides);

</pre>
<div class="separator"></div>
<h2>Displaying a formatted price</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{convertPrice price=$price} // display Price in the current currency
{displayPrice price=$price currency=$id_currency} // specify the currency
</pre>
<p>These are used to format the price only. They will not take care of any conversion rate, even if the first one is named that way.</p>
<h3>Example Usage</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">

// default currency is $, id 2 is Euros
{convertPrice price=1} // $1.00
{displayPrice price=1 currency=2} // 1,00 €

</pre>
<div class="separator"></div>
<h2>Displaying a formatted date</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{dateFormat date=$date full =1} // display a date formatted like specified in the back office

</pre>
<h3>Example Usage</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">

// chosen date format is dd/mm/yyyy H:i
{dateFormat date=&quot;2015-01-07 22:45:01&quot; } // 07/01/2015
{dateFormat date=&quot;2015-01-07 22:45:01&quot; full=1} // 07/01/2015 22:45

</pre>
<div class="separator"></div>
<h2>Getting a page Link</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{$link-&gt;getPageLink('pagename', ssl, id_lang, &quot;GET string or Array&quot;)}

</pre>
<h3>Example Usage</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">

// Gets a link for step 3 of the order process, with ssl
{$link-&gt;getPageLink('order', true, NULL, &quot;step=3&quot;)}

// link to the contact us page
&lt;a href=&quot;{$link-&gt;getPageLink('contact'}&quot; title=&quot;{l s='Contact us'}&quot;&gt;{l s='Contact us'}&lt;/a&gt;

</pre>
<div class="separator"></div>
<h2>Getting a Product Image</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{$link-&gt;getImageLink(link_rewrite, id_image, 'image_type')}

</pre>
<h3>Example Usage</h3>
<pre class="brush: php; html-script: true; title: ; notranslate">

// gets the home_default image type, having a product as array
&lt;img src=&quot;{$link-&gt;getImageLink($product.link_rewrite, $product.id_image, 'home_default')}&quot;/&gt;

</pre>
<div class="separator"></div>
<h2>Adding a new hook</h2>
<pre class="brush: php; html-script: true; title: ; notranslate">

{hook h='displaySomething'} // will process any hookDisplaySomething method
{hook h='displaySomething' parameter='my string'} // will pass a variable named &quot;parameter&quot; with value &quot;my string&quot; later available using &quot;params['mystring']&quot; in the hook method

</pre>
<div class="separator"></div>
<h2>Conclusion</h2>
<p>This batch concludes our series on Useful Prestashop Functions. Bear in mind logic should be kept off the templates as much as possible, to preserve the MVC pattern (Prestashop is heading towards it with Prestashop 1.7 removing plenty of modifiers next year). Therefore, whenever possible, try using the PHP counterpart of these functions, preprocessing the output and only using template for displaying data.</p>
<h3>Additional Resources</h3>
<ul>
<li><a href="http://nemops.com/prestashop-functions-1/#.Vb8upPnzrmg" title="Essential Prestashop Functions – Day 1">Essential Prestashop Functions – Day 1</a></li>
<li><a href="http://nemops.com/prestashop-functions-2/#.Vb9Bxvnzrmg" title="Essential Prestashop Functions – Day 2">Essential Prestashop Functions – Day 2</a></li>
<li><a href="http://nemops.com/prestashop-functions-3/#.Vb9EAPnzrmg" title="Essential Prestashop Functions – Day 3">Essential Prestashop Functions – Day 3</a></li>
<li><a href="http://nemops.com/prestashop-functions-4/#.Ve6ZPhHzrmg" title="Essential Prestashop Functions – Day 4">Essential Prestashop Functions – Day 4</a></li>
</ul>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-functions-5/">Essential Prestashop Functions – Day 5</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-functions-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prestashop: Upgrade-safe template modifications</title>
		<link>https://nemops.com/prestashop-upgrade-safe-template-modifications/</link>
		<comments>https://nemops.com/prestashop-upgrade-safe-template-modifications/#comments</comments>
		<pubDate>Wed, 03 Dec 2014 09:10:33 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[override]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2227</guid>
		<description><![CDATA[<p>If you have ever been frustrated because your template modifications got lost after upgrading, here is the final, bulletproof solution for upgrade-safe prestashop template modifications (with overrides!). Last week, I came across a really useful hook, almost by chance: displayOverrideTemplate. It&#8217;s not (of course) mentioned anywhere in the official Prestashop documentation, but it&#8217;s fundamental to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-upgrade-safe-template-modifications/">Prestashop: Upgrade-safe template modifications</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you have ever been frustrated because your template modifications got lost after upgrading, here is the final, bulletproof solution for upgrade-safe prestashop template modifications (with overrides!).</p>
<p><span id="more-2227"></span></p>
<a class="download-files button style1" href="http://nemops.com/wp-content/uploads/2014/12/psoverridetemplatedemo.zip" title="Download Project Files">Download Project Files</a>
<p>Last week, I came across a really useful hook, almost by chance: <strong>displayOverrideTemplate</strong>. It&#8217;s not (of course) mentioned anywhere in the official Prestashop documentation, but it&#8217;s fundamental to anyone willing to extend/modify the current template without fearing to lose all these tweaks with the next upgrade.</p>
<p>It&#8217;s been around since Prestashop 1.5, given what the calling method states, inside the <strong>FrontController.php</strong> file:</p>
<pre class="brush: php; title: ; notranslate">
	/**
	 * Returns the template corresponding to the current page.
	 * By default this method return false but could easily be overridden in a specific controller
	 *
	* @since 1.5
	* @return bool
	*/
	public function getOverrideTemplate()
	{
		return Hook::exec('DisplayOverrideTemplate', array('controller' =&gt; $this));
	}
</pre>
<p>At any rate, enough chit-chatting, it&#8217;s time to see the true power of this hook!</p>
<div class="separator"></div>
<h2>Example &#8211; Overriding the category page</h2>
<p>In this example, we will use a simple module to override the category page. Download the project files above, and then place the &#8216;psoverridetemplatedemo&#8217; folder in your Prestashop <em>modules/</em> folder. It&#8217;s nothing fancy, it&#8217;s just a blank module that does absolutely nothing. We will add something to it right away: locate the install method, and register our fancy hook</p>
<pre class="brush: php; title: ; notranslate">
	public function install()
	{
		if (!parent::install() ||
			!$this-&gt;registerHook('displayOverrideTemplate')
			)
			return false;
		return true;
	}
	
</pre>
<p>Install it. Then, to test that it really works, let&#8217;s add something SO invasive:</p>
<pre class="brush: php; title: ; notranslate">
	public function hookDisplayOverrideTemplate($params)
	{
		die('here');
		// return dirname(__FILE__).'/views/templates/hook/skeleton.tpl';
	}
</pre>
<p>This should kill every single page of your store, displaying &#8220;here&#8221; instead. If not, check the registerHook method.</p>
<p><strong>What should we now return from the hook?</strong> Not a template, as you might think, nor we will call smarty&#8217;s fetch method. <strong>We need to return a path to the template file we want to use</strong>. We have one in out module&#8217;s root (psoverridetemplatedemo.tpl), so let&#8217;s reference it here:</p>
<pre class="brush: php; title: ; notranslate">
	public function hookDisplayOverrideTemplate($params)
	{
		return dirname(__FILE__).'/psoverridetemplatedemo.tpl';
	}
</pre>
<p>Save and refresh. Every page of your store should now have the center column blank. Why? Because there is nothing in the template file. Add some garbage test to try it out, and you will see it appearing in every page. Yes, but this is not so useful, <strong>how can we replace a specific template?</strong> In a previous tutorial on <a href="http://nemops.com/page-specific-prestashop-module/#.VHeY7jGjOr0" target="_blank" title="Target specific pages from a Prestashop Module’s Hook">Target specific pages from a Prestashop Module’s Hook</a>, I showed you how to get each page&#8217;s specific identifier using the following method:</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;context-&gt;controller-&gt;php_self
</pre>
<p>If you recall the beginning of this article, we saw the Front Controller is passing the current controller object into the hook, which is then available to us for use within our method. The snippet I just mentioned therefore becomes:</p>
<pre class="brush: php; title: ; notranslate">
$params['controller']-&gt;php_self;
</pre>
<p>Easy as that. Let&#8217;s override the category page only, for example:</p>
<pre class="brush: php; title: ; notranslate">
	public function hookDisplayOverrideTemplate($params)
	{
		if ($params['controller']-&gt;php_self == 'category')
			return dirname(__FILE__).'/psoverridetemplatedemo.tpl';
	}
</pre>
<p>Save and refresh. The only overridden template will now be the category one! Sounds like a good deal. What about other pages? It&#8217;s easy enough to inspect each page&#8217;s name as follows:</p>
<pre class="brush: php; title: ; notranslate">
	public function hookDisplayOverrideTemplate($params)
	{
		var_dump($params['controller']-&gt;php_self);
		//if ($params['controller']-&gt;php_self == 'category')
		//	return dirname(__FILE__).'/psoverridetemplatedemo.tpl';
	}
</pre>
<p>The page name will be shown at the top. <strong>There are some exceptions though.</strong></p>
<p>Some pages simply don&#8217;t have any php_self assigned, and that statement would therefore cause trouble. To overcome, it&#8217;s enough to make sure it is assigned before comparing it to anything:</p>
<pre class="brush: php; title: ; notranslate">
	public function hookDisplayOverrideTemplate($params)
	{
		if (isset($params['controller']-&gt;php_self) &amp;&amp; $params['controller']-&gt;php_self == 'category')
			return dirname(__FILE__).'/psoverridetemplatedemo.tpl';
	}
</pre>
<p>And that&#8217;s it, you can target virtually every template for every controller with a page name now!</p>
<p>The post <a rel="nofollow" href="https://nemops.com/prestashop-upgrade-safe-template-modifications/">Prestashop: Upgrade-safe template modifications</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/prestashop-upgrade-safe-template-modifications/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Specifying the number of columns for each Prestashop page</title>
		<link>https://nemops.com/columns-for-each-prestashop-page/</link>
		<comments>https://nemops.com/columns-for-each-prestashop-page/#comments</comments>
		<pubDate>Tue, 20 Aug 2013 08:13:36 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Theming]]></category>
		<category><![CDATA[columns]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=1496</guid>
		<description><![CDATA[<p>In today&#8217;s tutorial we will see how to specify which columns to show for each page our our prestashop store. The $page_name variable In Prestashop, every page has a name. Okay, sounds ridiculous put in this way. However, it simply means that each page of your Prestashop store has a unique identifier that can help [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://nemops.com/columns-for-each-prestashop-page/">Specifying the number of columns for each Prestashop page</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In today&#8217;s tutorial we will see how to specify which columns to show for each page our our prestashop store.</p>
<p><span id="more-1496"></span></p>
<h2>The $page_name variable</h2>
<p>In Prestashop, every page has a name. Okay, sounds ridiculous put in this way. However, it simply means that each page of your Prestashop store has a unique identifier that can help you target that and no other page specifically when you want to modify the template?</p>
<p>It is utterly simple to know the name for each page. Reach the page you want, <strong>hit f12</strong> to bring up the developer console of your browser and inspect the html source. Look for the <body> tag and its ID, that&#8217;s the page&#8217;s name!</p>
<p><img src="http://nemops.com/wp-content/uploads/2013/08/body_id.jpg" alt="Inspect the page name in Prestashop" width="595" height="318" class="aligncenter size-full wp-image-1497" /></p>
<p>If you have a look at <strong>header.tpl</strong>, you&#8217;ll see where that name is pulling from as well:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
&lt;!-- &lt;body {if isset($page_name)}id=&quot;{$page_name|escape:'htmlall':'UTF-8'}&quot;{/if}  --&gt;

</pre>
<p>Therefore, you can see we can target both the specific page id and use that $page_name variable in the template as well. We can therefore have 2 ways (actually 3, if you considered the mixed one), to bend Prestashop to our needs: hard-editing the tpl files, or targeting the page id from CSS.</p>
<h2>Varying the column layout in Prestashop &#8211; the TPL way</h2>
<p>For this first example, we will see how to remove all columns from the homepage, and leave the left one only in the CMS pages. This TPL-only way has its disadvantages, which we&#8217;ll discover soon enough.</p>
<p>Open your <strong>header.tpl</strong> file, and locate</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
				&lt;div id=&quot;left_column&quot; class=&quot;column grid_2 alpha&quot;&gt;
					{$HOOK_LEFT_COLUMN}
				&lt;/div&gt;
</pre>
<p><strong>Note:</strong> I&#8217;m using the default template, yours might be different.</p>
<p>CHange it as follows</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
				{if $page_name != 'index'}
					&lt;div id=&quot;left_column&quot; class=&quot;column grid_2 alpha&quot;&gt;
						{$HOOK_LEFT_COLUMN}
					&lt;/div&gt;
				{/if}
				
</pre>
<p><strong>Explanation:</strong> it simply means: if this is not the homepage, show me the left column. So, if we are currently viewing the home of our web store, that column won&#8217;t even be rendered. As soon as you refresh your homepage, and that only, your left column will be gone.</p>
<p>Now, we need to consider the center column&#8217;s width. In the default template, columns widths are defined by the so-called Prestashop grid, which is a 9-columns based wireframe system. Thus, if we want the center column to span across the entire site&#8217;s width in the homepage, we need to change its class to grid_9&#8230;but for the index only!</p>
<p>Look for</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
&lt;div id=&quot;center_column&quot; class=&quot; grid_5&quot;&gt;
</pre>
<p>And change it into</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
&lt;div id=&quot;center_column&quot; class=&quot;{if $page_name == 'index'}grid_9{else}grid_5{/if}&quot;&gt;
</pre>
<p>Save&#038;refresh. Your right column will be sent to next line. Again, for the homepage only. If we are not currently seeing the index, our center_column will still have a class of grid_5.</p>
<p>Right away, you can see the first issues that arise with this method. If you have custom modules which are set to a fixed width, or in any case are configured to span across the usual center column width, you&#8217;ll need to edit those too, and take the new with into account. This is also true for the <strong>featured products block</strong> as you can see the fifth element is stuck to the fourth. This happens because there is a variable set in homefeatured.tpl, which takes only 4 items per line. You can change it to account for the new size of course. And indeed, the slider up there needs bigger images!</p>
<p><img src="http://nemops.com/wp-content/uploads/2013/08/tpl-issues-680x480.png" alt="After changing the tpl grid class in Prestashop" width="680" height="480" class="aligncenter size-large wp-image-1498" /></p>
<p>Let&#8217;s get rid of the right column to complete our homepage. Open <strong>footer.tpl</strong> and change</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
				&lt;div id=&quot;right_column&quot; class=&quot;column grid_2 omega&quot;&gt;
					{$HOOK_RIGHT_COLUMN}
				&lt;/div&gt;
</pre>
<p>To</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
				{if $page_name != 'index'}
					&lt;div id=&quot;right_column&quot; class=&quot;column grid_2 omega&quot;&gt;
						{$HOOK_RIGHT_COLUMN}
					&lt;/div&gt;
				{/if}
				
</pre>
<p>There it is, homepage completed!</p>
<p>Moving onto the CMS pages layout, we can simply amend our previous changes and take the page_name &#8216;cms&#8217; into account. So, to hide the right column:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
				{if $page_name != 'index' AND $page_name != 'cms'}
					&lt;div id=&quot;right_column&quot; class=&quot;column grid_2 omega&quot;&gt;
						{$HOOK_RIGHT_COLUMN}
					&lt;/div&gt;
				{/if}
				
</pre>
<p>Then, to extend our center column, back to header.tpl:</p>
<pre class="brush: php; html-script: true; title: ; notranslate">

&lt;div id=&quot;center_column&quot; class=&quot;{if $page_name == 'index'}grid_9{elseif $page_name == 'cms'}grid_7 omega{else}grid_5{/if}&quot;&gt;
				
</pre>
<p><strong>Explanation: alpha and omega.</strong> If you are wondering why I added &#8216;omega&#8217; to this last block, instead of simply leaving grid_7 (which is, 7 columns over a total of 9, considering we still have the left column there), it&#8217;s because of margins. <strong>All blocks but grid_9 have a margin; adding alpha will kill the left margin, adding omega will kill the right one.</strong> This way, all blocks will fit into their space like puzzle pieces.</p>
<div class="separator"></div>
<h2>Varying the column layout in Prestashop &#8211; the CSS way</h2>
<p>Using the previous method is certainly effective, and it&#8217;s okay on most pages. However, in some pages, like the checkout using one-page-checkout, it will simply fail. No matter what you&#8217;ll do, your center column will never cover the whole space. This is because on certain pages prestashop assigns a fixed width to the template. Here is an example taken from global.css</p>
<pre class="brush: css; title: ; notranslate">
#order-opc #center_column {
	width: 757px;
}
</pre>
<p>As you can see, it has a fixed width. In addition, notice how we can actually target the specific page and change the width (and more) using css, since that ID is nothing but the $page_name. Let&#8217;s open up <strong>global.css</strong> located at <em>themes/themename/css/</em>. Look for the line I mentioned above. Now change it to</p>
<pre class="brush: css; title: ; notranslate">
#order-opc #center_column {
	width: 980px;
}
</pre>
<p>Refresh, and you&#8217;ll see the center column taking up all the space all of a sudden. It&#8217;s then time to hide the right column. Note that this will simply hide it, and the actual html will still be parsed. Add this right after the previous modifications</p>
<pre class="brush: css; title: ; notranslate">
#order-opc #right_column {
	display:none
}
</pre>
<p>There, the right column&#8217;s gone!</p>
<div class="separator"></div>
<h2>The mixed way</h2>
<p>The first method we saw is cool since it will not render part of the template (though hooks will still be processed because they are assigned in a controller, perhaps a subject for some new tutorial? Let me know). However, as we saw it is useless in some pages. On the other hand, while it&#8217;s really easy to edit css, those blocks we hide are&#8230;uh, only hidden! What about going for a mixed way? You can try it yourself on the product page. Add the code to remove the left or right column (or both). Then, open up <strong>product.css</strong> and look for <strong>#pb-left-column</strong> and <strong>#pb-right-column</strong>. Change their size to account for the new space, but <strong>bear in mind their names are actually inverted!</strong>.</p>
<p>The post <a rel="nofollow" href="https://nemops.com/columns-for-each-prestashop-page/">Specifying the number of columns for each Prestashop page</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/columns-for-each-prestashop-page/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
