- Posts: 424
- Thank you received: 11
a custom field response strangly
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
11 years 3 months ago #205408
by BluepointWebdesign
a custom field response strangly was created by BluepointWebdesign
-- 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????
-- 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.
11 years 3 months ago #205412
by nicolas
Replied by nicolas on topic a custom field response strangly
Hi,
Could you provide a screenshot of the settings of your custom field ?
Could you provide a screenshot of the settings of your custom field ?
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
11 years 3 months ago #205497
by BluepointWebdesign
Replied by BluepointWebdesign on topic a custom field response strangly
Hi,
Here you see the screenshots... hope you can help
Here you see the screenshots... hope you can help
Please Log in or Create an account to join the conversation.
11 years 3 months ago #205760
by nicolas
Replied by nicolas on topic a custom field response strangly
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.
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.
- BluepointWebdesign
-
Topic Author
- Offline
Less
More
- Posts: 424
- Thank you received: 11
11 years 3 months ago #206076
by BluepointWebdesign
Replied by BluepointWebdesign on topic a custom field response strangly
I'm sorry for the late response... but you solution is working GREAT!
Thanks for your great help! Loving Hikashop and his good support
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.335 seconds