Address custom fields - display options

  • Posts: 200
  • Thank you received: 9
  • Hikashop Multisite
7 years 9 months ago #242754

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

  • Posts: 81361
  • Thank you received: 13037
  • MODERATOR
7 years 9 months ago #242778

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.

  • Posts: 200
  • Thank you received: 9
  • Hikashop Multisite
5 years 5 months ago #298477

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.

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
5 years 5 months ago #298481

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.059 seconds
Powered by Kunena Forum