Post by mtjhost » Fri Apr 28, 2017 3:00 pm

Hi,

I am trying to Extend the icons and links to the Dashboard. Like, Information, Settings, Manufecturer, Product, Category, Backup and Shipping. The links causing the error. Rest everything is done.
I have tested the extension in OC2.3.0.2 version of OC.
For creating Manufacturer link changed the code in dashboard file as below -

admin/controller/common/dashboard.php
--------------------------------------
$data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
);

$data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('common/dashboard', 'token=' . $this->session->data['token'], true)
);
---------------------------------------
Changes by this command as below

<file path="admin/controller/common/dashboard.php">
<operation>
<search><![CDATA[$data['token'] = $this->session->data['token'];]]></search>
<add position="after"><![CDATA[
$data['manufacturer_link'] = $this->url->link('catalog/manufacturer', 'token=' . $this->session->data['token'], true);
]]></add>
</operation>
</file>

New member

Posts

Joined
Wed Apr 30, 2014 12:37 am
Who is online

Users browsing this forum: No registered users and 22 guests