Jump to content

always showing double line in functions


Recommended Posts

i got a problem on my webshop . when i add a function to a product it shows the function twice. 

 

if i add more than 1 function it only shows the last function twice..

 

see it here : http://billigedufte.dk/eau-de-toilette/3-versace-bright-crystal-30ml.html

 

i've tried to illustrate it on the attachment here : post-754138-0-06279000-1399965862_thumb.png

 

and the code from the product.tpl

 

 

{if isset($features) && $features}
<!-- Data sheet -->
<section class="page-product-box">
<h3 class="page-product-heading">{l s='Information om produktet'}</h3>
<table class="table-data-sheet"> 
{foreach from=$features item=feature}
<tr class="{cycle values="odd,even"}">
{if isset($feature.value)}     
<td>{$feature.name|escape:'html':'UTF-8'}</td>
<td>{$feature.value|escape:'html':'UTF-8'}</td>
{/if}
</tr>
{/foreach}
</table>
</section>
<!--end Data sheet -->
{/if}
Link to comment
Share on other sites

use somewhere {$features|print_r} (outside the foreach loop)

can you show what you see in output?

the output is : 

Array ( [0] => Array ( [name] => Størrelse [value] => 90ml [id_feature] => 1 ) [1] => Array ( [name] => Mærke [value] => Gucci [id_feature] => 2 ) [2] => Array ( [name] => Kollektion [value] => Guilty [id_feature] => 3 ) [3] => Array ( [name] => Produkt Kategori [value] => Eau De Toilette [id_feature] => 4 ) [4] => Array ( [name] => Køn [value] => Mænd [id_feature] => 5 ) [5] => Array ( [id_product] => 4 [name] => Køn [value] => Mænd [id_feature] => 5 ) ) 1
Edited by explodedk (see edit history)
Link to comment
Share on other sites

i thought that the problem is related to tpl file but i see that in output this field is doubled,

so the problem is probably somewhere in:

a) php file

B) database

 

now you're saying that problem is related to only one product

you changed something?

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...