My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: feature values are not displaying on compare
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by abhi@abhis.com, Jun 7, 2012
Hi..,

I have installed your module on my website http://cellworld.co.in

The grouped feature is working on the Product page as it should, But it is not working on the comaprison page.. it shows the group and feature names but values are not displaying..


I have attached screenshots please have a look, and guide me how to resolve..
i can provide ytou acccess to the website..

Thanks & Regards
ABHi
Capture.JPG
63.7 KB   View   Download
Capture2.JPG
70.5 KB   View   Download
Capture3.JPG
58.3 KB   View   Download
Aug 27, 2012
#1 anila.n...@gmail.com
Hi, I have recently installed this module too but it's not working can you please tell me which version of prestashop are you using?
Oct 18, 2012
#2 rangerek...@googlemail.com
I have the same problem 
i'm using version 1.4.4.1 PL (as my customer wanted full polish version) - i have installed 1.3.0 of your module (not without problems :) ) it works ok on product's page but on the comparison page it shows just an empty table

as i'm using a paid template i had to manually add lines into the template so tell me if code 

{if $ordered_features}
        {* Added by module for grouped features *}
		{foreach from=$ordered_features item=group}
            	<tr><td colspan="{$products|@count+1}"> {$group.name}</td></tr>
            {foreach from=$group.features item=feature}
            	<tr>
            		{cycle values='comparison_feature_odd,comparison_feature_even' assign='classname'}
            		<td class="{$classname}" style="padding-left: 10px">
            			{$feature.name|escape:'htmlall':'UTF-8'}
            		</td>
            
            			{foreach from=$products item=product name=for_products}
            				{assign var='product_id' value=$product->id}
            				{assign var='feature_id' value=$feature.id_feature}
            				{if isset($product_features[$product_id])}
            					{assign var='tab' value=$product_features[$product_id]}
            				{/if}
            				<td  width="{$width}%" class="{$classname} comparison_infos">
            				{if isset($tab[$feature_id])}{$tab[$feature_id]|escape:'htmlall':'UTF-8'}{/if}</td>
            			{/foreach} 
            	</tr>
             {/foreach}  {* feature loop *}
		{/foreach} {* group loop *}
		{else}
			<tr>
				<td></td>
				<td colspan="{$products|@count + 1}">{l s='No features to compare'}</td>
			</tr>
		{/if}

		{$HOOK_EXTRA_PRODUCT_COMPARISON} 

is enough to make it work - or what am i missing here
screen1.JPG
90.4 KB   View   Download
Oct 30, 2012
#3 rangerek...@googlemail.com
ok issue is a duplicate of  issue 3  :)

For product comparison page go to controllers/CompareController.php, line 109 and add additional param false 
foreach ($curProduct->getFrontFeatures(self::$cookie->id_lang, false) AS $feature)

Line number for version 1.4.7
Depends on version it can be changed. So try find it in your installation
Nov 13, 2012
#5 pmalj...@gmail.com
It happens a curious case. By modifying the file CompareController.php you mention, module works very good in the comparision page. But it is not working on the product page, do not charge the features tab. Any suggestions? I installed the module in Prestashop 1.4.9.0 
Thanks in advance.
111.jpg
182 KB   View   Download
222.jpg
214 KB   View   Download

Powered by Google Project Hosting