Jump to content

Table in Features Rather Than Bulleted List


Recommended Posts



I'm new to presta shop but setting it up has been quite a breeze but now i'm stumped as was seeking a little help.


On the product page on the tab where the features are displayed i have a bulleted list and want to know how to turn this to a table. The same table that appears when you compare products.


I'm using 1.5


Thanks in advance

  • Like 1
Link to comment
Share on other sites

It's okay, I sorted it. I replaced


<ul id="idTab2" class="bullet">
 {foreach from=$features item=feature}
	    {if isset($feature.value)}
   <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li>




<table id="idTab2">
 {foreach from=$features item=feature}
	    {if isset($feature.value)}
   <tr><td width="30%" class="featurestable"><span>{$feature.name|escape:'htmlall':'UTF-8'}</span></td><td class="featurestable"> {$feature.value|escape:'htmlall':'UTF-8'}</td></tr>


in the product.tpl file


Then I added


.featurestable {
border-bottom:1px solid #ccc;


to the global.css file.


Hope this helps

  • Like 3
Link to comment
Share on other sites

  • 1 year 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...