magento 1.9 用户无法登录 magento 1.9 customer can not login

Looks like an issue with form-key Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under Find: <ul class=”form-list”> And paste this right after the code above the following: <input name="form_key" type="hidden" value="<?ph… Read More

禁止点击背景而关闭bootstrap弹出框 Disable click outside of bootstrap model area to close modal

On Options chapter, in the page you linked, you can see the backdrop option. Passing this option with value 'static' will prevent closing the modal. As @PedroVagner pointed on comments, you also can pass {keyboard: false} to prevent closing the modal by pressing Esc. If you opening the modal by js use: $('#myModal').modal({backdrop: 'static', keyboard:… Read

调整谷歌reCAPTCHA大小 How to resize the Google noCAPTCHA reCAPTCHA

最近调试reCAPTCHA的时候,发现手机版的reCAPTCHA会不适应大小: 经修改后应该为: 代码如下: .g-recaptcha {transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-transform-origin:0 0;} 或者: @media screen and (max-height: 575px){ .g-recaptcha {transform:scale(0.77);-webkit-transform:scale(0.77);transform-origin:0 0;-webkit-tran… Read More

Magento 获取已登录用户的信息– Get Logged In Customer’s Full Name, First Name, Last Name and Email Address

// Check if any customer is logged in or not if (Mage::getSingleton('customer/session')->isLoggedIn()) { // Load the customer's data $customer = Mage::getSingleton('customer/session')->getCustomer(); $customer->getPrefix(); $customer->getName(); // Full Name $customer->getFirstname(); // First Name $customer->g… Read More

Magento 主题结构 The structure of a Magento theme

The structure of a Magento theme The files in a Magento theme are divided into two main directories: app and skin, as shown in the following screenshot: The following is the description of the two directories: app: The app/design/frontend/base/default/ directory contains the layout, translation, and template files skin: The skin/frontend/base/defa… Read More

Bootstrap3 入门模板 Start Bootstrap Templates

Creative A one page creative theme. Live Preview | 下载 Download View Source on GitHub Clean Blog A clean blog theme. Live Preview | 下载 Download View Source on GitHub Agency A one page agency theme. Live Preview | 下载 Download View Source on GitHub Freelancer A one page freelancer theme. Live Preview | 下载 Download View Source on GitHub Scrolling Nav A scrolling nav… Read More

命令行导出和导入数据库 How to export and import MySQL database using command line Interface

导出 : To export MySQL database, open putty on Windows or Terminal in either MAC or Linux OS, Go to the directory where you want this file to be stored using following command, cd /home/myfiles/ Then use below command to export a databse, mysqldump --database --user=root --password your_db_name > export_into_db.sql You will be asked about root password… Read

安装完Ubuntu 15.04桌面后要做的15件事

本教程适用于在自己的电脑上安装了 Ubuntu 15.04 “Vivid Vervet” 桌面的新手,这里会告诉你安装之后应该做哪些事情,来自定义你的系统和安装一些基本程序作为日常使用。 1. 启用Ubuntu额外软件库并更新系统 在刚装好Ubuntu之后你应该要关心的第一件事是启用Canonical的官方合作伙伴提供的Ubuntu额外软件库,并且通过最近一次的安全补丁和软件更新来保持系统是最新状态。 要完成这一步,依次从左边菜单中打开System Settings -> Software and Updates工具,并检查所有Ubuntu软件和其他软件库(Canonical 的合作伙伴所提供),点击关闭按钮并等待… Read More

iTerm – 让你的命令行也能丰富多彩

今天要给大家介绍一个工具: iTerm。这次我们讲的和开发技术无关,只是一个工具。但虽然是一个工具,却能让你的功力提升一个层级。下面我们就来一看究竟。每一位开发者都难免要用到命令行,从 git 版本库操作,到运行一些脚本,都离不开命令行。虽然现在的图形界面已经很强大了,但在很多情况下,使用命令行仍然是最快捷的方式。 iTerm 简介 iTerm 是一款完全免费的,专为 Mac OS 用户打造的命令行应用。我们可以打开它的官方网站看一看 www.iterm2.com: 很有极客风格吧,我们可以点击 Downloads 进入下载页面,选择一个适合你系统的版本,我们这里下载 2.9 版本,这也是做出重大改进的一版: 下载下来之后,我… Read More

网页性能管理详解

你遇到过性能很差的网页吗? 这种网页响应非常缓慢,占用大量的CPU和内存,浏览起来常常有卡顿,页面的动画效果也不流畅。 你会有什么反应?我猜想,大多数用户会关闭这个页面,改为访问其他网站。作为一个开发者,肯定不愿意看到这种情况,那么怎样才能提高性能呢? 本文将详细介绍性能问题的出现原因,以及解决方法。 一、网页生成的过程 要理解网页性能为什么不好,就要了解网页是怎么生成的。 网页的生成过程,大致可以分成五步。 HTML代码转化成DOM CSS代码转化成CSSOM(CSS Object Model) 结合DOM和CSSOM,生成一棵渲染树(包含每个节点的视觉信息) 生成布局(layout),即将所有渲染树的所有节点进行… Read More