Skip to main content

display address custom field

4 years 1 month ago - 4 years 1 month ago #345281 by jean-loup
Good morning,

I created a custom field (institution name) and I would like it to be diplayed once the form is saved, on the top before "Company" field

I addedd a tag in display view, address_template, but I'm obviously missing something

Can yun help please?

Thank you in advance!

Jean-Loup

Last edit: 4 years 1 month ago by jean-loup.

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

4 years 1 month ago #345289 by nicolas
Hi,

You're on the right track. However, instead of doing view overrides manually (several have to be made), you can do the change in the "address format" setting of the HikaShop configuration.
The following user(s) said Thank You: jean-loup

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

4 years 1 month ago #345299 by lousyfool
@jean-loup:

Hi,

You also want to avoid typing errors: in the screenshot of your view override you had an extra space in {address_institutionname}, and that would likely not work anywhere.

Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: nicolas, jean-loup

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

4 years 1 month ago - 4 years 1 month ago #345312 by jean-loup
Thanks, but even doing it in the address field, it's not displaying... Any suggestion?
It is displayed during the edition but not once the changes is saved
Thanks in advance

{address_company}
{address_institutionname}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_post_code} {address_city} {address_state}
{address_country}
<?php if(!empty($this->address->address_telephone)) echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

<?php if(!empty($this->address->address_vat)) echo JText::sprintf('VAT_IN_ADDRESS','{address_vat}'); ?>
Last edit: 4 years 1 month ago by jean-loup.

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

4 years 1 month ago #345313 by nicolas
Can you provide a screenshot of the settings of the custom field ?

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

4 years 1 month ago #345337 by jean-loup
Thank you

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

4 years 1 month ago #345339 by nicolas
Hi,

The column name of the custom field is institutionname so the tag to use in the address format should be: {institutionname}

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

4 years 1 month ago #345343 by jean-loup
Thank you very much...

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

Time to create page: 0.090 seconds
Powered by Kunena Forum