自定义博客皮肤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)
  • 资源 (2)
  • 收藏
  • 关注

转载 yii2记数,自动累加

文章一般都有统计浏览次数的需求,一般小型项目的做法就是直接 update 数据库中的某个字段。在 Yii 中怎么实现呢?请往下看:实现方式一Yii2 中有这个 updateAllCounters 静态方法,这种方式是最快并且最省事的实现方式,代码示例如下:Topic::updateAllCounters(['view_count' => 1], ['id' => $id]);// 实...

2018-03-13 16:38:22 5148 1

转载 php检测银行卡号是否有效,能够校验16位或19位银行卡卡号。

Luhn算法会通过校验码对一串数字进行验证,校验码通常会被加到这串数字的末尾处,从而得到一个完整的身份识别码。我们以数字“7992739871”为例,计算其校验位:从校验位开始,从右往左,偶数位乘2(例如,7*2=14),然后将两位数字的个位与十位相加(例如,10:1+0=1,14:1+4=5);把得到的数字加在一起(本例中得到67);将数字的和取模10(本例中得到7),再用10去

2018-02-04 12:27:02 6237

转载 YII framework下基于角色的访问控制(RBAC),权限设置 yii下,filters()和accessControl()是YII基本的访问控制体系, public function filt

yii下,filters()和accessControl()是YII基本的访问控制体系,public function filters(){    return array(           'accessControl',    );}public function accessControl(){    return array(        arra

2017-06-06 10:25:32 549

转载 linux ./configure,make,make install的作用

./configure,make,make install的作用[日期:2011-02-12]来源:Linux社区  作者:Linux[字体:大 中 小]这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产生的程序的安装步骤。./configure是用来检测你的安装平台的目标特征的。比如它会检测你是不是有CC或G

2016-12-09 11:33:36 271

原创 Magento: Item (Mage_Sales_Model_Order) with the same id “1” already exist

protected function _prepareCollection(){}里在    $this->setCollection($collection); 前面加上  $collection->getSelect()->group('main_table.entity_id');

2016-05-30 14:14:35 644

转载 magento changeforgotten 空白问题

MAGENTO SECURITY PATCH SUPEE-6788 - INSTALLATION ISSUESMagento has released a new security patch SUPEE-6788, and we would like to share our experience with its installation troubleshooting. We

2016-05-24 10:59:47 1118 1

转载 magento 订单order 增加栏目

protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->getSelect()->joinLeft('sales_flat_order_address', 'mai

2016-05-18 10:43:33 614

转载 create a custom shipping method in magento

In this blog post, we will see how to create a custom shipping method in magento.Creating a custom shipping method is very easy, you just need to know all the useful functions to be used inside th

2016-04-25 10:28:48 676

转载 magento创建自定义运费

In this tutorial, we will use Magento’s powerful shipping-method code abstraction to create a shipping carrier. We will create three shipping methods that provide a fixed shipping price, allow for fre

2016-04-25 09:33:53 1187

转载 js跨域访问,No ‘Access-Control-Allow-Origin‘ header is present on

js跨域访问,No ‘Access-Control-Allow-Origin‘ header is present on在本地用ajax跨域访问请求时报错:XMLHttpRequest cannot loadhttp://www.zjblogs.com/. No 'Access-Control-Allow-Origin' header is present on

2016-04-22 13:37:27 15612

原创 magento优惠码提交不了

glamshop\default\template\checkout/cart/coupon.phtml type="button" title="Apply Coupon" onclick="discountForm.submit(false)" value="Apply Coupon">Apply Coupon改成 title="Apply Coupon" onclic

2016-02-19 18:02:19 316

转载 让magento操作支持直接操作数据库方法

让magento操作支持直接操作数据库方法时间:2013-12-07 23:46来源:未知 作者:最模板 点击:912次以下直接提供让magento操作支持直接操作数据库修改方法, 查: $read = Mage::getSingleton(core/resource)-getConnection(core_read); $sql = select * from `abc`;

2016-02-15 14:02:35 545

转载 Source model metarobots/product_attribute_source_unit not found for attribute

转自:http://blog.csdn.net/ddjohn/article/details/7454589在使用Yoast_Robot的时候发现一个致命错误 Source model metarobots/product_attribute_source_unit not found for attribute 其实已经删了,后来才发现原来属性没删,core_resource里面也没清理

2016-01-23 13:47:59 347

转载 magento 本地后台登录不了,前台不能登陆

C:\xampps\htdocs\html\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php  大概114行 注释掉 // if (isset($cookieParams['domain'])) {        //     $cookieParams['domain'] = $cookie->getDomain();

2016-01-22 18:28:24 972

原创 magento插件下载

http://freegento.com/

2016-01-05 17:27:37 414

原创 magento两个比较好的运费插件

1、Webshopapps地址:https://www.magentocommerce.com/magento-connect/webshopapps-matrixrate-1-multiple-table-rates-extension.html2、Owebia-Shipping 2地址:https://www.magentocommerce.com/magento-

2016-01-05 17:11:26 1280

转载 magento 503问题

Magento 503错误解决方法  2013-04-02 11:04:37|  分类: Magento学习|举报|字号 订阅    下载LOFTER客户端Service Temporarily UnavailableThe server is

2016-01-04 09:16:35 410

原创 后台订单添加weight等栏目

后台订单添加weight等栏目core/mage/adminhtml/Block/Sales/Order/Gird.php订单表主要是取sales_flat_order_grid表里的数据要取别的数据就要连表原来的protected function _prepareCollection()    {        $collection = Mage::g

2015-12-30 11:33:25 370

转载 数据库链接错误 : Access denied for user 'root'@'localhost' (using password: YES)

数据库链接错误 : Access denied for user 'root'@'localhost' (using password: YES)D:\zhaosheng\SpeedPHP\Drivers\mysql.php on line 9287.       * @param dbConfig  数据库配置 88.       */ 89.      public

2015-12-18 14:50:21 1807

magento学习资料

别人翻译的anna的,对初学者挺有用的。

2016-01-05

Owebia-Shipping 2(magento插件)

很不错的一个运费插件,非常灵活,可以根据配送地址,接收地址,价格,重量,用户群组来灵活设置运费。

2016-01-05

空空如也

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

TA关注的人

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