magento import products
<?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 case when then
$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 中获取 Zend_Db_Select对象中的SQL语句
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支付宝插件和安装方法
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 ......
Most Downloaded FREE Magento Extensions
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 extentions
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......
Sending Email in Magento
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......
Force customer login
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 ......
Playing with Magento’s Entity Backend Model
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......
How long customer is inactive ?
$customer = Mage::getSingleton('customer/session')->getCustomer(); $log = Mage::getModel('log/customer')->load($customer->getId()); $inctive_time = now() - $log->getLastVisitAt(); ......
- Page:7/26 258 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(751)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)