User Tools

Site Tools


catalog_controllers_module_cart

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
catalog_controllers_module_cart [2015/09/09 14:15] – created 95.211.60.11catalog_controllers_module_cart [2015/09/09 15:13] (current) 95.211.60.11
Line 5: Line 5:
 === variables générales === === variables générales ===
 ^variable^type^contenu^ ^variable^type^contenu^
-^$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 === === variables d'élément de langue ===
 ^variable^type^contenu^ ^variable^type^contenu^
-^$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 === === variables de liens ===
 ^variable^type^contenu^ ^variable^type^contenu^
-^$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 === === Précisions sur certains Arrays ===
  
-==== exemple ====+==== $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 ===== 
 +^x|Array| | | | 
 +| ^key|52:YToxOntpOjIzNztzOjI6IjMzIjt9:| | | 
 +| ^thumb|http://localhost/opencart/image/cache/data/qb/IMG_8487-sd-47x47.jpg| | | 
 +| ^name|Vêtement 1 FR| | | 
 +| ^model|MOD.V1| | | 
 +| ^option|array| | | 
 +| | ^x|array| | | 
 +| | | ^name|Taille| 
 +| | | ^value|M| 
 +| | | ^type|radio| 
 +| ^quantity|1| | | 
 +| ^price|199,86 €| | | 
 +| ^total|199,86 €| | | 
 +| ^href|http://localhost/opencart/index.php?route=product/product&product_id=52| | | 
 +| ^recurring|String| | | 
 +| ^profile|String| | | 
 + 
 + 
 +==== $vouchers ==== 
 +^**$vouchers**^ ^ ^ 
 +^x|Array| | 
 +| ^key| | 
 +| ^description| | 
 +| ^amount| | 
 + 
 +===== exemple =====
 <code></code> <code></code>
  
 === notes === === notes ===
catalog_controllers_module_cart.1441800950.txt.gz · Last modified: 2015/09/09 14:15 by 95.211.60.11