labels in address information

  • Posts: 3
  • Thank you received: 0
11 years 7 months ago #103445

Hello,

I am discovering numerous functions of this amazing online store. I cant believe tha I never used it before! :)

I would like to as if it is possible to display field names in area where is displayed address.

I am trying to adapt Hikashop to online travel store and I would like to make some modifications in the cart area. As I can see the telephone filed has its label visible but I didnt found any difference in setting of telephone field and for example name field..

How I could make it? It is possible?

Attachments:

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 years 7 months ago #103448

Hi,

You have to edit the view "address_template"
www.hikashop.com/en/support/documentatio...view-form.html#infos

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.
The following user(s) said Thank You: asturia

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

  • Posts: 3
  • Thank you received: 0
11 years 7 months ago #103464

Hello,

thank you very much! I didnt even know before that overwrites are so great solved in Hikashop! I feel like having a box of suprises :) using this great component.

I made modifications in address/address_template.php as following

<?php echo JText::sprintf('FIRSTNAME','{address_firstname}');?>
<?php echo JText::sprintf('TELEPHONE_IN_ADDRESS','{address_telephone}');?>

<?php echo JText::sprintf('LASTNAME','{address_lastname}');?>
<?php echo JText::sprintf('POST_CODE','{address_post_code}');?>

<?php echo JText::sprintf('MIDDLE_NAME','{address_middle_name}');?>
<?php echo JText::sprintf('CITY','{address_city}');?>

Didnt work yet on the front end but I suppose that it is some small mistake and tomorrow will figure it out.

Thank you so much for your help!

regrads :)

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 years 7 months ago #103469

Hi,

Why using sprintf ?
The translations keys you are using are not compatible with sprintf...

Why do not just display them in a simple way ?

<?php echo JText::_('FIRSTNAME'); ?> {address_firstname}
<?php echo JText::_('TELEPHONE_IN_ADDRESS'); ?> {address_telephone}

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: 3
  • Thank you received: 0
11 years 7 months ago #103501

Hello,

you are right! Now it is working perfectly!

tkank you :silly:

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

Time to create page: 0.059 seconds
Powered by Kunena Forum