Jump to content

[SOLVED] Product.tpl modification query


Recommended Posts

Hi guys,
I wanted to make the product-features appear in a table on the data-sheet tab of the product page.

So I've modified the following segment from product.tpl...
-------------------------------------------------------------

>
   {if $features}
       <!-- product's features -->
</pre>
<ul>
       {foreach from=$features item=feature}
{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}
       {/foreach}
</ul>
<br>   {/if


-------------------------------------------------------------
to this...

-------------------------------------------------------------

>
   {if $features}    
       <!-- product's features -->
</pre>
<table>{$feature.name|escape:'htmlall':'UTF-8'} {$feature.value|escape:'htmlall':'UTF-8'}</table>
<br>   {/if}   


-------------------------------------------------------------
The CSS classes are...
-------------------------------------------------------------

.feature-table {
   background-color: #f8f8f8;
   border: 1px solid #cccccc;
   border-collapse:collapse;    
}
.feature-column-1 {
   color: #8a8a8a; 
   font-size: 13px; 
   text-align: left;
   border: 1px solid #cccccc;    
   padding: 5px;    
}
.feature-column-2 {
   color: #000000; 
   font-size: 11px; 
   text-align: left;
   border: 1px solid #cccccc;    
   padding: 5px;
}


-------------------------------------------------------------
This works, it lists all the features within table columns BUT the table also appears on all the other tabs on the product page too, ("more Info", "Accessories" and "comments")

-I've changed nothing else, (except to change the title of the features tab from "Data-Sheet" to "Specifications")

I'm not too familiar with smarty system but can muddle through PHP.
I've been looking through the modules for hours but I just can't see what I've done wrong.
Does anyone have any ideas where I should look to fix this please?

mark.

Link to comment
Share on other sites

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...