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

#   Get $amount, but without prefix

##

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

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 11 months ago [\#327203](#327203) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  *[Get $amount, but without prefix](/forum/29-payment-methods/901472-get-amount-but-without-prefix#327203 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi  I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?  Kind regards Thomas")* was created by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")*

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4

Hi

I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?

Kind regards
Thomas

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDE0NzItZ2V0LWFtb3VudC1idXQtd2l0aG91dC1wcmVmaXg/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: 86593
- Thank you received: 14334
-
-

5 years 11 months ago [\#327207](#327207) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Get $amount, but without prefix](/forum/29-payment-methods/901472-get-amount-but-without-prefix#327207 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi  I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?  Kind regards Thomas")*

It sure is.
You can use the tag {VAR:order.order_full_price}
However, this might display the price with more decimals than you want.
So a better solution might be: Code:

&lt;?php echo round($data-&gt;cart-&gt;order_full_price,2); ?&gt;

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

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

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 11 months ago [\#327243](#327243) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[Get $amount, but without prefix](/forum/29-payment-methods/901472-get-amount-but-without-prefix#327243 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi  I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?  Kind regards Thomas")*

Great!
And it works!

I tried the same on the override of banktransfer_end.php, but with no result.

Tried both of these:
&lt;?php echo JText::_($this-&gt;order_full_price);?&gt;
&lt;?php echo round($data-&gt;cart-&gt;order_full_price,2); ?&gt;

Any hints? ![:-)](/media/kunena/emoticons/3.png ":-)")

Regards
Thomas

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

5 years 11 months ago -  5 years 11 months ago [\#327268](#327268) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Get $amount, but without prefix](/forum/29-payment-methods/901472-get-amount-but-without-prefix#327268 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi  I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?  Kind regards Thomas")*

Hello,

This is because the data isn't arranged the same every time.
In order to have what you required, don't forget that you can add a "**var\_dump(this)**" in order to see your available data.
**Note :** **Don't** do this on an website in **production phase** on a page that customer can reached, because this display sometime lots of data.

Here, for what you required I think this will fit your expectations : Code:

echo $this-&gt;order-&gt;order_full_price; echo ' '.$this-&gt;currency-&gt;currency_symbol;

Regards

Last edit: 5 years 11 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 366
- Thank you received: 26
-
-

5 years 11 months ago [\#327305](#327305) by [Thrane](/forum/user/31786-thrane "View Thrane's Profile")  Replied by *[Thrane](/forum/user/31786-thrane "View Thrane's Profile")* on topic *[Get $amount, but without prefix](/forum/29-payment-methods/901472-get-amount-but-without-prefix#327305 "-- HikaShop version -- : 4.4.0 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4  Hi  I'm making some changes in the Order Creation Notification e-mail and would like to display the total amount like $amount, but without the currency prefix - is this possible?  Kind regards Thomas")*

Perfect!

Thank you ![:-)](/media/kunena/emoticons/3.png ":-)")

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

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