Post by sittaman » Tue Jul 18, 2017 4:43 am

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!

Newbie

Posts

Joined
Fri Sep 09, 2016 4:05 am

Post by Qphoria » Thu Jul 20, 2017 12:40 am

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.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 22 guests