public function render(Varien_Object $row) { $content = ""; $content .= "<b>" . $row->getName() . ' [' . $row->getStoreCode() . ']</b><br>'; $content .= Mage::helper('pointofsale')->getStoreDescription($row); return $content; }
public function render(Varien_Object $row) { Mage::dispatchEvent('adminhtml_cms_page_grid_renderer_action_before_render', array('row' => $row)); if ($row->getPreviewUrl()) { $href = $row->getPreviewUrl(); } else { $urlModel = Mage::getModel('core/url')->setStore($row->getData('_first_store_id')); $href = $urlModel->getUrl($row->getIdentifier(), array('_current' => false, '_query' => '___store=' . $row->getStoreCode())); } return '<a href="' . $href . '" target="_blank">' . $this->__('Preview') . '</a>'; }
public function assignData($data) { $customer = Mage::getSingleton('customer/session')->getCustomer(); if (!$data instanceof Varien_Object) { $data = new Varien_Object($data); } //Verificamos si existe el customer if ($customer->getFirstname()) { $info = array("storeCode" => $data->getStoreCode(), "customer" => htmlentities($customer->getFirstname()), "email" => htmlentities($customer->getEmail())); } else { $sessionCheckout = Mage::getSingleton('checkout/session'); $quote = $sessionCheckout->getQuote(); $billingAddress = $quote->getBillingAddress(); $billing = $billingAddress->getData(); $info = array("storeCode" => $data->getStoreCode(), "customer" => htmlentities($billing['firstname']), "email" => htmlentities($billing['email'])); } $infoInstance = $this->getInfoInstance(); $infoInstance->setAdditionalData(serialize($info)); return $this; }
public function render(Varien_Object $row) { $urlModel = Mage::getModel('core/url')->setStore($row->getData('_first_store_id')); $href = $urlModel->getUrl($row->getIdentifier(), array('_current' => false, '_query' => '___store=' . $row->getStoreCode())); return '<a href="' . $href . '" target="_blank">' . $this->__('Preview') . '</a>'; }