存档于 '开源系统'
提高Magento运行速度(转)
发表时间:19. Aug, 2010 作者:Freddie.
一、Magento Compiler可以提高 25% 到 50% 速度
Magento的性能一直是大家比较关心的焦点,现在Magento最新的版本 1.3.2.2 增加了 Magento Compiler 模块,根据官方的资料,该模块可以提高 25% 到 50% 的性能.
我也在测试网站上激活该模块,感觉效果还是不错,目前还是beta版本,不过还是推荐使用Magento的朋友试试。
该模块是从版本 1.3.2.1 开始引入的,如果你的Magento网站已经是1.3.2.1或者更高的版本,该模块已经预装好了,可以直接从后台激活该模块:
System -> Tools -> Compilation (Beta)
然后选 Run Compilation Process, 大约数分钟之后会出现 Compilation Successfully finished 就可以了。如果使用有问题,只需在同一页面下按 Disable 按钮就可以了。
详细内容
解决Magento“Must specify JSON encoded source for decoding”的问题!
发表时间:31. Jul, 2010 作者:Freddie.
在更改magento属性系列的时候,出现了这样的问题:
“Must specify JSON encoded source for decoding”
下面是报错的内容:
#0 /home/mycpanelusername/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/SetController.php(99): Zend_Json_Decoder::decode(NULL)
#1 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Catalog_Product_SetController->saveAction()
#2 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch(’save’)
#3 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/mycpanelusername/public_html/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/mycpanelusername/public_html/index.php(52): Mage::run()
#6 {main}
Google了一下,问题解决了:
Try turning off your cache in magento (in the admin->System->Cache Management->Disable All Cache) and then navigate to your cache directory (\var\cache) and manually delete everything in that directory. You can delete the stuff in (\var\session) for [...]
详细内容
Multi-language wordpress plugin :qTranslate
发表时间:16. Apr, 2010 作者:Freddie.
Sorry, this entry is only available in 中文.
详细内容
CentOS 5.3安装WordPress 2.7.1
发表时间:18. Dec, 2009 作者:Freddie.
1. 最小化安装centos 5.3
2. yum install php mysql httpd mysql-server php-mysql
3. 下载最新版本的 WordPress,使用 wget http://cn.wordpress.org/wordpress-2.7.1-zh_CN.zip
4. 解压使用 tar zxvf latest.tar.gz,得到 wordpress 目录
5. 将该目录移动到/var/www目录下,使用 mv wordpress /var/www/
6. cd /var/www/wordpress
7. 拷贝wp的配置文件, cp wp-config-sample.php wp-config.php
8. vim wp-config.php
9. 修改如下参数 // ** MySQL settings ** //
define(’DB_NAME’, ‘wordpress’); // 数据库名
define(’DB_USER’, ‘wpuser’); // 您的 MySQL 用户名
define(’DB_PASSWORD’, ‘wpuser′); // …以及密码
define(’DB_HOST’, ‘localhost’); // 99% 你不用修改
10. /etc/init.d/mysqld [...]
详细内容
magento添加多货币 How to Setup a Dual Currency Magento Shop
发表时间:18. Dec, 2009 作者:Freddie.
Login as admin and select System->Configuration, then select ’Currency Setup’ from GENERAL section,
then select Base currency, Default display currency, allowed currencies (press Control Key and Click the needed currencies) and ’Save Config’
Now come to “System->Manage Currencies’ menu
Click in Import currencies to load the exchange rate(s).
You are done. Visit the frontend and reload (you may need [...]
详细内容
显示最新评论的扩展Magento
发表时间:18. Dec, 2009 作者:Freddie.
Key:magento-community/Morningtime_LatestReviews
Morningtime Latest Reviews
Add a table of latest reviews to your homepage CMS. Or display a product listing sorted by ratings.
== HOW DOES IT WORK? ==
You need to have products with reviews/ratings. This extensions can then show the reviews in a list.
== INSTALLATION ==
- Get key from Magento Connect
- Install via Connect Manager
- Refresh cache
- Re-login [...]

