2015年7月23日

mysql join update

摘要: SELECT CONCAT('UPDATE free_for_demo_orders SET product_id=',product_id,',order_created_time=','"',TIMESTAMPADD(HOUR, 8, sales_order.created_at),'" WHE 阅读全文

posted @ 2015-07-23 18:52 冯亮 阅读(302) 评论(0) 推荐(0)

2015年6月10日

创建渐进式jpeg图片

摘要: http://blog.jobbole.com/44038/ 阅读全文

posted @ 2015-06-10 11:53 冯亮 阅读(734) 评论(0) 推荐(0)

2015年2月13日

jquery实现文字选择器

摘要: $("div:contains('John')").css("text-decoration","underline"); 阅读全文

posted @ 2015-02-13 10:57 冯亮 阅读(1385) 评论(0) 推荐(0)

2015年2月7日

通过属性集名称获取属性集id

摘要: Mage::getModel('eav/entity_attribute_set')->load('属性集名称', 'attribute_set_name')->getAttributeSetId(); 阅读全文

posted @ 2015-02-07 11:37 冯亮 阅读(222) 评论(0) 推荐(0)

2014年11月24日

Item with the same id "98" already exist

摘要: 在magento项目中多次遇到这样一个错误:Item (Bluecom_Onefieldusername_Model_Customer) with the same id "98" already exist解决方案:(1) 新建一个类,必须继承Varien_Objectclass Mypackag... 阅读全文

posted @ 2014-11-24 14:27 冯亮 阅读(350) 评论(0) 推荐(0)

2014年11月10日

调magento自定义模板发邮件

摘要: 1. 设置邮件模板 ActiveCodeline custom email module activecodeline_custom_email1.html html ... 阅读全文

posted @ 2014-11-10 15:30 冯亮 阅读(1153) 评论(0) 推荐(0)

2014年9月4日

匹配数字逗号字符串的正则式

摘要: $pattern = '/.*\,?(10)\,?.*/';或者$pattern = '/(?:.+\,|^)(10)(?:\,.+|$)/'或者((10)\,.*)|(.*\,(10)\,.*)|(.*\,(10))|(10)oattern正则式可以匹配如下字符串中的数字10(1) '15,100... 阅读全文

posted @ 2014-09-04 15:48 冯亮 阅读(2221) 评论(0) 推荐(0)

2014年8月19日

剖析magento中关于Email模板的设置

摘要: public function send() { $emailTemplate = Mage::getModel('core/email_template'); // Send all emails from corresponding list while (!empty($this->_emai... 阅读全文

posted @ 2014-08-19 19:10 冯亮 阅读(816) 评论(0) 推荐(0)

在magento中发邮件

摘要: 1. 在system->Configuration->Store Email Addresses中设置General Contact的Sender Name、Sender Email。 Sender Name是邮件的发件人,Sender Email是发件人的邮件地址2. 在system->Conf... 阅读全文

posted @ 2014-08-19 18:58 冯亮 阅读(3122) 评论(0) 推荐(0)

使用after伪类清除浮动

摘要: 使用after伪类清除浮动.department li:after{content:".";height:0;visibility:hidden;display:block;clear:both;} 阅读全文

posted @ 2014-08-19 14:19 冯亮 阅读(206) 评论(0) 推荐(0)

导航