a custom field response strangly

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
9 years 5 months ago #205408

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.x
-- Error-message(debug-mod must be tuned on) -- : custom fields respond strange..

Good morning,
We have some custom fields and in one of them people should be able and are able to fill in the word "contact or Contact" but when this is done we get the following response on the checkout. First the name of the custom field and then the following sentence: Gelieve ons te contacteren op %s instead of just the word contact..
can someone help us or tell us why????

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 5 months ago #205412

Hi,

Could you provide a screenshot of the settings of your custom field ?

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
9 years 5 months ago #205497

Hi,

Here you see the screenshots... hope you can help :(

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 5 months ago #205760

Hi,

I see what is the issue. That's because the field system tries to translate the word with the available translations.

Change the line:
if($field->field_table=='address') return $value;
to:
if(in_array($field->field_table,array('address','order','item'))) return $value;
in the file administrator/components/com_hikashop/classes/field.php and that should avoid the problem.

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

  • Posts: 410
  • Thank you received: 9
  • Hikaserial Subscription Hikashop Business
9 years 5 months ago #206076

I'm sorry for the late response... but you solution is working GREAT!
Thanks for your great help! Loving Hikashop and his good support :)

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

Time to create page: 0.063 seconds
Powered by Kunena Forum