<?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; quick view</title>
	<atom:link href="http://nemops.com/tag/quick-view/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>Quick Tip: Add product features to the Prestashop 1.6 Quick View box</title>
		<link>http://nemops.com/quick-tip-add-product-features-prestashop-1-6-quick-view-box/</link>
		<comments>http://nemops.com/quick-tip-add-product-features-prestashop-1-6-quick-view-box/#comments</comments>
		<pubDate>Mon, 16 Jun 2014 09:54:08 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[prestashop 1.6]]></category>
		<category><![CDATA[quick view]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2074</guid>
		<description><![CDATA[<p>We already saw how to add features to the products list. It&#8217;s now time to implement then into the quick view box! In a recent tutorial, we saw How to add features to the product list in Prestashop 1.6. However, if you want to save some space, and take full advantage of Prestashop 1.6, you [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://nemops.com/quick-tip-add-product-features-prestashop-1-6-quick-view-box/">Quick Tip: Add product features to the Prestashop 1.6 Quick View box</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>We already saw how to add features to the products list. It&#8217;s now time to implement then into the quick view box!</p>
<p><span id="more-2074"></span></p>
<p>In a recent tutorial, we saw <a target="_blank" href="http://nemops.com/features-to-product-list-prestashop-16/" title="How to add features to the product list in Prestashop 1.6">How to add features to the product list in Prestashop 1.6</a>.</p>
<p>However, if you want to save some space, and take full advantage of Prestashop 1.6, you might want to add them to the QuickView box instead. The procedure is quite simple, and only involves editing one file!</p>
<div class="separator"></div>
<h2>Understanding the Quick View box in Prestashop 1.6</h2>
<p>What is this Quick View box, exactly? Where is it pulling data from? Simply put, it fetches the <strong>product.tpl</strong> file by sending an ajax request to the ProductController, and returns a portion of the page, instead of the whole. <br />
How does it do it? It uses the <strong>{$content_only}</strong> variable in Smarty, which allows Prestashop to know if we are trying to display the content inside a lightbox, or generally picking it using ajax. Therefore, to add content to the Quick View, it&#8217;s enough to use a condition in the product.tpl file.
</p>
<div class="separator"></div>
<h2>Editing product.tpl</h2>
<p>As always, it&#8217;s best practice not to edit files directly, but cloning the default template and proceeding from there. Once you have a clean copy, enable it, then open <strong>product.tpl</strong>.</p>
<p>The spot where to add feature is entirely up to your discretion, I chose the one right below quantities, as shown below.</p>
<p><img src="http://nemops.com/wp-content/uploads/2014/06/quickview_features_spot-680x375.jpg" alt="Adding product features to quick view in prestashop 1.6, spot" width="680" height="375" class="aligncenter size-large wp-image-2076" /></p>
<p>To add them over there, locate the following inside product.tpl</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
	{if isset($HOOK_EXTRA_RIGHT) &amp;&amp; $HOOK_EXTRA_RIGHT}{$HOOK_EXTRA_RIGHT}{/if}
</pre>
<p>Right before it, add</p>
<pre class="brush: php; html-script: true; title: ; notranslate">
			{if $content_only}
				{if isset($features) &amp;&amp; $features}
					&lt;!-- Data sheet --&gt;
					&lt;section class=&quot;page-product-box&quot;&gt;
						&lt;p&gt;&lt;strong&gt;{l s='Features'}&lt;/strong&gt;&lt;/p&gt;
				
							{foreach from=$features item=feature}
							&lt;div class=&quot;{cycle values=&quot;odd,even&quot;}&quot;&gt;
								{if isset($feature.value)}			    
									{$feature.name|escape:'html':'UTF-8'} :
									{$feature.value|escape:'html':'UTF-8'}
								{/if}
							&lt;/div&gt;
							{/foreach}

					&lt;/section&gt;
					&lt;!--end Data sheet --&gt;
				{/if}
			{/if}


</pre>
<p><strong>Explanation</strong>: What are we doing here? As explained above, we need to tell prestashop to show this content only if it&#8217;s grabbing the template in &#8220;content_only&#8221; mode. Otherwise, the features list would be added to the normal product page as well. Then, we make sure there actually are features, and if so, we add the box with them inside. I used a slightly modified version of the original features table that you can find in the very same product.tpl file, so that it doesn&#8217;t look as big as that one. {cycle values=&#8221;odd,even&#8221;} allows you to style each row separately, in case you need to.</p>
<p>We are done!</p>
<p><img src="http://nemops.com/wp-content/uploads/2014/06/features_quickview-680x375.jpg" alt="Adding product features to quick view in prestashop 1.6, added" width="680" height="375" class="aligncenter size-large wp-image-2078" /></p>
<p>The post <a rel="nofollow" href="http://nemops.com/quick-tip-add-product-features-prestashop-1-6-quick-view-box/">Quick Tip: Add product features to the Prestashop 1.6 Quick View box</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nemops.com/quick-tip-add-product-features-prestashop-1-6-quick-view-box/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
