Make ocmod file test .xml file and empthy upload folder then make zip file test.ocmod.zip
Then upload the file with the extension uploader in admin.
Go to modifications and refresh , but my module is not showing in the modifications list.
Does anyone have an idea why mine isn't in the modifications list?
Attachments
Use OC -3.0.3.8 and 4.0.1.1 & default theme
There is no link field
Use the one I created on a previous post and you already tested works without missing out the link field
viewtopic.php?t=233125#p867203
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
It is now in the modifications list .
Now i look in the source before the <body>
but nothing change there is no TEST before the <body>.
Code: Select all
<file path="catalog/view/theme/*/template/common/header.twig">
<operation>
<search><![CDATA[<body>]]></search>
<add position="before"><![CDATA[TEST]]></add>
</operation>
</file>
Use OC -3.0.3.8 and 4.0.1.1 & default theme
and I have tested it and it shows in the front end as TEST at the top of the page.
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
Did you check the modification log?
Did you check the modified file?
Did you refresh browser / server / any other cache you may have?
Have you edited the body tag already in another ocmod?
Did you edit the header.twig previously using the built in editor?
As you can see the TEST is written at the top left corner of every page using the ocmod attached.
Attachments
Screen Shot 2024-02-20 at 15.46.42.png (236.74 KiB) Viewed 1911 times
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
Did you check the modification log? ok
Did you check the modified file? ok
Did you refresh browser / server / any other cache you may have? ok
Have you edited the body tag already in another ocmod? ok
Did you edit the header.twig previously using the built in editor? it is orginal
But not working i see no test text at the front
Log:
FILE: catalog/view/theme/default/template/common/header.twig
CODE: <body>
LINE: 40
I made a new one for the footer.twig
Code: Select all
<file path="catalog/view/theme/*/template/common/footer.twig">
<operation>
<search><![CDATA[<footer>]]></search>
<add position="before"><![CDATA[TEST]]></add>
</operation>
</file>
Use OC -3.0.3.8 and 4.0.1.1 & default theme
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
First Upload a extension and it stored in the database > tabel modification.
The in admin modification refresh button ,a file will be added in :
storage/modification/catalog/view/theme/default/template/common/
So you mean the file in storage/modification/catalog/view/theme/default/template/common/ ?
about the question in you last post.
In the common there is a footer.twig with code
Code: Select all
TEST
<footer>
<div class="container">
--------------------------------
In the common there is also a header.twig with code and the text TEST is above the </header>
Code: Select all
</div>
</div>
TEST
</header>
{{ menu }}
Code: Select all
In the source at the front there is code:
</div>
</div>
</div>
</div>
</header>
<div class="container">
Use OC -3.0.3.8 and 4.0.1.1 & default theme
Without a link to your site it is shooting in the dark all the time
Code: Select all
<file path="catalog/view/theme/*/template/common/header.twig">
<operation>
<search><![CDATA[</header>]]></search>
<add position="after"><![CDATA[<p>TEST</p>]]></add>
</operation>
</file>
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
(https://mysite.com is only for on forum)
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Testheader</name>
<code>Testheader</code>
<version>1.0.0.0</version>
<author>Frens</author>
<link>https://mysite.com</link>
<file path="catalog/view/theme/*/template/common/header.twig">
<operation>
<search><![CDATA[</head>]]></search>
<add position="before"><![CDATA[TEST]]></add>
</operation>
</file>
</modification>
modified 15.57u
Ok there is also a body tag
Use OC -3.0.3.8 and 4.0.1.1 & default theme
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
https://www.w3schools.com/tags/tag_head ... nformation.
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.
https://www.youtube.com/watch?v=zXIxDoCRc84
Make it with </header>
The twig file in
storage/modification/catalog/view/theme/default/template/common/header.twig
contains:
Code: Select all
<div class="col-sm-3">{{ cart }}</div>
</div>
</div>
TEST
</header>
But in the front no TEST
Code: Select all
</div>
</div>
</header>
<div class="container">
Use OC -3.0.3.8 and 4.0.1.1 & default theme
Users browsing this forum: No registered users and 14 guests