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

#   Override inputbox code in hickashopText::display()

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 5 months ago [\#154648](#154648) by [vikti](/forum/user/32488-vikti "View vikti's Profile")  *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#154648 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")* was created by *[vikti](/forum/user/32488-vikti "View vikti's Profile")*

-- HikaShop version -- : 2.3.0

Hi,

I want to write my one HTML code for the inputBox.

how I could override the code of the hickashopText::display() function without writing in the core ?

I first though I could do like the doc says for the hikashop_quantity_render function, but there is no override on this.

Regards,

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

12 years 5 months ago [\#154660](#154660) 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 *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#154660 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")*

Hello,
Can yo give me more information about what you really want to do through some screenshots ? It will help me to understand you issue.
Thanks.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 5 months ago [\#154787](#154787) by [vikti](/forum/user/32488-vikti "View vikti's Profile")  Replied by *[vikti](/forum/user/32488-vikti "View vikti's Profile")* on topic *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#154787 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")*

I have not any screen for this, but I just want to modify the input box html from that :
Code:

&lt;input class="inputbox" id="address_post_code" onchange="hikashopToggleFields(this.value,'address_post_code','address',0);" type="text" name="data[address][address_post_code]" value=""&gt;

to that :
Code:

&lt;input class="b-form__input--small" id="address_post_code" onchange="hikashopToggleFields(this.value,'address_post_code','address',0);" type="text" name="data[address][address_post_code]" value="" placeholder="Code postal *"&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2NzkyMy1vdmVycmlkZS1pbnB1dGJveC1jb2RlLWluLWhpY2thc2hvcHRleHQtZGlzcGxheT90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 5 months ago [\#154802](#154802) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#154802 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")*

Hi,

A simple solution is to edit the file "custom_fields"/"custom_fields_bootstrap" files of the view "user" via the menu Display&gt;Views and add a str_replace to the HTML returned by the display function call there.

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

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

Less More

- Posts: 3
- Thank you received: 0
-
-

12 years 5 months ago [\#155715](#155715) by [vikti](/forum/user/32488-vikti "View vikti's Profile")  Replied by *[vikti](/forum/user/32488-vikti "View vikti's Profile")* on topic *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#155715 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")*

Sorry for my late return.

Simple solution indeed. I will apply that.

But I am not totally fond of this kind of tweek. Would not be more elegant to put the html in a template folder and inject some vars in it ? I already seen that in some hickashop part but it is not generalized. I think it would be a great feature which could save hours of searching ![:)](/media/kunena/emoticons/8.png ":)")

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

12 years 5 months ago [\#155723](#155723) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Override inputbox code in hickashopText::display()](/forum/31-development/867923-override-inputbox-code-in-hickashoptext-display#155723 "-- HikaShop version -- : 2.3.0  Hi,  I want to write my one HTML code for the inputBox.  how I could override the code of the hickashopText::display() function without writing in the core ?  I first though I could do like the doc says for the hikashop&#95;quantity&#95;render function, but there is no override on this.  Regards,")*

Hi,

Using the method given by Nicolas by using our view override thanks to the menu Display &gt; Views is elegant ![;)](/media/kunena/emoticons/11.png ";)")
It create a view override in the template automatically.

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

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

[](#top)
