How to apply Custom address fields to the invoice?

  • Posts: 100
  • Thank you received: 1
9 years 7 months ago #196952

-- HikaShop version -- : latest version
-- Joomla version -- : latest version
-- PHP version -- : 5.4.39
-- Error-message(debug-mod must be tuned on) -- : not applicable...

I've created several custom fields for the billing / shipping address. My problem is, I don't know how to apply these fields to the invoice.

Can someone tell me which files I need to edit and what code I need to apply to it?

Many thanks

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

  • Posts: 100
  • Thank you received: 1
9 years 7 months ago #196968

I've edited the address_template files (both backend and frontend) but the custom field values are empty - and I've just noticed that they are also empty on the checkout when it displays my billing and shipping addresses.

So, I guess my question has changed to, how do I get my custom fields to display?

Here is a link to the site if anyone can help:
red-ferndevelopment.co.uk/TotalPipelineSystems/

Thanks

Last edit: 9 years 7 months ago by reders. Reason: added a link to the site

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 7 months ago #196978

Hi,

Could you provide a screenshot of the options of one of these custom fields and a screenshot of the modifications you made to the address_template view file ?

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

  • Posts: 100
  • Thank you received: 1
9 years 7 months ago #197043

Hi Nicolas,

I have attached a screenshot of the address_template.php view file (incidentally I also made the exact modifications to the address_template.php file in the admin folder).

Also please find attached a screenshot of the configuration options on one of the custom fields. By the way, this replicates the configuration of the other custom fields, and also the core fields.

All help greatly appreciated because the website is ready to launch once this issue is fixed.

Thanks

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #197093

Hi,

In the address_template views, the "t" is missing for the address_street2 and address_street3.
So the issues seems to come from that.

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

  • Posts: 100
  • Thank you received: 1
9 years 7 months ago #197325

Thanks for pointing that out (quite a silly mistake!).

However, the issue still persists.

Is there any clear indication as to what is going wrong here?

Thanks

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #197343

Hi,

Please be sure that you are overriding the view for the right front-end template.
To test if you are editing the right view, you can add some "raw text" (text without brackets) in order to see if the text is display afterwards in the invoice ; then you will be able to set the tags you want and the order you want.

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.

  • Posts: 100
  • Thank you received: 1
9 years 7 months ago #197463

Hi Jerome,

Yes, I am definitely editing the correct template and there is raw text that I have added to it.

So that's not the issue.

It's as if something is stripping out the fields.

Any other ideas or is this an issue with Hikashop?

Thanks

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 7 months ago #197471

Hi,

I don't see any other reason.
Either you're not editing the correct view file or you're not using the correct column name inside the curly brackets.
Note that there are two address_template view file. One for your frontend template and one for your backend template. The column names need to be corrected for both view files.
The tags will be removed automatically if there is no custom address field corresponding to the tag.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum