This is an old revision of the document!
variables d'entrées GET
| variable | contenu | |
| $sort | String | tri |
| $order | String | tri |
| $page | String | page |
| $limit | String | nombre d'items par page |
| $path | String | chemin |
variables générales
| variable | type | contenu |
| $breadcrumbs | Array | breadcrumbs |
| $heading_title | String | nom de la catégorie principale affichée |
| $thumb | String | url de l'image correspondant à la catégorie |
| $description | String | description du produit |
| $compare | String | url pour la comparaison |
| $categories | Array | tableau des sous-catégories liées à la catégorie principale |
| $products | Array | contient la liste filtrée/ordonnées des produits |
| $sorts | Array | liste les différents mode de tri disponibles |
| $limits | Array | liste les différentes limitations en terme de produit par page disponibles |
| $pagination | String | contient du code html déjà formé concernant la pagination |
| $sort | Array | contient le mode de tri des articles |
| $order | Array | contient un autre mode de tri des articles ? |
| $limit | Array | contient le nombre d'objets par page |
| $continue | String | url vers la page d'accueil |
variables d'élément de langue
| variable | type | contenu |
| $text_empty | String | void |
| $text_quantity | String | void |
| $text_manufacturer | String | void |
| $text_model | String | void |
| $text_price | String | void |
| $text_tax | String | void |
| $text_points | String | void |
| $text_compare | String | void |
| $text_display | String | void |
| $text_list | String | void |
| $text_grid | String | void |
| $text_sort | String | void |
| $text_limit | String | void |
| $button_cart | String | void |
| $button_wishlist | String | void |
| $button_compare | String | void |
| $button_continue | String | void |
en cas d'erreur
| $heading_title | String | message d'erreur |
| $text_error | String | void |
| $button_continue | String | void |
Est aussi redéfini l'accueil comme contenu de $continue
Précisions sur certains Arrays
| $breadcrumbs | |
| text | nom de l'endroit du site |
| href | lien vers l'endroit |
| separator | séparateur (défini dans le langage) |
| $categories | |
| clé | contenu |
| name | nom de la catégorie |
| href | lien de la catégorie |
| $products | |
| clé | contenu |
| product_id | id produit |
| thumb | image du produit |
| name | nom du produit |
| description | description raccourcie du produit (100 premiers caractères) |
| price | prix du produit |
| special | prix promotionnel le cas échéant |
| tax | taxes |
| rating | note du produit |
| reviews | avis sur le produit |
| href | lien vers la page produit |
| $sorts | |
| clé | contenu |
| text | texte correspondant au mode de tri (issu du fichier langage) |
| value | instruction SQL de tri |
| href | lien pour le tri |
| $limits | |
| clé | contenu |
| text | texte correspondant à la valeur de limitation |
| value | valeur de la limitation |
| href | lien pour la limitation |
Array
(
[0] => <div class="links"> <b>1</b> <a href="http://localhost/opencart/index.php?route=product/category&path=59&page=2">2</a> <a href="http://localhost/opencart/index.php?route=product/category&path=59&page=2">></a> <a href="http://localhost/opencart/index.php?route=product/category&path=59&page=2">>|</a> </div><div class="results">1 à 2 sur 3 (2 Pages)</div>
)
$sort
Array
(
[0] => p.sort_order
)
$order
$limit
Array
(
[0] => 2
)
Ici la limite est à deux produits par page.