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

#   Email template - Text version

##

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago -  11 years 1 month ago [\#214349](#214349) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214349 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.10

Hi HikaShop Team,

I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.

Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.

Last edit: 11 years 1 month ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

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

Less More

- Posts: 86292
- Thank you received: 14270
-
-

11 years 1 month ago [\#214363](#214363) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214363 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

That's already possible.
Remove everything in the text version, and all the data from the HTML version will be used in the text version automatically by the system.

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago -  11 years 1 month ago [\#214461](#214461) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214461 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Nicolas

That sounds awesome!

However I seem to be having a issue, I have cleaned out the text version completely in emails as such:

[ ![empty&#95;text.png](/forum/attachment/26514) ](/forum/attachment/26514 "empty&#95;text.png")

(I have done a "CTRL + A" to make sure there's no text or spaces at all)

Yet when I go into Orders and change a order status, and set "notify customer" to yes, the text version in that window is also "empty", apart from a couple of spaces, is the text-version not generated from the HTML right away? Or is it done before sending?

Below is picture of the text version from when a order status is being changed and I want to notify the customer

[ ![spaces&#95;text.png](/forum/attachment/26515) ](/forum/attachment/26515 "spaces&#95;text.png")

As you can see I have Highlighted the spaces in the text version

Update:

I just tried to send a mail and read the text version and as expected, it's empty apart from sender information, I suspect that it's because of the spaces that somehow appear in the text-version when one is trying to change the order status and notify the customer

- [ ![empty&#95;text.png](/forum/attachment/26514) ](/forum/attachment/26514 "empty&#95;text.png") [ ](/forum/attachment/26514?download=1 "empty&#95;text.png")
- [ ![spaces&#95;text.png](/forum/attachment/26515) ](/forum/attachment/26515 "spaces&#95;text.png") [ ](/forum/attachment/26515?download=1 "spaces&#95;text.png")

Last edit: 11 years 1 month ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile"). Reason: Tested

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

Less More

- Posts: 86292
- Thank you received: 14270
-
-

11 years 1 month ago [\#214476](#214476) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214476 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

I've tried it myself and it works just fine:
[ take.ms/9V0Nj](http://take.ms/9V0Nj)
Can you edit the file media/com_hikashop/mail/order_status_notification.text.modified.php via FTP and check that the file is totally empty ?

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago -  11 years 1 month ago [\#214591](#214591) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214591 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Nicolas

I opened the file you requested and it is indeed completley empty, as can also be seen on the file size of 0B (Yes, I did also open it and check that it was empty).

[ ![ftp&#95;mail.png](/forum/attachment/26540) ](/forum/attachment/26540 "ftp&#95;mail.png")

I then tried to delete the changes we've made (using the "Remove customization" button) for all 3 fields, and then went in and emptied the text version again, This seemed to work (with the default html / preload version)

However, I then tried to paste in our changes to the Preload version again and the "error" happened again, so it seems to be related to that part

Are there certain things that we need to be aware of when we edit the HTML / Preload version, in order to auto generate the text version?

- [ ![ftp&#95;mail.png](/forum/attachment/26540) ](/forum/attachment/26540 "ftp&#95;mail.png") [ ](/forum/attachment/26540?download=1 "ftp&#95;mail.png")

Last edit: 11 years 1 month ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214650](#214650) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214650 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

It could be related to an POST size limitation ; or to some (Joomla/web server) security plugin.
Please try to put your modification directly in the files using FTP ; you have the ".modified.php" files ; if you store your content in these files it will create the override (properly) and you won't loose your modification with HikaShop updates.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago [\#214922](#214922) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214922 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Jerome

I tried to modify the files directly with FTP but alas it doesn't seem to have made any difference at all.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#214993](#214993) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#214993 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

> alas it doesn't seem to have made any difference at all.

Please explain.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago [\#215046](#215046) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215046 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Jerome,

What I mean is that the same "errors" as described in [ my third post](http://hikashop.com/forum/checkout/879308-email-template-text-version.html#214461) I don't know whether it's post / size thing as the Pre-load / HTML version works just fine if we disregard auto-generating the Text-version.

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

Less More

- Posts: 86292
- Thank you received: 14270
-
-

11 years 1 month ago [\#215083](#215083) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215083 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

We're not able to reproduce the problem on our end. It works just fine, so I can only assume that there is something on your website which isn't like when we try to reproduce it.
Could you provide a backend access so that we can check your settings and reproduce, and a FTP access in order to debug it if necessary ?
[ www.hikashop.com/support/contact-us.html](http://www.hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 1 month ago -  11 years 1 month ago [\#215200](#215200) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215200 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Done and done - You can just use the existing orders in the backend as you want. ![:)](/media/kunena/emoticons/8.png ":)")

Last edit: 11 years 1 month ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#215346](#215346) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215346 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

It's fixed.

Your override of the "preload" contained a tabulation at the beginning of the file.
That tab created some content which were included in the email (what you could see in the textarea) and because the email was not really empty, the creation of the text version using the HTML one was not done.

I'll add a "trim" in HikaShop in order to avoid such kind of issue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 4 weeks ago [\#215721](#215721) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215721 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Jerome!

I've been unable to locate the tabulation in the file, however, could you point out where you added the "trim" so that I can add it to our live server?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 3 weeks ago [\#215759](#215759) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215759 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

I removed the tab from your preload file, that's why you can't see it now.
It was just at the beginning of the preload, something like that : Code:

&lt;?php

About the "trim", it's in the HikaShop class mail (administrator/components/com_hikashop/classes/email.php), you need to use that code for the end of the function "loadEmail" Code:

if(!empty($postload) &amp;&amp; file_exists($postload)) { include $postload; } else if($useTemplating &#124;&#124; !empty($vars) &#124;&#124; !empty($texts) &#124;&#124; !empty($templates)) { echo $this-&gt;processMailTemplate($mail, $data, $texts, $vars, $templates); } $ret = ob_get_clean(); return trim($ret); }

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")

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

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

Less More

- Posts: 135
- Thank you received: 2
-
-

11 years 3 weeks ago -  11 years 3 weeks ago [\#215868](#215868) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215868 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi Jerome.

I figured as much but I tried to find the tab on the live site, alas I still failed, although it might be because of my editor or simply me looking the wrong place.

> (administrator/components/com\_hikashop/classes/email.php)

Surely it's (administrator/components/com_hikashop/classes/mail.php) ?

Thanks for the help ![:)](/media/kunena/emoticons/8.png ":)")

OBS.

Strange thing is, I can't see the trim part in on the server you had access to, yet it works as it should, even when I paste in a old version (one that should contain the extra tabulation.

Last edit: 11 years 3 weeks ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

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

Less More

- Posts: 86292
- Thank you received: 14270
-
-

11 years 3 weeks ago [\#215913](#215913) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email template - Text version](/forum/27-checkout/879308-email-template-text-version#215913 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.10  Hi HikaShop Team,  I was wondering if the e-mail templates text version, had a way to show more data? Apart from writing it in yourself, it feels rather empty compared to the Preload / HTML version.  Or perhaps it would be possible to load the Preload / HTML version and then strip / replace the HTML tags and images out to leave only a text version? So instead of having to maintain the Preload version and the text version you just had to maintain the Preload / HTML version.")*

Hi,

Yes, it's administrator/components/com_hikashop/classes/mail.php

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

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

[](#top)
