Post by Lumirion » Tue Aug 26, 2025 12:18 am

This morning I refreshed and navigated around the site a bit. Then I downloaded a new copy of the error log. It contains new entries but none relating to this mod.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by khnaz35 » Tue Aug 26, 2025 12:41 am

Perhaps its time to hire someone to take a look at it

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Lumirion » Tue Aug 26, 2025 4:07 am

Yah, I do think the logging issue will need to get approval to have someone look into it. I do appreciate all the help.
I am trying to work around the logging issue for now by passing a variable to twig. I sort my operations in the order in which they apply. For "catalog/controller/journal3/catalog.php" I added:

Code: Select all

    <operation>
      <search><![CDATA[$data['items'][] = array(]]></search>
      <add position="after"><![CDATA[								'path'    => $canonical_path,]]></add>
    </operation>
and then I added:

Code: Select all

  <file path="catalog/view/theme/journal3/template/journal3/module/catalog.twig">
    <operation>
      <search><![CDATA[{{ sub_item.name }}</span></a>]]></search>
      <add position="after"><![CDATA[                <div> {{ sub_item.path }} </div>]]></add>
    </operation>
  </file>
to display the path under the menu link.
The result is:

Code: Select all

<a href="http://test.puredieselpower.com/Powerstroke-Parts/Ford-Powerstroke-Engine-Parts"><span>Powerstroke Engine Parts</span></a>
<div>  </div>
So my variable is probably empty.

New member

Posts

Joined
Fri Apr 19, 2024 1:32 am

Post by khnaz35 » Tue Aug 26, 2025 10:35 am

Even if your variables are empty you still should hit the log, php error logs etc.

Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy. :-*

Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 20 guests