Использую код:
Code: Select all
$attributes = $this->model_catalog_product->getProductAttributes($product['product_id']);
if (!empty($attributes)) {
foreach ($attributes as $attr) {
if($attr['attribute_id'] == 15) {
$attr_text = $attr['text'] ;
$attr = $this->dd->createElement('param');
$attr->setAttribute('code', 'color');
$attr->setAttribute('name', 'Color');
$attr->appendChild($this->dd->createTextNode($attr_text));
$e->appendChild($attr);
}
}
}