Post by daksh0079 » Thu Nov 25, 2021 6:16 pm

Hi ,
Opencart Version : Version 3.0.3.8
PHP version:3.0.3.8
I'm new to opencart development and stuck with an issue:
I am trying to replace all "<img src" tags with "<img ci-src"
but on /index.php?route=product/product&product_id=40 its still showing "<img src"
code i have now is

Code: Select all

	<file path="catalog/view/theme/*/template/*/*.twig">
    <operation>
      <search><![CDATA[<img src=]]></search>
      <add position="replace"><![CDATA[<img ci-src=]]></add>
    </operation>
  </file>

  <file path="catalog/view/javascript/jquery/magnific/*.js">
    <operation>
      <search><![CDATA[img src=]]></search>
      <add position="replace"><![CDATA[img ci-src=]]></add>
    </operation>
  </file>
  <file path="catalog/view/theme/*/template/*/*/*.twig">
    <operation>
      <search><![CDATA[<img src=]]></search>
      <add position="replace" ><![CDATA[<img ci-src=]]></add>
    </operation>
  </file>
  <file path="catalog/view/theme/*/template/*/*/*/*.twig">
    <operation>
      <search><![CDATA[<img src=]]></search>
      <add position="replace" ><![CDATA[<img ci-src=]]></add>
    </operation>
  </file>
  <file path="catalog/view/theme/*/template/product/product.twig">
<operation>
<search><![CDATA[<img src=]]></search>
<add position="replace"><![CDATA[<img ci-src=]]></add>
</operation>
</file>

<file path="catalog/view/theme/*/template/product/category.twig">
<operation>
<search><![CDATA[<img src=]]></search>
<add position="replace"><![CDATA[<img ci-src=]]></add>
</operation>
</file>
   <file 
yes i know that ci-src is not a HTML attr but still i want to change it ,in every page it's getting applied except
https://cdn7.tetemo.com/index.php?route ... duct_id=43
Can some one help me please?
Last edited by daksh0079 on Fri Nov 26, 2021 5:06 pm, edited 1 time in total.

Newbie

Posts

Joined
Wed Nov 17, 2021 4:22 pm

Post by by mona » Thu Nov 25, 2021 7:44 pm

Please be so kind as to read the forum rules : viewtopic.php?f=176&t=200480
Notably always state your OC version, themes and any extensions which may effect your issue, as well as anything else you think might be relevant.

You probably already have a modification / vqmod on the product view and/or via your theme editor.
The theme editor overrules any ocmod modification, i.e. the ocmod modifications on that twig file are never executed.
Make the change manual via the theme editor as well.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos


Active Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by Gergely » Thu Nov 25, 2021 7:50 pm

:o ???

viewtopic.php?t=226364
viewtopic.php?t=226269

But as mona said:
by mona wrote:
Thu Nov 25, 2021 7:44 pm
You probably already have a modification / vqmod on the product view and/or via your theme editor.
The theme editor overrules any ocmod modification, i.e. the ocmod modifications on that twig file are never executed.
Make the change manual via the theme editor as well.

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm
Who is online

Users browsing this forum: No registered users and 6 guests