Create Override -> but where ...

Phoca Cart - complex e-commerce extension
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Create Override -> but where ...

Post 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
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

Re: Create Override -> but where ...

Post by Nidzo »

/templates/your_template/html/layouts/com_phocacart/
mino182
Phoca Professional
Phoca Professional
Posts: 161
Joined: 12 Feb 2015, 13:30

Re: Create Override -> but where ...

Post by mino182 »

You can't override library...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Create Override -> but where ...

Post by Jan »

Yes, only layout files can be overriden by template.

Jan
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 268
Joined: 07 Nov 2018, 14:55

Re: Create Override -> but where ...

Post by Nidzo »

My bad! I saw layouts instead libraries in @CRM-Hero's URL 🙃
User avatar
CRM-Hero
Phoca Member
Phoca Member
Posts: 31
Joined: 24 Sep 2023, 12:11

Re: Create Override -> Workaround ?

Post 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...
mino182
Phoca Professional
Phoca Professional
Posts: 161
Joined: 12 Feb 2015, 13:30

Re: Create Override -> Workaround ?

Post 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.
Post Reply