Page 1 of 1

Create Override -> but where ...

Posted: 21 Dec 2023, 21:27
by CRM-Hero
Hello Folks,

I have modified coupon.php (works as intended)
(... administrator/components/com_phocacart/libraries/phocacart/coupon/coupon.php)
  • Where do I have to place the override file ?
Thanks in advance
Roland


Current System:
Joomla 4.4.1
PhocaCart 4.0.10

Re: Create Override -> but where ...

Posted: 22 Dec 2023, 01:27
by Nidzo
/templates/your_template/html/layouts/com_phocacart/

Re: Create Override -> but where ...

Posted: 22 Dec 2023, 10:29
by mino182
You can't override library...

Re: Create Override -> but where ...

Posted: 22 Dec 2023, 12:11
by Jan
Yes, only layout files can be overriden by template.

Jan

Re: Create Override -> but where ...

Posted: 22 Dec 2023, 12:15
by Nidzo
My bad! I saw layouts instead libraries in @CRM-Hero's URL 🙃

Re: Create Override -> Workaround ?

Posted: 22 Dec 2023, 13:18
by CRM-Hero
Hi mino,

thanks for the clarification. I was already afraid that this is the case; but better to have it confirmed.
  • Does this mean, that I have to manually change every time an update is done?
Any possibility for a "Workaround" ?

Merry Christmas and a Happy New Yea to all !


Roland
mino182 wrote: ↑22 Dec 2023, 10:29 You can't override library...

Re: Create Override -> Workaround ?

Posted: 22 Dec 2023, 17:33
by mino182
CRM-Hero wrote: ↑22 Dec 2023, 13:18 Does this mean, that I have to manually change every time an update is done?
Yes... It is 1 file, so where is the problem? :D

Luckily, Phoca Cart is not updated too often... (because it was programmed well from the beginning :P )

MCAAHNY to you too.