Post by jasonc310771 » Tue Nov 10, 2015 4:39 pm

Is it possible to alter all files (unknown file names) that contain a certain phrase.

i.e.

Code: Select all

	<file path="admin/*">
        <operation error="log">
            <search position="replace"><![CDATA[
search phrase
            ]]></search>
            <add><![CDATA[
replace text
            ]]></add>
        </operation>
	</file>

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by OSWorX » Tue Nov 10, 2015 4:53 pm

Sure - why not?
You should only set the path correct.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by jasonc310771 » Tue Nov 10, 2015 7:58 pm

Had time to rethink my original question.

How do I change every single file that contains
NOW()
with
custonDate

What I want to do is be able to state what date/time is used as the server (system) date/time for the database cannot be changed.

Active Member

Posts

Joined
Fri Mar 01, 2013 6:46 pm

Post by labeshops » Tue Nov 10, 2015 9:03 pm

It would be easier to use an extension that already sets the time zone like http://www.opencart.com/index.php?route ... n_id=21865

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA
Who is online

Users browsing this forum: No registered users and 4 guests