Post by yop289 » Tue Jun 23, 2015 2:16 am

Hi

Ocmod is driving me crazy, I need to adapt one extension to ocmod by requirement of a customer but I wasn't able to do a very simple mod it always give me an error.

here is the code
opencart 2.0.3.1
installed the ocmod in system folder

Code: Select all

 <file path="admin/view/template/catalog/attribute_form.tpl">
  <operation>
      <search trim="true"><![CDATA[</form>]]></search>
      <add position="before">
        <![CDATA[EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE]]>
      </add>
    </operation>
  </file>
here is the log

Code: Select all

2015-06-22 20:14:19 - MOD: Modification Default
FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 58
FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 20
LINE: 37
LINE: 54
LINE: 65
FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 23
FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 21
LINE: 27
----------------------------------------------------------------
MOD: test
FILE: admin/view/template/catalog/attribute_form.tpl
CODE: </form>
LINE: 77
----------------------------------------------------------------
Can anybody give a clue to understand what is happening.

Expert in OpenCart, visit my other modules.
http://www.opencart.com/index.php?route ... ame=yop289
Custom coder, what you need you will have


Active Member

Posts

Joined
Sat Jun 25, 2011 1:49 am

Post by IP_CAM » Thu Jun 25, 2015 8:35 am


My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Qphoria » Fri Jun 26, 2015 1:10 am

::cough:: use vqmod :: cough::

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by yop289 » Fri Jun 26, 2015 2:13 am

Yes it is done in vqmod but some people want it in ocmod

Expert in OpenCart, visit my other modules.
http://www.opencart.com/index.php?route ... ame=yop289
Custom coder, what you need you will have


Active Member

Posts

Joined
Sat Jun 25, 2011 1:49 am

Post by Qphoria » Fri Jun 26, 2015 2:59 am

yop289 wrote:Yes it is done in vqmod but some people want it in ocmod
Then find better people :)

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by IP_CAM » Fri Jun 26, 2015 4:18 am

Qphoria wrote:Then find better people :)
is this really the ONLY thing, different to VqMod's?

Code: Select all

OCMOD!
<file path="catalog/controller/product/whatever.php">
So, it looks like one step back, to:

Code: Select all

VqMOD
<file path="catalog/controller/product/" name="whatever.php">
combined with the simpler way, to do it. like this:

Code: Select all

VqMOD
<file name="catalog/controller/product/whatever.php">
to make it look a little different. Is that really all, there is? ???

just kidding... ;D
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Baidu [Spider] and 3 guests