S
S
Serge Tkach2017-03-31 12:48:29
opencart
Serge Tkach, 2017-03-31 12:48:29

How to change all files in a folder in OCMOD, except for the ones listed?

There is a directory admin/controller/catalog
In it, all files are standard, only 1 is explicitly knocked out (ocfilter.php)
The "Apply" button modifier tries to replace links where to redirect after saving.
For ocfilter, such redirects are unacceptable
Changing all files can be done using a mask: In order not to affect a specific file, you must manually list each affected file:
<file path="admin/controller/catalog/*.php">

<file path="admin/controller/catalog/{attribute,attribute_group,category,...}.php">

And how to make changes in all files, except ocfilter, using the mask + pointer of forbidden files? And what is the syntax then??
For example, what came to mind
<file path="admin/controller/catalog/*{!ocfilter}.php">

This option, of course, does not work. Is there a working version of this expression?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2017-04-01
@amfetamine

There is documentation for these questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question