Пример #1
0
 public function render(Varien_Object $row)
 {
     $url = $this->getUrl('*/adminhtml_abandonedreport/preview', array('id' => $row->getData('id_fila_envio')));
     $actions[] = array('caption' => Mage::helper('cartabandoned')->__('Preview'), 'onclick' => "window.open('" . $url . "','page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1000,height=800,menubar=no,directories=no');  return false;");
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #2
0
 public function render(Varien_Object $row)
 {
     if ($this->isShowElement($row)) {
         return parent::render($row);
     }
     return "";
 }
 /**
  * Render single action as link html
  *
  * @param array $action
  * @param Varien_Object $row
  * @return string
  */
 protected function _toLinkHtml($action, Varien_Object $row)
 {
     if ($row->isEnterpriseProcess()) {
         return ' ';
     }
     return parent::_toLinkHtml($action, $row);
 }
Пример #4
0
 public function render(Varien_Object $row)
 {
     $sendType = $row->getTemplateSendType();
     $actions = array();
     // Edit Action
     $actions[] = array('url' => $this->getUrl('*/*/brontoEdit', array('id' => $row->getId())), 'caption' => $this->__('Edit'));
     // Delete Action
     $actions[] = array('url' => $this->getUrl('*/*/massDelete', array('template_id' => $row->getId())), 'caption' => $this->__('Delete'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to delete the selected template?  If this template is currently assigned to be used, it will automatically be reassigned to the default Magento template.'));
     switch ($sendType) {
         case 'transactional':
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'marketing')), 'caption' => $this->__('Set to Bronto Marketing'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Bronto as a marketing message?'));
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'magento')), 'caption' => $this->__('Set to Magento Email'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Magento?'));
             break;
         case 'magento':
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'transactional')), 'caption' => $this->__('Set to Bronto Transactional'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Bronto as a transactional message?'));
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'marketing')), 'caption' => $this->__('Set to Bronto Marketing'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Bronto as a marketing message?'));
             break;
         default:
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'transactional')), 'caption' => $this->__('Set to Bronto Transactional'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Bronto as a transactional message?'));
             $actions[] = array('url' => $this->getUrl('*/*/updateSendType', array('template_id' => $row->getId(), 'send_type' => 'magento')), 'caption' => $this->__('Set to Magento Email'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to set this template to send through Magento?'));
             break;
     }
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #5
0
 /**
  * Renders action link only if shipment has the valid status
  *
  * @param  Varien_Object    $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     $actions = $this->getColumn()->getActions();
     if ($row->getStatus() == Dhl_Intraship_Model_Shipment::STATUS_PROCESSED || $row->getStatus() == Dhl_Intraship_Model_Shipment::STATUS_CLOSED) {
         return parent::render($row);
     }
 }
Пример #6
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     $actions[] = array('url' => $this->getUrl('*/newsletter_queue/preview', array('id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Preview'), 'popup' => true);
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #7
0
 public function render(Varien_Object $row)
 {
     $actions[] = array('url' => $this->getUrl('*/*/edit', array('item_id' => $row->getId())), 'caption' => Mage::helper('robots')->__('Edit'));
     $actions[] = array('url' => $this->getUrl('*/*/delete', array('item_id' => $row->getId())), 'caption' => Mage::helper('robots')->__('Delete'), 'confirm' => Mage::helper('robots')->__('Are you sure you want to delete this item ?'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #8
0
 /**
  * Prepares action data for html render
  *
  * @param array $action
  * @param string $actionCaption
  * @param Varien_Object $row
  * @return Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Action
  */
 protected function _transformActionData(&$action, &$actionCaption, Varien_Object $row)
 {
     foreach ($action as $attibute => $value) {
         if (isset($action[$attibute]) && !is_array($action[$attibute])) {
             $this->getColumn()->setFormat($action[$attibute]);
             $action[$attibute] = parent::render($row);
         } else {
             $this->getColumn()->setFormat(null);
         }
         switch ($attibute) {
             case 'caption':
                 $actionCaption = $action['caption'];
                 unset($action['caption']);
                 break;
             case 'url':
                 if (is_array($action['url'])) {
                     $params = array($action['field'] => $this->_getValue($row));
                     if (isset($action['url']['params'])) {
                         $params = array_merge($action['url']['params'], $params);
                     }
                     $action['href'] = $this->getUrl($action['url']['base'], $params);
                     unset($action['field']);
                 } else {
                     $action['href'] = $action['url'];
                 }
                 unset($action['url']);
                 break;
             case 'popup':
                 $action['onclick'] = 'popWin(this.href, \'windth=800,height=700,resizable=1,scrollbars=1\');return false;';
                 break;
         }
     }
     return $this;
 }
Пример #9
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     $actions[] = array('url' => Mage::getModel('adminhtml/url')->setQueryParam('id', $row->getId())->getUrl('*/*/edit'), 'caption' => $this->__('View'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #10
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     $actions[] = array('url' => $this->getUrl('*/*/preview', array('id' => $row->getId())), 'popup' => true, 'caption' => $this->__('Preview'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #11
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     $curWebsite = $this->getRequest()->getParam('website');
     $curStore = $this->getRequest()->getParam('store');
     $aParams = array();
     if ($curWebsite) {
         $aParams['website'] = $curWebsite;
     }
     if ($curStore) {
         $aParams['store'] = $curStore;
     }
     if (!$aParams) {
         list($aParams['scope'], $aParams['scopeid']) = Mage::getModel('aitemails/aitemails')->getCurrentScope();
     }
     $aParams['fromaitemails'] = 1;
     if ($row->getCustomTemplate()) {
         $aParams['id'] = $row->getCustomTemplateId();
         $actions[] = array('url' => $this->getUrl('adminhtml/system_email_template/edit', $aParams), 'caption' => $this->__('Edit Custom Template'));
     } else {
         $aParams['templatecode'] = $row->getCode();
         $aParams['localecode'] = Mage::registry('aitemails_email_template_scope_locale');
         $aParams['scope'] = $row->getScope();
         $aParams['scopeid'] = $row->getScopeId();
         $actions[] = array('url' => $this->getUrl('adminhtml/system_email_template/new', $aParams), 'caption' => $this->__('Create Custom Template'));
     }
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #12
0
 /**
  * Renders column
  *
  * @param Varien_Object $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     if ($row->getStatus() != OnePica_AvaTax_Model_Records_Queue::QUEUE_STATUS_FAILED) {
         return '';
     }
     return parent::render($row);
 }
Пример #13
0
 public function render(Varien_Object $object)
 {
     $actions = array();
     /* delete */
     $actions[] = array('url' => $this->getUrl('*/*/delete', array('id' => $object->getId())), 'caption' => Mage::helper('points')->__('Delete'), 'confirm' => Mage::helper('points')->__('Are you sure?'));
     $this->getColumn()->setActions($actions);
     return parent::render($object);
 }
 public function render(Varien_Object $row)
 {
     if ($row->isValidForSend()) {
         $actions[] = array('url' => $this->getUrl('*/newsletter_queue/edit', array('template_id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Queue Newsletter...'));
     }
     $actions[] = array('url' => $this->getUrl('*/*/preview', array('id' => $row->getId())), 'popup' => true, 'caption' => Mage::helper('newsletter')->__('Preview'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #15
0
 public function render(Varien_Object $row)
 {
     if ($row->isValidForSend()) {
         $actions[] = array('url' => $this->getUrl('*/admin_queue/edit', array('campaign_id' => $row->getId())), 'caption' => Mage::helper('mzax_emarketing')->__('Queue Campaign...'));
     }
     $actions[] = array('url' => $this->getUrl('*/*/preview', array('campaign' => $row->getId())), 'popup' => true, 'caption' => Mage::helper('mzax_emarketing')->__('Preview'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #16
0
 /**
  * Override for immediate action on a recommendation
  *
  * @param Varien_Object $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     $actions = array();
     $actions[] = array('url' => $this->getUrl('*/*/edit', array('id' => $row->getId())), 'caption' => $this->__('Edit'));
     $actions[] = array('url' => $this->getUrl('*/*/copy', array('id' => $row->getId())), 'caption' => $this->__('Copy'), 'confirm' => $this->__('Are you sure you want to copy the selected recommendation?'));
     $actions[] = array('url' => $this->getUrl('*/*/delete', array('id' => $row->getId())), 'caption' => $this->__('Delete'), 'confirm' => $this->__('Are you sure you want to delete the selected recommendation?'));
     $actions[] = array('url' => $this->getUrl('*/*/preview', array('entity_id' => $row->getId(), 'ret' => 'index')), 'caption' => $this->__('Preview'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #17
0
 /**
  * Override for immediate action on a delivery
  *
  * @param Varien_Object $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     $actions = array();
     if ($row->isCancelable()) {
         $actions[] = array('url' => $this->getUrl('*/postpurchase/cancel', array('id' => $row->getId())), 'caption' => $this->__('Cancel'), 'confirm' => $this->__('Are you sure you want to cancel the %s for order #%s?', $row->getPostName(), $row->getOrderIncrementId()));
     }
     $actions[] = array('url' => $this->getUrl('*/postpurchase/delete', array('id' => $row->getId())), 'caption' => $this->__('Purge'), 'confirm' => $this->__('Are you sure you want to purge the %s for order #%s?', $row->getPostName(), $row->getOrderIncrementId()));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #18
0
 /**
  * Render grid row
  *
  * @param Varien_Object $row
  * @return string
  */
 public function render(Varien_Object $row)
 {
     $actions = array(array('caption' => $this->__('Preview'), 'url' => $this->getUrl('*/*/previewQueue', array('id' => $row->getId())), 'popup' => true));
     if ($row->getStatus() == Mage_XmlConnect_Model_Queue::STATUS_IN_QUEUE) {
         $actions[] = array('caption' => $this->__('Edit'), 'url' => $this->getUrl('*/*/editQueue', array('id' => $row->getId())));
         $actions[] = array('caption' => $this->__('Cancel'), 'url' => $this->getUrl('*/*/cancelQueue', array('id' => $row->getId())), 'confirm' => $this->__('Are you sure you want to cancel a message?'));
     }
     $actions[] = array('caption' => $this->__('Delete'), 'url' => $this->getUrl('*/*/deleteQueue', array('id' => $row->getId())), 'confirm' => $this->__('Are you sure you want to delete a message?'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #19
0
 public function render(Varien_Object $row)
 {
     if (in_array($row->getTypeId(), array('simple', 'virtual', 'downloadable'))) {
         $actions[] = array('url' => "javascript:InventoryManager.save('" . $this->getUrl('*/*/save', array('id' => $row->getId())) . "','" . $row->getId() . "')", 'caption' => Mage::helper('advancedinventory')->__('Save'), 'id' => 'save');
         if (Mage::getModel('pointofsale/pointofsale')->getPlaces()->count()) {
             if (Mage::getStoreConfig("advancedinventory/setting/lock_online_stock")) {
                 $actions[] = array('caption' => Mage::helper('advancedinventory')->__("Sync. global stock"), 'url' => "javascript:InventoryManager.recalculate( " . $row->getId() . ")", 'id' => 'synchronize');
             }
             $actions[] = array('caption' => Mage::helper('advancedinventory')->__(!$row->getManageLocalStock() ? Mage::helper('advancedinventory')->__("Enable local stocks") : Mage::helper('advancedinventory')->__("Disable local stocks")), 'url' => "javascript:InventoryManager.displayLocalStocks( " . $row->getId() . "," . (!$row->getManageLocalStock() ? "true" : "false") . ")", 'id' => 'enable');
         }
     }
     $actions[] = array('url' => $this->getUrl('adminhtml/catalog_product/edit', array('id' => $row->getId(), "tab" => "product_info_tabs_inventory")), 'caption' => Mage::helper('advancedinventory')->__('Edit'), 'popup' => true, 'id' => 'edit');
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #20
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     $actions[] = array('url' => $this->getUrl('*/*/edit', array('id' => $row->getId())), 'caption' => $this->__('Edit'));
     $stores = Mage::app()->getStores(true);
     if (is_array($stores) && count($stores) >= 1) {
         foreach ($stores as $store) {
             if (Mage::helper('bronto_email')->isEnabled('store', $store->getId())) {
                 $actions[] = array('url' => $this->getUrl('*/*/massImport', array('template_id' => $row->getId(), 'store_id' => $store->getId())), 'caption' => $this->__('Import For Store: ' . (!$store->getId() ? 'Default' : $store->getName())), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to import the selected template?'));
             }
         }
     }
     $actions[] = array('url' => $this->getUrl('*/*/massDelete', array('template_id' => $row->getId(), 'delete_level' => 'full')), 'caption' => $this->__('Delete'), 'confirm' => Mage::helper('bronto_email')->__('Are you sure you want to delete the selected template?'));
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #21
0
 public function render(Varien_Object $row)
 {
     $url = $this->getUrl('*/*/verified', array('id' => $row->getId()));
     $url1 = $this->getUrl('*/*/invalid', array('id' => $row->getId()));
     if ($row->getStatus() == 0) {
         $html = '<select id="' . $row->getId() . '" style="display:none;" onchange="varienGridAction.execute(this);" class="action-select"><option value=""></option><option value="{&quot;class&quot;:&quot;verified&quot;,&quot;title&quot;:&quot;Unverified&quot;,&quot;href&quot;:&quot;' . $url . '&quot;}">Verified</option><option value="{&quot;class&quot;:&quot;invalid&quot;,&quot;title&quot;:&quot;Invalid&quot;,&quot;href&quot;:&quot;' . $url1 . '&quot;}">Invalid</option></select><a class="verified" onclick="$(&quot;' . $row->getId() . '&quot;).show();$(this).hide();" title="Unverified">Verified</a>';
         return $html;
     } elseif ($row->getStatus() == 1) {
         $this->getColumn()->setActions(array(array('url' => $this->getUrl("*/*/unverified", array("id" => $row->getId())), 'caption' => Mage::helper('docupload')->__('Unverified'), 'class' => 'unverified', 'title' => 'Verified')));
     } elseif ($row->getStatus() == 3) {
         $this->getColumn()->setActions(array(array('caption' => Mage::helper('docupload')->__('Invalid Doc'), 'class' => 'invalid', 'title' => 'Invalid Doc')));
     } else {
         $this->getColumn()->setActions(array(array('caption' => Mage::helper('docupload')->__('Not Applicable'), 'class' => 'not_applicable', 'title' => 'Not Applicable')));
     }
     return parent::render($row);
 }
Пример #22
0
 /**
  * Render single action as link html
  *
  * @param  array $action
  * @param  Varien_Object $row
  * @return string
  */
 protected function _toLinkHtml($action, Varien_Object $row)
 {
     $product = $row->getProduct();
     if (isset($action['process']) && $action['process'] == 'configurable') {
         if ($product->canConfigure()) {
             $style = '';
             $onClick = sprintf('onclick="return %s.configureItem(%s)"', $action['control_object'], $row->getId());
         } else {
             $style = 'style="color: #CCC;"';
             $onClick = '';
         }
         return sprintf('<a href="%s" %s %s>%s</a>', $action['url'], $style, $onClick, $action['caption']);
     } else {
         return parent::_toLinkHtml($action, $row);
     }
 }
Пример #23
0
 public function render(Varien_Object $row)
 {
     $actions = array();
     if ($row->getQueueStatus() == Mage_Newsletter_Model_Queue::STATUS_NEVER) {
         if (!$row->getQueueStartAt() && $row->getSubscribersTotal()) {
             $actions[] = array('url' => $this->getUrl('*/*/start', array('id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Start'));
         }
     } else {
         if ($row->getQueueStatus() == Mage_Newsletter_Model_Queue::STATUS_SENDING) {
             $actions[] = array('url' => $this->getUrl('*/*/pause', array('id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Pause'));
             $actions[] = array('url' => $this->getUrl('*/*/cancel', array('id' => $row->getId())), 'confirm' => Mage::helper('newsletter')->__('Do you really want to cancel the queue?'), 'caption' => Mage::helper('newsletter')->__('Cancel'));
         } else {
             if ($row->getQueueStatus() == Mage_Newsletter_Model_Queue::STATUS_PAUSE) {
                 $actions[] = array('url' => $this->getUrl('*/*/resume', array('id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Resume'));
             }
         }
     }
     $actions[] = array('url' => $this->getUrl('*/newsletter_queue/preview', array('id' => $row->getId())), 'caption' => Mage::helper('newsletter')->__('Preview'), 'popup' => true);
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #24
0
 public function render(Varien_Object $row)
 {
     $permissions = Mage::helper('advancedinventory/permissions')->getUserPermissions();
     $all = $permissions->isAdmin();
     $manage_stock = Mage::getStoreConfig("cataloginventory/item_options/manage_stock");
     if ($row->getManageStock() || $row->getUse_config_manage_stock() && $manage_stock) {
         if (in_array($row->getTypeId(), array('simple', 'virtual', 'downloadable'))) {
             $actions[] = array('url' => "javascript:InventoryManager.saveStocks('" . $this->getUrl('*/*/save', array('id' => $row->getId(), "is_admin" => (int) $all, "store_id" => Mage::app()->getRequest()->getParam('store', 0))) . "','" . $row->getId() . "')", 'caption' => Mage::helper('advancedinventory')->__('Save change'), 'id' => 'save');
             if ($all) {
                 if (Mage::getModel('pointofsale/pointofsale')->getPlaces()->count()) {
                     if (Mage::app()->getRequest()->getParam('store') == Mage_Core_Model_App::ADMIN_STORE_ID) {
                         $actions[] = array('caption' => Mage::helper('advancedinventory')->__(!$row->getMultistock_enabled() ? Mage::helper('advancedinventory')->__("Enable multi-stock") : Mage::helper('advancedinventory')->__("Disable multi-stock")), 'url' => "javascript:InventoryManager.enableMultiStock('grid'," . $row->getId() . ")", 'id' => 'enable');
                     }
                 }
             }
         }
     }
     if ($all) {
         $actions[] = array('url' => $this->getUrl('adminhtml/catalog_product/edit', array('id' => $row->getId(), "tab" => "product_info_tabs_inventory")), 'caption' => Mage::helper('advancedinventory')->__('Edit product'), 'popup' => true, 'id' => 'edit');
     }
     $this->getColumn()->setActions($actions);
     return parent::render($row);
 }
Пример #25
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/*/exportone', array('id' => $row->getId())), 'caption' => Mage::helper('mybuys')->__('Export Baseline Feed For ' . $row->getWebsiteName()))));
     return parent::render($row);
 }
Пример #26
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/adminhtml_datafeedmanager/edit', array('id' => $row->getFeed_id())), 'caption' => Mage::helper('datafeedmanager')->__('Edit')), array('url' => $this->getUrl('*/adminhtml_datafeedmanager/delete', array('id' => $row->getFeed_id())), 'confirm' => Mage::helper('datafeedmanager')->__('Are you sure you want to delete this feed ?'), 'caption' => Mage::helper('datafeedmanager')->__('Delete')), array('url' => $this->getUrl('*/adminhtml_datafeedmanager/sample', array('feed_id' => $row->getFeed_id(), 'limit' => 10)), 'caption' => Mage::helper('datafeedmanager')->__('Preview') . " (10 " . Mage::helper('datafeedmanager')->__('products') . ")", 'popup' => true), array('url' => $this->getUrl('*/adminhtml_datafeedmanager/generate', array('feed_id' => $row->getFeed_id())), 'confirm' => Mage::helper('datafeedmanager')->__('Generate a data feed can take a while. Are you sure you want to generate it now ?'), 'caption' => Mage::helper('datafeedmanager')->__('Generate'))));
     return parent::render($row);
 }
Пример #27
0
 public function render(Varien_Object $row)
 {
     /* @var $row CueBlocks_SitemapEnhanced_Model_SitemapEnhanced */
     $this->getColumn()->setActions(array(array('url' => $this->getUrl("*/sitemapEnhanced/ping", array("sitemap_id" => $row->getSitemapId())), 'caption' => Mage::helper('adminhtml')->__('Ping Sitemap')), array('url' => $this->getUrl('*/sitemapEnhanced/generate', array('sitemap_id' => $row->getSitemapId())), 'caption' => Mage::helper('sitemapEnhanced')->__('Generate'), 'confirm' => Mage::helper('adminhtml')->__('Are you sure you want to update/generate this XML Sitemap?')), array('url' => $this->getUrl('*/sitemapEnhanced/delete', array('sitemap_id' => $row->getSitemapId())), 'caption' => Mage::helper('sitemapEnhanced')->__('Delete'), 'confirm' => Mage::helper('adminhtml')->__('Are you sure you want to delete this XML Sitemap?'))));
     return parent::render($row);
 }
Пример #28
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/sitemap/generate', array('sitemap_id' => $row->getSitemapId())), 'caption' => Mage::helper('sitemap')->__('Generate'))));
     return parent::render($row);
 }
Пример #29
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/generate', array('simplegoogleshopping_id' => $row->getSimplegoogleshoppingId())), 'confirm' => Mage::helper('simplegoogleshopping')->__('Generate a data feed can take a while. Are you sure you want to generate it now ?'), 'caption' => Mage::helper('simplegoogleshopping')->__('Generate')), array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/edit', array('id' => $row->getSimplegoogleshoppingId())), 'caption' => Mage::helper('simplegoogleshopping')->__('Edit')), array('url' => $this->getUrl('*/adminhtml_simplegoogleshopping/sample', array('simplegoogleshopping_id' => $row->getSimplegoogleshoppingId(), 'limit' => 10)), 'caption' => Mage::helper('simplegoogleshopping')->__('Preview') . " (" . Mage::getStoreConfig("simplegoogleshopping/system/preview") . " " . Mage::helper('simplegoogleshopping')->__('products') . ")", 'popup' => true)));
     return parent::render($row);
 }
Пример #30
0
 public function render(Varien_Object $row)
 {
     $this->getColumn()->setActions(array(array('url' => $this->getUrl('*/adminhtml_attributes/edit', array('id' => $row->getAttribute_id())), 'caption' => Mage::helper('datafeedmanager')->__('Edit')), array('url' => $this->getUrl('*/adminhtml_attributes/delete', array('id' => $row->getAttribute_id())), 'confirm' => Mage::helper('datafeedmanager')->__('Are you sure you want to delete this attribute ?'), 'caption' => Mage::helper('datafeedmanager')->__('Delete'))));
     return parent::render($row);
 }