catalog_model_catalog_product
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | catalog_model_catalog_product [2015/03/04 13:11] (current) – created 78.250.138.188 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====getProductOptions()==== | ||
| + | ^nom^|getProductOptions()| | ||
| + | ^paramètres^|$product_id| | ||
| + | ^usage^|permet de récupérer des informations sur les options du produit.| | ||
| + | ^output^|retourne un array concernant les options du produit :| | ||
| + | Les valeurs suivantes sont aussi récupérées : | ||
| + | |||
| + | === pour les types select radio checkbox et image === | ||
| + | À noter que dans ce cas de figure une seconde requête est effectuée dans la BDD sur chaque valeur de l' | ||
| + | |||
| + | == Array principal == | ||
| + | ^product_option_id^| | | ||
| + | ^option_id^| | | ||
| + | ^name^| | | ||
| + | ^type^| | | ||
| + | ^option_value^|contient un tableau de second niveau (voir ci-dessous| | ||
| + | ^required^| | | ||
| + | |||
| + | == Array de second niveau (option_value) == | ||
| + | ^product_option_value_id^| | | ||
| + | ^option_value_id^| | | ||
| + | ^name^| | | ||
| + | ^image^| | | ||
| + | ^quantity^| | | ||
| + | ^subtract^|la valeur substract (0 ou 1), correspond à l' | ||
| + | ^price^| | | ||
| + | ^price_prefix^| | | ||
| + | ^weight^| | | ||
| + | ^weight_prefix^| | | ||
| + | |||
| + | == pour les autres types == | ||
| + | Dans le cas des autres options, la différence est que la valeur ' | ||
catalog_model_catalog_product.txt · Last modified: 2015/03/04 13:11 by 78.250.138.188