Possible to display the text output of a custom field in the Hikashop emails?

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315169

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.38

Hello, Happy new year.

For example - See website

I would like the field "Add message with order" to display in the hikashop emails. Is this possible?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 9 months ago #315172

Hi,

In recent versions of HikaShop, you can just enable the email display settings of the custom field when you edit it via the Display>Custom fields menu.
I'm not sure if you have these options in your version of HikaShop, so you might have to update. Otherwise, you should be able to do it by editing the code of the email via the menu System>Emails, but it's more complex as it requires some coding.

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315238

Hi Nicolas,

Thank you for your reply. The most recent version I have is 4.0.3. Does this version support this feature?

Thanks

Last edit: 4 years 9 months ago by joshualdouglas.

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315240

Also, is it safe to update from version 3.1.1 to 4.0.3? Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 9 months ago #315246

Hi,

The 4.0.3 definitely has it. Not the 3.1.1 I think.
To check if the version you have has it, edit your custom field via the menu Display>Custom fields and check if you have the email display options there.
If not, then you don't have them.

Updating from any version to any other version has risks, especially the more you customized HikaShop views and CSS, the more it's possible that something will go wrong.
However, since HikaShop 3.0.0, the updates should go much smoother, but there is always a risk.
I would personnally recommend to first do a test on a copy of the website.

The following user(s) said Thank You: joshualdouglas

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315316

Thank you for your help!

Last edit: 4 years 9 months ago by joshualdouglas.

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315389

Hi,

I have created a new Vhost and updated it to 4.0.3. I'm in Display>Custom (please see attached) and I don't think I have the email options. Could you please confirm?

Many Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
4 years 9 months ago #315400

Hello,

You'll find it through your custom field configuration page, can you check it in your custom field configuration page ? Thank you.

Kind regards,
Mohamed.

The following user(s) said Thank You: joshualdouglas

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315433

Hi Mohamed,

Please see attached. It doesn't look like I have these settings :(

Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 9 months ago #315440

Hi,

I do see the email settings on your screenshot.
It's in the block with the name "DISPLAY: MAIL". In there you can see that display settings label correspond to the name of the emails in System>Emails.

The following user(s) said Thank You: joshualdouglas

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315464

I'm so blind! Thank you very much

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315469

One more thing, is it possible to display the customers IP address in emails?

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
4 years 9 months ago #315470

Hi,

You can add the tag {VAR:order.order_ip} in the email's HTML section. But only if you didn't deactivate the collection of the IP addresses with the "Log IP address" setting of the HikaShop configuration.

The following user(s) said Thank You: joshualdouglas

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315601

This seems to work great. Thank you!

However, in my email it is printing the IP address twice - please see attached.



Many Thanks,
Josh.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 220
  • Thank you received: 12
4 years 9 months ago #315603

No worries! In an actual email it displays fine!

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum