| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
Where to put a modified php file | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Where to put a modified php file
Hi there
I want to make a change to a php file that resides in the following directory in XC5: classes/XLite/Module/QSL/WordPress/View/Plugins/RecentPosts Although the file in question is part of the Blog System module, I could be asking about any similar php file anywhere in that directory structure. I am using the Custom Skin mod also, so that any changes I make to templates, etc., will not change the original files. My question is, where do I put my modified php file so that it will be executed instead of the original, but leaving the original intact? Does it go somewhere in my custom skin directory, and is there anything else I should be aware of (clearing cache, or changing the namespace, for example)? Many thanks Welly |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Where to put a modified php file
For php files you need to create custom module and put any changes in there by decorating the original file.
Start here - https://devs.x-cart.com/
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#3
|
|||||||
|
|||||||
Re: Where to put a modified php file
Hi Steve
Many thanks for your reply. I don't understand much about this stuff, so to be clear, if I want to change one php file in an existing module, and I want to leave the original file in place (intact) so that future module upgrades will work fine and I won't lose the changes I am making, I need a new module? I can't use the custom skin for this? Thanks again. Welly |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Where to put a modified php file
No. In order to make sure all custom changes to php files stay you need to put them in a separate module.
The custom skin is also a module. You can use it but still have to manually create these php files and the code in them. So it is way better to have your own custom module for these changes instead of counting on XC module which may or may not be there with next XC upgrade...
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: Where to put a modified php file
OK, thanks.
I'm not especially confident, but I might as well have a crack at it. Welly |
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|