Seems that MIGX (grid input for input parameters like unlimited Product attributes) has currently only output for images.
The following solution is maybe the first published variant of solving this:
If the attributes tv has a grid input in JSON format:
[{"caption":"Product attributes", "fields": [{"field":"title","caption":"Title"},{"field":"value","caption":"Value"}]}] of tabs and Grid: [{"header": "Title", "width": "160", "sortable": "true", "dataIndex": "title"},{"header": "Value", "width": "160", "sortable": "true", "dataIndex": "value"}]
Then the following snippet call
[[[attributes?attributes=``]]
will run through the JSON values and return output:
if(isset($attributes) && $attributes != ''){
$attributes = $modx->fromJSON($attributes); //print_r($attributes); die;
if(is_array($attributes)){ $ret = '';
foreach($attributes as $k=>$v){
$ret .= '<li> <ul> <li>'.$v['title'].'</li> <li class="rt">'.$v['value'].'</li> </ul> </li> ';
}
return $ret;
} else return '';
} else return '';
Rate this information:
Votes: 1202May we recommend:
Hide your functional files and system folders from search engine output change per filter on the category page of Magento ecommerce Timeout - Screensaver us charity organisation website on modx evo
MODX CMS extensions Sale:
6h support build your product in opencart 6h support foxycart hook to updates inventory per option or variant of the product