ajaxified_product_edit - Version 0.1.0.1

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.0.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.0.1

app/code/community/Alekseon/AjaxifiedProductEdit/Block/Adminhtml/GridView/Grid.php CHANGED
@@ -185,10 +185,14 @@ class Alekseon_AjaxifiedProductEdit_Block_Adminhtml_GridView_Grid extends Mage_A
185
  'editable' => $data['editable'],
186
  );
187
 
 
188
  if ($data['options']) {
189
  $columnSettings['type'] = 'options';
190
  }
191
-
 
 
 
192
  $this->addColumn($attribute, $columnSettings);
193
  }
194
 
185
  'editable' => $data['editable'],
186
  );
187
 
188
+ $columnSettings['type'] = $data['input'];
189
  if ($data['options']) {
190
  $columnSettings['type'] = 'options';
191
  }
192
+ if ($data['input'] == 'price') {
193
+ $columnSettings['currency_code'] = $this->_getStore()->getBaseCurrency()->getCode();
194
+ }
195
+
196
  $this->addColumn($attribute, $columnSettings);
197
  }
198
 
app/code/community/Alekseon/AjaxifiedProductEdit/Block/Adminhtml/GridView/Grid/Renderer/Input.php CHANGED
@@ -69,6 +69,8 @@ class Alekseon_AjaxifiedProductEdit_Block_Adminhtml_GridView_Grid_Renderer_Input
69
  $inputBlock->setRow($row->getData());
70
  $inputBlock->setColumn($column);
71
  $inputBlock->setDisabled(false);
 
 
72
  if ($useDefault) {
73
  $inputBlock->setHidden(true);
74
  } else {
69
  $inputBlock->setRow($row->getData());
70
  $inputBlock->setColumn($column);
71
  $inputBlock->setDisabled(false);
72
+ $inputBlock->setStore(Mage::app()->getStore($this->_getStoreId()));
73
+
74
  if ($useDefault) {
75
  $inputBlock->setHidden(true);
76
  } else {
app/design/adminhtml/default/default/template/alekseon/ajaxifiedProductEdit/grid/input/price.phtml CHANGED
@@ -1 +1 @@
1
- <?php
2
  * @author Marcin Frymark
3
  * @email contact@alekseon.com
4
  * @company Alekseon
5
  * @website www.alekseon.com
6
  */
7
  <?php $disabled = 'disabled="disabled"' ?>
8
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $this->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)"/>
 
9
  * @author Marcin Frymark
10
  * @email contact@alekseon.com
11
  * @company Alekseon
12
  * @website www.alekseon.com
13
  */
14
  <?php $disabled = 'disabled="disabled"' ?>
15
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo sprintf ("%.2f", $this->getStore()->roundPrice($this->getValue())) ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)"/>
16
  <?php echo $this->getStore()->getBaseCurrency()->getCode() ?>
 
1
  * @author Marcin Frymark
2
  * @email contact@alekseon.com
3
  * @company Alekseon
4
  * @website www.alekseon.com
5
  */
6
  <?php $disabled = 'disabled="disabled"' ?>
7
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo $this->getValue() ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)"/>
8
+ <?php
9
  * @author Marcin Frymark
10
  * @email contact@alekseon.com
11
  * @company Alekseon
12
  * @website www.alekseon.com
13
  */
14
  <?php $disabled = 'disabled="disabled"' ?>
15
  <input name="<?php echo $this->getName() ?>[value]" id="<?php echo $this->getName() ?>" type="text" value="<?php echo sprintf ("%.2f", $this->getStore()->roundPrice($this->getValue())) ?>" <?php echo $disabled ?> onchange="rowChanged(<?php echo $this->getRowId() ?>)"/>
16
  <?php echo $this->getStore()->getBaseCurrency()->getCode() ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ajaxified_product_edit</name>
4
- <version>0.1.0</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>
@@ -13,8 +13,8 @@ You can create several grid views with different attributes, and manage acces to
13
  <notes>This module will help you manage the product attributes.</notes>
14
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
15
  <date>2014-03-06</date>
16
- <time>17:16:24</time>
17
- <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="41c6083eca3049aef908a4d7900e63f3"/><file name="SaveButton.php" hash="881214c7b1f657d976c9692231567f05"/></dir></dir><file name="Grid.php" hash="f52db47fcb9c0b0823ce9f7680687ad7"/><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="ManageGridViewsButton.php" hash="7ffe45be1540f827c0223e322404dba2"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="e1af6d1884acf1dcea37afd5acf45de6"/></dir><dir name="Model"><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="40388bf41d0885b7650a37949556fba3"/></dir><file name="AjaxifiedProductEditController.php" hash="c59b4c7035e744f1addf49b9182c086d"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="bcaf2ecce772dd2771d908f26ac09196"/><file name="config.xml" hash="6e8ab75fd49ff88b75073cabdee2428a"/><file name="logging.xml" hash="2876868df1ebedfd3f7fe773fdbed0c0"/><file name="system.xml" hash="6b443416dfee0c28384e79c63eead1f0"/></dir><dir name="sql"><dir name="alekseon_ajaxifiedproductedit_setup"><file name="mysql4-install-0.1.0.php" hash="fe315b9f9c6a75439bfc1d164e07f39b"/></dir></dir></dir></dir><dir name="Core"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Alekseon.php" hash="1d51aaf89f838ec44b2c2bbafb74a664"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8e117e0ba3c38786238baf66af89a127"/></dir><dir name="etc"><file name="config.xml" hash="e77d6e9d49f28d9f2f8b0884b0d49997"/></dir></dir></dir><dir name="AdminNotification"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Notification.php" hash="0cf97c24e0e7497955ee17fb14daef52"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d82dbd74204aace87e9f28be31ba98e6"/></dir><dir name="Model"><file name="Feed.php" hash="d25c0486febfecd06567e9d487ffde11"/><file name="Observer.php" hash="0bc915784005f5424bfa4940bb496d05"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b63f6dd92e49def5499f7560bc1fa15c"/><file name="config.xml" hash="0ed69e4e9d2dbcfbd2cc24d2f79faf46"/><file name="system.xml" hash="7211e39b5159acca15740dfd391f69af"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_AjaxifiedProductEdit.xml" hash="f651f22f2378cddd5fccdba04c6fd758"/><file name="Alekseon_AdminNotification.xml" hash="9635261e9cedc0c69e49d20bcddfbc6e"/><file name="Alekseon_Core.xml" hash="c579cb3ce377e8c4ffa86ef00cb7c006"/></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><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="alekseon"><file name="ajaxifiedProductEdit.xml" hash="3cbe92362cc6f89f35915ebc85cc893a"/></dir></dir><dir name="template"><dir name="alekseon"><dir><dir name="ajaxifiedProductEdit"><dir name="grid"><dir name="input"><file name="boolean.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="date.phtml" hash="e7d702354ec4d129928ae66acd3a905a"/><file name="hidden.phtml" hash="f9c98f36fa00488c1ea671b219023557"/><file name="multiselect.phtml" hash="7d634e663647cc313c6ac3becba4281c"/><file name="price.phtml" hash="2709f6bdaa70784bfa05ae6e99581769"/><file name="save.phtml" hash="2023ca4a0f48a6ca83d9799bed134e64"/><file name="select.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><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></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ajaxified_product_edit</name>
4
+ <version>0.1.0.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>
13
  <notes>This module will help you manage the product attributes.</notes>
14
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
15
  <date>2014-03-06</date>
16
+ <time>20:03:39</time>
17
+ <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="76d280c9180820166361143f057fabce"/><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="ManageGridViewsButton.php" hash="7ffe45be1540f827c0223e322404dba2"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="e1af6d1884acf1dcea37afd5acf45de6"/></dir><dir name="Model"><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="40388bf41d0885b7650a37949556fba3"/></dir><file name="AjaxifiedProductEditController.php" hash="c59b4c7035e744f1addf49b9182c086d"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="bcaf2ecce772dd2771d908f26ac09196"/><file name="config.xml" hash="6e8ab75fd49ff88b75073cabdee2428a"/><file name="logging.xml" hash="2876868df1ebedfd3f7fe773fdbed0c0"/><file name="system.xml" hash="6b443416dfee0c28384e79c63eead1f0"/></dir><dir name="sql"><dir name="alekseon_ajaxifiedproductedit_setup"><file name="mysql4-install-0.1.0.php" hash="fe315b9f9c6a75439bfc1d164e07f39b"/></dir></dir></dir></dir><dir name="Core"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Alekseon.php" hash="1d51aaf89f838ec44b2c2bbafb74a664"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8e117e0ba3c38786238baf66af89a127"/></dir><dir name="etc"><file name="config.xml" hash="e77d6e9d49f28d9f2f8b0884b0d49997"/></dir></dir></dir><dir name="AdminNotification"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Notification.php" hash="0cf97c24e0e7497955ee17fb14daef52"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d82dbd74204aace87e9f28be31ba98e6"/></dir><dir name="Model"><file name="Feed.php" hash="d25c0486febfecd06567e9d487ffde11"/><file name="Observer.php" hash="0bc915784005f5424bfa4940bb496d05"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b63f6dd92e49def5499f7560bc1fa15c"/><file name="config.xml" hash="0ed69e4e9d2dbcfbd2cc24d2f79faf46"/><file name="system.xml" hash="7211e39b5159acca15740dfd391f69af"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_AjaxifiedProductEdit.xml" hash="f651f22f2378cddd5fccdba04c6fd758"/><file name="Alekseon_AdminNotification.xml" hash="9635261e9cedc0c69e49d20bcddfbc6e"/><file name="Alekseon_Core.xml" hash="c579cb3ce377e8c4ffa86ef00cb7c006"/></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><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="alekseon"><file name="ajaxifiedProductEdit.xml" hash="3cbe92362cc6f89f35915ebc85cc893a"/></dir></dir><dir name="template"><dir name="alekseon"><dir><dir name="ajaxifiedProductEdit"><dir name="grid"><dir name="input"><file name="boolean.phtml" hash="3f473d5ba3a7a91c9cb2901267b0fb87"/><file name="date.phtml" hash="e7d702354ec4d129928ae66acd3a905a"/><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="3f473d5ba3a7a91c9cb2901267b0fb87"/><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></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>