catalog_controllers_module_cart
variables d'entrées GET
| variable | contenu |
| $variable | contenu |
variables générales
| variable | type | contenu |
| $totals | Array | sub_total,tax,total, voir précisions plus bas |
| $products | Array | liste des produits dans le panier, voir précisions plus bas |
| $vouchers | Array | liste des réductions, voir précisions plus bas |
variables d'élément de langue
| variable | type | contenu |
| $heading_title | String | “Shopping cart”, “Panier” |
| text_items | String | <nombre d'article> - <prix> ex : “2 item(s) - 299.86 €” |
| text_empty | String | texte “Votre panier est vide !” |
| text_cart | String | texte “voir panier” |
| text_checkout | String | texte “commander” |
| text_payment_profile | string | text “Profil de paiement “ |
| button_remove | String | texte “enlever” |
variables de liens
| variable | type | contenu |
| $cart | String | url absolue de la route=checkout/cart |
| $checkout | String | url absolue de la route=checkout/checkout |
Précisions sur certains Arrays
$totals
| $totals | | |
| x | Array | |
| | code | String |
| | title | String |
| | text | String |
| | value | Float/Int ? |
| | sort_order | Int |
exemple
| $totals | | |
| 0 | Array | |
| | code | sub_total |
| | title | Sub_total |
| | text | “248.49 €” |
| | value | 248.49 |
| | sort_order | 1 |
| 1 | Array | |
| | code | tax |
| | title | Eco Taxe (-2.00) |
| | text | “2.00 €” |
| | value | 2 |
| | sort_order | 5 |
| 2 | Array | |
| | code | tax |
| | title | TVA (19,60%) |
| | text | “16.06 €” |
| | value | 16.06024 |
| | sort_order | 5 |
| 3 | Array | |
| | code | tax |
| | title | TVA (20.00%) |
| | text | “33.31 €” |
| | value | 33.31 |
| | sort_order | 5 |
| 4 | Array | |
| | code | total |
| | title | Total |
| | text | “299.86 €” |
| | value | 299.86024 |
| | sort_order | 9 |
$products
| $products | | | | | |
| x | Array | | | | |
| | key | String? | | | |
| | thumb | String (url absolue) | | | |
| | name | String | | | |
| | model | String | | | |
| | option | array | | | |
| | | x | array | | |
| | | | name | String | |
| | | | value | String | |
| | | | type | String | |
| | quantity | Int | | | |
| | price | String | | | |
| | total | String | | | |
| | href | String (url du produit) | | | |
| | recurring | String | | | |
| | profile | String | | | |
exemple
$vouchers
| $vouchers | | |
| x | Array | |
| | key | |
| | description | |
| | amount | |
exemple
notes
catalog_controllers_module_cart.txt · Last modified: 2015/09/09 15:13 by 95.211.60.11