display address custom field

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
1 year 6 months ago #345281

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

Attachments:
Last edit: 1 year 6 months ago by jean-loup.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 6 months ago #345289

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.

  • Posts: 2143
  • Thank you received: 747
1 year 6 months ago #345299

@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.

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
1 year 6 months ago #345312

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: 1 year 6 months ago by jean-loup.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 6 months ago #345313

Can you provide a screenshot of the settings of the custom field ?

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

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
1 year 6 months ago #345337

Thank you

Attachments:

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
1 year 6 months ago #345339

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.

  • Posts: 163
  • Thank you received: 6
  • Hikashop Business
1 year 6 months ago #345343

Thank you very much...

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

Time to create page: 0.112 seconds
Powered by Kunena Forum