Post by imager » Tue Nov 06, 2018 11:31 pm

Late last week, I had a question on the best way to do modifications/changes to a OC3.0.2.0 install running Journal 3. The general answer was move away from VQMOD and start using Modifications in OCMOD. Following that information, I created a ocmod ZIP file (called modifyproduct.ocmod.zip) which contained a install.xml file and added the modification, and refreshed the caches - but I cannot seem to see any difference (did not see any result when the page executes).

My code is below:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
    <name>2018-11-06 Test</name>
    <version>1.0</version>
    <code>order_id_checkout</code>
    <author></author>
    <link></link>

		<file path="catalog/view/theme/journal3/template/product/product.twg">		
            <operation>
                <search><![CDATA['ProductSKUText') }}:</b>]]></search>
                <add position="after"><![CDATA[-->]]></add>
            </operation>
        </file>

</modification>
It appears to have installed okay, I just do not see the page being updated. All that I was trying to do was to add in a "-->" after ProductSKUText was printed. I was doing this in the catalog/view/theme/journal3/template/product/product.twg file.

So. Couple of questions.
  • Should I be making changes/updates to the product.twg file using the syntax listed?
  • Am I trying to change the correct file? (I know the code is there in that file, but is there a different file I should edit??)
  • Is there a tool to see a log of what is going on to assist in diagnosing what I am working on?
  • Am I barking up the wrong tree with what I am attempting here?
Thoughts??

New member

Posts

Joined
Fri Nov 09, 2012 7:05 pm

Post by cyclops12 » Wed Nov 07, 2018 12:37 am

Maybe if you change it from product.twg to product.twig might help
Unless that is how they are named in journal ??

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by imager » Wed Nov 07, 2018 1:36 am

:)
cyclops12 - Thank you for pointing that out - you nailed it. That was the exact problem.

Thanks.!!!

New member

Posts

Joined
Fri Nov 09, 2012 7:05 pm

Post by cyclops12 » Wed Nov 07, 2018 1:39 am

You're welcome ;D

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 135 guests