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

#   Tooltip text in order confirmation email

##

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#42274](#42274) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  *[Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#42274 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")* was created by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")*

Hi,

I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:
*Party Banners - Ruby Anniversary: 2m - Gloss

{tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red

{tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes

{tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically

{tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes*

How do I show only custom field name and the chosen option instead of the whole tooltip string?

Thanks very much for your help!
Johanna

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago -  14 years 7 months ago [\#42411](#42411) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#42411 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

You will have to edit the email via the menu System-&gt;Emails and change the code:
$fieldsClass-&gt;getFieldName($field)

to:
$fieldsClass-&gt;getFieldName(preg_replace('#{.*}#U','',$field))

Last edit: 14 years 7 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#43409](#43409) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43409 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Hi Nicholas,

Thanks for your help. I changed the code and now get the following error upon clicking 'next' in the checkout:

Parse error: syntax error, unexpected '.' in /home/idesign1/public_html/test/media/com_hikashop/mail/order_admin_notification.html.modified.php on line 98

This is what the code looks like now after the changes, I must have done something wrong:

&lt;td&gt;
&lt;p&gt;&lt;?php echo $item-&gt;order_product_name; ?&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(preg_replace('#{.*}#U','',$field));.': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'&lt;/p&gt;';
}
} ?&gt;
&lt;/td&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago [\#43419](#43419) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43419 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Sorry, The semi colon at the end should not be added.

Do like that:
echo '&lt;p&gt;'.$fieldsClass-&gt;getFieldName(preg_replace('#{.*}#U','',$field)).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'&lt;/p&gt;';

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#43428](#43428) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43428 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Hi Nicolas,

Thank you for your fast reply! I've made the changes and now get a different error:

Catchable fatal error: Object of class stdClass could not be converted to string in /home/idesign1/public_html/test/media/com_hikashop/mail/order_creation_notification.html.modified.php on line 70

I've copied the code exactly as you've given it in the 'order creation notification' email.

Thanks for your help!
Johanna

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago [\#43434](#43434) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43434 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Ah yes, try like that:

echo '&lt;p&gt;'.preg_replace('#{.*}#U','',$field-&gt;field_realname).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'&lt;/p&gt;';

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#43435](#43435) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43435 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Hi Nicolas,

Just changed it to the new code, saved and tried putting an order through, but get an error again at the last stage just before being sent to page which says 'wait to be redirected to PayPal':

Parse error: syntax error, unexpected '.' in /home/idesign1/public_html/test/media/com_hikashop/mail/order_admin_notification.html.modified.php on line 98

Really hope this can be solved, thanks so much for your time!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago [\#43438](#43438) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43438 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

I don't see why it would do that with my last code. Could you double check ?

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#43440](#43440) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43440 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Hi Nicolas,

I've got the following code now in the 'order creation notification' email:

&lt;td&gt;
&lt;p&gt;&lt;?php echo $item-&gt;order_product_name; ?&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 ''.preg_replace('##U','',$field-&gt;field_realname).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'';
}
} ?&gt;
&lt;/td&gt;

I've tried and still won't work, I get the same error. Do I need to change this code elsewhere as well?? I'm not sure on that.

If you want to try it out, here is the site: [ www.idesignorkney.co.uk/test/](http://www.idesignorkney.co.uk/test/)
The products are in 'online' products, the steps are all working as they should otherwise, apart from the last step before PayPal.

Thank you, Nicolas!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago [\#43442](#43442) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43442 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Ah yes, if you look at the error message it's in the order admin notification while you're changing the order creation email. That's probably why you still have the error.

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#43834](#43834) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#43834 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Thank you so much, Nicolas, this now works just fine apart from one tiny cosmetic issue. The product options now appear like this in the order emails:

**Design Template Colour Scheme Diamond Anniversary: Balloons - SilverPhoto Required: YesSend Artwork if applicable: ElectronicallyProof Required: Yes**

How do I create a space or &#124; symbol between the different options, for instance it would need a space between 'Silver' and 'Photo' above and so on.

Many thanks for all your help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMjc0LXRvb2x0aXAtdGV4dC1pbi1vcmRlci1jb25maXJtYXRpb24tZW1haWw/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: 86309
- Thank you received: 14273
-
-

14 years 7 months ago [\#44022](#44022) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#44022 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Instead of :
echo ''.preg_replace('##U','',$field-&gt;field_realname).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'';

you can use:
echo ' &#124; '.preg_replace('##U','',$field-&gt;field_realname).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey).'';

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

- **[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")**
- [![jcwerb's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4458.jpg)](/forum/user/4458-jcwerb "View jcwerb's Profile") Topic Author
- [ Offline](/forum/user/4458-jcwerb)

Less More

- Posts: 33
- Thank you received: 0
-
-

14 years 7 months ago [\#45094](#45094) by [jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")  Replied by *[jcwerb](/forum/user/4458-jcwerb "View jcwerb's Profile")* on topic *[Re: Tooltip text in order confirmation email](/forum/4-how-to/42274-tooltip-text-in-order-confirmation-email#45094 "Hi,  I've set up tooltips for product custom fields which I've added in the language file. This works fine in the cart as it does not show the tooltip code, but unfortunately in the order confirmation emails the whole tooltip string is shown, like so:  Party Banners - Ruby Anniversary: 2m - Gloss  {tip You can choose from various design templates and colour schemes (see template samples).}Template / Colour{/tip}: Balloons - Red  {tip We can print your banner with or without a photo.}Photo Required{/tip}: Yes  {tip We accept files in various formats. Please see our FAQs for further information on sending artwork.}Send Artwork{/tip}: Electronically  {tip You can choose to have an electronic pdf proof sent via e-mail. Printed proofs are available for an additional cost (see FAQs).}Proof Required?{/tip}: Yes  How do I show only custom field name and the chosen option instead of the whole tooltip string?  Thanks very much for your help! Johanna")*

Thank you very much, Nicolas!

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

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

[](#top)
