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

#   Display order custom field value in complete order

##

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

Less More

- Posts: 56
- Thank you received: 1
-
-

4 years 3 months ago [\#344133](#344133) by [jiawen](/forum/user/68179-jiawen "View jiawen's Profile")  *[Display order custom field value in complete order](/forum/27-checkout/904899-display-order-custom-field-value-in-complete-order#344133 "For the checkout flow, I have added a custom field of delivery time and I would like to display the selected time after the order created (the last page of checkout flow).  For example, the original wording is &quot; Your order is now complete. &quot; after the order created (checkout/after&#95;end.php)  I want to modify the message to display like: &quot; Your order is now complete. The item will delivered to you on 3pm. &quot; The 3pm will be the value selected during the checkout process.")* was created by *[jiawen](/forum/user/68179-jiawen "View jiawen's Profile")*

For the checkout flow, I have added a custom field of delivery time and I would like to display the selected time after the order created (the last page of checkout flow).

For example, the original wording is " Your order is now complete. " after the order created (checkout/after_end.php)

I want to modify the message to display like: " Your order is now complete. The item will delivered to you on 3pm. " The 3pm will be the value selected during the checkout process.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDg5OS1kaXNwbGF5LW9yZGVyLWN1c3RvbS1maWVsZC12YWx1ZS1pbi1jb21wbGV0ZS1vcmRlcj90bXBsPW1hcmtkb3du) 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: 86587
- Thank you received: 14327
-
-

4 years 3 months ago [\#344136](#344136) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Display order custom field value in complete order](/forum/27-checkout/904899-display-order-custom-field-value-in-complete-order#344136 "For the checkout flow, I have added a custom field of delivery time and I would like to display the selected time after the order created (the last page of checkout flow).  For example, the original wording is &quot; Your order is now complete. &quot; after the order created (checkout/after&#95;end.php)  I want to modify the message to display like: &quot; Your order is now complete. The item will delivered to you on 3pm. &quot; The 3pm will be the value selected during the checkout process.")*

Hi,

Most payment plugins don't have a thank you page and use HikaShop's default thank you page. In that case, it's indeed the checkout / after_end view file which is used and you can edit it via the menu Display&gt;Views.
There, you'll find this line of code: Code:

$app-&gt;enqueueMessage( JText::_('THANK_YOU_FOR_PURCHASE') );

which displays the message "Thank you for your purchase." at the end of the checkout.
To do what you want supposing your payment plugin is using the default thank you page, you need to change that line to: Code:

$app-&gt;enqueueMessage( JText::sprintf('THANK_YOU_FOR_PURCHASE', $this-&gt;order-&gt;xxx) );

where xxx is to be replaced with the column name of the custom order field you created.
Then, in your translation overrides, you can change the translation key THANK_YOU_FOR_PURCHASE from:
THANK_YOU_FOR_PURCHASE="Thank you for your purchase."
to:
THANK_YOU_FOR_PURCHASE="Your order is now complete. The item will delivered to you on %s."

However, since you have the text "Your order is now complete." it means your payment plugin don't use the default thank you page and it has its own thank you page.
For example, suppose you're using the "bank transfer" payment plugin. It means you're using the file plugins/hikashoppayment/banktransfer/banktransfer_end.php
To make an override of that file, you need to copy it to templates/YOUR_TEMPLATE/hikashoppayment/banktransfer_end.php via FTP.
In that copy, you can change the line: Code:

&lt;?php echo JText::_('ORDER_IS_COMPLETE').'&lt;br/&gt;'.

in a similar fashion to: Code:

&lt;?php echo JText::sprintf('ORDER_IS_COMPLETE', $this-&gt;order-&gt;xxx).'&lt;br/&gt;'.

where xxx is to be replaced with the column name of the custom order field you created.
Then, in your translation overrides, you can change the translation key ORDER_IS_COMPLETE from:
ORDER_IS_COMPLETE="Your order is now complete."
to:
ORDER_IS_COMPLETE="Your order is now complete. The item will delivered to you on %s."

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

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

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

Less More

- Posts: 56
- Thank you received: 1
-
-

4 years 3 months ago [\#344150](#344150) by [jiawen](/forum/user/68179-jiawen "View jiawen's Profile")  Replied by *[jiawen](/forum/user/68179-jiawen "View jiawen's Profile")* on topic *[Display order custom field value in complete order](/forum/27-checkout/904899-display-order-custom-field-value-in-complete-order#344150 "For the checkout flow, I have added a custom field of delivery time and I would like to display the selected time after the order created (the last page of checkout flow).  For example, the original wording is &quot; Your order is now complete. &quot; after the order created (checkout/after&#95;end.php)  I want to modify the message to display like: &quot; Your order is now complete. The item will delivered to you on 3pm. &quot; The 3pm will be the value selected during the checkout process.")*

It works! Thank you.

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

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