Address custom fields - display options
10 years 3 months ago #242754
by Joomill
Address custom fields - display options was created by Joomill
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6
Hi,
Since the last update the custom fields have new display options, only the address custom fields don't.
I would like to disable (for example the telephone field of the shippingaddress) on the invoice and shipping invoice.
Will this options be added in a next version?
Kind regards,
Jeroen
Joomill
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6
Hi,
Since the last update the custom fields have new display options, only the address custom fields don't.
I would like to disable (for example the telephone field of the shippingaddress) on the invoice and shipping invoice.
Will this options be added in a next version?
Kind regards,
Jeroen
Joomill
Please Log in or Create an account to join the conversation.
10 years 3 months ago #242778
by nicolas
Replied by nicolas on topic Address custom fields - display options
Hi,
The address fields are displayed thanks to a view file called "address_template". You can edit it for the frontend template and the backend template via the menu Display>Views and add/remove the tags you want there to have the layout you need for your addresses.
The address fields are displayed thanks to a view file called "address_template". You can edit it for the frontend template and the backend template via the menu Display>Views and add/remove the tags you want there to have the layout you need for your addresses.
Please Log in or Create an account to join the conversation.
8 years 5 days ago #298477
by Joomill
Replied by Joomill on topic Address custom fields - display options
Hi Nicolas,
Can i have a check if this field isn't empty in the address_template? And how should it look like?
Thanks
Can i have a check if this field isn't empty in the address_template? And how should it look like?
Thanks
Please Log in or Create an account to join the conversation.
8 years 5 days ago #298481
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Address custom fields - display options
Hello,
HikaShop use the address template system to display the formatted adresses.
That address template is a view so you can override it and also use some PHP into.
Depending the context, when loaded, the "address" is pass as a parameter of the view (the "displayAddress" function does. the "maxiFormat" function doesn't).
HikaShop mostly use the "displayAddress" function, the other one is used when we have to process a bunch of addresses (like a listing).
So you can add some PHP in your override (or via the HikaShop configuration setting which will put your content is both front and back templates) and get the address object which is available in the params of the view.
Regards,
HikaShop use the address template system to display the formatted adresses.
That address template is a view so you can override it and also use some PHP into.
Depending the context, when loaded, the "address" is pass as a parameter of the view (the "displayAddress" function does. the "maxiFormat" function doesn't).
HikaShop mostly use the "displayAddress" function, the other one is used when we have to process a bunch of addresses (like a listing).
So you can add some PHP in your override (or via the HikaShop configuration setting which will put your content is both front and back templates) and get the address object which is available in the params of the view.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.184 seconds