|
@@ 413-416 (lines=4) @@
|
| 410 |
|
$frag = $doc->createDocumentFragment(); |
| 411 |
|
$products = $product->getRelatedProducts(); |
| 412 |
|
$index = 0; |
| 413 |
|
foreach ($products as $rProduct) { |
| 414 |
|
$index++; |
| 415 |
|
$this->_addProductLink($frag, 'ES_Accessory', $index, $this->passSKU($rProduct->getSku(), '', $rProduct, $doc)); |
| 416 |
|
} |
| 417 |
|
$products = $product->getUpSellProducts(); |
| 418 |
|
$index = 0; |
| 419 |
|
foreach ($products as $rProduct) { |
|
@@ 419-422 (lines=4) @@
|
| 416 |
|
} |
| 417 |
|
$products = $product->getUpSellProducts(); |
| 418 |
|
$index = 0; |
| 419 |
|
foreach ($products as $rProduct) { |
| 420 |
|
$index++; |
| 421 |
|
$this->_addProductLink($frag, 'ES_UpSelling', $index, $this->passSKU($rProduct->getSku(), '', $rProduct, $doc)); |
| 422 |
|
} |
| 423 |
|
$products = $product->getCrossSellProducts(); |
| 424 |
|
$index = 0; |
| 425 |
|
foreach ($products as $rProduct) { |
|
@@ 425-428 (lines=4) @@
|
| 422 |
|
} |
| 423 |
|
$products = $product->getCrossSellProducts(); |
| 424 |
|
$index = 0; |
| 425 |
|
foreach ($products as $rProduct) { |
| 426 |
|
$index++; |
| 427 |
|
$this->_addProductLink($frag, 'ES_CrossSelling', $index, $this->passSKU($rProduct->getSku(), '', $rProduct, $doc)); |
| 428 |
|
} |
| 429 |
|
return $frag->hasChildNodes() ? $frag : null; |
| 430 |
|
} |
| 431 |
|
|