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

#   Payment method in order email

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

14 years 8 months ago [\#39438](#39438) by [tibro1977](/forum/user/5843-tibro1977 "View tibro1977's Profile")  *[Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#39438 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")* was created by *[tibro1977](/forum/user/5843-tibro1977 "View tibro1977's Profile")*

Hi,

how and where can I configure the content of order-email.
I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.

thank you.
ps: i use professional edition

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

14 years 8 months ago [\#39540](#39540) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#39540 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

Hi,

You can edit the emails via the menu System-&gt;Emails

There, you will be able to display the payment name chosen like that: Code:

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

The following user(s) said Thank You: [zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile"), [crommie](/forum/user/8240-crommie "View crommie's Profile")

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

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

Less More

- Posts: 10
- Thank you received: 0
-
-

14 years 2 months ago [\#60347](#60347) by [mab](/forum/user/7896-mab "View mab's Profile")  Replied by *[mab](/forum/user/7896-mab "View mab's Profile")* on topic *[Re: Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#60347 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

Hi
The only "Email" I have under System (and Configuration) - don't give me the choices of chaning the actual email.
Just the Email address and some other settings.
Could you perhaps guide me where I can change the wording in the email please?
I'd like to add banking details for Internet Transfers.
Thank you
M

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

14 years 2 months ago [\#60395](#60395) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#60395 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

Hi,

If you just want to add/modify text, you can use translation overrides:
[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

The menu System-&gt;Emails (not Configuration) where you can edit the code of the emails is only available in the Business edition of HikaShop.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 2 months ago [\#62119](#62119) by [Konc](/forum/user/8316-konc "View Konc's Profile")  Replied by *[Konc](/forum/user/8316-konc "View Konc's Profile")* on topic *[Re: Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#62119 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

Hi. I know its a pretty old topic, but anyway:

I am not very familiar with php, so I would appreciate if you could be more specific for the code: Code:

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

Where should I put that code in **order\_creation\_notification.html.php** file if I want that part of confirmation mail to look instead of this:

**Payment method: 1,5€**

to look like this:

**Payment method - cash on delivery: 1,5€**

my order_creation_notification.html.php: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 1.5.8 * @author hikashop.com * @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;div style="background-color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px; color: #000000; width: 100%;"&gt; &lt;table style="margin: auto;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;?php echo JText::sprintf('HI_CUSTOMER',@$data-&gt;customer-&gt;name);?&gt; &lt;br/&gt; &lt;br/&gt; &lt;?php $url = $data-&gt;order_number; $config =&amp; hikashop_config(); if($config-&gt;get('simplified_registration',0)!=2){ $url = '&lt;a href="'.$data-&gt;order_url.'"&gt;'. $url.'&lt;/a&gt;'; } echo JText::sprintf('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE',$url,HIKASHOP_LIVE, hikashop_getDate(time(),'%d %B %Y'), hikashop_getDate(time(),'%H:%M'));?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;h1 style="background-color:#DDDDDD;font-size:14px;width:100%;padding:5px;"&gt;&lt;?php echo JText::_('SUMMARY_OF_YOUR_ORDER');?&gt;&lt;/h1&gt; &lt;br/&gt; &lt;table width="100%" style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;"&gt; &lt;tr&gt; &lt;td style="font-weight:bold;"&gt;&lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt;&lt;/td&gt; &lt;?php if ($config-&gt;get('show_code')) { ?&gt; &lt;td&gt;&lt;?php echo JText::_('CART_PRODUCT_CODE'); ?&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td style="font-weight: bold;"&gt;&lt;?php echo JText::_('CART_PRODUCT_UNIT_PRICE'); ?&gt;&lt;/td&gt; &lt;td style="font-weight: bold;"&gt;&lt;?php echo JText::_('CART_PRODUCT_QUANTITY'); ?&gt;&lt;/td&gt; &lt;td style="font-weight: bold; text-align: right;"&gt;&lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php if(hikashop_level(2)){ $fieldsClass = hikashop_get('class.field'); $null = null; $itemFields = $fieldsClass-&gt;getFields('frontcomp',$null,'item'); } $group = $config-&gt;get('group_options',0); foreach($data-&gt;cart-&gt;products as $item){ if($group &amp;&amp; $item-&gt;cart_product_option_parent_id) continue; ?&gt; &lt;tr&gt; &lt;td&gt; &lt;p&gt; &lt;?php echo $item-&gt;order_product_name; if($group){ $display_item_price=false; foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $item-&gt;cart_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if($config-&gt;get('price_with_tax')){ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;order_currency_id); }else{ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id); } } } ?&gt; &lt;/p&gt;&lt;?php if(!empty($itemFields)){ foreach($itemFields as $field){ $namekey = $field-&gt;field_namekey; if(empty($item-&gt;$namekey)) continue; echo '&lt;p&gt;'.$fieldsClass-&gt;getFieldName($field).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'&lt;/p&gt;'; } } if($group){ foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $item-&gt;cart_product_id) continue; $item-&gt;order_product_price +=$optionElement-&gt;order_product_price; $item-&gt;order_product_tax +=$optionElement-&gt;order_product_tax; $item-&gt;order_product_total_price+=$optionElement-&gt;order_product_total_price; $item-&gt;order_product_total_price_no_vat+=$optionElement-&gt;order_product_total_price_no_vat; ?&gt; &lt;p class="hikashop_order_option_name"&gt; &lt;?php echo $optionElement-&gt;order_product_name; if($optionElement-&gt;order_product_price&gt;0){ if($config-&gt;get('price_with_tax')){ echo ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price+$optionElement-&gt;order_product_tax,$data-&gt;order_currency_id).' )'; }else{ echo ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price,$data-&gt;order_currency_id).' )'; } } ?&gt; &lt;/p&gt; &lt;?php } } $statusDownload = explode(',',$config-&gt;get('order_status_for_download','confirmed,shipped')); if(in_array($data-&gt;order_status,$statusDownload)){ if(!empty($item-&gt;files)){ global $Itemid; $url_itemid = ''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } echo '&lt;p&gt;'; foreach($item-&gt;files as $file){ $fileName = empty($file-&gt;file_name) ? $file-&gt;file_path : $file-&gt;file_name; echo '&lt;a href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$data-&gt;order_id.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;'; } echo '&lt;/p&gt;'; } } ?&gt; &lt;/td&gt; &lt;?php if ($config-&gt;get('show_code')) { ?&gt; &lt;td&gt;&lt;p class="hikashop_product_code_mail"&gt;&lt;?php echo $item-&gt;order_product_code; ?&gt;&lt;/p&gt;&lt;/td&gt; &lt;?php } ?&gt; &lt;td&gt; &lt;?php if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo $item-&gt;order_product_quantity; ?&gt;&lt;/td&gt; &lt;td style="text-align: right"&gt; &lt;?php if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($item-&gt;order_product_total_price,$data-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format($item-&gt;order_product_total_price_no_vat,$data-&gt;order_currency_id); } ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } if(bccomp($data-&gt;order_discount_price,0,5)){ echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_COUPON').' : '; if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($data-&gt;order_discount_price*-1,$data-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format(($data-&gt;order_discount_price-@$data-&gt;order_discount_tax)*-1,$data-&gt;order_currency_id); } echo '&lt;/td&gt;&lt;/tr&gt;'; } if(bccomp($data-&gt;order_shipping_price,0,5)){ echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_SHIPPING_METHOD').' : '; if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($data-&gt;order_shipping_price,$data-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format($data-&gt;order_shipping_price-@$data-&gt;order_shipping_tax,$data-&gt;order_currency_id); } echo '&lt;/td&gt;&lt;/tr&gt;'; } if(bccomp($data-&gt;order_payment_price,0,5)){ echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order_payment_price,$data-&gt;order_currency_id).'&lt;/td&gt;&lt;/tr&gt;'; } if(!empty($data-&gt;cart-&gt;additional)) { $exclude_additionnal = explode(',', $config-&gt;get('order_additional_hide', '')); foreach($data-&gt;cart-&gt;additional as $additional) { if(in_array($additional-&gt;name, $exclude_additionnal)) continue; echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'. JText::_($additional-&gt;name).' : '; if(!empty($additional-&gt;price_value) &#124;&#124; empty($additional-&gt;value)) { if($config-&gt;get('price_with_tax')){ echo $currencyHelper-&gt;format($additional-&gt;price_value_with_tax, $data-&gt;order_currency_id); }else{ echo $currencyHelper-&gt;format($additional-&gt;price_value, $data-&gt;order_currency_id); } } else { echo $additional-&gt;value; } echo '&lt;/td&gt;&lt;/tr&gt;'; } } if($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax){ if($config-&gt;get('detailed_tax_display') &amp;&amp; !empty($data-&gt;order_tax_info)){ foreach($data-&gt;order_tax_info as $tax){ echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.$tax-&gt;tax_namekey. ' : '.$currencyHelper-&gt;format($tax-&gt;tax_amount,$data-&gt;order_currency_id).'&lt;/td&gt;&lt;/tr&gt;'; } }else{ echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;order_currency_id)).'&lt;/td&gt;&lt;/tr&gt;'; } $text=JText::sprintf('TOTAL_WITH_VAT',$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;order_currency_id)); }else{ $text=JText::_('HIKASHOP_FINAL_TOTAL'). ' : '.$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;order_currency_id); } echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right;font-weight:bold;"&gt;'.$text.'&lt;/td&gt;&lt;/tr&gt;'; ?&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;table width="100%" style="border: 1px solid #DDDDDD;font-family: Verdana, Arial, Helvetica, sans-serif;font-size:12px;"&gt; &lt;?php $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order_payment_id); echo $payment-&gt;payment_name; ?&gt; &lt;?php $params = null; $js = ''; $fieldsClass = hikashop_get('class.field'); $app =&amp; JFactory::getApplication(); if($app-&gt;isAdmin()){ $view = 'order'; }else{ $view = 'address'; } $template = trim(hikashop_getLayout($view,'address_template',$params,$js)); if(!empty($data-&gt;cart-&gt;billing_address)){ $billing = $template; foreach($data-&gt;order_addresses_fields as $field){ $fieldname = $field-&gt;field_namekey; $address =&amp; $data-&gt;order_addresses[$data-&gt;cart-&gt;billing_address-&gt;address_id]; $billing=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$address-&gt;$fieldname),$billing); } echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_BILLING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;'; echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?:(?!}).)*}#i','',$billing)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; } if(!empty($data-&gt;order_shipping_method)) { $currentShipping = hikashop_import('hikashopshipping',$data-&gt;order_shipping_method); if(method_exists($currentShipping, 'getShippingAddress')) { $override = $currentShipping-&gt;getShippingAddress($data-&gt;order_shipping_id); if($override !== false) { $data-&gt;override_shipping_address = $override; } } } if(!empty($data-&gt;override_shipping_address) &#124;&#124; (!empty($data-&gt;cart-&gt;has_shipping) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address))) echo '&lt;tr&gt;&lt;td style="font-weight:bold;background-color:#DDDDDD"&gt;'.JText::_('HIKASHOP_SHIPPING_ADDRESS').'&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;'; if(!empty($data-&gt;override_shipping_address)) { echo $data-&gt;override_shipping_address.'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; } else if(!empty($data-&gt;cart-&gt;has_shipping) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address)){ $shipping = $template; foreach($data-&gt;order_addresses_fields as $field){ $fieldname = $field-&gt;field_namekey; $address =&amp; $data-&gt;order_addresses[$data-&gt;cart-&gt;shipping_address-&gt;address_id]; $shipping=str_replace('{'.$fieldname.'}',$fieldsClass-&gt;show($field,$address-&gt;$fieldname),$shipping); } echo str_replace(array("\r\n","\r","\n"),'&lt;br/&gt;',preg_replace('#{(?:(?!}).)*}#i','',$shipping)).'&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;'; }?&gt; &lt;/table&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;&lt;?php $fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { if(empty($data-&gt;$fieldName)) continue; echo "&lt;br/&gt;".$fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName); } ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php JPluginHelper::importPlugin('hikashop'); $dispatcher =&amp; JDispatcher::getInstance(); $dispatcher-&gt;trigger('onAfterOrderProductsListingDisplay', array(&amp;$data-&gt;cart, 'email_notification_html')); ?&gt; &lt;tr&gt; &lt;td&gt; &lt;?php if(!$app-&gt;isAdmin()){ echo JText::_('ORDER_VALID_AFTER_PAYMENT'); $config =&amp; hikashop_config(); if($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax&gt;0 &amp;&amp; hikashop_level(1) &amp;&amp; $config-&gt;get('allow_payment_button',1)){ global $Itemid; $url = ''; if(!empty($Itemid)){ $url='&amp;Itemid='.$Itemid; } $pay_url = hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=pay&amp;order_id='.$data-&gt;order_id.$url); if($config-&gt;get('force_ssl',0) &amp;&amp; strpos('https://',$pay_url) === false) { $pay_url = str_replace('http://','https://',$pay_url); } ?&gt; &lt;a href="$pay_url"&gt;&lt;?php JText::_('PAY_NOW'); ?&gt;&lt;/a&gt; &lt;?php } ?&gt; &lt;br/&gt; &lt;br/&gt; &lt;?php echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE); }?&gt; &lt;br/&gt; &lt;br/&gt; &lt;?php echo JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name);?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="10"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;/div&gt;

Thank you in advance.

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

14 years 2 months ago [\#62236](#62236) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#62236 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

You will need to change the line:
echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_PAYMENT_METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order_payment_price,$data-&gt;order_currency_id).'&lt;/td&gt;&lt;/tr&gt;';

to:
$paymentClass = hikashop::get('class.payment');
$payment = $paymentClass-&gt;get($data-&gt;order_payment_id);
echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::_('HIKASHOP_PAYMENT_METHOD').' - '.$payment-&gt;payment_name.' : '.$currencyHelper-&gt;format($data-&gt;order_payment_price,$data-&gt;order_currency_id).'&lt;/td&gt;&lt;/tr&gt;';

The following user(s) said Thank You: [Konc](/forum/user/8316-konc "View Konc's Profile")

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 10 months ago -  12 years 10 months ago [\#136961](#136961) by [zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile")  Replied by *[zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile")* on topic *[Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#136961 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

I want to make part of the mail to be conditioned to payment method, if it's payed by credit card, it won't display, otherwise, it will. I set the following code:
Code:

&lt;?php $paymentClass = hikashop::get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;order_payment_id); $cc = $payment-&gt;payment_name; if ($cc != 'Credit Card'): ?&gt; &lt;p&gt; Your will receive an invoice for $&lt;?php echo $data-&gt;order-&gt;order_full_price; ?&gt; &lt;/p&gt; &lt;?php endif; ?&gt;

But it throws me an error when trying to checkout, I'm sure it's the code but I can't find the problem, could you enlighten me, please?

&lt;!--EDITED--&gt;

LOL, I just noticed I ran out of money in the credit card I'm using for testing. Have to wait until tomorrow for further tests, but if you see anything wrong with the code, please drop a line. Thank you!

Last edit: 12 years 10 months ago by [zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile"). Reason: New info about the issue

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

12 years 10 months ago [\#136999](#136999) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#136999 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

It looks fine although we usually use curly brakets instead of endif.
What error did you get ?

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

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

Less More

- Posts: 30
- Thank you received: 0
-
-

12 years 10 months ago [\#137000](#137000) by [zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile")  Replied by *[zaratustra27](/forum/user/7005-zaratustra27 "View zaratustra27's Profile")* on topic *[Payment method in order email](/forum/4-how-to/39438-payment-method-in-order-email#137000 "Hi,  how and where can I configure the content of order-email. I can see only the shipping address, the billing address and the ordered product and the user fields, BUT I don't know, which Payment method selected is.  thank you. ps: i use professional edition")*

When trying to checkout, 'Error code: #'

I noticed the Failed order confirmation later, it's my debit card for sure. Thank you!

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

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

[](#top)
