Post by Ski_K2 » Wed Jun 29, 2011 2:05 am

I have downloaded and installed the latest version of vQmod and begun testing it on my newly installed OpenCart 1.5.0.5.

I have created one xml file with several operations that successfully make cosmetic changes.

The operations listed below, however, do not seem to be working when a new Customer registers. The registration date remains in the default format d/m/Y instead of m-d-Y.

Here is the operation format I have in my test xml file:

Code: Select all

<file name="catalog/language/english/english.php">
        <operation>
            <search position="replace"><![CDATA[
            $_['date_format_short']     = 'd/m/Y';
            ]]></search>
            <add><![CDATA[
$_['date_format_short']     = 'm-d-Y';
            ]]></add>
        </operation>
	 <operation>
            <search position="replace"><![CDATA[
            $_['text_home']             = 'Home';
            ]]></search>
            <add><![CDATA[
$_['text_home']             = 'Store Home';
            ]]></add>
        </operation>	
</file>

<file name="admin/language/english/english.php">
        <operation>
            <search position="replace"><![CDATA[
            $_['date_format_short']     = 'd/m/Y';
            ]]></search>
            <add><![CDATA[
$_['date_format_short']     = 'm-d-Y';
            ]]></add>
        </operation>
</file>

???

Newbie

Posts

Joined
Fri Jun 24, 2011 2:32 am

Post by Ski_K2 » Wed Jun 29, 2011 2:32 am

SOLVED

Operator ERROR

I had copied the search string from the catalog/language/english/english.php

Apparently the format of the string is slightly diffferent, an extra space maybe?

Anyway I re-built the xml file with a copy of the search string

$_['date_format_short'] = 'd/m/Y';

modified it to read

$_['date_format_short'] = 'm-d-Y';

Saved and uploaded the new xml file and it's now working.

:D

Newbie

Posts

Joined
Fri Jun 24, 2011 2:32 am
Who is online

Users browsing this forum: No registered users and 3 guests