上一页 1 2 3 4 5 6 7 8 9 ··· 96 下一页
摘要: 1. 地址保存 $_custom_address = array ( 'firstname' => 'Branko', 'lastname' => 'Ajzele', 'street' => array ( '0' => 'Sample address part1',... 阅读全文
posted @ 2015-09-06 21:44 幻星宇 阅读(515) 评论(0) 推荐(0) 编辑
摘要: magento判断用户登录Magento 登陆之后返回登录之前的页面magento 在登陆后一般会自动跳转到 My Account 页面但是经常会有需求 就是登陆自动跳转到 之前的页面里面工具/原料php+mysql+apache方法/步骤只要加代码Mage::getSingleton('custo... 阅读全文
posted @ 2015-09-06 21:43 幻星宇 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 上次做项目的时候,遇到 查询结果为 数组。因为条件原因,需要用$where['_string'] 去组合查询。进而用到把数组变成单引号的字符串。举例:查询返回的数组为:$projectcode_array = ["20130719","20130718","20130717"];通过function... 阅读全文
posted @ 2015-08-30 16:19 幻星宇 阅读(3105) 评论(0) 推荐(0) 编辑
摘要: 查:$read = Mage::getSingleton("core/resource")->getConnection('core_read');$sql = "select * from `abc`"; $result = $read->fetchAll($sql); //fetchRow查找一... 阅读全文
posted @ 2015-08-26 21:57 幻星宇 阅读(487) 评论(0) 推荐(0) 编辑
摘要: event: 1 //得到事件 2 function getEvent(evt){ 3 4 if (evt && typeof(evt) != "undefined") { 5 var e = window.event || arguments.callee.caller.... 阅读全文
posted @ 2015-08-26 09:49 幻星宇 阅读(340) 评论(0) 推荐(0) 编辑
摘要: So it turns out the problem was that Apache didn't have write permissions to theWEBROOT/vardirectory, so Magento was using its cache from the system/t... 阅读全文
posted @ 2015-08-24 19:35 幻星宇 阅读(504) 评论(0) 推荐(0) 编辑
摘要: jsapi中跳转到微信支付中触发的方法是js中的getBrandWCPayRequest方法。改方法中的返回结果msg提示信息如下:err_msg:get_brand_wcpay_request:ok 支付成功 get_brand_wcpay_request:cancel 支付过程中用户取消 ge... 阅读全文
posted @ 2015-08-24 16:33 幻星宇 阅读(1952) 评论(2) 推荐(0) 编辑
摘要: 在CentOS 6.x 的系统中,是集成xdebug 的,yum install php-pecl-xdebug如果是CentOS.5 也可能通过安装安装 epel 来安装rpm -ivhhttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-relea... 阅读全文
posted @ 2015-07-29 18:22 幻星宇 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 1.下载对应的接口demo,注意退款有无密和有密2.根据接口代码编写,要注意notify_url和return_url不能带有额外参数,并且notify_url中途不能含有跳转,否则post数据会丢失3.密钥的配置,根据openssl生成密钥和私钥,同时在账号里面根据要求配置好。alipay公钥是固... 阅读全文
posted @ 2015-07-29 17:58 幻星宇 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 错误描述:#yum install libmcrypt libmcrypt-devel mcrypt mhashSetting up Install ProcessNo package php-mcrypt available.Error: Nothing to do我们会看到centos yum从... 阅读全文
posted @ 2015-07-29 10:58 幻星宇 阅读(3818) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 96 下一页