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

#   create override for admin classes/field.php

##

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

Less More

- Posts: 17
- Thank you received: 1
-
-

11 years 4 months ago [\#207620](#207620) by [hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")  *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#207620 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")* was created by *[hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : no error message present

I want to add a css class to address labels in the checkout.
It seems that HTML output for these labels are created in administrator/components/com_hikashop/classes/field.php
Code:

function getFieldName($field,$requiredDisplay = false){ $app = JFactory::getApplication(); if($app-&gt;isAdmin()) return $this-&gt;trans($field-&gt;field_realname); $required = ''; if($requiredDisplay &amp;&amp; !empty($field-&gt;field_required)) $required = '&lt;span class="hikashop_field_required_label"&gt;*&lt;/span&gt;'; return '&lt;label for="'.$this-&gt;prefix.$field-&gt;field_namekey.$this-&gt;suffix.'"&gt;'.$this-&gt;trans($field-&gt;field_realname).$required.'&lt;/label&gt;'; }

should be changed into Code:

function getFieldName($field,$requiredDisplay = false){ $app = JFactory::getApplication(); if($app-&gt;isAdmin()) return $this-&gt;trans($field-&gt;field_realname); $required = ''; if($requiredDisplay &amp;&amp; !empty($field-&gt;field_required)) $required = '&lt;span class="hikashop_field_required_label"&gt;*&lt;/span&gt;'; return '&lt;label for="'.$this-&gt;prefix.$field-&gt;field_namekey.$this-&gt;suffix.'" class="col-sm-2 control-label"&gt;'.$this-&gt;trans($field-&gt;field_realname).$required.'&lt;/label&gt;'; }

Next change is in the class hikashopText on line 1522 and further. Code:

class hikashopText extends hikashopItem{ var $type = 'text'; var $class = 'inputbox'; function display($field, $value, $map, $inside, $options = '', $test = false, $allFields = null, $allValues = null){ $size = empty($field-&gt;field_options['size']) ? '' : 'size="'.intval($field-&gt;field_options['size']).'"'; $size .= empty($field-&gt;field_options['maxlength']) ? '' : ' maxlength="'.intval($field-&gt;field_options['maxlength']).'"'; $size .= empty($field-&gt;field_options['readonly']) ? '' : ' readonly="readonly"'; $size .= empty($field-&gt;field_options['placeholder']) ? '' : ' placeholder="'.JText::_($field-&gt;field_options['placeholder']).'"'; $js = ''; if($inside &amp;&amp; strlen($value) &lt; 1){ $value = addslashes($this-&gt;trans($field-&gt;field_realname)); $this-&gt;excludeValue[$field-&gt;field_namekey] = $value; $js = 'onfocus="if(this.value == \''.$value.'\') this.value = \'\';" onblur="if(this.value==\'\') this.value=\''.$value.'\';"'; } $buffInput = '&lt;input class="'.$this-&gt;class.'" id="'.$this-&gt;prefix.@$field-&gt;field_namekey.$this-&gt;suffix.'" '.$size.' '.$js.' '.$options.' type="'.$this-&gt;type.'" name="'.$map.'" value="'.$value.'"'; if(!empty($field-&gt;field_required) &amp;&amp; !empty($field-&gt;registration_page)) $buffInput.=' aria-required="true" required="required" /&gt;'; else $buffInput .= ' /&gt;'; return $buffInput; } function show(&amp;$field,$value){ if($field-&gt;field_table=='address') return $value; return $this-&gt;trans($value); } }

should be changed into Code:

class hikashopText extends hikashopItem{ var $type = 'text'; var $class = 'form-control'; function display($field, $value, $map, $inside, $options = '', $test = false, $allFields = null, $allValues = null){ $size = empty($field-&gt;field_options['size']) ? '' : 'size="'.intval($field-&gt;field_options['size']).'"'; $size .= empty($field-&gt;field_options['maxlength']) ? '' : ' maxlength="'.intval($field-&gt;field_options['maxlength']).'"'; $size .= empty($field-&gt;field_options['readonly']) ? '' : ' readonly="readonly"'; $size .= empty($field-&gt;field_options['placeholder']) ? '' : ' placeholder="'.JText::_($field-&gt;field_options['placeholder']).'"'; $js = ''; if($inside &amp;&amp; strlen($value) &lt; 1){ $value = addslashes($this-&gt;trans($field-&gt;field_realname)); $this-&gt;excludeValue[$field-&gt;field_namekey] = $value; $js = 'onfocus="if(this.value == \''.$value.'\') this.value = \'\';" onblur="if(this.value==\'\') this.value=\''.$value.'\';"'; } $buffInput = '&lt;input class="'.$this-&gt;class.'" id="'.$this-&gt;prefix.@$field-&gt;field_namekey.$this-&gt;suffix.'" '.$size.' '.$js.' '.$options.' type="'.$this-&gt;type.'" name="'.$map.'" value="'.$value.'"'; if(!empty($field-&gt;field_required) &amp;&amp; !empty($field-&gt;registration_page)) $buffInput.=' aria-required="true" required="required" /&gt;'; else $buffInput .= ' /&gt;'; return $buffInput; } function show(&amp;$field,$value){ if($field-&gt;field_table=='address') return $value; return $this-&gt;trans($value); } }

How can this be done without a core hack?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3ODAxOC1jcmVhdGUtb3ZlcnJpZGUtZm9yLWFkbWluLWNsYXNzZXMtZmllbGQtcGhwP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26397
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#207624](#207624) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#207624 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hi,

You can use the class/helper override system ; which is explained in that post.
[ www.hikashop.com/forum/product-category-...atermark.html#184987](http://www.hikashop.com/forum/product-category-display/873470-watermark.html#184987)

As long as you just override the main class of the file (hikashopFieldClass) it will work.

Regards,

---

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

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

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

Less More

- Posts: 17
- Thank you received: 1
-
-

11 years 1 month ago [\#216497](#216497) by [hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")  Replied by *[hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#216497 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

It seems that the post you referring to is trying to create an override on a helper file in administrator.
This is working for me when I would like to create an override on a helper file too.

But... I would like to create an override on a class file.
How can this be arranged. Not by following the instructions you gave me. I cannot see the result of my override

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3ODAxOC1jcmVhdGUtb3ZlcnJpZGUtZm9yLWFkbWluLWNsYXNzZXMtZmllbGQtcGhwP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86365
- Thank you received: 14298
-
-

11 years 1 month ago [\#216506](#216506) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#216506 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hi,

The same type of override will work for classes.
To override an HikaShop class , you can create an "image.override.php" in the folder :
YOUR_FRONT_END_TEMPLATE/html/com_hikashop/administrator/classes/

With the code
include_once $originalFile;
class hikashopFieldClassOverride extends hikashopFieldClass {
}
You can re-declare just the function you want thanks to PHP extends.

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

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

Less More

- Posts: 17
- Thank you received: 1
-
-

11 years 1 month ago [\#216626](#216626) by [hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")  Replied by *[hans2103](/forum/user/34768-hans2103 "View hans2103's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#216626 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Created /templates/[my-template]/html/com_hikashop/classes/field.override.php
Added the following code:
Code:

&lt;?php defined('_JEXEC') or die('Restricted access'); include_once(JPATH_ADMINISTRATOR . '/components/com_hikashop/classes/field.php'); class hikashopFieldClassOverride extends hikashopFieldClass { } class hikashopTextOverride extends hikashopText { var $type = 'text'; var $class = 'inputbox form-control'; function display($field, $value, $map, $inside, $options = '', $test = false, $allFields = null, $allValues = null) { $size = ''; if(!empty($field-&gt;field_options['size'])) $size .= ' size="'.intval($field-&gt;field_options['size']).'"'; if(!empty($field-&gt;field_options['maxlength'])) $size .= ' maxlength="'.intval($field-&gt;field_options['maxlength']).'"'; if(!empty($field-&gt;field_options['readonly'])) $size .= ' readonly="readonly"'; if(!empty($field-&gt;field_options['placeholder'])) $size .= ' placeholder="'.JText::_($field-&gt;field_options['placeholder']).'"'; $js = ''; if($inside &amp;&amp; strlen($value) &lt; 1) { $value = addslashes($this-&gt;trans($field-&gt;field_realname)); $this-&gt;excludeValue[$field-&gt;field_namekey] = $value; $js = ' onfocus="if(this.value == \''.$value.'\') this.value = \'\';" onblur="if(this.value==\'\') this.value=\''.$value.'\';"'; } if(!empty($field-&gt;field_required) &amp;&amp; !empty($field-&gt;registration_page)) $size .= ' aria-required="true" required="required"'; return '&lt;input class="'.$this-&gt;class.'" id="'.$this-&gt;prefix.@$field-&gt;field_namekey.$this-&gt;suffix.'"'.$size.$js.' '.$options.' type="'.$this-&gt;type.'" name="'.$map.'" value="'.$value.'" /&gt;'; } function show(&amp;$field, $value) { if(in_array($field-&gt;field_table,array('address','order','item'))) return $value; return $this-&gt;trans($value); } }

I have replaced
include_once $originalFile;
with
include_once(JPATH_ADMINISTRATOR . '/components/com_hikashop/classes/field.php');
Since that is working with my override in html/com_hikashop/helpers/cart.override.php

I have added
class hikashopTextOverride extends hikashopText
since the function I want to override is inside class hikashopText

but... it's not working.

(When I copy and paste your code and add the function inside class hikashopFieldClassOverride it's not working too)

Can you help me out?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3ODAxOC1jcmVhdGUtb3ZlcnJpZGUtZm9yLWFkbWluLWNsYXNzZXMtZmllbGQtcGhwP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26397
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 1 month ago [\#216634](#216634) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#216634 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hi,

Yes, it can't work this way.
The class override allow you to override the main class, so for "classes/field.php" you can override "hikashopFieldClass".
But you can't override "hikashopTextOverride" except if you modify "hikashopFieldClassOverride to use your override class instead of the original one.

Regards,

---

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

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

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

Less More

- Posts: 127
- Thank you received: 1
-
-

10 years 8 months ago [\#231924](#231924) by [mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")  Replied by *[mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#231924 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hello,

I am trying to override the field.php class and it is not working for me. This is the code that I have placed in field.php in template/html/com_hikashop/classes/:
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.6.1 * @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'); include_once(JPATH_ADMINISTRATOR . '/components/com_hikashop/classes/field.php'); class hikashopFieldClassOverride extends hikashopFieldClass { function display(&amp;$field, $value, $map, $inside = false, $options = '', $test = false, $allFields = null, $allValues = null, $requiredDisplay = true) { $field_type = $field-&gt;field_type; if(substr($field-&gt;field_type,0,4) == 'plg.') { $field_type = substr($field-&gt;field_type,4); JPluginHelper::importPlugin('hikashop', $field_type); } $classType = 'hikashop'.ucfirst($field_type); if(!class_exists($classType)) return 'Plugin '.$field_type.' missing or deactivated'; $class = new $classType($this); if(is_string($value)) $value = htmlspecialchars($value, ENT_COMPAT,'UTF-8'); $html = $class-&gt;display($field,$value,$map,$inside,$options,$test,$allFields,$allValues); if($requiredDisplay &amp;&amp; !empty($field-&gt;field_required)) $html .=' &lt;span class="hikashop_field_required"&gt;*&lt;/span&gt;'; return $html; } }

Any changes I make to the code fails to appear on the page. What do I need to do to get it working? Also, how can a I wrap each of the label + input pairs in a div to control layout. I do not want to use tables. Any help is greatly appreciated. Thank you.

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3ODAxOC1jcmVhdGUtb3ZlcnJpZGUtZm9yLWFkbWluLWNsYXNzZXMtZmllbGQtcGhwP3RtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86365
- Thank you received: 14298
-
-

10 years 8 months ago [\#231946](#231946) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#231946 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hi,

The file should be with the path:
templates/YOUR_TEMPLATE/html/com_hikashop/administrator/classes/field.override.php
As the path is not correct, the file is just not used by the system.

However, your question doesn't require the override of that class.
modifying the label+input display can be made with a simple view override.
But since you didn't provide information on how you configured your custom fields, it's hard to say what view file to edit exactly.
In fact, for custom fields of the table "user" or "address", the system will automatically display them on the registration page with either a table layout or a div layout based on whether the "use bootstrap design" setting is activated or not in the HikaShop configuration. For that, it will use either the custom_fields file or the custom_fields_boostrap file of the view "user" that you can edit via the menu Display&gt;Views.

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

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

Less More

- Posts: 127
- Thank you received: 1
-
-

10 years 8 months ago [\#232053](#232053) by [mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")  Replied by *[mikehermary](/forum/user/35673-mikehermary "View mikehermary's Profile")* on topic *[create override for admin classes/field.php](/forum/27-checkout/878018-create-override-for-admin-classes-field-php#232053 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : no error message present  I want to add a css class to address labels in the checkout. It seems that HTML output for these labels are created in administrator/components/com&#95;hikashop/classes/field.php  should be changed into  Next change is in the class hikashopText on line 1522 and further.  should be changed into  How can this be done without a core hack?")*

Hello,

Thanks for the clarification and the information. I believe I have it figured out with using template overrides instead of the class override. I will post again if I need any more assistance.

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3ODAxOC1jcmVhdGUtb3ZlcnJpZGUtZm9yLWFkbWluLWNsYXNzZXMtZmllbGQtcGhwP3RtcGw9bWFya2Rvd24=) 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.080 seconds

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