@@ -104,10 +104,11 @@ discard block |
||
104 | 104 | { |
105 | 105 | $msg = sprintf( 'No unique article found for selected attributes and product ID "%1$s"', $productItem->getId() ); |
106 | 106 | throw new \Aimeos\Controller\Frontend\Basket\Exception( $msg ); |
107 | - } |
|
108 | - else if( ( $result = reset( $productItems ) ) !== false ) // count == 1 |
|
107 | + } else if( ( $result = reset( $productItems ) ) !== false ) { |
|
108 | + // count == 1 |
|
109 | 109 | { |
110 | 110 | $productItem = $result; |
111 | + } |
|
111 | 112 | $orderBaseProductItem->setProductCode( $productItem->getCode() ); |
112 | 113 | |
113 | 114 | $subprices = $productItem->getRefItems( 'price', 'default', 'default' ); |
@@ -133,10 +134,11 @@ discard block |
||
133 | 134 | |
134 | 135 | $attr[] = $orderAttributeItem; |
135 | 136 | } |
136 | - } |
|
137 | - else if( !isset( $options['variant'] ) || $options['variant'] != false ) // count == 0 |
|
137 | + } else if( !isset( $options['variant'] ) || $options['variant'] != false ) { |
|
138 | + // count == 0 |
|
138 | 139 | { |
139 | 140 | $msg = sprintf( 'No article found for selected attributes and product ID "%1$s"', $productItem->getId() ); |
141 | + } |
|
140 | 142 | throw new \Aimeos\Controller\Frontend\Basket\Exception( $msg ); |
141 | 143 | } |
142 | 144 |
@@ -278,7 +278,7 @@ |
||
278 | 278 | /** |
279 | 279 | * Returns the frontend controller |
280 | 280 | * |
281 | - * @return \Aimeos\Controller\Frontend\Catalog\Iface Frontend controller object |
|
281 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
282 | 282 | */ |
283 | 283 | protected function getController() |
284 | 284 | { |
@@ -152,7 +152,7 @@ |
||
152 | 152 | /** |
153 | 153 | * Returns the frontend controller |
154 | 154 | * |
155 | - * @return \Aimeos\Controller\Frontend\Order\Iface Frontend controller object |
|
155 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
156 | 156 | */ |
157 | 157 | protected function getController() |
158 | 158 | { |
@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * Returns the frontend controller |
193 | 193 | * |
194 | - * @return \Aimeos\Controller\Frontend\Product\Iface Frontend controller object |
|
194 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
195 | 195 | */ |
196 | 196 | protected function getController() |
197 | 197 | { |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Returns the frontend controller |
130 | 130 | * |
131 | - * @return \Aimeos\Controller\Frontend\Service\Iface Frontend controller object |
|
131 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
132 | 132 | */ |
133 | 133 | protected function getController() |
134 | 134 | { |
@@ -128,7 +128,7 @@ |
||
128 | 128 | /** |
129 | 129 | * Returns the frontend controller |
130 | 130 | * |
131 | - * @return \Aimeos\Controller\Frontend\Attribute\Iface Frontend controller object |
|
131 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
132 | 132 | */ |
133 | 133 | protected function getController() |
134 | 134 | { |
@@ -140,7 +140,7 @@ |
||
140 | 140 | /** |
141 | 141 | * Returns the frontend controller |
142 | 142 | * |
143 | - * @return \Aimeos\Controller\Frontend\Stock\Iface Frontend controller object |
|
143 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
144 | 144 | */ |
145 | 145 | protected function getController() |
146 | 146 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | /** |
131 | 131 | * Returns the product item for the given ID if it's available |
132 | 132 | * |
133 | - * @param array $ids List of product IDs |
|
133 | + * @param integer[] $ids List of product IDs |
|
134 | 134 | * @param array $domains Domain names of items that are associated with the products and that should be fetched too |
135 | 135 | * @return string[] List of product items implementing \Aimeos\MShop\Product\Item\Iface |
136 | 136 | * @throws \Aimeos\Controller\Frontend\Catalog\Exception If product isn't available |
@@ -266,6 +266,7 @@ discard block |
||
266 | 266 | * @param \Aimeos\MW\Criteria\Iface $filter Critera object which contains the filter conditions |
267 | 267 | * @param string[] $domains Domain names of items that are associated with the products and that should be fetched too |
268 | 268 | * @param integer &$total Parameter where the total number of found products will be stored in |
269 | + * @param integer $total |
|
269 | 270 | * @return array Ordered list of product items implementing \Aimeos\MShop\Product\Item\Iface |
270 | 271 | * @since 2015.08 |
271 | 272 | * @deprecated Use method in index controller instead |
@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * Returns the frontend controller |
106 | 106 | * |
107 | - * @return \Aimeos\Controller\Frontend\Locale\Iface Frontend controller object |
|
107 | + * @return \Aimeos\Controller\Frontend\Iface Frontend controller object |
|
108 | 108 | */ |
109 | 109 | protected function getController() |
110 | 110 | { |