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

#   menu commandes en front-end

##

- **[gab696](/forum/user/1837-gab696 "View gab696's Profile")**
- [![gab696's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1837-gab696 "View gab696's Profile") Topic Author
- [ Offline](/forum/user/1837-gab696)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 6 days ago [\#27833](#27833) by [gab696](/forum/user/1837-gab696 "View gab696's Profile")  *[menu commandes en front-end](/forum/5-support-en-francais-french-support-/27833-menu-commandes-en-front-end#27833 "Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?")* was created by *[gab696](/forum/user/1837-gab696 "View gab696's Profile")*

Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjc4MzMtbWVudS1jb21tYW5kZXMtZW4tZnJvbnQtZW5kP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 6 days ago [\#27859](#27859) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: menu commandes en front-end](/forum/5-support-en-francais-french-support-/27833-menu-commandes-en-front-end#27859 "Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?")*

comme cela par exemple:
&lt;?php echo $this-&gt;order-&gt;order_payment_method; ?&gt;
Par contre, cela affiche juste le nom du plugin...

Sinon c'est un peux plus complexe pour avoir le nom entré dans l'interface:
&lt;?php
$class = hikashop_get('class.payment');
$payment = $class-&gt;get($this-&gt;order-&gt;order_payment_id);
echo $payment-&gt;payment_name; ?&gt;

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

- **[gab696](/forum/user/1837-gab696 "View gab696's Profile")**
- [![gab696's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1837-gab696 "View gab696's Profile") Topic Author
- [ Offline](/forum/user/1837-gab696)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 6 days ago [\#27862](#27862) by [gab696](/forum/user/1837-gab696 "View gab696's Profile")  Replied by *[gab696](/forum/user/1837-gab696 "View gab696's Profile")* on topic *[Re: menu commandes en front-end](/forum/5-support-en-francais-french-support-/27833-menu-commandes-en-front-end#27862 "Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?")*

Je préférerais pouvoir obtenir le même résultat que sur l'email de confirmation.
Pour la Notification de création de commande, voici mon code. comment faire de même le menu commandes ?
&lt;td&gt;
&lt;table width="100%" style="border: 1px solid #DDDDDD;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;"&gt;
&lt;?php
$params = null;
$js = '';
$fieldsClass = hikashop_get('class.field');
$app =&amp; JFactory::getApplication();
if($app-&gt;isAdmin()){
$view = 'order';
}else{
$view = 'address';
}
$template = trim(hikashop_getLayout($view,'address_template',$params,$js));
if(!empty($data-&gt;cart-&gt;billing_address)){
$billing = $template;
foreach($data-&gt;order_addresses_fields as $field){
$fieldname = $field-&gt;field_namekey;
$address =&amp; $data-&gt;order_addresses[$data-&gt;cart-&gt;billing_address-&gt;address_id];
$billing=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$address-&gt;$fieldname),$billing);
}
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';
echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?![:(](/media/kunena/emoticons/5.png ":(")?!}).)*}#i','',$billing)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;';
}
if(!empty($data-&gt;cart-&gt;has_shipping) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address)){
$shipping = $template;
foreach($data-&gt;order_addresses_fields as $field){
$fieldname = $field-&gt;field_namekey;
$address =&amp; $data-&gt;order_addresses[$data-&gt;cart-&gt;shipping_address-&gt;address_id];
$shipping=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$address-&gt;$fieldname),$shipping);
}
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_SHIPPING_METHOD').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';
$shippingClass = hikashop_get('class.shipping');
$shipping = $shippingClass-&gt;get($data-&gt;order_shipping_id);
$shipping-&gt;shipping_params = unserialize($shipping-&gt;shipping_params);?&gt;
&lt;?php echo $shipping-&gt;shipping_name;?&gt;. &lt;/br&gt;&lt;?php
echo $shipping-&gt;shipping_description;?&gt;&lt;/br&gt;&lt;?php
}
echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_PAYMENT_METHOD').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;';

if($data-&gt;order_payment_method=="banktransfer"){
echo JText::_('ORDER_VALID_AFTER_PAYMENT');
$paymentClass = hikashop_get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
$payment-&gt;payment_params = unserialize($payment-&gt;payment_params);
echo $payment-&gt;payment_params-&gt;information;
}else{
$paymentClass = hikashop_get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
$payment-&gt;payment_params = unserialize($payment-&gt;payment_params); ?&gt;
&lt;?php echo $payment-&gt;payment_name;?&gt;. &lt;/br&gt;&lt;?php
echo $payment-&gt;payment_description;?&gt;&lt;/br&gt;&lt;?php
}
?&gt;
&lt;/table&gt;
&lt;/td&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjc4MzMtbWVudS1jb21tYW5kZXMtZW4tZnJvbnQtZW5kP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 5 days ago [\#27873](#27873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: menu commandes en front-end](/forum/5-support-en-francais-french-support-/27833-menu-commandes-en-front-end#27873 "Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?")*

C'est très simple. Le même code mais avec $this-&gt;order à la place de $data

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

- **[gab696](/forum/user/1837-gab696 "View gab696's Profile")**
- [![gab696's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1837-gab696 "View gab696's Profile") Topic Author
- [ Offline](/forum/user/1837-gab696)

Less More

- Posts: 21
- Thank you received: 0
-
-

15 years 5 days ago [\#27904](#27904) by [gab696](/forum/user/1837-gab696 "View gab696's Profile")  Replied by *[gab696](/forum/user/1837-gab696 "View gab696's Profile")* on topic *[Re: menu commandes en front-end](/forum/5-support-en-francais-french-support-/27833-menu-commandes-en-front-end#27904 "Comment reprendre les données de méthodes d'envoi et de paiement dans la vue order show en front-end ?")*

merci beaucoup ! maintenant ça fonctionne à merveille !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vMjc4MzMtbWVudS1jb21tYW5kZXMtZW4tZnJvbnQtZW5kP3RtcGw9bWFya2Rvd24=) 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.168 seconds

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

[](#top)
