Hi, I've got a little extension to save me some time and scrape some Aliexpress product name, description and image for me on the product modification page but I can't add it to my store.
Upload via admin installer page: showing up when uploaded ->go to modification page -> not showing there
I've read somewhere that the problem comes from the fact that I've modified some twig files directly from the admin panel so these twig files are not even writable?
What can I do? Exploring Opencart for 2 weeks so I have a lot of things to learn
extensions name : ......ocmod.zip
extensions folder : ->install.xml
->upload
Install.xml ;
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Get product from Aliexpress</name>
<code>get_product_from_aliexpress_ocmod</code>
<version>2.x</version>
<author>byolaris</author>
<link>http://mysite.com</link>
<file path="admin/controller/catalog/product.php">
<code>modify_powerby_text</code>
<operation>
<search><![CDATA[public function add() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('../admin/view/javascript/getSingleProduct/aliexpress.js');
]]>
</add>
</operation>
<operation>
<search><![CDATA[public function edit() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('../admin/view/javascript/getSingleProduct/aliexpress.js');
]]>
</add>
</operation>
</file>
<file path="admin/controller/catalog/mproduct.php">
<operation>
<search><![CDATA[public function add() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('../admin/view/javascript/getSingleProduct/aliexpress.js');
]]>
</add>
</operation>
<operation>
<search><![CDATA[public function edit() {]]></search>
<add position="after"><![CDATA[
$this->document->addScript('../admin/view/javascript/getSingleProduct/aliexpress.js');
]]>
</add>
</operation>
</file>
</modification>
Or do I need to convert this XML with other attributes so I can add the code to the desired twig files?
Need help
Thanks in advance