- Posts: 176
- Thank you received: 8
display address custom field
4 years 1 month ago - 4 years 1 month ago #345281
by jean-loup
display address custom field was created by 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
Replied by nicolas on topic display address custom field
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.
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
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" )
Replied by lousyfool on topic display address custom field
@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.
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" )
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
Replied by jean-loup on topic display address custom field
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}'); ?>
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
Replied by nicolas on topic display address custom field
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
Replied by jean-loup on topic display address custom field
Please Log in or Create an account to join the conversation.
4 years 1 month ago #345339
by nicolas
Replied by nicolas on topic display address custom field
Hi,
The column name of the custom field is institutionname so the tag to use in the address format should be: {institutionname}
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
Replied by jean-loup on topic display address custom field
Thank you very much...
Please Log in or Create an account to join the conversation.
Time to create page: 0.090 seconds