|
@@ -54,9 +54,10 @@ |
|
|
block discarded – undo |
|
54
|
54
|
$preSelectVariantAttributes = ''; |
|
55
|
55
|
if ($this->param( 'productId' ) && is_numeric($this->param( 'productId' ))): |
|
56
|
56
|
|
|
57
|
|
- if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $this->param( 'productId' ))) && ( $product = $listItem->getRefItem() ) ) |
|
58
|
|
- |
|
|
57
|
+ if(($listItem = $this->detailProductItem->getListItem( 'product', 'default', (int) $this->param( 'productId' ))) && ( $product = $listItem->getRefItem() ) ) { |
|
|
58
|
+ |
|
59
|
59
|
$attributes = $product->getRefItems('attribute',null,'variant'); |
|
|
60
|
+ } |
|
60
|
61
|
|
|
61
|
62
|
foreach($attributes as $attribId => $attribute): |
|
62
|
63
|
$preSelectVariantAttributes[$attribute->getType()] = $attribute->getId(); |
Please login to merge, or discard this patch.