magento 好好玩】的更多相关文章

Magento更换服务器的方法   1.把magento的整个目录打包.上传到新服务器,把magento数据库导出,然后在新服务器上导入.如果导不进去的是因为magento的数据库使用了外键约束,通过phpmyadmin导入的时候会报错,在导出的sql文件上加一行 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; 2.修改magento的配置文件,位置在app/etc/local.xml,注意修改CDA…
一.安装报404错误 git clone 下最新代码,跳转到index/install 安装时出现404错误 需要把伪静态规则加到nginx配置文件中: # # The default server # server { listen ; #server_name _; #charset koi8-r; #access_log logs/host.access.log main; # Load configuration files for the default server block. i…
某实体新增字段handreturn_status,欲操作之: $order_info = Mage::getModel('sales/order')->load($order_id); //setData will faile $order_info->setData('handreturn_status', 2);  // old value 0 $order_info->save(); echo  $order_info->getData('handreturn_status'…
MAGENTO - APACHE SOLR INTEGRATION - PART II (SETUP) Tue, 03/01/2011 - 18:30 Tweet Development E-Commerce Magento Continuing with the short series about integrating Magento with Apache Solr (started in this post), we'll now see how to set up and put S…
不说话,直接上代码. css: #createGoDivBox{ display: none; } #createGoDivBox div{ background-color: #00A6C2; position: absolute; border-radius: 50%; } js: init(); function init(){ // 获取body var parBox = document.body || document.getElementsByTagName('body')[0];…
Magento学习第一课--目录结构介绍 一.Magento为何强大 Magento是在Zend框架基础上建立起来的,这点保证了代码的安全性及稳定性.选择Zend的原因有很多,但是最基本的是因为zend框架提供了面向对象的代码库并且有很好的团队支持.通过这个框架,Magento主要围绕三个基本点建立: 1. 灵活性:我们相信每一个解决方案都像它的商务支持一样是独一无二的.Magento的代码可以无缝定制的. 2. 可升级性:Magento可方便的实行定制且不丧失升级的能力,因为从社区中获得核心代…
当你需要扩展Magento的核心的功能时有两个选择: (1)重写(override)Magento的core classes (2)使用Magento的event-driven 机制 由于你只能重写一次Magento的core classes(如果你需要在多个module中重写相同core class就会出现错误),所以使用Magento的Event就大显神威了,它使得你的工作简易方便. Magento的event-driven机制中有两个非常重要的概念: (1)分发(dispatch)一个事件…
在magento中集成了Table rate表运费,这种运输方式.表运费就是我们自己写个运费表,根据距离和商品重量设置运费,制做成一张csv格式的表,导入到magento中,来实现运费的控制. 在我的新版Magento视频中有一集是讲运费设置的,大家可以看下如何开启表运费的设置.今天我们主要来看下如何制作这张表. 表运费启用的设置路径:后台 -> system -> configurable  -> shipping methods ->table rates 如下图,当你切换到w…
将原来网站文件中的var文件中的cache和session文件删除,将media中的缓存文件删除.然后将所有文件制作成一个压缩包,以减少文件体积,方便转移. 将压缩包转移到新的服务器域名指向的文件夹,解压. 导出magento的数据库,如果使用phpmyadmin导出,参考文章:http://www.hellokeykey.com/magento-export-database-via-phpmyadmin/ . 注意:看下你的数据库有无表前缀,在第9步的时候要写上. 在新空间创建新的数据库,导…
如何在magento后台设置paypal呢? 这边把整理的简单跟大家分享一下. 1.system->config-paypel1.1 Merchant Country 设置国家1.2 Email Associated with PayPal 设置账号1.3 Select a PayPal Solution1.4选用Website Payments Standard – PayPal processes all of your orders and you get paid ,前面打钩,其他的勾都…