Version Notes
This module will help you manage the product attributes.
Download this release
Release Info
Developer | Marcin Frymark |
Extension | ajaxified_product_edit |
Version | 0.1.1.1 |
Comparing to | |
See all releases |
Code changes from version 0.1.1.0 to 0.1.1.1
- app/code/community/Alekseon/AjaxifiedProductEdit/Block/Adminhtml/GridView/Grid/Renderer/Input.php +9 -2
- app/code/community/Alekseon/AjaxifiedProductEdit/Model/AlekseonAdminNotification/Feed.php +1 -1
- app/code/community/Alekseon/AjaxifiedProductEdit/sql/alekseon_ajaxifiedproductedit_setup/mysql4-install-0.1.0.php +2 -0
- app/design/adminhtml/default/default/template/alekseon/ajaxifiedProductEdit/grid/input/select.phtml +1 -1
- package.xml +4 -4
app/code/community/Alekseon/AjaxifiedProductEdit/Block/Adminhtml/GridView/Grid/Renderer/Input.php
CHANGED
@@ -42,14 +42,21 @@ class Alekseon_AjaxifiedProductEdit_Block_Adminhtml_GridView_Grid_Renderer_Input
|
|
42 |
$column = $this->getColumn();
|
43 |
$index = $column->getIndex();
|
44 |
$attribute = $column->getAttribute();
|
|
|
45 |
if ($attribute && $attribute->getApplyTo() && !in_array($row->getData('type_id'), $attribute->getApplyTo())) {
|
46 |
return '<i style="color:grey">' . Mage::helper('alekseon_ajaxifiedProductEdit')->__('Not available for %s product.', $row->getData('type_id')) . '</i>';
|
47 |
} elseif (!$this->_isAttributeInAttributeSet($index, $row->getData('attribute_set_id'))) {
|
48 |
return '<i style="color:grey">' . Mage::helper('alekseon_ajaxifiedProductEdit')->__('Not available for this attribute set.') . '</i>';
|
49 |
} elseif ($inputBlock = $this->getInputBlock()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
$scope = $column->getScope();
|
51 |
-
$value = $row->getData($index);
|
52 |
-
$defaultValue = $row->getData($index . '_defaultValue');
|
53 |
$rowId = $row->getData('entity_id');
|
54 |
$name = 'product[' . $rowId . '][' . $index . ']';
|
55 |
|
42 |
$column = $this->getColumn();
|
43 |
$index = $column->getIndex();
|
44 |
$attribute = $column->getAttribute();
|
45 |
+
|
46 |
if ($attribute && $attribute->getApplyTo() && !in_array($row->getData('type_id'), $attribute->getApplyTo())) {
|
47 |
return '<i style="color:grey">' . Mage::helper('alekseon_ajaxifiedProductEdit')->__('Not available for %s product.', $row->getData('type_id')) . '</i>';
|
48 |
} elseif (!$this->_isAttributeInAttributeSet($index, $row->getData('attribute_set_id'))) {
|
49 |
return '<i style="color:grey">' . Mage::helper('alekseon_ajaxifiedProductEdit')->__('Not available for this attribute set.') . '</i>';
|
50 |
} elseif ($inputBlock = $this->getInputBlock()) {
|
51 |
+
|
52 |
+
$attributeDefaultValue = null;
|
53 |
+
if ($attribute && $attribute->getDefaultValue()) {
|
54 |
+
$attributeDefaultValue = $attribute->getDefaultValue();
|
55 |
+
}
|
56 |
+
|
57 |
$scope = $column->getScope();
|
58 |
+
$value = is_null($row->getData($index)) ? $attributeDefaultValue : $row->getData($index);
|
59 |
+
$defaultValue = is_null($row->getData($index . '_defaultValue')) ? $attributeDefaultValue : $row->getData($index . '_defaultValue');
|
60 |
$rowId = $row->getData('entity_id');
|
61 |
$name = 'product[' . $rowId . '][' . $index . ']';
|
62 |
|
app/code/community/Alekseon/AjaxifiedProductEdit/Model/AlekseonAdminNotification/Feed.php
CHANGED
@@ -19,7 +19,7 @@ class Alekseon_AjaxifiedProductEdit_Model_AlekseonAdminNotification_Feed extends
|
|
19 |
$this->_feedUrl = Mage::helper('alekseon_ajaxifiedProductEdit')->getAlekseonUrl() . '/rss/magento_rss.xml';
|
20 |
$query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
|
21 |
$query .= '&utm_medium=' . urlencode('Magento Connect');
|
22 |
-
if (method_exists(Mage, 'getEdition')) {
|
23 |
$query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
|
24 |
} else {
|
25 |
$query .= '&utm_content=' . urlencode(Mage::getVersion());
|
19 |
$this->_feedUrl = Mage::helper('alekseon_ajaxifiedProductEdit')->getAlekseonUrl() . '/rss/magento_rss.xml';
|
20 |
$query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
|
21 |
$query .= '&utm_medium=' . urlencode('Magento Connect');
|
22 |
+
if (method_exists('Mage', 'getEdition')) {
|
23 |
$query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
|
24 |
} else {
|
25 |
$query .= '&utm_content=' . urlencode(Mage::getVersion());
|
app/code/community/Alekseon/AjaxifiedProductEdit/sql/alekseon_ajaxifiedproductedit_setup/mysql4-install-0.1.0.php
CHANGED
@@ -10,6 +10,7 @@ $installer = $this;
|
|
10 |
$installer->startSetup();
|
11 |
$installer->run("
|
12 |
|
|
|
13 |
CREATE TABLE {$this->getTable('alekseon_ajaxifiedProductEdit/gridview')} (
|
14 |
`id` int(10) unsigned NOT NULL auto_increment,
|
15 |
`label` varchar(255) default NULL,
|
@@ -19,6 +20,7 @@ CREATE TABLE {$this->getTable('alekseon_ajaxifiedProductEdit/gridview')} (
|
|
19 |
PRIMARY KEY (`id`)
|
20 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
21 |
|
|
|
22 |
CREATE TABLE {$this->getTable('alekseon_ajaxifiedProductEdit/gridview_attributeColumns')} (
|
23 |
`id` int(10) unsigned NOT NULL auto_increment,
|
24 |
`grid_view_id` int(10) unsigned,
|
10 |
$installer->startSetup();
|
11 |
$installer->run("
|
12 |
|
13 |
+
DROP TABLE IF EXISTS {$this->getTable('alekseon_ajaxifiedProductEdit/gridview')};
|
14 |
CREATE TABLE {$this->getTable('alekseon_ajaxifiedProductEdit/gridview')} (
|
15 |
`id` int(10) unsigned NOT NULL auto_increment,
|
16 |
`label` varchar(255) default NULL,
|
20 |
PRIMARY KEY (`id`)
|
21 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
22 |
|
23 |
+
DROP TABLE IF EXISTS {$this->getTable('alekseon_ajaxifiedProductEdit/gridview_attributeColumns')};
|
24 |
CREATE TABLE {$this->getTable('alekseon_ajaxifiedProductEdit/gridview_attributeColumns')} (
|
25 |
`id` int(10) unsigned NOT NULL auto_increment,
|
26 |
`grid_view_id` int(10) unsigned,
|
app/design/adminhtml/default/default/template/alekseon/ajaxifiedProductEdit/grid/input/select.phtml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
*/
|
8 |
?>
|
9 |
<?php $options = $this->getColumn()->getOptions() ?>
|
10 |
-
<?php if (!isset($options[$this->getValue()])): ?>
|
11 |
<?php
|
12 |
/*
|
13 |
its because of magento "bug", when grid is filtered and sorded by same attibute, and this attribute has options managed from BO (ex. color),
|
7 |
*/
|
8 |
?>
|
9 |
<?php $options = $this->getColumn()->getOptions() ?>
|
10 |
+
<?php if (!is_null($this->getValue()) && !isset($options[$this->getValue()])): ?>
|
11 |
<?php
|
12 |
/*
|
13 |
its because of magento "bug", when grid is filtered and sorded by same attibute, and this attribute has options managed from BO (ex. color),
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ajaxified_product_edit</name>
|
4 |
-
<version>0.1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>This module will help you manage the product attributes.</description>
|
11 |
<notes>This module will help you manage the product attributes.</notes>
|
12 |
<authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>08:
|
15 |
-
<contents><target name="magecommunity"><dir name="Alekseon"><dir name="AjaxifiedProductEdit"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridView"><dir name="Grid"><dir name="Renderer"><file name="Input.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>ajaxified_product_edit</name>
|
4 |
+
<version>0.1.1.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>This module will help you manage the product attributes.</description>
|
11 |
<notes>This module will help you manage the product attributes.</notes>
|
12 |
<authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
|
13 |
+
<date>2015-04-02</date>
|
14 |
+
<time>08:31:57</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Alekseon"><dir name="AjaxifiedProductEdit"><dir><dir name="Block"><dir name="Adminhtml"><dir name="GridView"><dir name="Grid"><dir name="Renderer"><file name="Input.php" hash="e24ab8ddfbe44c73c2f929fa8bb50d31"/><file name="SaveButton.php" hash="881214c7b1f657d976c9692231567f05"/></dir></dir><file name="Grid.php" hash="a511a4652fa31f2b15f71cc6b14bf6fb"/><dir name="Manager"><dir name="Edit"><file name="Form.php" hash="5a607b626d7aea903f9bbeca066d0803"/><dir name="Tabs"><file name="General.php" hash="baa7871b27568f2bb8f6f8914aee0dd8"/><dir name="ManageColumns"><file name="Attributes.php" hash="5a2e20af80d8171174da915228c3a932"/></dir><file name="ManageColumns.php" hash="36fbd89f31f2ca5e4f5198c329b513ac"/></dir><file name="Tabs.php" hash="9ad143b7b77e307b95f30b87c4e20af1"/></dir><file name="Edit.php" hash="2cc5679f87e5c63b6196898b0cdcd81e"/><file name="Grid.php" hash="6ce65a1fe5f5e6c9b47f926c1d130fe8"/></dir><file name="Manager.php" hash="6f93b82e166d0e65b4b279a25c3958cc"/></dir><file name="GridView.php" hash="dca5276d52cd0f23af91fc4ecd72c236"/><file name="GridViewSwitcher.php" hash="01f6c060326f05ddbf5d566d81a14dd6"/><dir name="Store"><file name="Switcher.php" hash="90287308aeda8573a39b8cff0677e084"/></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AlekseonLogo.php" hash="2d37ae3ae541c76cf51c8b2715f9780d"/><file name="AlekseonNotification.php" hash="b84660a0e2fe32f44744b93ff6cb1ae1"/><file name="ManageGridViewsButton.php" hash="7ffe45be1540f827c0223e322404dba2"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8355d698c9eadb35859d9df482361718"/></dir><dir name="Model"><dir name="AlekseonAdminNotification"><file name="Feed.php" hash="c2273c4bf0eb35196437d35e3ab124be"/><file name="Observer.php" hash="9e6aab48c6c57254ad304e7d4053fe8e"/></dir><file name="GridView.php" hash="8486fc0283216f3cbba04275d3dff67f"/><dir name="Resource"><dir name="GridView"><dir name="Attribute"><file name="Collection.php" hash="e81a0072797932cb0e68e1458f2e057a"/></dir><file name="Collection.php" hash="103a52eb43697774f4b4a1a7948ac20a"/></dir><file name="GridView.php" hash="d5f19460fd18a8292848eb974ee67b4b"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="Cache.php" hash="8e3b12fe3a60e4fa2be4d0e3c956fcdf"/></dir><dir name="Source"><file name="ProductAttributes.php" hash="6d685822dd377e403ff9b35f8107c63d"/><file name="UserRole.php" hash="68411f383ed71b48452bac3f575a35dc"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="AjaxifiedProductEdit"><file name="ManageGridViewsController.php" hash="244782270352cc65748ef3a26f295085"/></dir><file name="AjaxifiedProductEditController.php" hash="ef16fd76927a6d5209318e25f2e6a8ce"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="50a707a1fc35b129b67f1e124fdb9ade"/><file name="config.xml" hash="0da187d7cea2cf1a466d074ff9f34772"/><file name="logging.xml" hash="2876868df1ebedfd3f7fe773fdbed0c0"/><file name="system.xml" hash="3eb71b428a0ce0e1d352538d6d4a642c"/></dir><dir name="sql"><dir name="alekseon_ajaxifiedproductedit_setup"><file name="mysql4-install-0.1.0.php" hash="30f8b0b0d05ac5559331d7bc242f81fa"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="8e4b5ab8375b5d45ade28d90369a33b9"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_AjaxifiedProductEdit.xml" hash="f651f22f2378cddd5fccdba04c6fd758"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="alekseon"><dir name="ajaxifiedProductEdit"><dir name="grid"><dir name="input"><file name="boolean.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="date.phtml" hash="2c02b1dfb82d0227db0d6d43c23d4877"/><file name="hidden.phtml" hash="f9c98f36fa00488c1ea671b219023557"/><file name="multiselect.phtml" hash="7d634e663647cc313c6ac3becba4281c"/><file name="price.phtml" hash="34c4ee0a56a5ff069ec42d538fea74f3"/><file name="save.phtml" hash="2023ca4a0f48a6ca83d9799bed134e64"/><file name="select.phtml" hash="09b1ee03ef7937b00397177c4c041661"/><file name="text.phtml" hash="ca59e8eaa2ed388152a3be547ed7f023"/><file name="textarea.phtml" hash="c8788dd3b628c5ef8cdb0faf6581e9ce"/><file name="usedefault.phtml" hash="82f478a8aba513dab232740abc32c731"/></dir></dir><file name="gridView.phtml" hash="540624c3b84074dce7085eab4719ce98"/><file name="gridViewSwitcher.phtml" hash="2269d77a164d46f59c5567235814882d"/><dir name="store"><file name="switcher.phtml" hash="03c8037a7915b663814419842095473f"/></dir></dir></dir></dir><dir name="layout"><dir name="alekseon"><file name="ajaxifiedProductEdit.xml" hash="3cbe92362cc6f89f35915ebc85cc893a"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><dir name="alekseon"><file name="ajaxifiedProductEdit.js" hash="5a111780b3e03327972e2b6826178dbd"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|