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

#   Variables for customer mails

##

- **[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")**
- [![Sonderup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31309.png)](/forum/user/31309-sonderup "View Sonderup's Profile") Topic Author
- [ Offline](/forum/user/31309-sonderup)

Less More

- Posts: 3
- Thank you received: 0
-
- [](http://www.joomlakonsulenten.dk)
-

11 years 9 months ago [\#185937](#185937) by [Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")  *[Variables for customer mails](/forum/27-checkout/874138-variables-for-customer-mails#185937 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : All  Hi,  I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.  For the payment I have tried this code, but with no success:  Can you deliver the variables for ORDER DATE and PAYMENT METHOD?")* was created by *[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.36
-- Browser(s) name and version -- : All

Hi,

I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.

For the payment I have tried this code, but with no success:
Code:

&lt;?php $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order_payment_id); echo $payment-&gt;payment_name; ?&gt;&lt;

Can you deliver the variables for ORDER DATE and PAYMENT METHOD?

---

Regards,
Michael Sønderup Nielsen
web: [ www.joomlakonsulenten.dk](http://www.joomlakonsulenten.dk)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDEzOC12YXJpYWJsZXMtZm9yLWN1c3RvbWVyLW1haWxzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

11 years 9 months ago [\#185945](#185945) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variables for customer mails](/forum/27-checkout/874138-variables-for-customer-mails#185945 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : All  Hi,  I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.  For the payment I have tried this code, but with no success:  Can you deliver the variables for ORDER DATE and PAYMENT METHOD?")*

Hi,

Sometimes the data is in $data-&gt;cart instead of $data so try like that: Code:

&lt;?php $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;cart-&gt;order_payment_id); echo $payment-&gt;payment_name; ?&gt;

Because the rest of the code looks good to me.
For the date, it's like this: Code:

&lt;?php echo hikashop_getDate($data-&gt;cart-&gt;order_created); ?&gt;

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

- **[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")**
- [![Sonderup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31309.png)](/forum/user/31309-sonderup "View Sonderup's Profile") Topic Author
- [ Offline](/forum/user/31309-sonderup)

Less More

- Posts: 3
- Thank you received: 0
-
- [](http://www.joomlakonsulenten.dk)
-

11 years 9 months ago [\#186038](#186038) by [Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")  Replied by *[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")* on topic *[Variables for customer mails](/forum/27-checkout/874138-variables-for-customer-mails#186038 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : All  Hi,  I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.  For the payment I have tried this code, but with no success:  Can you deliver the variables for ORDER DATE and PAYMENT METHOD?")*

Hi Nicolas,

The date I got right.

But the payment method is stil missing in the mail?

---

Regards,
Michael Sønderup Nielsen
web: [ www.joomlakonsulenten.dk](http://www.joomlakonsulenten.dk)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDEzOC12YXJpYWJsZXMtZm9yLWN1c3RvbWVyLW1haWxzP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

11 years 9 months ago [\#186041](#186041) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variables for customer mails](/forum/27-checkout/874138-variables-for-customer-mails#186041 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : All  Hi,  I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.  For the payment I have tried this code, but with no success:  Can you deliver the variables for ORDER DATE and PAYMENT METHOD?")*

Hi,

I checked your website and I can see that you removed the name of the payment method for two of your payment methods:
[ take.ms/J4SDw](http://take.ms/J4SDw)
That probably explains why you don't see anything...It works but there is just nothing to display.

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

- **[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")**
- [![Sonderup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31309.png)](/forum/user/31309-sonderup "View Sonderup's Profile") Topic Author
- [ Offline](/forum/user/31309-sonderup)

Less More

- Posts: 3
- Thank you received: 0
-
- [](http://www.joomlakonsulenten.dk)
-

11 years 9 months ago [\#186154](#186154) by [Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")  Replied by *[Sonderup](/forum/user/31309-sonderup "View Sonderup's Profile")* on topic *[Variables for customer mails](/forum/27-checkout/874138-variables-for-customer-mails#186154 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.36 -- Browser(s) name and version -- : All  Hi,  I'm customizing (coding) all the customer mails (order creation, order confirmation etc) and need the variables for order date and payment methode.  For the payment I have tried this code, but with no success:  Can you deliver the variables for ORDER DATE and PAYMENT METHOD?")*

DOH!!! :blush:

Thanks for pointing that out. ![:)](/media/kunena/emoticons/8.png ":)")

---

Regards,
Michael Sønderup Nielsen
web: [ www.joomlakonsulenten.dk](http://www.joomlakonsulenten.dk)

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

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

[](#top)
