Page 1 of 1

Opencart 3.0.1.3 - Edit TWIG files with ocmod

Posted: Tue Jul 18, 2017 4:43 am
by sittaman
Hello everyone.

I'm porting my company's store to the newest Opencart version, and some adjustments have to be done. However, I'm stuck on modifying the new twig template files with ocmod. Look, this is what the modifications log show me:

FILE: admin/view/template/customer/customer_form.twig
CODE: <label class="col-sm-2 control-label" for="input-firstname">{{ entry_firstname }}</label>
NOT FOUND - OPERATIONS ABORTED!

How should this be done in the new version? I could only find some old entries on the github issues page regarding this, but nothing really helpful...

Thanks in advance!

Re: Opencart 3.0.1.3 - Edit TWIG files with ocmod

Posted: Thu Jul 20, 2017 12:40 am
by Qphoria
Should work the same.. I just tried it and it worked fine
My ocmod log shows:

Code: Select all

---------------------------------------
MOD: twig test

FILE: admin/view/template/customer/customer_form.twig
CODE: <label class="col-sm-2 control-label" for="input-firstname">{{ entry_firstname }}</label>
LINE: 71
--------------------------------------
and I see the effects happening.

ocmod just does simple text matching so no matter if tpl or twig, its all text and should match the same way.