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

#   Change payment output message

##

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 8 months ago [\#91204](#91204) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91204 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")* was created by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")*

Hi.

I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.

So, what I would like to show is:

Hi (member name), thanks for your order. Please include you name (member name) and order number ( ** ) in the comments of the bank transfer so that we can match it to your order.

Cheers

LT

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 8 months ago [\#91335](#91335) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91335 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Hi,

To display the name, you can use: echo $order-&gt;cart-&gt;customer-&gt;name;
For the order number: echo $order_number;

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

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 8 months ago [\#91362](#91362) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  Replied by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91362 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Thanks Xavier, I'll try that. The order number automatically outputs, but it's good to have another reference.

Thanks again

LT

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

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 8 months ago [\#91363](#91363) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  Replied by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91363 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Hi Xavier.

Excuse my ignorance, but how does echo $order-&gt;cart-&gt;customer-&gt;name need to formatted in the file?

Cheers

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

- **[winchester](/forum/user/6696-winchester "View winchester's Profile")**
- [![winchester's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6696.jpg)](/forum/user/6696-winchester "View winchester's Profile")
- [ Offline](/forum/user/6696-winchester)

Less More

- Posts: 14
- Thank you received: 4
-
-
-

13 years 8 months ago -  13 years 8 months ago [\#91377](#91377) by [winchester](/forum/user/6696-winchester "View winchester's Profile")  Replied by *[winchester](/forum/user/6696-winchester "View winchester's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91377 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

You will need to add it to the space where you want the information to show within PHP tags.

It should look like this: Code:

&lt;?php echo $order-&gt;cart-&gt;customer-&gt;name; ?&gt;

In HikaShop, go to **Display &gt; Views**

Set the dropdown filters at top right to [YourTempalte_Name] and "Front end".

The file you want to edit is the **after\_end** file under the **Checkout** view. Click on it to edit it.

Now you can edit it to say what you want it to.

It should look something like this: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.0.0 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;div id="hikashop_after_end"&gt; &lt;h1&gt;Your order was successfully submitted!&lt;/h1&gt; &lt;p&gt;Hi &lt;?php echo $order-&gt;cart-&gt;customer-&gt;name; ?&gt;, thanks for your order. Please include you name &lt;?php echo $order-&gt;cart-&gt;customer-&gt;name; ?&gt; and order number &lt;?php echo $order_number; ?&gt; in the comments of the bank transfer so that we can match it to your order.&lt;/p&gt; &lt;/div&gt;

Actually, the above codes won't may not work as the information is not stored after the order is submitted. I'm not sure how to get HikaShop to take information from the previous order as yet though. However, this is how you would use it and this is the file you would place it into.

Last edit: 13 years 8 months ago by [winchester](/forum/user/6696-winchester "View winchester's Profile").

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

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

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 8 months ago [\#91559](#91559) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  Replied by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91559 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Winchester, once again, thanks for your input.

I think I may have not myself too well, or what I have done.

I have a message that I have edited in the language file (System&gt;Language). Under the heading of ;bank transfer and ;check, I have changed the "INCLUDE_ORDER_NUMBER_TO_TRANSFER" and "INCLUDE_ORDER_NUMBER_TO_CHECK" messages to what I want, except, I would also like the customer's name to appear.

I tried the method described above, but got no message including the user/customer name.

I only have 2 methods of payment (bank transfer and on pick up) and would like to see the message to include their user/customer name.

Cheers

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

- **[winchester](/forum/user/6696-winchester "View winchester's Profile")**
- [![winchester's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6696.jpg)](/forum/user/6696-winchester "View winchester's Profile")
- [ Offline](/forum/user/6696-winchester)

Less More

- Posts: 14
- Thank you received: 4
-
-
-

13 years 8 months ago -  13 years 8 months ago [\#91560](#91560) by [winchester](/forum/user/6696-winchester "View winchester's Profile")  Replied by *[winchester](/forum/user/6696-winchester "View winchester's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91560 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

It would be nice if HikaShop would allow the variables to be carried over into the after_end page. Perhaps, include the after_end page in the checkout flow so that it can be apart of the checkout process.

I don't know how to get the name from HikaShop, but I know how to get it from Joomla. Also, this will work for the after_end page, but not in the language files.

Using Joomla, open checkout &gt; after_end in HikaShop and look for this line of code: Code:

defined('_JEXEC') or die('Restricted access');

Add these lines just below it:
Code:

// Get Joomla! framework define( 'JPATH_BASE', realpath(dirname(__FILE__) )); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); $mainframe =&amp; JFactory::getApplication('site'); $mainframe-&gt;initialise(); //get user information from the Joomla database $user =&amp; JFactory::getUser(); $session =&amp; JFactory::getSession();

Now to get the user info from Joomla, use the line code where you want them to show. Code:

&lt;?php echo $user-&gt;username; // Joomla Username ?&gt; &lt;?php echo $user-&gt;name; // Joomla User's Name (first &amp; last) ?&gt; &lt;?php echo $user-&gt;id; // Joomla User's ID ?&gt; &lt;?php echo $user-&gt;email; // Joomla User's email ?&gt;

The only problem is that these user information may be different from the information the user entered for their HikaShop Billing and/or Shipping addresses.

I'm also looking for a simpler way to handle this. These that's I've posted here are really just my findings and may not be the best or easiest way to handle it. However, I'm hoping someone from HikaShop will shed some light on this.

Last edit: 13 years 8 months ago by [winchester](/forum/user/6696-winchester "View winchester's Profile").

The following user(s) said Thank You: [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")

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

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 8 months ago [\#91608](#91608) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  Replied by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#91608 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Thanks for all of that Winchester. I'll try that out a little later and report back

Again, thanks for your input, it has been great

Cheers

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

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

Less More

- Posts: 35
- Thank you received: 0
-
-

13 years 7 months ago [\#94449](#94449) by [LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")  Replied by *[LoonyTune](/forum/user/13745-loonytune "View LoonyTune's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#94449 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Hi

This is what I entered:

"&lt;?php
/**
* @package HikaShop for Joomla!
* @version 2.0.0
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 [ www.gnu.org/licenses/gpl-3.0.html](http://www.gnu.org/licenses/gpl-3.0.html)
*/
defined('_JEXEC') or die('Restricted access');
?&gt;
// Get Joomla! framework
define( 'JPATH_BASE', realpath(dirname(__FILE__) ));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$mainframe =&amp; JFactory::getApplication('site');
$mainframe-&gt;initialise();
//get user information from the Joomla database
$user =&amp; JFactory::getUser();
$session =&amp; JFactory::getSession();
&lt;?php echo $user-&gt;name; // Joomla User's Name (first &amp; last) ?&gt;"

Obviously I removed the "" marks.

The message I got back was from the System&gt;Languages file though.

I am not a coder, so maybe either I have entreed something wrong (very possible) or what I am after is not available.

Thanks all for your help.

Any more ideas???

LT

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 7 months ago [\#94462](#94462) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#94462 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Hi,

I made some modification in your code in order to fix it: Code:

&lt;?php defined('_JEXEC') or die('Restricted access'); // Get Joomla! framework // (not required) define( 'JPATH_BASE', realpath(dirname(__FILE__) )); define( 'DS', DIRECTORY_SEPARATOR ); require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); $mainframe =&amp; JFactory::getApplication('site'); $mainframe-&gt;initialise(); //get user information from the Joomla database $user =&amp; JFactory::getUser(); $session =&amp; JFactory::getSession(); echo $user-&gt;name; // Joomla User's Name (first &amp; last)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[winchester](/forum/user/6696-winchester "View winchester's Profile")**
- [![winchester's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6696.jpg)](/forum/user/6696-winchester "View winchester's Profile")
- [ Offline](/forum/user/6696-winchester)

Less More

- Posts: 14
- Thank you received: 4
-
-
-

13 years 7 months ago [\#94474](#94474) by [winchester](/forum/user/6696-winchester "View winchester's Profile")  Replied by *[winchester](/forum/user/6696-winchester "View winchester's Profile")* on topic *[Change payment output message](/forum/4-how-to/78581-change-payment-output-message#94474 "Hi.  I have searched this forum and have found how to change the message that appears once the order has been made (and this includes an order number), however, what I'd like to do is to address it to the customer.  So, what I would like to show is:  Hi (member name), thanks for your order. Please include you name (member name) and order number ( &#42;&#42; ) in the comments of the bank transfer so that we can match it to your order.  Cheers  LT")*

Sorry.. I should've mentioned that.. Remember though that this will only show the name entered into Joomla user and not the name from HikaShop.

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

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

[](#top)
