Custom Field not showing in orders and emails

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102588

Hi,

I've created a custom address field for a building name. It displays in the edit address form and saves but doesn't show in the displayed address in the front end or in the emails. I can see it in the order details but that about it. I tried editing the views but I'm not sure what I'm doing.

How do I make this custom field display in the front end and both user and admin notification emails and the backend invoice and shipping invoice.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102612

Hi,

In custom fields you can choose for each element where (front-end/back-end) they will be displayed:
www.hikashop.com/en/support/documentatio...form.html#additional

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #102620

Hi,

Are you sure that you have enable the option "Frontend" for this custom field ?

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102766

Hi,

Yes I have allowed "front end" See PDF of configurations and various views

Example Custom Fields

1. address info
2. checkout view
3. admin email

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102769

Hi,

Right.
There is just a little other thing to configure/change : the address template.
www.hikashop.com/en/support/documentatio...ashop-view-form.html

The Address template is used when HikaShop wants to display an address (only in text).
You have to edit the view for your front-end template (and back-end template) and add your field using his column name (building).
In the front-end, the overridden "address_template" view for your front-end template will be load, for email send by the back-end, it will load the override for the back-end template.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102779

Ah Yes, All fine now.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102781

I am also wanting to highlight in the admin email the custom field I have set up.

Currently in the email, the custom field text all runs together with credit card warning;

Example:

For security reasons, we strongly recommend you to delete the partial credit card information stored for this order once you retrieved it for processing. Also, remember to delete the email with the reset of the information once used.
Comments or special instructions for delivery : Please leave at reception

What I would like to do is highlight it like this.

For security reasons, we strongly recommend you to delete the partial credit card information stored for this order once you retrieved it for processing. Also, remember to delete the email with the reset of the information once used.

Comments or special instructions for delivery : Please leave at reception

Where can I edit this text?

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
11 years 6 months ago #102796

Hi,

This is probably in the language file. In Config > languages édit your language file and search for the corresponding text.
Then copy and paste it in the override part (with the translation key) and add the html bold tags <b>...</b> to highlight the desired text.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102806

Hi,

No, the message is generated by the custom field because the text doesn't exist in the language file. I thouht I should be able to find the PHP string that generates it in one of the views but I am unable to work out which one it is.

Jeff

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102820

Hi,

In the email, you have a loop which display all custom fields.
In this loop, you have to add a little check to find your specific custom text (thanks to his $fieldName) and display it with a "<b>" before and a "</b>" after.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 18
  • Thank you received: 0
11 years 6 months ago #102910

Hi,

I am unable to locate what view or file to make the edits. I looked at the three email views in Display / Views but wasn't able to see anywhere to make this change. Are you able to advise which View or File I need to edit please.

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 6 months ago #102942

Hi,

Emails edition is in "HikaShop > System > Emails".

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.084 seconds
Powered by Kunena Forum