自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 如何清除测试的magento产品,让magento数据库ID从1开始呢?

如何清除测试的magento产品,让magento数据库ID从1开始呢?打开你的phpmyadmin,执行以下sql:TRUNCATE TABLE cataloginventory_stock_item;TRUNCATE TABLE cataloginventory_stock_status;TRUNCATE TABLE cataloginventory_stock_sta

2014-03-17 17:19:01 485

转载 iptables屏蔽ip

单个IP的命令是    iptables -I INPUT -s 124.115.0.199 -j DROP    封IP段的命令是    iptables -I INPUT -s 124.115.0.0/16 -j DROP    iptables -I INPUT -s 124.115.3.0/16 -j DROP    iptables -I INPUT -s 124.1

2014-03-15 11:46:29 831

转载 magento下单后无法自动发邮件

/app/code/core/Mage/Checkout/Model/Type/onepage.phpif (!$redirectUrl && $order->getCanSendNewEmailFlag())   给if条件加上注释。//   if (!$redirectUrl && $order->getCanSendNewEmailFlag())  就可以了

2014-03-04 16:31:21 1900

转载 magento 找不到”Place Order”按钮問題

1) 打开该主题下的布局文件checkout.xml2)搜索"One page checkout order review block",在这里加上这个块。最后类似,One page checkout order review block-->            One Page Checkout Overview        

2014-02-23 16:08:24 568

转载 magento批量改价

UPDATE catalog_product_entity_decimal  set value=value-0.3 where attribute_id=68update catalog_product_index_price set price=price , final_price=final_price-0.3 , min_price=min_price-0.3 , max_price

2014-02-23 16:07:49 688

转载 神奇的magento商品详细页product page 404错误

在phpmyadmin  sql中运行,注意数据表名称改成report_event_types你所定义的前辍INSERT INTO `report_event_types` (`event_type_id`, `event_name`, `customer_login`) VALUES(1, 'catalog_product_view', 1),(2, 'sendfriend_

2014-02-23 16:07:15 753

转载 magento paypal 无法处理付款

由于magento 设置了address_overyried=1,所以会出现下面这样的提示Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested th

2014-02-23 16:06:52 1369

转载 让Magento后台可以看到订单产品图片

简单修改下代码可以实现Magento后台订单显示产品图片,这样可以方便查找产品。1.打开 app\design\adminhtml\default\default\template\sales\order\view\items.phtml  进行编辑,大概45行处找到以下代码:helper('sales')->__('Item Status') ?>在这段代码上面插入一行,写上:

2014-02-23 16:06:14 740

转载 magento 出现“ Cannot initialize the indexer process ”错误的解决方法

解决方法:在phpMyAdmin中运行如下:ALTER TABLE catalog_category_entity ENGINE=INNODB;ALTER TABLE core_store ENGINE=INNODB;DELETE FROM catalog_category_product_index;Product Flat D

2014-02-23 16:05:37 699

转载 magento 数据库常用语句

mysql查看网站是否有重复产品语句select value,count(*) from `catalog_product_entity_varchar`where entity_type_id=4 and attribute_id in(select attribute_id from `eav_attribute` where entity_type_id=4 and attr

2014-02-23 16:04:38 570

转载 magento 安装配置

错误提示如下          o Path "/var/www/magento/app/etc" must be writable.          o Path "/var/www/magento/var" must be writable.          o Path "/var/www/magento/media" must be writable.如果出现这

2014-02-23 16:03:09 1277

转载 magento URL大小写404解决

默认地址是:http://www.google.com/abc.html现在要求:http://www.google.com/ABC.html,也能访问。在这种情况下Magento默认是不支持的。那怎么办?首先找到:app/code/core/Mage/Core/Model/Resource/Url/Rewrite.php,这个文件的public function loadBy

2014-02-23 16:00:39 845

转载 magento 设自定义选项,选择后价格变0

到/base/catalog/product/view/options.phtml文件复制到当前模版

2014-02-23 15:58:53 580

转载 301代码

apache整站跳转Redirect 301 / http://www.new-site.com/nginx 整站跳转rewrite ^/(.*)$ http://www.abc.com/$1 permanent;没有www跳到有wwwRewriteCond %{http_host} ^abc.com [NC]RewriteRule ^(.*)$ h

2014-02-23 15:57:31 1768

转载 【解决】Starting MySQL.Manager of pid-file quit without updating fi[失败]

将mysql安装可能遇到的错误整理了下,具体可以参考《部署Centos5.4服务器–MySql篇》昨天再次安装mysql,一切顺利,不过在启动mysql的时候,显示以下错误:Starting MySQL.Manager of pid-file quit without updating fi[失败]因为之前机子装过mysql,所以可能存在遗留文件,我删除了/ect/my.cnf,然后,使用下面方法

2014-02-23 15:55:19 5884

转载 mysql 1045错误

登录mysql时出错#mysql -u rootERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)解决方法1、先进入mysql#mysql -p2、进入mysql后添加语句mysql> set password for 'root

2014-02-23 15:54:00 440

转载 新开cpanel面板 500

I’ve was playing with EasyApache in a WHM install recently and after the upgrade I came across a strange error:SoftException in Application.cpp:357: UID of script "/home/mysite/public_html/i

2014-02-23 15:53:23 602

转载 CentOS下 军哥LNMP一键安装包0.9 一键安装命令

wget -c http://soft.vpser.net/lnmp/lnmp0.9.tar.gz && tar zxvf lnmp0.9.tar.gz && cd lnmp0.9 && ./centos.sh

2014-02-23 15:52:21 652

转载 sendmail发送邮件很慢的解决方法

因为网站搭建在国外vps,所以备份工作就是重中之重了,我采用的备份插件是BackUpWordPress插件,因为他可以全站备份。安装好插件后,这才发现无法发送邮件,原来centos5.6版本的操作系统默认没有安装sendmail服务器。安装sendmail服务器的很简单,只需输入以下命令即可:yum install sendmail这个时候依然无法发邮件,还得修改一下php

2014-02-23 15:50:48 4436

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除