[Skip to main content](#vessel-content)

#   Fichier php qui gère le step2 et nom de variables

##

- **[karfax](/forum/user/36690-karfax "View karfax's Profile")**
- [![karfax's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36690.jpg)](/forum/user/36690-karfax "View karfax's Profile") Topic Author
- [ Offline](/forum/user/36690-karfax)
- Awimbawé, awimbawé

Less More

- Posts: 54
- Thank you received: 1
-
-
-
-

11 years 1 month ago [\#215737](#215737) by [karfax](/forum/user/36690-karfax "View karfax's Profile")  *[Fichier php qui gère le step2 et nom de variables](/forum/27-checkout/879554-fichier-php-qui-gere-le-step2-et-nom-de-variables#215737 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.15 -- PHP version -- : 5.5.20-1 -- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total  Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total")* was created by *[karfax](/forum/user/36690-karfax "View karfax's Profile")*

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 3.15
-- PHP version -- : 5.5.20-1
-- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total

Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3OTU1NC1maWNoaWVyLXBocC1xdWktZ2VyZS1sZS1zdGVwMi1ldC1ub20tZGUtdmFyaWFibGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 1 month ago [\#215739](#215739) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Fichier php qui gère le step2 et nom de variables](/forum/27-checkout/879554-fichier-php-qui-gere-le-step2-et-nom-de-variables#215739 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.15 -- PHP version -- : 5.5.20-1 -- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total  Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total")*

Bonjour,
Le fichier qui gère les steps est le fichier "Step" de la vue "Checkout" de votre template de front-end que vous pourrez éditer via "Hikashop-&gt;Affichage-&gt;Vues".
Le numéro de l'étape est stocké via la variable $this-&gt;step (la première étape est 0).
Le numéro de commande serra généré à la fin du passage en caisse.
Le montant total peut être récupéré via l'objet $this-&gt;full_cart-&gt;full_total-&gt;prices

The following user(s) said Thank You: [karfax](/forum/user/36690-karfax "View karfax's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3OTU1NC1maWNoaWVyLXBocC1xdWktZ2VyZS1sZS1zdGVwMi1ldC1ub20tZGUtdmFyaWFibGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[karfax](/forum/user/36690-karfax "View karfax's Profile")**
- [![karfax's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36690.jpg)](/forum/user/36690-karfax "View karfax's Profile") Topic Author
- [ Offline](/forum/user/36690-karfax)
- Awimbawé, awimbawé

Less More

- Posts: 54
- Thank you received: 1
-
-
-
-

11 years 1 month ago [\#215866](#215866) by [karfax](/forum/user/36690-karfax "View karfax's Profile")  Replied by *[karfax](/forum/user/36690-karfax "View karfax's Profile")* on topic *[Fichier php qui gère le step2 et nom de variables](/forum/27-checkout/879554-fichier-php-qui-gere-le-step2-et-nom-de-variables#215866 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.15 -- PHP version -- : 5.5.20-1 -- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total  Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total")*

Merci pou rla réponse,
J'ai éditer le fichier "\components\com_hikashop\views\checkout\tmpl\step.php" en ajoutant mon bout de code:

var idzTrans = {"cartAmount":&lt;?php echo $this-&gt;full\_cart-&gt;full\_total-&gt;prices; ?&gt;,"tID":"&lt;?php if($this-&gt;invoice\_type=='order'){echo $this-&gt;element-&gt;order\_number;}else{echo $this-&gt;element-&gt;order\_invoice\_number;} ?&gt;"};

Les deux valeur ne s'affichent pas en front end.

Des idées??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3OTU1NC1maWNoaWVyLXBocC1xdWktZ2VyZS1sZS1zdGVwMi1ldC1ub20tZGUtdmFyaWFibGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

11 years 1 month ago [\#215869](#215869) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Fichier php qui gère le step2 et nom de variables](/forum/27-checkout/879554-fichier-php-qui-gere-le-step2-et-nom-de-variables#215869 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.15 -- PHP version -- : 5.5.20-1 -- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total  Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total")*

Ce code est faux.
$this-&gt;full_cart-&gt;full_total-&gt;prices est un array. Vous ne pouvez pas l'afficher comme cela.
Il faut, le parcourir et transformer le montant.
Donc par exemple: Code:

echo round($this-&gt;full_cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,2);

sachant que ce code est uniquement pour afficher le montant du panier, avant la création de la commande.
Une fois la commande créée, le panier est vide.
Donc ce n'est pas cela qu'il faut.
Le plus simple sera d'éditer le fichier "end" de la vue "checkout" qui s'affiche en dernière étape et d'utiliser ce genre de code: Code:

$app = JFactory::getApplication(); $order_id = $app-&gt;getUserState('com_hikashop.order_id'); $class = hikashop_get('class.order'); $order = $class-&gt;get($order_id); echo round($order-&gt;order_full_price,2); echo $order-&gt;order_number;

The following user(s) said Thank You: [karfax](/forum/user/36690-karfax "View karfax's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3OTU1NC1maWNoaWVyLXBocC1xdWktZ2VyZS1sZS1zdGVwMi1ldC1ub20tZGUtdmFyaWFibGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[karfax](/forum/user/36690-karfax "View karfax's Profile")**
- [![karfax's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36690.jpg)](/forum/user/36690-karfax "View karfax's Profile") Topic Author
- [ Offline](/forum/user/36690-karfax)
- Awimbawé, awimbawé

Less More

- Posts: 54
- Thank you received: 1
-
-
-
-

11 years 1 month ago -  11 years 1 month ago [\#215990](#215990) by [karfax](/forum/user/36690-karfax "View karfax's Profile")  Replied by *[karfax](/forum/user/36690-karfax "View karfax's Profile")* on topic *[Fichier php qui gère le step2 et nom de variables](/forum/27-checkout/879554-fichier-php-qui-gere-le-step2-et-nom-de-variables#215990 "-- HikaShop version -- : 2.2.2 -- Joomla version -- : 3.15 -- PHP version -- : 5.5.20-1 -- Error-message(debug-mod must be tuned on) -- : Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total  Voulant intégrer un bout de code à la fin d'une commande sur hikashop, je voudrais savoir quel fichier affiche le step 2 de hikashop et quelles sont les variable N° de Commande et le montant total")*

Merci mille fois, vous me sauvez la vie.....
Merci HikaShop

Last edit: 11 years 1 month ago by [karfax](/forum/user/36690-karfax "View karfax's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3OTU1NC1maWNoaWVyLXBocC1xdWktZ2VyZS1sZS1zdGVwMi1ldC1ub20tZGUtdmFyaWFibGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
