<?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>Prestashop Archives - Nick Shaw</title>
	<atom:link href="https://www.nick-shaw.co.uk/tag/prestashop/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description></description>
	<lastBuildDate>Tue, 31 Mar 2015 05:28:58 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">150481139</site>	<item>
		<title>Change all PrestaShop products to show price</title>
		<link>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/</link>
					<comments>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/#respond</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Tue, 31 Mar 2015 05:28:58 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Prestashop]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=1929</guid>

					<description><![CDATA[<p>Using this command you can easily set all products to show the price.</p>
<p>The post <a href="https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/">Change all PrestaShop products to show price</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Using this command you can easily set all products to show the price.</p>
<pre class="brush: sql; title: ; notranslate">
UPDATE `ps_product` SET show_price =1 WHERE show_price =0
UPDATE `ps_product_shop` SET show_price =1 WHERE show_price =0
</pre>
<p>The post <a href="https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/">Change all PrestaShop products to show price</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/change-all-prestashop-products-to-show-price/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1929</post-id>	</item>
		<item>
		<title>Add category ID as a class to the body tag in Prestashop</title>
		<link>https://www.nick-shaw.co.uk/add-category-id-as-a-class-to-the-body-tag-in-prestashop/</link>
					<comments>https://www.nick-shaw.co.uk/add-category-id-as-a-class-to-the-body-tag-in-prestashop/#comments</comments>
		
		<dc:creator><![CDATA[Nick]]></dc:creator>
		<pubDate>Mon, 13 Oct 2014 17:13:53 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[category id]]></category>
		<category><![CDATA[foreach loop]]></category>
		<category><![CDATA[Prestashop]]></category>
		<guid isPermaLink="false">http://www.nick-shaw.co.uk/?p=1912</guid>

					<description><![CDATA[<p>Within CategoryController.php&#8217;s initContent() function find &#8220;$this-&#62;context-&#62;smarty-&#62;assign(array(&#8221; and add a new line: 'parent_category_chain' =&#62; $this-&#62;category-&#62;getParentsCategories(), In your header.tpl you can use a foreach loop to only add a category id number where the level_depth of categories is equal to 2 (which would all have a parent category of &#8220;home&#8221; respectively). &#60;body {if $page_name}id=&#34;{$page_name&#124;escape:'htmlall':'UTF-8'}&#34;{/if}{if $category-&#62;id}{if $category-&#62;level_depth eq [&#8230;]</p>
<p>The post <a href="https://www.nick-shaw.co.uk/add-category-id-as-a-class-to-the-body-tag-in-prestashop/">Add category ID as a class to the body tag in Prestashop</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Within CategoryController.php&#8217;s initContent() function find &#8220;$this-&gt;context-&gt;smarty-&gt;assign(array(&#8221; and add a new line:</p>
<pre class="brush: php; title: ; notranslate">
'parent_category_chain' =&gt; $this-&gt;category-&gt;getParentsCategories(),
</pre>
<p>In your header.tpl you can use a foreach loop to only add a category id number where the level_depth of categories is equal to 2 (which would all have a parent category of &#8220;home&#8221; respectively).</p>
<pre class="brush: php; title: ; notranslate">
&lt;body {if $page_name}id=&quot;{$page_name|escape:'htmlall':'UTF-8'}&quot;{/if}{if $category-&gt;id}{if $category-&gt;level_depth eq 2} class=&quot;cat{$category-&gt;id}&quot;{elseif $category-&gt;level_depth &gt; 2}{foreach $parent_category_chain as $parent_category_node}{if $parent_category_node.level_depth eq 2} class=&quot;cat{$parent_category_node.id_category}&quot;{/if}{/foreach}{/if}{/if}&gt;
</pre>
<p><a href="http://www.prestashop.com/forums/topic/332223-add-default-category-class-id-to-product-page-body/" target="_blank" class="broken_link">Code from Prestashop forum</a></p>
<p>The post <a href="https://www.nick-shaw.co.uk/add-category-id-as-a-class-to-the-body-tag-in-prestashop/">Add category ID as a class to the body tag in Prestashop</a> appeared first on <a href="https://www.nick-shaw.co.uk">Nick Shaw</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nick-shaw.co.uk/add-category-id-as-a-class-to-the-body-tag-in-prestashop/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1912</post-id>	</item>
	</channel>
</rss>
