List product characteristics in a table

26.10.2011 20:24
#1
poroff
Joomshopping forum user no avatar
Name: Joro Pora
19.07.2011
Posts: 4
Quote
List product characteristics in a table

Is there a way to list all product characteristics in a table for a better viewing experience? Please see the attached photo for details.
Thanks in advance for the prompt answer.
List product characteristics in a table


Joomla: 1.6
JoomShopping: 3.2.7
PHP: -
MySQL: -
Website Url: -
 
27.10.2011 16:37
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: List product characteristics in a table

Change template shop.

 
28.10.2011 11:07
#3
poroff
Joomshopping forum user no avatar
Name: Joro Pora
19.07.2011
Posts: 4
Quote
Aw: List product characteristics in a table

Thanks, it works like a charm!

In case anyone wonders how to do it, you have to edit the template product_default.php placed in components\com_jshopping\templates\default\product. Search for an entry named "extra_field" - it concerns product characteristics. The original code should look like this:

<?php if (is_array($this->product->extra_field)){?>
<div class="extra_fields">
<?php foreach($this->product->extra_field as $extra_field){?>
<div><?php print $extra_field['name']; ?>: <?php print $extra_field['value']; ?></div>
<?php }?>
</div>
<?php }?>

In my case I replaced it with the following code:

<?php if (is_array($this->product->extra_field)){?>
<div class="extra_fields">
<table>
<?php foreach($this->product->extra_field as $extra_field){?>
<tr>
<td width = "150">
<?php print $extra_field['name']; ?>:
</td>
<td width = "250">
<?php print $extra_field['value']; ?>
</td>
</tr>
<?php }?>
</table>
</div>
<?php }?>

Hope that helps, thanks once more webdesigner for pointing me in the right direction.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved