Post by GeneralTornado » Fri Mar 15, 2019 8:07 am

Hello. I have an issue with the installation of basic ocmod modification for Journal 2 theme.
I trying to create a modification for Journal Quick Checkout, but it seems to be doesn't include my code to the page. Here is the content of my modification:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
    <name>Test modification</name>
    <version>1.0</version>
    <author>Oleg</author>
    <link>http://www.od.com</link>
    <file path="catalog/view/theme/journal2/template/journal2/checkout/checkout.twig">
        <operation>
            <search><![CDATA[{{ footer }}]]></search>
            <add position="before"><![CDATA[
                <script>alert('works')</script>
            ]]></add>
        </operation>
    </file>  
</modification> 
If I will add

Code: Select all

<script>alert('hello')</script>
code manually to the next path catalog/view/theme/journal2/template/journal2/checkout/checkout.twig all will work pretty well, but when I trying to achieve the same behavior using ocmod modification, it doesn't.
I have such a feeling, that the ocmod can't find this:

Code: Select all

{{ footer }}
.
Someone help me, please :)


Posts

Joined
Tue Dec 11, 2018 4:18 am

Post by xxvirusxx » Sat Mar 16, 2019 2:19 am

You have cleared theme cache, SASS cache from opencart?
And if not work...you can try to clear cache from Journal.

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed.


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: thekrotek and 5 guests