diff --git a/app/code/community/BL/CustomGrid/Model/Custom/Column/Abstract.php b/app/code/community/BL/CustomGrid/Model/Custom/Column/Abstract.php
index eedc1f2..2bc6c0b 100644
--- a/app/code/community/BL/CustomGrid/Model/Custom/Column/Abstract.php
+++ b/app/code/community/BL/CustomGrid/Model/Custom/Column/Abstract.php
@@ -20,8 +20,8 @@
* @method this setAllowCustomization(bool $flag) Set whether this columns is customizable
* @method this setAllowRenderers(bool $flag) Set whether this column allows to choose a renderer
* @method this setAllowStore(bool $flag) Set whether this column allows to choose a base store view
+ * @method BL_CustomGrid_Model_Custom_Column_Abstract setCurrentBlockValues(array $currentBlockValues)
*/
-
abstract class BL_CustomGrid_Model_Custom_Column_Abstract extends BL_CustomGrid_Object
{
/**
diff --git a/app/code/community/BL/CustomGrid/Model/Custom/Column/Action.php b/app/code/community/BL/CustomGrid/Model/Custom/Column/Action.php
new file mode 100644
index 0000000..2ecc145
--- /dev/null
+++ b/app/code/community/BL/CustomGrid/Model/Custom/Column/Action.php
@@ -0,0 +1,63 @@
+ "action",
+ "filter" => false,
+ "sortable" => false,
+ "is_system" => true,
+ );
+
+ $editSettings = $this->getCurrentBlockValues();
+ if (isset($editSettings["actions"])) {
+ $values["actions"] = $editSettings["actions"];
+ $values["actions"]["edit"]["caption"] = "Edit";
+ $values["actions"]["edit"]["url"] = array("base" => "*/*/edit");
+ }
+
+ return $values;
+ }
+}
diff --git a/app/code/community/BL/CustomGrid/Model/Grid/Type/Product/Attributes.php b/app/code/community/BL/CustomGrid/Model/Grid/Type/Product/Attributes.php
new file mode 100644
index 0000000..5b29435
--- /dev/null
+++ b/app/code/community/BL/CustomGrid/Model/Grid/Type/Product/Attributes.php
@@ -0,0 +1,14 @@
+
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
+ */
+
+class BL_CustomGrid_Model_Grid_Type_Product_Rating extends BL_CustomGrid_Model_Grid_Type_Abstract
+{
+ /**
+ * @return string[]|string
+ */
+ protected function _getSupportedBlockTypes()
+ {
+ return array('adminhtml/rating_grid');
+ }
+
+ /**
+ * @param string $blockType
+ * @return array
+ */
+ protected function _getBaseEditableFields($blockType)
+ {
+ $fields = array(
+ 'rating_code' => array(
+ 'type' => 'text',
+ 'required' => true,
+ ),
+ 'position' => array(
+ 'type' => 'text',
+ 'required' => true,
+ 'form_class' => 'validate-number',
+ ),
+ );
+
+ return $fields;
+ }
+
+ protected function _getEntityRowIdentifiersKeys($blockType)
+ {
+ return array('rating_id');
+ }
+
+ protected function _loadEditedEntity($blockType, BL_CustomGrid_Object $config, array $params, $entityId)
+ {
+ return Mage::getModel('rating/rating')->load($entityId);
+ }
+
+ protected function _getEditRequiredAclPermissions($blockType)
+ {
+ return 'catalog/reviews_ratings/ratings';
+ }
+}
diff --git a/app/code/community/BL/CustomGrid/etc/customgrid.xml b/app/code/community/BL/CustomGrid/etc/customgrid.xml
index 12e850c..73d3111 100644
--- a/app/code/community/BL/CustomGrid/etc/customgrid.xml
+++ b/app/code/community/BL/CustomGrid/etc/customgrid.xml
@@ -24,6 +24,24 @@
CMS Blocks
20000
+
+
+ Action
+ Misc
+ 0
+
+ 1
+
+
+ getId
+
+
+ block_id
+
+
+
+
+
@@ -247,6 +265,29 @@
+
+
+ Product Attributes
+ 65000
+
+
+ Action
+ Misc
+ 0
+
+ 1
+
+
+ getId
+
+
+ attribute_id
+
+
+
+
+
+
Customers
@@ -307,6 +348,29 @@
Reviews
180000
+
+
+ Review Ratings
+ 181000
+
+
+ Action
+ Misc
+ 0
+
+ 1
+
+
+ getId
+
+
+ id
+
+
+
+
+
+
Google Sitemap