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

#   Email: Order creation notification / Text version

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 9 months ago [\#192192](#192192) by [Pajerchin](/forum/user/20592-pajerchin "View Pajerchin's Profile")  *[Email: Order creation notification / Text version](/forum/27-checkout/875252-email-order-creation-notification-text-version#192192 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.17  Hi,  HTML version of email is OK  But in the text version - there are missed important information  Actually the text version ends like this:  I miss there: - SHIPPING&#95;ADDRESS - BILLING&#95;ADDRESS - ADDITIONAL&#95;INFORMATION - ORDER&#95;SUMMARY  Here is source code of TXT version (it seems everything shpuld be published - but it is not:  ...Do you have any advice, please ?")* was created by *[Pajerchin](/forum/user/20592-pajerchin "View Pajerchin's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.17

Hi,

HTML version of email is OK

But in the text version - there are missed important information

Actually the text version ends like this:

*TOTAL with VAT : 1.078,80 €

Billing address
Telephone:Your order will be processed as soon as your payment is received.
Once again, thank you for your order at [ xxx.xx/](http://xxx.xx/). We hope to see you again soon.

Best regards,*

I miss there:
- SHIPPING_ADDRESS
- BILLING_ADDRESS
- ADDITIONAL_INFORMATION
- ORDER_SUMMARY

Here is source code of TXT version (it seems everything shpuld be published - but it is not: Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.5 * @author hikashop.com * @copyright (C) 2010-2015 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 str_replace('&lt;br/&gt;',"\n",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"; } if(!empty($data-&gt;additional)) { $exclude_additionnal = explode(',', $config-&gt;get('order_additional_hide', '')); foreach($data-&gt;additional as $additional) { if(in_array($additional-&gt;name, $exclude_additionnal)) continue; echo JText::_($additional-&gt;order_product_name).' : '; if(!empty($additional-&gt;order_product_price) &#124;&#124; empty($additional-&gt;order_product_options)) { echo $currencyHelper-&gt;format($additional-&gt;order_product_price, $this-&gt;order-&gt;order_currency_id); } else { echo $additional-&gt;order_product_options; } echo "\n"; } } 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 $tax-&gt;tax_namekey. ' : '.$currencyHelper-&gt;format($tax-&gt;tax_amount,$data-&gt;order_currency_id)."\n"; } }else{ 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"; }else{ echo JText::_('HIKASHOP_TOTAL'). ' : '.$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;order_currency_id)."\n"; } $app = JFactory::getApplication(); if($app-&gt;isAdmin()){ $view = 'order'; }else{ $view = 'address'; } $addressClass = hikashop_get('class.address'); if(!empty($data-&gt;cart-&gt;billing_address)){ echo JText::_('HIKASHOP_BILLING_ADDRESS')."\n"; echo $addressClass-&gt;displayAddress($data-&gt;order_addresses_fields,$data-&gt;order_addresses[$data-&gt;cart-&gt;billing_address-&gt;address_id],$view,true); } 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;cart-&gt;has_shipping) &amp;&amp; (!empty($data-&gt;cart-&gt;shipping_address) &#124;&#124; !empty($data-&gt;override_shipping_address))) { if( !empty($data-&gt;override_shipping_address) ) { echo str_replace('&lt;br/&gt;',"\r\n",$data-&gt;override_shipping_address); } else { echo JText::_('HIKASHOP_SHIPPING_ADDRESS')."\n"; echo $addressClass-&gt;displayAddress($data-&gt;order_addresses_fields,$data-&gt;order_addresses[$data-&gt;cart-&gt;shipping_address-&gt;address_id],$view,true); } } $fields = $fieldsClass-&gt;getFields('frontcomp',$data,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { $fieldData = trim(@$data-&gt;$fieldName); if(empty($fieldData)) continue; echo $fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField,$data-&gt;$fieldName)."\r\n"; } if(!$app-&gt;isAdmin()){ if($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax&gt;0) echo JText::_('ORDER_VALID_AFTER_PAYMENT')."\n\n"; echo str_replace('&lt;br/&gt;',"\n",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;

...Do you have any advice, please ?

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

11 years 9 months ago [\#192258](#192258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email: Order creation notification / Text version](/forum/27-checkout/875252-email-order-creation-notification-text-version#192258 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.17  Hi,  HTML version of email is OK  But in the text version - there are missed important information  Actually the text version ends like this:  I miss there: - SHIPPING&#95;ADDRESS - BILLING&#95;ADDRESS - ADDITIONAL&#95;INFORMATION - ORDER&#95;SUMMARY  Here is source code of TXT version (it seems everything shpuld be published - but it is not:  ...Do you have any advice, please ?")*

Hi,

You can remove completely the TEXT version of the email. Then, HikaShop will generate the text version out of the HTML version and you'll get the same thing minus the HTML tags for the formating.

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

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

Less More

- Posts: 29
- Thank you received: 0
-
-

11 years 9 months ago [\#192341](#192341) by [Pajerchin](/forum/user/20592-pajerchin "View Pajerchin's Profile")  Replied by *[Pajerchin](/forum/user/20592-pajerchin "View Pajerchin's Profile")* on topic *[Email: Order creation notification / Text version](/forum/27-checkout/875252-email-order-creation-notification-text-version#192341 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.17  Hi,  HTML version of email is OK  But in the text version - there are missed important information  Actually the text version ends like this:  I miss there: - SHIPPING&#95;ADDRESS - BILLING&#95;ADDRESS - ADDITIONAL&#95;INFORMATION - ORDER&#95;SUMMARY  Here is source code of TXT version (it seems everything shpuld be published - but it is not:  ...Do you have any advice, please ?")*

Thank you for advice ...it is better for me to delete the text version of email

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

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