feat(ocmod): add TeleCart admin sidebar menu and local dev setup (#57)
- Add telecart.ocmod.xml: inject TeleCart menu item (with Settings child) after Marketing - Add scripts/apply_ocmod.sh to symlink ocmod file in Docker container - Add make ocmod target - In CI: set version in telecart.ocmod.xml from version_meta; use docs.telecart.pro link Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
30
module/oc_telegram_shop/install.xml
Normal file
30
module/oc_telegram_shop/install.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<modification>
|
||||
<name>TeleCart</name>
|
||||
<code>telecart</code>
|
||||
<version>1.0</version>
|
||||
<author>TeleCart</author>
|
||||
<link>https://docs.telecart.pro/</link>
|
||||
<file path="admin/controller/common/column_left.php">
|
||||
<operation>
|
||||
<search><![CDATA[// System]]></search>
|
||||
<add position="before"><![CDATA[ // BEGIN TeleCart modification
|
||||
$telecart = array();
|
||||
$telecart[] = array(
|
||||
'name' => 'Настройки',
|
||||
'href' => $this->url->link('extension/module/tgshop', 'user_token=' . $this->session->data['user_token'], true),
|
||||
'children' => array()
|
||||
);
|
||||
$data['menus'][] = array(
|
||||
'id' => 'menu-telecart',
|
||||
'icon' => 'fa-telegram',
|
||||
'name' => 'TeleCart',
|
||||
'href' => '',
|
||||
'children' => $telecart
|
||||
);
|
||||
// END TeleCart modification
|
||||
|
||||
]]></add>
|
||||
</operation>
|
||||
</file>
|
||||
</modification>
|
||||
Reference in New Issue
Block a user