Customfield in Costomers profile

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #241578

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6

Hi there

how do i get a view to the custom field "Vat" in the costomers profile?
When registre, they have to use their VAT number.
But how do i see the VAT number in the Costomer profile


Best regards
Brian
Attachments:
Last edit: 8 years 5 months ago by Nowweb.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #241583

Hi,

You need to add the {address_vat} tag corresponding to your custom field in the address_template file for your backend template and that will do it.

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #241971

I am not sure where i find that.
I am using isis as administrator template
It is in the administrator i want to see it.



Can you guide me in the right way ?


Best regards
Brian
Attachments:
Last edit: 8 years 5 months ago by Nowweb.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 5 months ago #242012

Hi,

I already told you what to do in my previous message.
You can edit the address_template view file via the menu Display>Views. Search there for it and edit it for the isis template. You'll see, it's really easy to do.

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #242036

Hi Nicolas

I have the {address_vat} in frontend, but it do not show up in the backend.
You are absolutely right, it is very easy.


Best regards
Brian

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #242112

This is what i have in the address_template.php from frontend.
But it still dont show in the backend, where do i find the code, so it can be showed there to ?

<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>{address_company}
{address_title} {address_firstname} {address_lastname}
{address_street}
{address_post_code} {address_city} {address_state}
{address_country}
CVR: {address_vat}
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>


Best regards
Brian

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

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #242129

So, you edited the view for the frontend.

Now look again what Nicolas was saying... and note the bold words:

You can edit the address_template view file via the menu Display>Views. Search there for it and edit it for the isis template. You'll see, it's really easy to do.


And you'll see that Isis is the backend template. Yup, changes in the view for the backend template will be affecting the backend, indeed.


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" )
Last edit: 8 years 5 months ago by lousyfool.

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #242130

As you can see here, i have NO adress_template in the isis.
How and where do i find it?


Best regards
Brian
Attachments:

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

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #242132

Not if you're looking under template "jooswatch-v3-5", whatever that is.

"Isis" is spelled I-S-I-S. You can also select it in the "All templates" dropdown,

Just in case you're still unsure what it should look like:


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" )
Attachments:

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #242135

Okay i try again.
Show me where the adress_template is.

The image is from front&beckend selction and the selection of adress
I am not using time for quistions if i can see the the solution.


Best regards
Brian
Attachments:
Last edit: 8 years 5 months ago by Nowweb.

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

  • Posts: 2143
  • Thank you received: 747
8 years 5 months ago #242136

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" )
Attachments:

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

  • Posts: 145
  • Thank you received: 1
8 years 5 months ago #242139

Thanks alot.


Best regards
Brian

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

Time to create page: 0.111 seconds
Powered by Kunena Forum