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

#   Styling and adding text on checkout thank u

##

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17182](#17182) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  *[Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17182 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")* was created by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")*

How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a field that asks the customer to select the charity the a portion of their purchase to go to. I would like to have this charities name included in the text and to change per their selection.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago -  15 years 5 months ago [\#17194](#17194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17194 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

You can modify the thank you page by going in the menu Display-&gt;Views and editing the file after_end

Last edit: 15 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17290](#17290) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17290 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

What CSS would I use center the text on the Thank You page? Also how would I have certain text values change per customer input? I see this "s%" throughout the language edit function. Does this represent a variable if so how can I make it so that the name of the charity that the customer selects changes on the Thank You page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago [\#17294](#17294) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17294 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

The CSS of messages is handled by your template. You should modify your template's CSS. I can't tell what to change where since it depends on how your template is made.

%s is indeed used to pass variables.

You can do like that:
$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;get($order_id);
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage( JText::sprintf('THANK_YOU_FOR_PURCHASE',$order-&gt;custom_field_column_name) );

And then in your translation file:
THANK_YOU_FOR_PURCHASE="thank you for your funding to %s"

You of course need to replace the custom_field_column_name by the actual field name of your custom field of the table "order".

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17497](#17497) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17497 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

It did not work for me. In place of the charity name I received the %s symbol. Here is the php code I used

?&gt;
&lt;?php
$orderClass = hikashop::get('class.order');
$order = $orderClass-&gt;get($order_id);
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage( JText::sprintf('THANK_YOU_FOR_PURCHASE',$order-&gt;address_charity) );

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago [\#17498](#17498) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17498 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

Could you make a screenshot of the configuration of your custom field ?

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago -  15 years 5 months ago [\#17500](#17500) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17500 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

Here you go.
[ ![&#91;img](http://www.hikashop.com/media/kunena/attachments/legacy/images/Config_Screenshot.jpg) ](http://www.hikashop.com/media/kunena/attachments/legacy/images/Config_Screenshot.jpg "&#91;img")

- [ ![Config&#95;Screenshot.jpg](/forum/attachment/1178) ](/forum/attachment/1178 "...Screenshot.jpg") [ ](/forum/attachment/1178?download=1 "...Screenshot.jpg")

Last edit: 15 years 5 months ago by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile").

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17504](#17504) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17504 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

So what is the good word Nicholas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago [\#17511](#17511) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17511 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

That is a custom field of the table "address".
You should create a custom field of the table "order" if you want to access it there.

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17542](#17542) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17542 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

The options I have for tables are address, user, product, and category. I do not have the option for "order".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago [\#17543](#17543) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17543 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

That's probably because you're using the Essential version and not the Business edition. Custom fields of the tables item/order/entry are only available in the Business edition.

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17544](#17544) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17544 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

Ok. For future reference when I do upgrade to the Business Edition is there a discount since I'm upgrading from the Essential version?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE3MTgyLXN0eWxpbmctYW5kLWFkZGluZy10ZXh0LW9uLWNoZWNrb3V0LXRoYW5rLXU/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 5 months ago [\#17546](#17546) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17546 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

When you want to update from Essential to Business, you can buy that product: [ www.hikashop.com/en/component/hikashop/product/show/cid-3.html](http://www.hikashop.com/en/component/hikashop/product/show/cid-3.html)
It is the exact price difference between the Business edition and the Essential edition.

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

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

Less More

- Posts: 138
- Thank you received: 0
-
-

15 years 5 months ago [\#17547](#17547) by [rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")  Replied by *[rsarpong](/forum/user/2026-rsarpong "View rsarpong's Profile")* on topic *[Re: Styling and adding text on checkout thank u](/forum/4-how-to/17182-styling-and-adding-text-on-checkout-thank-u#17547 "How can I center the text and add text to the thank you page after the customer checks out? Also I would like to have the text include an option selected by the customer. For example, I have added a...")*

Cool

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

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