@@ -51,10 +51,10 @@ |
||
51 | 51 | && ( $articleId = $this->param( 'd_articleid' ) ) |
52 | 52 | ) { |
53 | 53 | foreach($this->detailProductItem->getListItems( 'product', 'default' ) as $listItem) : |
54 | - if($product = $listItem->getRefItem()) : |
|
55 | - $varAttr[$product->getId()] = $product->getRefItems( 'attribute', null, 'variant' )->col( 'attribute.id', 'attribute.type' ); |
|
56 | - endif; |
|
57 | - endforeach; |
|
54 | + if($product = $listItem->getRefItem()) : |
|
55 | + $varAttr[$product->getId()] = $product->getRefItems( 'attribute', null, 'variant' )->col( 'attribute.id', 'attribute.type' ); |
|
56 | + endif; |
|
57 | + endforeach; |
|
58 | 58 | |
59 | 59 | } |
60 | 60 | ?> |
@@ -50,8 +50,8 @@ |
||
50 | 50 | if( isset( $this->detailProductItem ) |
51 | 51 | && ( $articleId = $this->param( 'd_articleid' ) ) |
52 | 52 | ) { |
53 | - foreach($this->detailProductItem->getListItems( 'product', 'default' ) as $listItem) : |
|
54 | - if($product = $listItem->getRefItem()) : |
|
53 | + foreach( $this->detailProductItem->getListItems( 'product', 'default' ) as $listItem ) : |
|
54 | + if( $product = $listItem->getRefItem() ) : |
|
55 | 55 | $varAttr[$product->getId()] = $product->getRefItems( 'attribute', null, 'variant' )->col( 'attribute.id', 'attribute.type' ); |
56 | 56 | endif; |
57 | 57 | endforeach; |