[Skip to main content](#vessel-content)

#   Remove custom field in only one language

##

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#206635](#206635) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206635 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")* was created by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.41-1
-- Browser(s) name and version -- : all

Hi,

In the checkout is a custom field labelled "State".
Is it possible to remove it from the Dutch version of the site while
preserving it in the English version?

Another field reads (in Dutch): "Familienaam", which is rather oldfashioned.
Could it be replaced by "Achternaam"?
In English it is correct ("Last name".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 4 months ago [\#206643](#206643) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206643 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hello,
1.
To remove your order custom field (**not required**) from your Dutch version, the solution will be to directly edit the "custom_fields" file of the "Checkout" view of your front-end template via "Hikashop-&gt;Display-&gt;Views", and change these lines : Code:

foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) { if(isset($showfields[$fieldName]) &amp;&amp; $this-&gt;step != $showfields[$fieldName]) { echo '&lt;tr style="display:none;"&gt;&lt;td&gt;&lt;input type="hidden" name="data['.$type.']['.$fieldName.']" value="'.$this-&gt;escape($this-&gt;$type-&gt;$fieldName).'"/&gt;&lt;/td&gt;&lt;/tr&gt;'; continue; }

By : Code:

$lang = JFactory::getLanguage(); foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) { if(isset($showfields[$fieldName]) &amp;&amp; $this-&gt;step != $showfields[$fieldName]) { echo '&lt;tr style="display:none;"&gt;&lt;td&gt;&lt;input type="hidden" name="data['.$type.']['.$fieldName.']" value="'.$this-&gt;escape($this-&gt;$type-&gt;$fieldName).'"/&gt;&lt;/td&gt;&lt;/tr&gt;'; continue; } if($lang-&gt;get('tag') == 'nl-NL' &amp;&amp; $fieldName == 'Your_Customfield_Column') continue;

2.
Here is the [ documentation](http://www.hikashop.com/fr/support/documentation/integrated-documentation/42-hikashop-field-form.html#infos) of Hikashop custom fields :

> **Label** : The label of the field. You can translate it via joomfish. Note that core custom fields should be translated via the translation file of hikashop so that everyone can benefit of the translations. In the translation file, you will find them by searching for the english label which will be uppercase and spaces replaced with \_. For example, you will find "Middle name" with the key MIDDLE\_NAME in the translation file. You can edit the translation files of HikaShop in the configuration page of HikaShop, under the tab languages.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#206733](#206733) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206733 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,
Joomfish won't install on my Joomla 3.
Would Falang do?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#206739](#206739) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206739 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

I replaced the code but it has no effect. Perhaps I did something wrong?
I assumed that I had to replace 'Your_Customfield_Column' by 'address_state'.
Is that correct?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 4 months ago [\#206742](#206742) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206742 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#206880](#206880) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206880 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

But I still see a field labelled 'Staat' in the Dutch version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 4 months ago [\#206892](#206892) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206892 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hello,
Can you show me how did you edited the code that I gave you and how you configured your "Staat" custom field through some screenshots ?
Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#206983](#206983) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206983 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

- [ ![hika1.jpg](/forum/attachment/25314) ](/forum/attachment/25314 "hika1.jpg") [ ](/forum/attachment/25314?download=1 "hika1.jpg")
- [ ![hika2.jpg](/forum/attachment/25315) ](/forum/attachment/25315 "hika2.jpg") [ ](/forum/attachment/25315?download=1 "hika2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 4 months ago [\#206985](#206985) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#206985 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

Can you try to replace the line:
if($lang-&gt;get('tag') == 'nl-NL' &amp;&amp; $fieldName == 'address_state')
by:
if($lang-&gt;getTag() == 'nl-NL' &amp;&amp; $fieldName == 'address_state')
in your file ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207020](#207020) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207020 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,
I'm afraid that doesn't work too.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 months ago [\#207037](#207037) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207037 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

Is the custom field "address_state" the one created by default by HikaShop or you have created a new custom order field for that ?

If it is the default one, so the view to edit in your case is "address / form".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207128](#207128) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207128 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,
I would be very happy with some code to add/replace in the address/form file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 4 months ago [\#207130](#207130) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207130 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

Xavier is right in that the code Mohamed provided is only for custom fields of the table "order" not for custom address fields like the one you want to display/hide. However, he was wrong on the file to edit.
For custom address fields on the registration form, you want instead to edit the file "custom_fields" of the view "user".
There, you can add such code: Code:

$lang = JFactory::getLanguage(); if($lang-&gt;get('tag') == 'nl-NL' &amp;&amp; $fieldName == 'address_state') continue;

after the line: Code:

foreach($this-&gt;extraFields[$type] as $fieldName =&gt; $oneExtraField) {

The following user(s) said Thank You: [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207193](#207193) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207193 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

It works!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207304](#207304) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207304 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Uhrm....
When I click the button in the checkout to change the billing / shipping address
the 'State' field appears again in the Dutch site.
I assume some other PHP file(s) should be edited?.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 4 months ago [\#207309](#207309) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207309 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

Yes, for that page, the same change should be made in the file "form" of the view "address".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207378](#207378) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207378 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

If my editing is correct (see screenshot) I 'm afraid I edited the wrong file.
"Staat" is still there in Dutch.

- [ ![hika3.jpg](/forum/attachment/25373) ](/forum/attachment/25373 "hika3.jpg") [ ](/forum/attachment/25373?download=1 "hika3.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#207395](#207395) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207395 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,

It depends on which front-end template you're using (you are editing the view for the template "beez3") and which kind of address selector you're using in the checkout.
Depending if you're using the "popup", the "list" or the "dropdown" address selector, the used view in HikaShop might not be the same.

The "list" and "dropdown" selectors are using "address &#124; show" while the popup is using "address &#124; form".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")**
- [![elbertbos's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37560-elbertbos "View elbertbos's Profile") Topic Author
- [ Offline](/forum/user/37560-elbertbos)

Less More

- Posts: 43
- Thank you received: 0
-
-

11 years 4 months ago [\#207452](#207452) by [elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")  Replied by *[elbertbos](/forum/user/37560-elbertbos "View elbertbos's Profile")* on topic *[Remove custom field in only one language](/forum/27-checkout/877845-remove-custom-field-in-only-one-language#207452 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41-1 -- Browser(s) name and version -- : all  Hi,  In the checkout is a custom field labelled &quot;State&quot;. Is it possible to remove it from the Dutch version of the site while preserving it in the English version?  Another field reads (in Dutch): &quot;Familienaam&quot;, which is rather oldfashioned. Could it be replaced by &quot;Achternaam&quot;? In English it is correct (&quot;Last name&quot;.")*

Hi,
You're perfectly right. I wasn't paying attention so I edited the address / form file for the beez3 template.
I should have edited this file for the favouritedark template. Now I've done that the problem is solved.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3Nzg0NS1yZW1vdmUtY3VzdG9tLWZpZWxkLWluLW9ubHktb25lLWxhbmd1YWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.108 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
