@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | private function getAvailableDate($row) { |
188 | 188 | ($row['available_date'] != '0000-00-00') ? $dater = $row['available_date'] : $dater = ''; |
189 | 189 | return $dater; |
190 | - } |
|
190 | + } |
|
191 | 191 | |
192 | 192 | /** |
193 | 193 | * @param null|string $id_product_attribute |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | if (is_array($combo)) |
214 | 214 | { |
215 | - foreach($combo as $key => $value) |
|
215 | + foreach($combo as $key => $value) |
|
216 | 216 | { |
217 | 217 | $combo['base_price'] = (float) $this->getOrderPrice($product); |
218 | 218 | $combo['quantity'] = (int) $this->getStockQuantity($product,$id_product_attribute); |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | } |
230 | 230 | |
231 | 231 | private function getAttributeBase($attribute) { |
232 | - $sql = 'SELECT ag.id_attribute_group, ag.is_color_group, agl.name AS group_name, agl.public_name AS public_group_name, |
|
232 | + $sql = 'SELECT ag.id_attribute_group, ag.is_color_group, agl.name AS group_name, agl.public_name AS public_group_name, |
|
233 | 233 | a.id_attribute, al.name AS attribute_name, a.color AS attribute_color, ag.group_type, pac.id_product_attribute |
234 | 234 | FROM '._DB_PREFIX_.'product_attribute_combination pac |
235 | 235 | LEFT JOIN '._DB_PREFIX_.'attribute a ON (a.id_attribute = pac.id_attribute) |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | |
390 | 390 | if (is_array($result)) |
391 | 391 | { |
392 | - foreach($result as $key => $value) |
|
392 | + foreach($result as $key => $value) |
|
393 | 393 | { |
394 | 394 | $result['cat_id'] = $value['id_category_default']; |
395 | 395 | $result['orderprice'] = $this->getOrderPrice($value['id_product']); |