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

#   Billing adress in plain text mail

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

15 years 2 weeks ago -  15 years 2 weeks ago [\#28480](#28480) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  *[Billing adress in plain text mail](/forum/3-bug-report/28480-billing-adress-in-plain-text-mail#28480 "Hello there,  Some people have there mail clients set to show only plain text. The problem im facing now is that the billing adress is not working in plain text mode. It just shows empty same goes for the phone number.  When i turn the mail to html everything works just fine.  Do you know what the problem might be (Using business edition)?  Im using the following code for the order status notification (which is the code i copied from the text order creation mail):  Dear regards,  Fontijn")* was created by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")*

Hello there,

Some people have there mail clients set to show only plain text.
The problem im facing now is that the billing adress is not working in plain text mode.
It just shows empty same goes for the phone number.

When i turn the mail to html everything works just fine.

Do you know what the problem might be (Using business edition)?

Im using the following code for the order status notification (which is the code i copied from the text order creation mail): Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 1.5.4 * @author hikashop.com * @copyright (C) 2010-2011 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;?php echo JText::sprintf('HI_CUSTOMER',@$data-&gt;customer-&gt;name);?&gt; &lt;?php $url = $data-&gt;order_number; $config =&amp; hikashop_config(); if($config-&gt;get('simplified_registration',0)!=2){ $url .= ' ( '.$data-&gt;order_url.' )'; } 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;?php echo JText::_('SUMMARY_OF_YOUR_ORDER');?&gt; -------------------------------------- &lt;?php echo JText::_('CART_PRODUCT_NAME')."\t".JText::_('CART_PRODUCT_UNIT_PRICE')."\t".JText::_('CART_PRODUCT_QUANTITY')."\t".JText::_('HIKASHOP_TOTAL');?&gt; &lt;?php foreach($data-&gt;cart-&gt;products as $item){ $price = $item-&gt;order_product_price*$item-&gt;order_product_quantity; echo strip_tags($item-&gt;order_product_name) . "\t" . $currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id)."\t".$item-&gt;order_product_quantity."\t".$currencyHelper-&gt;format($price,$data-&gt;order_currency_id)."\n"; } if(bccomp($data-&gt;order_discount_price,0,5)){ echo JText::_('HIKASHOP_COUPON').' : '.$currencyHelper-&gt;format($data-&gt;order_discount_price*-1,$data-&gt;order_currency_id)."\n"; } if(bccomp($data-&gt;order_shipping_price,0,5)){ echo JText::_('HIKASHOP_SHIPPING_METHOD').' : '.$currencyHelper-&gt;format($data-&gt;order_shipping_price,$data-&gt;order_currency_id)."\n"; } echo 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))."\n"; echo 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))."\n\n"; $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 JText::_('HIKASHOP_BILLING_ADDRESS')."\n"; echo preg_replace('#{(?:(?!}).)*}#i','',$billing)."\n\n"; } 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 JText::_('HIKASHOP_SHIPPING_ADDRESS')."\n"; echo preg_replace('#{(?:(?!}).)*}#i','',$shipping)."\n\n"; } $fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { echo $fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName)."\r\n"; } if(!$app-&gt;isAdmin()){ echo JText::_('ORDER_VALID_AFTER_PAYMENT')."\n\n"; echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE)."\n\n"; } echo str_replace('&lt;br/&gt;',"\n",JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name));?&gt;

Dear regards,

Fontijn

Last edit: 15 years 2 weeks ago by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yODQ4MC1iaWxsaW5nLWFkcmVzcy1pbi1wbGFpbi10ZXh0LW1haWw/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: 86555
- Thank you received: 14304
-
-

15 years 2 weeks ago [\#28499](#28499) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Billing adress in plain text mail](/forum/3-bug-report/28480-billing-adress-in-plain-text-mail#28499 "Hello there,  Some people have there mail clients set to show only plain text. The problem im facing now is that the billing adress is not working in plain text mode. It just shows empty same goes for the phone number.  When i turn the mail to html everything works just fine.  Do you know what the problem might be (Using business edition)?  Im using the following code for the order status notification (which is the code i copied from the text order creation mail):  Dear regards,  Fontijn")*

Well, that's your problem. You can't just use the code from the order creation email as the $data variable does not contain the same data in both emails (the address information is not loaded for example).
You could try to just empty the text version of that email. HikaShop will try to generate a text version from the html version automatically.

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

15 years 2 weeks ago [\#28506](#28506) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  Replied by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")* on topic *[Re: Billing adress in plain text mail](/forum/3-bug-report/28480-billing-adress-in-plain-text-mail#28506 "Hello there,  Some people have there mail clients set to show only plain text. The problem im facing now is that the billing adress is not working in plain text mode. It just shows empty same goes for the phone number.  When i turn the mail to html everything works just fine.  Do you know what the problem might be (Using business edition)?  Im using the following code for the order status notification (which is the code i copied from the text order creation mail):  Dear regards,  Fontijn")*

Thank you for your quick response,

Just to make sure im doing the right thing.
You mean that i should press the delete button in the row "delete text adjustment" when i go to System -&gt; Emails ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8yODQ4MC1iaWxsaW5nLWFkcmVzcy1pbi1wbGFpbi10ZXh0LW1haWw/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: 86555
- Thank you received: 14304
-
-

15 years 2 weeks ago [\#28507](#28507) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Billing adress in plain text mail](/forum/3-bug-report/28480-billing-adress-in-plain-text-mail#28507 "Hello there,  Some people have there mail clients set to show only plain text. The problem im facing now is that the billing adress is not working in plain text mode. It just shows empty same goes for the phone number.  When i turn the mail to html everything works just fine.  Do you know what the problem might be (Using business edition)?  Im using the following code for the order status notification (which is the code i copied from the text order creation mail):  Dear regards,  Fontijn")*

No. Empty the text version textarea when you're editing the email and save.

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

15 years 2 weeks ago [\#28508](#28508) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  Replied by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")* on topic *[Re: Billing adress in plain text mail](/forum/3-bug-report/28480-billing-adress-in-plain-text-mail#28508 "Hello there,  Some people have there mail clients set to show only plain text. The problem im facing now is that the billing adress is not working in plain text mode. It just shows empty same goes for the phone number.  When i turn the mail to html everything works just fine.  Do you know what the problem might be (Using business edition)?  Im using the following code for the order status notification (which is the code i copied from the text order creation mail):  Dear regards,  Fontijn")*

Nicolas what a wonderful system that fixed my problem.

Thank you again for the fast and good support.

Dear regards,

Fontijn

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

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