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

#   how to display order number and shipment method

##

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

Less More

- Posts: 86
- Thank you received: 0
-
-

15 years 8 months ago [\#9911](#9911) by [YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")  *[how to display order number and shipment method](/forum/4-how-to/9911-how-to-display-order-number-and-shipment-method#9911 "Hi Nicolas,  In my order creation notification email I need to display the order number and the shipment method that the customer choose.  How to do that?  Currently I have changed my template like this:  echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE', hikashop::getDate(time(),'%d %B %Y'), $this-&gt;element-&gt;order&#95;number);?&gt;  and:  echo ''.JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order&#95;shipping&#95;price,$data-  Could you please help me out on this?  Gert.")* was created by *[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")*

Hi Nicolas,

In my order creation notification email I need to display the order number and the shipment method that the customer choose.

How to do that?

Currently I have changed my template like this:

echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE', hikashop::getDate(time(),'%d %B %Y'), $this-&gt;element-&gt;order_number);?&gt;

and:

echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order_shipping_price,$data-

Could you please help me out on this?

Gert.

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

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

Less More

- Posts: 86
- Thank you received: 0
-
-

15 years 8 months ago [\#9914](#9914) by [YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")  Replied by *[YakNarak](/forum/user/476-yaknarak "View YakNarak's Profile")* on topic *[Re: how to display order number and shipment method](/forum/4-how-to/9911-how-to-display-order-number-and-shipment-method#9914 "Hi Nicolas,  In my order creation notification email I need to display the order number and the shipment method that the customer choose.  How to do that?  Currently I have changed my template like this:  echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE', hikashop::getDate(time(),'%d %B %Y'), $this-&gt;element-&gt;order&#95;number);?&gt;  and:  echo ''.JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order&#95;shipping&#95;price,$data-  Could you please help me out on this?  Gert.")*

Nicolas,

Also in the view user/cpanel I need to add the name of the customer in this line:

&lt;div class="header" style="float: left;"&gt;&lt;h1&gt;&lt;?php echo JText::_('CUSTOMER_ACCOUNT');?&gt;&lt;/h1&gt;&lt;/div&gt;

Can you let me know how to do that?

Gert.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk5MTEtaG93LXRvLWRpc3BsYXktb3JkZXItbnVtYmVyLWFuZC1zaGlwbWVudC1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9975](#9975) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to display order number and shipment method](/forum/4-how-to/9911-how-to-display-order-number-and-shipment-method#9975 "Hi Nicolas,  In my order creation notification email I need to display the order number and the shipment method that the customer choose.  How to do that?  Currently I have changed my template like this:  echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE', hikashop::getDate(time(),'%d %B %Y'), $this-&gt;element-&gt;order&#95;number);?&gt;  and:  echo ''.JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order&#95;shipping&#95;price,$data-  Could you please help me out on this?  Gert.")*

You should already have the line:
echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop::getDate(time(),'%d %B %Y'), hikashop::getDate(time(),'%H:%M'));?&gt;

in your order creation email which displays the order number in the $url parameter.

For the shipping method, you could try something like this:

$pluginsShipping = hikashop::get('type.plugins');
$pluginsShipping-&gt;type='shipping';
$pluginsShipping-&gt;order=$data;
$shipping_method = $pluginsShipping-&gt;getName($data-&gt;order_shipping_method,$data-&gt;order_shipping_id);
echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$shipping_method.'&lt;/td&gt;&lt;/tr&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzk5MTEtaG93LXRvLWRpc3BsYXktb3JkZXItbnVtYmVyLWFuZC1zaGlwbWVudC1tZXRob2Q/dG1wbD1tYXJrZG93bg==) 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: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9976](#9976) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how to display order number and shipment method](/forum/4-how-to/9911-how-to-display-order-number-and-shipment-method#9976 "Hi Nicolas,  In my order creation notification email I need to display the order number and the shipment method that the customer choose.  How to do that?  Currently I have changed my template like this:  echo JText::sprintf('ORDER&#95;CREATION&#95;SUCCESS&#95;ON&#95;WEBSITE&#95;AT&#95;DATE', hikashop::getDate(time(),'%d %B %Y'), $this-&gt;element-&gt;order&#95;number);?&gt;  and:  echo ''.JText::&#95;('HIKASHOP&#95;SHIPPING&#95;METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order&#95;shipping&#95;price,$data-  Could you please help me out on this?  Gert.")*

For the customer account, you would have to replace that line by:
&lt;div class="header hikashop_header_title"&gt;&lt;h1&gt;&lt;?php $user =&amp; JFactory::getUser(); echo JText::_('CUSTOMER_ACCOUNT'). ' '.$user-&gt;get('name');?&gt;&lt;/h1&gt;&lt;/div&gt;

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

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