Display extra field for products

29.01.2013 15:25
#1
anjakahuy
Joomshopping forum user no avatar
Name: Nguyen van huy
18.01.2012
Posts: 29
Quote
Display extra field for products

When I set Product Characteristics is Multiple List, Characteristics in Product display the same: "Name characteristics : Value1, value2, . . . , values(n)". How can I display characteristics in list html the same "Name characteristics: <ul><li>value1</li><li>value2</li><li>value(n)</li></ul>"

 
29.01.2013 16:49
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16485
Quote
Aw: Display extra field for products

components\com_jshopping\tables\product.php

function getExtraFields($type = 1){
..
....

if ($this->$field_name!=0){
$listid = explode(',', $this->$field_name);
$tmp = array();
foreach($listid as $extrafiledvalueid){
$tmp[] = $fieldvalues[$extrafiledvalueid];
}
$extra_field_value = implode(", ", $tmp);
$rows[] = array("id"=>$field_id, "name"=>$listfield[$field_id]->name, "description"=>$listfield[$field_id]->description, "value"=>$extra_field_value, "groupname"=>$listfield[$field_id]->groupname);
}

 
Copyrights MAXXmarketing GmbH. All Rights Reserved