@@ -205,6 +205,7 @@ discard block |
||
205 | 205 | |
206 | 206 | /** |
207 | 207 | * @param null|string $id_product_attribute |
208 | + * @param string $product |
|
208 | 209 | */ |
209 | 210 | private function getCombination($product,$id_product_attribute) |
210 | 211 | { |
@@ -228,6 +229,9 @@ discard block |
||
228 | 229 | return $combo; |
229 | 230 | } |
230 | 231 | |
232 | + /** |
|
233 | + * @param null|string $attribute |
|
234 | + */ |
|
231 | 235 | private function getAttributeBase($attribute) { |
232 | 236 | $sql = 'SELECT ag.id_attribute_group, ag.is_color_group, agl.name AS group_name, agl.public_name AS public_group_name, |
233 | 237 | a.id_attribute, al.name AS attribute_name, a.color AS attribute_color, ag.group_type, pac.id_product_attribute |
@@ -242,6 +246,9 @@ discard block |
||
242 | 246 | return $result; |
243 | 247 | } |
244 | 248 | |
249 | + /** |
|
250 | + * @param null|string $attribute |
|
251 | + */ |
|
245 | 252 | private function getStockQuantity($product, $attribute) { |
246 | 253 | $sql = 'SELECT stock.quantity from '._DB_PREFIX_.'stock_available as stock WHERE stock.id_product = '.(int) $product.'AND stock.id_product_attribute = '.(int) $attribute; |
247 | 254 | $result = $this->dbConn->fetchColumn($sql); |
@@ -249,6 +256,9 @@ discard block |
||
249 | 256 | } |
250 | 257 | |
251 | 258 | |
259 | + /** |
|
260 | + * @param null|string $attribute |
|
261 | + */ |
|
252 | 262 | private function getAttributePricing($attribute) { |
253 | 263 | $sql = 'SELECT pas.price, pas.ecotax, pas.weight, pas.default_on, pa.reference, pas.unit_price_impact, |
254 | 264 | pas.minimal_quantity, pas.available_date FROM '._DB_PREFIX_.'product_attribute_shop pas |