Version Notes
Fully working release!
Download this release
Release Info
Developer | Aliaksandr Lukyanau |
Extension | Sashas_Productlink |
Version | 0.1.1 |
Comparing to | |
See all releases |
Version 0.1.1
- app/code/local/Sashas/Productlink/Block/Adminhtml/Catalog/Category/Tab/Product.php +26 -0
- app/code/local/Sashas/Productlink/Block/Renderer/Category/Productlink.php +20 -0
- app/code/local/Sashas/Productlink/Helper/Data.php +13 -0
- app/code/local/Sashas/Productlink/etc/config.xml +56 -0
- app/etc/modules/Sashas_Productlink.xml +9 -0
- package.xml +20 -0
app/code/local/Sashas/Productlink/Block/Adminhtml/Catalog/Category/Tab/Product.php
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Sashas
|
4 |
+
* @category Sashas
|
5 |
+
* @package Sashas_Productlink
|
6 |
+
* @copyright Copyright (c) 2013 Sashas IT Support Inc. (http://www.sashas.org)
|
7 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3 (GPL-3.0)
|
8 |
+
|
9 |
+
*/
|
10 |
+
|
11 |
+
class Sashas_Productlink_Block_Adminhtml_Catalog_Category_Tab_Product extends Mage_Adminhtml_Block_Catalog_Category_Tab_Product {
|
12 |
+
|
13 |
+
protected function _prepareColumns()
|
14 |
+
{
|
15 |
+
parent::_prepareColumns();
|
16 |
+
$this->addColumn('edit', array(
|
17 |
+
'header' => Mage::helper('catalog')->__('Action'),
|
18 |
+
'width' => '80',
|
19 |
+
'filter' =>false,
|
20 |
+
'sortable' => false,
|
21 |
+
'index' =>'entity_id',
|
22 |
+
'renderer' => 'productlink/renderer_category_productlink'
|
23 |
+
));
|
24 |
+
|
25 |
+
}
|
26 |
+
}
|
app/code/local/Sashas/Productlink/Block/Renderer/Category/Productlink.php
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Sashas
|
4 |
+
* @category Sashas
|
5 |
+
* @package Sashas_Productlink
|
6 |
+
* @copyright Copyright (c) 2013 Sashas IT Support Inc. (http://www.sashas.org)
|
7 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3 (GPL-3.0)
|
8 |
+
|
9 |
+
*/
|
10 |
+
|
11 |
+
class Sashas_Productlink_Block_Renderer_Category_Productlink extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
|
12 |
+
|
13 |
+
public function render(Varien_Object $row)
|
14 |
+
{
|
15 |
+
$value = $row->getData($this->getColumn()->getIndex());
|
16 |
+
$url=Mage::getUrl('*/catalog_product/edit', array('id' =>$value, '_secure'=>true, '_current' => true, '_store'=>Mage::app()->getRequest()->getParam('store')));
|
17 |
+
$value='<a href="'.$url.'" target="_blank" >Edit</a>';
|
18 |
+
return $value;
|
19 |
+
}
|
20 |
+
}
|
app/code/local/Sashas/Productlink/Helper/Data.php
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* @author Sashas
|
4 |
+
* @category Sashas
|
5 |
+
* @package Sashas_Productlink
|
6 |
+
* @copyright Copyright (c) 2013 Sashas IT Support Inc. (http://www.sashas.org)
|
7 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3 (GPL-3.0)
|
8 |
+
*/
|
9 |
+
|
10 |
+
class Sashas_Productlink_Helper_Data extends Mage_Core_Helper_Abstract
|
11 |
+
{
|
12 |
+
|
13 |
+
}
|
app/code/local/Sashas/Productlink/etc/config.xml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* @author Sashas
|
5 |
+
* @category Sashas
|
6 |
+
* @package Sashas_Productlink
|
7 |
+
* @copyright Copyright (c) 2013 Sashas IT Support Inc. (http://www.sashas.org)
|
8 |
+
* @license http://opensource.org/licenses/GPL-3.0 GNU General Public License, version 3 (GPL-3.0)
|
9 |
+
*/
|
10 |
+
-->
|
11 |
+
<config>
|
12 |
+
<modules>
|
13 |
+
<Sashas_Productlink>
|
14 |
+
<version>0.1.1</version>
|
15 |
+
</Sashas_Productlink>
|
16 |
+
</modules>
|
17 |
+
<global>
|
18 |
+
<blocks>
|
19 |
+
<productlink>
|
20 |
+
<class>Sashas_Productlink_Block</class>
|
21 |
+
</productlink>
|
22 |
+
<adminhtml>
|
23 |
+
<rewrite>
|
24 |
+
<catalog_category_tab_product>Sashas_Productlink_Block_Adminhtml_Catalog_Category_Tab_Product</catalog_category_tab_product>
|
25 |
+
</rewrite>
|
26 |
+
</adminhtml>
|
27 |
+
</blocks>
|
28 |
+
<helpers>
|
29 |
+
<productlink>
|
30 |
+
<class>Sashas_Productlink_Helper</class>
|
31 |
+
</productlink>
|
32 |
+
</helpers>
|
33 |
+
<resources>
|
34 |
+
<productlink_setup>
|
35 |
+
<setup>
|
36 |
+
<module>Sashas_Productlink</module>
|
37 |
+
</setup>
|
38 |
+
<connection>
|
39 |
+
<use>core_setup</use>
|
40 |
+
</connection>
|
41 |
+
</productlink_setup>
|
42 |
+
<productlink_write>
|
43 |
+
<connection>
|
44 |
+
<use>core_write</use>
|
45 |
+
</connection>
|
46 |
+
</productlink_write>
|
47 |
+
<productlink_read>
|
48 |
+
<connection>
|
49 |
+
<use>core_read</use>
|
50 |
+
</connection>
|
51 |
+
</productlink_read>
|
52 |
+
</resources>
|
53 |
+
</global>
|
54 |
+
</config>
|
55 |
+
|
56 |
+
|
app/etc/modules/Sashas_Productlink.xml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Sashas_Productlink>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>local</codePool>
|
7 |
+
</Sashas_Productlink>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Sashas_Productlink</name>
|
4 |
+
<version>0.1.1</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/GPL-3.0">GPL-3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Category Product Link - extension that adding Edit product link on Catalog->Category admin page.</summary>
|
10 |
+
<description>Features:
|
11 |
+

|
12 |
+
-Now you can click on the product and view it in new window without living category page!</description>
|
13 |
+
<notes>Fully working release!</notes>
|
14 |
+
<authors><author><name>Aliaksandr Lukyanau</name><user>sashas7777</user><email>cybergomel@gmail.com</email></author></authors>
|
15 |
+
<date>2013-10-09</date>
|
16 |
+
<time>00:22:28</time>
|
17 |
+
<contents><target name="magelocal"><dir name="Sashas"><dir name="Productlink"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Tab"><file name="Product.php" hash="8fa0baeec19f2990b4165a10940db406"/></dir></dir></dir></dir><dir name="Renderer"><dir name="Category"><file name="Productlink.php" hash="0ef40dc4eab1b339066f225dc68cddac"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8e310a076e8d126bf025d91dc35ae489"/></dir><dir name="etc"><file name="config.xml" hash="c3d3b4018b6b4c30a001ee19cb4dfbcc"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sashas_Productlink.xml" hash="e35e21ca429b7c291d98368bebf33239"/></dir></target></contents>
|
18 |
+
<compatible/>
|
19 |
+
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
20 |
+
</package>
|