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

#   override php file under administrator

##

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

Less More

- Posts: 846
- Thank you received: 92
-
-

13 years 3 months ago -  13 years 3 months ago [\#112538](#112538) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  *[override php file under administrator](/forum/2-general-talk-about-hikashop/84720-override-php-file-under-administrator#112538 "Can we override php file locate under administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;&#42;.php How does the mapping work ?")* was created by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")*

Can we override php file locate under administrator\components\com_hikashop\helpers\*.php
How does the mapping work ?

Last edit: 13 years 3 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NzIwLW92ZXJyaWRlLXBocC1maWxlLXVuZGVyLWFkbWluaXN0cmF0b3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#112562](#112562) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[override php file under administrator](/forum/2-general-talk-about-hikashop/84720-override-php-file-under-administrator#112562 "Can we override php file locate under administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;&#42;.php How does the mapping work ?")*

Hi,

It depends on which helper file you want to override.
For most files it is possible but you have to be careful to not break a potential compatibility or you could have some problems with updates.
[ www.hikashop.com/fr/forum/2-general-talk...te-issue.html#109303](http://www.hikashop.com/fr/forum/2-general-talk-about-hikashop/83245-remove-light-box-and-adaptive-template-issue.html#109303)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NzIwLW92ZXJyaWRlLXBocC1maWxlLXVuZGVyLWFkbWluaXN0cmF0b3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 846
- Thank you received: 92
-
-

13 years 3 months ago [\#112736](#112736) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[override php file under administrator](/forum/2-general-talk-about-hikashop/84720-override-php-file-under-administrator#112736 "Can we override php file locate under administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;&#42;.php How does the mapping work ?")*

cart.php i think

if i want to instead to display a "Add to card" I want to display a checkbox
Do i need to
1-overide displayButton
2- copy/paste this function and rename it for example to checkboxdisplay and change the html code to have for the input instead type="button" a type="checkbox" ?

thank's

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NzIwLW92ZXJyaWRlLXBocC1maWxlLXVuZGVyLWFkbWluaXN0cmF0b3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#112969](#112969) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[override php file under administrator](/forum/2-general-talk-about-hikashop/84720-override-php-file-under-administrator#112969 "Can we override php file locate under administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;&#42;.php How does the mapping work ?")*

Hi there,

Changing the button type is not as easy as changing type="button" to type="checkbox".
You will need to add more code in order submit the form automatically with the right parameters.
So the best solution is to copy/paste the function and cahnge the code to fit your needs.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NzIwLW92ZXJyaWRlLXBocC1maWxlLXVuZGVyLWFkbWluaXN0cmF0b3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 846
- Thank you received: 92
-
-

13 years 3 months ago -  13 years 3 months ago [\#113004](#113004) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[override php file under administrator](/forum/2-general-talk-about-hikashop/84720-override-php-file-under-administrator#113004 "Can we override php file locate under administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;&#42;.php How does the mapping work ?")*

yes it is what i discover after read the code !!
The button is in relation with the cart module and variable value relative to quantity .. cart module is the only way to delete item , add cart button let us only increment decrement value from a positive number ... not negative max decrement equal to the number shown in the module cart ..

Thank's

Last edit: 13 years 3 months ago by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg0NzIwLW92ZXJyaWRlLXBocC1maWxlLXVuZGVyLWFkbWluaXN0cmF0b3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.094 seconds

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