Skip to main content

Address custom fields - display options

More
10 years 3 months ago #242754 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

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

More
10 years 3 months ago #242778 by nicolas
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.

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

More
8 years 5 days ago #298477 by Joomill
Hi Nicolas,

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.

More
8 years 5 days ago #298481 by Jerome
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,

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.151 seconds
Powered by Kunena Forum