- Posts: 846
- Thank you received: 92
override php file under administrator
13 years 2 months ago - 13 years 2 months ago #112538
by lionel75
override php file under administrator was created by lionel75
Can we override php file locate under administrator\components\com_hikashop\helpers\*.php
How does the mapping work ?
How does the mapping work ?
Last edit: 13 years 2 months ago by lionel75.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #112562
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Replied by Jerome on topic override php file under administrator
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
Regards,
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
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
13 years 2 months ago #112736
by lionel75
Replied by lionel75 on topic override php file under administrator
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
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 or Create an account to join the conversation.
13 years 2 months ago #112969
by Eliot
Replied by Eliot on topic override php file under administrator
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.
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 or Create an account to join the conversation.
13 years 2 months ago - 13 years 2 months ago #113004
by lionel75
Replied by lionel75 on topic override php file under administrator
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
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 2 months ago by lionel75.
Please Log in or Create an account to join the conversation.
Time to create page: 0.203 seconds