|
13.06.2026 17:40
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
Fallback or Custom system?
Hello,
For one of my systems which uses Joomshopping, I have heavily customized some files such as com_shopping/pdf/Order.php (among others) and my question is simply: is there a way to activate an override or fallback option so that this file is not overwritten each time an update is published? In other words could I possibly use something like templates/xxx/com_jshopping/pdf/Order.php?
Since I've never tried it, I wonder if it's possible.
Thx and cheers from Paris
Philippe
Joomla: 6.1.1 JoomShopping: 5.6.2
|
| |
|
13.06.2026 21:47
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
Aw: Fallback or Custom system?
Yes.
Example.
create
com_shopping/pdf/Order2.php
create:
components\com_jshopping\config\user_config.php
<?php
$config->file_generete_pdf_order = '\\Joomla\\Component\\Jshopping\\Site\\Pdf\\Order2';
|
| |
|
15.06.2026 08:30
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
Aw: Fallback or Custom system?
Perfect!
Thanks much.
Philippe
|
| |
|
15.06.2026 09:59
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
Aw: Fallback or Custom system?
One more quick question though:
Does this apply to all com_jshopping files like orderemail or else?
If I understand well, the idea is to add to $config the name of the procedure/function, right?
Thks again
Philippe
|
| |
|
15.06.2026 14:36
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
Aw: Fallback or Custom system?
1. create copy
com_shopping/pdf/Order.php
to
com_shopping/pdf/Order2.php
2.create:
components\com_jshopping\config\user_config.php
Add code:
<?php
$config->file_generete_pdf_order = '\\Joomla\\Component\\Jshopping\\Site\\Pdf\\Order2';
Последнее изменение: 15.06.2026 14:37
|
| |
|
15.06.2026 20:16
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
Aw: Fallback or Custom system?
Yes, I got that but I think I did not make myself clear enough :
If I want to customize also for instance mod_jshopping/cart/tmpl/default.php, do I need to add
$config-> xxxxxxx = '\\Joomla\\Modules\\mod_jshoppingcart\\tmpl\\default';
and if yes what should xxxxxxx be since there is no callable procedure/function in this file...
Thx
|
| |
|
16.06.2026 10:24
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 28361
|
Aw: Fallback or Custom system?
Works only for Order.
For module - use default joomla override
example:
\templates\cassiopeia\html\mod_jshoping_cart
|
| |
|
16.06.2026 11:11
|
|
Philippe91
Name: Philippe
03.10.2020
Сообщения: 65
|
Aw: Fallback or Custom system?
OK thanks.
|
| |