magento分类下的博客

magento import products

piaoling  2011-08-16 11:39:31

<?php define('DIRNAME', dirname(__FILE__)); require dirname(__FILE__) . '/../../app/Mage.php'; require_once dirname(__FILE__) . '/../setting/classes/debug.php'; require_once dirname(__FILE__) . '/../setting/classes/tool.php'; require_once dirname(__FILE__) .DS.'classes'.DS.'media.php'; require_once dirname(__FILE__) .DS.'classes'.DS.'product.php'; require_once dirname(__FILE__) .DS.'classes'.DS.'price.php'; require_once dirname(__FILE__) .DS.'classes'.DS.'converAttribute.php'; def......

类别 :  magento(258)  |  浏览(3902)  |  评论(0)

magento case when then

piaoling  2011-08-10 14:17:09

$lastFixed='zzzzzzzzzzzzzzzzzzzz';             $conditionSelect->joinLeft(array('_table_score_cus'=>'catalog_product_entity_varchar'),"_table_score_cus.entity_id=e.entity_id and _table_score_cus.store_id='0' and _table_score_cus.attribute_id = '$productScoreId'",array('score'=>new Zend_Db_Expr("CASE WHEN _table_score_cus.value IS NULL THEN '$lastFixed' ELSE _table_score_cus.value END"))); ......

类别 :  magento(258)  |  浏览(3931)  |  评论(0)

Magento 中获取 Zend_Db_Select对象中的SQL语句

piaoling  2011-08-10 13:57:58

magento是基于Zend Framework的,所以底层用的还是zend的zend db 今天在分析Magento源代码的时候,在文件app/code/core/Mage/Catalog/model/Resource/Eav /Mysql4/Config.php 中追踪到下面的函数 getAttributesUsedInListing() 01 /** 02 * Retrieve Product Attributes Used in Catalog Product listing 03 * 04 * ......

类别 :  magento(258)  |  浏览(3988)  |  评论(0)

magento支付宝插件和安装方法

piaoling  2011-08-08 21:03:20

magento支付宝插件和安装方法 发布27 八月 2010. Tags: Magento   看到magento官方网站已经提供支付宝(alipay)支付网关扩展模块下载了,并且开源免费,真是太好了,以前我找了很久都没找到.方便大家做电子商务网站啦,哈哈.分享一下magento支付宝插件和安装方法 下载地址: http://www.magentocommerce.com/magento-connect/cosmocommerce/extension/2226/alipay-payment-gateway 从这个网站点Get Extension Key   ,需要注册才能获得.可以试试我注册获得的是(  magento-community/Cosmo_Community_AlipayPaymentGateway ......

类别 :  magento(258)  |  浏览(5395)  |  评论(0)

Most Downloaded FREE Magento Extensions

piaoling  2011-08-08 17:57:04

Most Downloaded FREE Magento Extensions February 20, 2010 techdad Leave a comment Go to comments MagentoConnect Manager 253356 Modern Theme 93723 Fontis WYSIWYG Editor 48093 Magento Community Modules – German (Germany) Language Pack 47591 Magento Community Modules – French (France) Language Pack 38250 Blue Skin 37507 Magento Classic Theme – 10 colors available ( Magento 1.4 compatible ) 29194 Blog Exten......

类别 :  magento(258)  |  浏览(130120)  |  评论(1)

magento extentions

piaoling  2011-08-08 11:54:00

Lg lightBox key:http://connect20.magentocommerce.com/community/IG_LightBox             url:http://www.magentocommerce.com/magento-connect/IDEALIAGroup/extension/1843/ig-lightbox 2.Magento Classic Theme Free (10 colors included)     key:http://connect20.magentocommerce.com/community/magento_classic_theme_free magento-community/HM_DeveloperToolbar     url:http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/928/magento-classic-theme 3.HelloWired Free Theme 1.4  &nbs......

类别 :  magento(258)  |  浏览(4708)  |  评论(0)

Sending Email in Magento

piaoling  2011-08-05 15:42:18

Couple of days back I had to work with mail sending in magento e-commerce. Here I am giving a complete example of how to do that:- Magento sends mails with it’s model “core/email_template”. Here is an example code for your understanding:- 01 /** 02   * $templateId can be set to numeric or string type value. 03   * You can use Id of transacti......

类别 :  magento(258)  |  浏览(3852)  |  评论(0)

Force customer login

piaoling  2011-08-05 15:40:27

I had a requirement like customer support will able to login as any customer. Here is the code snippet i used to force customer support to login as normal user. 1 $customerId = (int) $this->getRequest()->getParam('id'); 2 $customer   = Mage::getModel('customer/customer') 3                   ->load($customerId); 4   ......

类别 :  magento(258)  |  浏览(3836)  |  评论(0)

Playing with Magento’s Entity Backend Model

piaoling  2011-08-05 14:15:44

Here I come to know about an awesome feature of Magento. When we add any eav attribute to an entity we can give a backend model name. Whenever Entity will be loaded magento initiates Mage_Eav_Model_Entity_Attribute model for each attribut. If it finds any backend model name for a eav attribut, it loads the corresponding model and based on what it is doing it will call different method from that model. Here I am giving a complete example how you can use this feature. We will add an attribue to address model as “address_verified” , use a backend model to set this value whenever th......

类别 :  magento(258)  |  浏览(3617)  |  评论(0)

How long customer is inactive ?

piaoling  2011-08-05 14:10:05

  $customer = Mage::getSingleton('customer/session')->getCustomer();   $log = Mage::getModel('log/customer')->load($customer->getId());   $inctive_time = now() - $log->getLastVisitAt();   ......

类别 :  magento(258)  |  浏览(3653)  |  评论(0)
  • Page:7/26  258 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类