override php file under administrator

  • Posts: 846
  • Thank you received: 92
11 years 4 months ago #112538

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

Last edit: 11 years 4 months ago by lionel75.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 4 months ago #112562

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,


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.

  • Posts: 846
  • Thank you received: 92
11 years 4 months ago #112736

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 or Create an account to join the conversation.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #112969

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 or Create an account to join the conversation.

  • Posts: 846
  • Thank you received: 92
11 years 4 months ago #113004

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: 11 years 4 months ago by lionel75.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum