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

#   fields available in emails

##

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago -  15 years 2 months ago [\#23980](#23980) by [hko](/forum/user/3515-hko "View hko's Profile")  *[fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#23980 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")* was created by *[hko](/forum/user/3515-hko "View hko's Profile")*

Busy with customizing the email reply's.

Managed to change it radically but missing a few fields I would like to use.

- payment methods. For shipping all is available in the $cart array but for payment methods it is not.

- groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?

thx again!

Last edit: 15 years 2 months ago by [hko](/forum/user/3515-hko "View hko's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTgwLWZpZWxkcy1hdmFpbGFibGUtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86285
- Thank you received: 14263
-
-

15 years 2 months ago [\#23994](#23994) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#23994 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")*

Payment method should also be available in $cart like shipping in the attribute order_payment_method

The groups of a user (in joomla &gt;=1.6) ca be retrieved like that:
$my =&amp; JFactory::getUser($id);
JAccess::getGroupsByUser($my-&gt;id, false);

Note that this will give only the ids.

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24009](#24009) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#24009 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")*

Hi Nicolas, thx for the fast reply again!

I double checked again on the $data-&gt;cart for payment info but can just find two entries in there ($data-&gt;order_payment_id and $data-&gt;order_payment_method) where as the shipping info is far more complete.

I would like to use the payment_name like there is the shipping_name (which is in $data-&gt;cart-&gt;shipping, but there is no $data-&gt;cart-&gt;payment).
Is that correct or do I simply overlook something here?

thx in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTgwLWZpZWxkcy1hdmFpbGFibGUtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86285
- Thank you received: 14263
-
-

15 years 2 months ago [\#24020](#24020) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#24020 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")*

You can get the payment_name information like that:
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);

echo $payment-&gt;payment_name;

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

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

Less More

- Posts: 33
- Thank you received: 0
-
-

15 years 2 months ago [\#24032](#24032) by [hko](/forum/user/3515-hko "View hko's Profile")  Replied by *[hko](/forum/user/3515-hko "View hko's Profile")* on topic *[Re: fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#24032 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")*

Fantastic, just what I was looking for!

is there an overview of the available hikashop::Get classes somewhere? That would save you a couple of emails I guess... would be nice if that was added to the developer page section or so.

thx again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzOTgwLWZpZWxkcy1hdmFpbGFibGUtaW4tZW1haWxzP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86285
- Thank you received: 14263
-
-

15 years 2 months ago [\#24034](#24034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: fields available in emails](/forum/4-how-to/23980-fields-available-in-emails#24034 "Busy with customizing the email reply's.  Managed to change it radically but missing a few fields I would like to use.  - payment methods. For shipping all is available in the $cart array but for payment methods it is not.  - groups the user is belonging to so it is possible to create a message on the email about that. I understand that is Joomla itself, but is there an easy way to get that in the emails somehow?  thx again!")*

The classes are all in the folder administrator/components/com_hikashop/classes
There is no documentation for it. The classes will continue to change while we add more features in HikaShop so you shouldn't rely too much on them. The only things which won't change are the things that we publish in the developer's documentation.

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

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

[](#top)
