Skip to content

Instantly share code, notes, and snippets.

View leo-leung's full-sized avatar

Leung Chi Hang leo-leung

  • CLEARgo e-Business Consultancy Ltd
  • Hong Kong
View GitHub Profile
<html>
<head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<style type="text/css">
<!--
span.cls_004{font-family:"Calibri",serif;font-size:10.1px;color:rgb(146,146,146);font-weight:normal;font-style:normal;text-decoration: none}
div.cls_004{font-family:"Calibri",serif;font-size:10.1px;color:rgb(146,146,146);font-weight:normal;font-style:normal;text-decoration: none}
span.cls_002{font-family:"Calibri Bold",serif;font-size:24.1px;color:rgb(0,0,0);font-weight:bold;font-style:normal;text-decoration: none}
div.cls_002{font-family:"Calibri Bold",serif;font-size:24.1px;color:rgb(0,0,0);font-weight:bold;font-style:normal;text-decoration: none}
span.cls_003{font-family:"Calibri",serif;font-size:24.1px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration: none}
div.cls_003{font-family:"Calibri",serif;font-size:24.1px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration: none}
tetestset
<?php
class Cleargo_Orderexport_Block_Sales_Order_Grid extends
Mage_Adminhtml_Block_Sales_Order_Grid
{
protected function _prepareMassaction()
{
parent::_prepareMassaction();
if (Mage::getStoreConfig("order_export/export_orders/active")) {
$this->getMassactionBlock()->addItem('orderexport_seperator', array(
<?php
class Cleargo_Orderexport_Block_Sales_Order_Grid extends
Mage_Adminhtml_Block_Sales_Order_Grid
{
protected function _prepareMassaction()
{
parent::_prepareMassaction();
if (Mage::getStoreConfig("order_export/export_orders/active")) {
$this->getMassactionBlock()->addItem('orderexport_seperator', array(
<?php
$_product = $this->getProduct();
$attribute_set_id = $_product->getAttributeSetId();
$attribute_set_name = Mage::getModel('eav/entity_attribute_set')->load($attribute_set_id)->getAttributeSetName();
$product_id = $_product->getId();
//echo $product_id;
//if it is a printer, directly get printer's related product (cartridge)
if ($attribute_set_name=='printers'){
Index: app/code/local/Cleargo/Ventica/controllers/NewsletterController.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- app/code/local/Cleargo/Ventica/controllers/NewsletterController.php (revision )
+++ app/code/local/Cleargo/Ventica/controllers/NewsletterController.php (revision )
@@ -5,6 +5,11 @@
//--- get data from url
$email = $this->getRequest()->getParam('email');
@leo-leung
leo-leung / styles.css
Created September 18, 2013 05:26
test
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to