@@ -132,6 +132,9 @@ |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | |
135 | + /** |
|
136 | + * @param string $name |
|
137 | + */ |
|
135 | 138 | protected function access( $name ) |
136 | 139 | { |
137 | 140 | $class = new \ReflectionClass( '\Aimeos\MShop\Plugin\Provider\Order\ProductFreeOptions' ); |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $attribute->setQuantity( 2 ); |
55 | 55 | $attribute->setCode( 'size' ); |
56 | 56 | $attribute->setType( 'config' ); |
57 | - $attribute->setAttributeId( $attrManager->findItem( 'xs', [], 'product', 'size')->getId() ); |
|
57 | + $attribute->setAttributeId( $attrManager->findItem( 'xs', [], 'product', 'size' )->getId() ); |
|
58 | 58 | |
59 | 59 | $product->setAttributeItem( $attribute ); |
60 | 60 | $product->setProductId( $prodManager->findItem( 'CNE' )->getId() ); |
@@ -78,8 +78,7 @@ |
||
78 | 78 | { |
79 | 79 | $list = $this->sortByPrice( $list, $attrQtys ); |
80 | 80 | $priceItem = $this->addPrices( $priceItem, $list, $attrQtys, (int) $prodConf[$type] ); |
81 | - } |
|
82 | - else |
|
81 | + } else |
|
83 | 82 | { |
84 | 83 | $priceItem = $this->addPrices( $priceItem, $list, $attrQtys, 0 ); |
85 | 84 | } |