catalog_model_catalog_category
Differences
This shows you the differences between two versions of the page.
| catalog_model_catalog_category [2015/02/14 04:17] – created 78.250.178.94 | catalog_model_catalog_category [2015/02/14 04:55] (current) – 78.250.178.94 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Fonctions ===== | ===== Fonctions ===== | ||
| - | ===updateViewed()=== | + | ====updateViewed()==== |
| ^nom^|updateViewed()| | ^nom^|updateViewed()| | ||
| ^paramètres^|$product_id| | ^paramètres^|$product_id| | ||
| ^usage^|?| | ^usage^|?| | ||
| - | ===getProduct()=== | + | ====getProduct()==== |
| ^nom^|getProduct()| | ^nom^|getProduct()| | ||
| ^paramètres^|$product_id| | ^paramètres^|$product_id| | ||
| - | ^usage^|?| | + | ^usage^|permet de récupérer de nombreuses informations sur un produit à l'aide de son ID.| |
| ^output^|retourne un array contenant différents propriétés du produit :| | ^output^|retourne un array contenant différents propriétés du produit :| | ||
| Line 26: | Line 26: | ||
| ^rating^|[[bdd product_review]]| | ^rating^|[[bdd product_review]]| | ||
| ^reviews^|[[bdd product_review]]| | ^reviews^|[[bdd product_review]]| | ||
| + | |||
| + | |||
| + | ====getProducts()==== | ||
| + | ^nom^|getProducts()| | ||
| + | ^paramètres^|array $data| | ||
| + | ^usage^|Permet d' | ||
| + | ^output^|retourne un array $product_data contenant une liste d'IDs produit :| | ||
| + | |||
| + | L' | ||
| + | |||
| + | ^nom du paramètre^|usage| | ||
| + | ^filter_category_id^|ID de catégory principale| | ||
| + | ^filter_sub_category^|ID de sous-catégorie| | ||
| + | ^filter_filter^| | | ||
| + | ^filter_name^| | | ||
| + | ^filter_tag^| | | ||
| + | ^filter_description^| | | ||
| + | ^filter_manufacturer_id^| | | ||
| + | ^sort^| | | ||
| + | ^order^| | | ||
| + | ^start^| | | ||
| + | ^limit^| | | ||
| + | |||
| + | ====getProductSpecials()==== | ||
| + | ^nom^|getProductSpecials()| | ||
| + | ^paramètres^|array $data| | ||
| + | ^usage^|? prix spécial ?| | ||
| + | ^output^|?| | ||
| + | |||
| + | ====getLatestProducts()==== | ||
| + | ^nom^|getLatestProducts()| | ||
| + | ^paramètres^|$limit| | ||
| + | ^usage^|? produits les plus récents ?| | ||
| + | ^output^|?| | ||
| + | |||
| + | ====getPopularProducts()==== | ||
| + | ^nom^|getPopularProducts()| | ||
| + | ^paramètres^|$limit| | ||
| + | ^usage^|? produits les plus populaires ?| | ||
| + | ^output^|?| | ||
| + | |||
| + | ====getBestSellerProducts()==== | ||
| + | ^nom^|getBestSellerProducts()| | ||
| + | ^paramètres^|$limit| | ||
| + | ^usage^|? produits les plus vendus ?| | ||
| + | |||
| + | ====getProductAttributes()==== | ||
| + | ^nom^|getProductAttributes()| | ||
| + | ^paramètres^|$product_id| | ||
| + | ^usage^|permet d' | ||
| + | ^output^|$product_attribute_group_data| | ||
| + | |||
| + | Le tableau en sortie contient un tableau imbriqué : | ||
| + | |||
| + | == n-0 == | ||
| + | ^$product_attribute_data^ ^ | ||
| + | |attribute_id|$product_attribute[' | ||
| + | |name|$product_attribute[' | ||
| + | |text|$product_attribute[' | ||
| + | |||
| + | == n-1 == | ||
| + | ^$product_attribute_group_data^ ^ | ||
| + | |attribute_group_id|$product_attribute_group[' | ||
| + | |name|$product_attribute_group[' | ||
| + | |attribute^$product_attribute_data^ | ||
| + | |||
| + | ====getProductOptions()==== | ||
| + | ^nom^|getProductOptions()| | ||
| + | ^paramètres^|$product_id| | ||
| + | ^usage^|permet d' | ||
| + | ^output^|product_option_data| | ||
| + | |||
| + | Le tableau en sortie peut contenir un tableau imbriqué dans le cas ou l' | ||
| + | |||
| + | == n-0 == | ||
| + | ^$product_option_data[]^ ^ | ||
| + | |product_option_id|$product_option[' | ||
| + | |option_id|$product_option[' | ||
| + | |name|$product_option[' | ||
| + | |type|$product_option[' | ||
| + | |option_value|$product_option_value_data OU product_option[' | ||
| + | |required|$product_option[' | ||
| + | == n-1 == | ||
| + | Si option est de type select, radio, checkbox ou image. | ||
| + | ^$product_option_value_data[]^ ^ | ||
| + | |product_option_id|$product_option[' | ||
| + | |product_option_value_id| | | ||
| + | |option_value_id| | | ||
| + | |name| | | ||
| + | |image| | | ||
| + | |quantity| | | ||
| + | |subtract| | | ||
| + | |price| | | ||
| + | |price_prefix| | | ||
| + | |weight| | | ||
| + | |weight_prefix| | | ||
| + | |||
| + | ==== autres fonctions à faire… ==== | ||
catalog_model_catalog_category.1423883835.txt.gz · Last modified: 2015/02/14 04:17 by 78.250.178.94