- 博客(123)
- 资源 (1)
- 收藏
- 关注
![](https://csdnimg.cn/release/blogv2/dist/pc/img/listFixedTop.png)
原创 Magento Local Module 会覆盖 Community Module
当magento的一个页面不存在时 会显示一个404页面,是在System => Configure => Web => Default pages => Default No-route URL : cms/index/noRoute CMS No Route Page : 404 page1) 在 app/code/comunity下创建moduleVoya
2015-06-10 02:21:33
675
原创 magento 2 di.xml etc/ etc/area_code/ 区别
在开发过程中,写了di.xml,放入 etc/frontent/ 是工作的, 但是放入 etc/下 是不工作的<?xml version="1.0"?><config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framew...
2020-03-06 07:34:28
389
原创 Magento 2 set up website with sub folder
Magento 2 official document是使用的subdomain, 但是i这次是使用 sub_foldermee233.local/es-ESmee233.local/it-IT1. config at magento backend2. create sub folder in pub/it-IT pub/es-ESfoldermee233/pub/...
2020-01-13 18:33:59
426
原创 Magento 2 frontend create a new validation rule 新建前端认证规则
Magento 2 如何新建一个VALIDATION RULE比如输入框中 手机号验证新建模块pestle generate_module Mageplaza HelloWorld 0.0.1pestle generate_route Mageplaza_HelloWorld frontend helloworldpestle generate_view Magepla...
2019-12-16 10:40:43
237
转载 Magento 2 virtual type
https://magento.stackexchange.com/questions/33103/what-is-the-difference-between-type-and-virtualtype1. 是什么2. 适用场景1. 是什么\Class1 -》public function __construct(\Class2 $argOfClass1){...}...
2019-06-13 15:53:20
403
转载 Magento2 create new customer programmtically
Create new php file in Magento 2 root folder i.e create_new_customer.php. Include bootstrap.php which contains all the Magento class. Check whether the email address is already registered or not. I...
2018-11-27 17:24:45
328
原创 Magento2使用
最近一段时间做了四个M2的项目, M2 使用全新的composer包管理, 大量使用外部库。总体感觉比M1更加OPEN。1. 重写了M1的支付模块2. 重写了发票
2018-04-08 20:54:16
372
转载 ubuntu 16.04安装PHPSTORM
https://www.linuxbabe.com/desktop-linux/install-phpstorm-ubuntu-15-10
2016-07-27 13:55:38
5179
原创 Magento Mysql import data - error - foreign key constraint failed
max-allowed-packet = 2048Mtmp-table-size = 2048Mmax-heap-table-size = 2048Mmax-connections = 500
2016-07-27 10:52:14
442
原创 jquery ajax
html>html lang="en">head> meta charset="UTF-8"> title>title>head>body>script src="jquery.min.js">script>script> var returnJson = '[{"id":"1","sku":"24-MB01","name":"Joust Duffle Bag
2016-01-29 11:56:47
404
转载 ubuntu 12.04 升级 mysql5.5 到 mysql 5.6
echo "deb http://repo.mysql.com/apt/ubuntu/ precise mysql-apt-config" | sudo tee /etc/apt/sources.list.d/mysql.listecho "deb http://repo.mysql.com/apt/ubuntu/ precise mysql-5.6" | sudo tee /etc/apt/s
2015-12-28 11:27:11
2780
原创 mysql5.6 download link
http://cdn.mysql.com//archives/mysql-5.6/mysql-5.6.8-rc-linux2.6-x86_64.tar.gz
2015-12-04 11:20:04
499
原创 Magento2 create a new module
1. download from magento website, it can not work2. download magento2 from github https://github.com/magento/magento2 using branch merchat_beta3. create a new module following https://github.com/a
2015-12-01 14:42:41
871
转载 MySQL数据库出现The server quit without updating PID file.
http://www.cnblogs.com/lyongde/p/3725502.html返回数据库目录查看数据权限发现全是root.root,重新设置数据权限:chown mysql.mysql /data/mysql/,重启mysql服务/etc/init.d/mysql start,问题解决。;
2015-11-30 17:03:09
613
原创 PHP5 mcrypt php5enmod
ubuntu apt-get install php5-mcrypt后PHPINFO没有出现。但是mcrypt.so mcrypt.ini都存在需要运行 php5enmod mcrypt重启APACHE
2015-11-25 11:26:27
931
原创 PHPstorm
phpstorm 10https://www.jetbrains.com/phpstorm/download/index.html以前的版本https://confluence.jetbrains.com/display/PhpStorm/Previous+PhpStorm+Releases
2015-11-24 15:10:38
662
原创 git pull 报错 EOF
git clone https://davis.du@gitlab.bluecomdev.net:44321/kipsta/kipsta.git --depth 1
2015-11-19 17:05:42
1596
原创 CURL PHP POST raw data
$ch = curl_init();curl_setopt($ch, CURLOPT_URL, "http://localhost/myphp/dump.php" );curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1 );curl_setopt($ch, CURLOPT_POST, 1 );cur
2015-11-18 16:25:36
5204
转载 magento show cron job list
https://gist.github.com/werdan/5827225 // shell/listAllCron.php require_once 'abstract.php'; class Mage_Shell_CronLister extends Mage_Shell_Abstra
2015-11-18 16:24:32
809
原创 magento wysiwyg thumbnail 缩略图无法显示
但是插入图片是起作用的。而且可以看到图片。解决方法: chmod 777 media/wysiwyg/.thumbs/因为是挂载盘,都是nobody所以会出现这个问题。具体的为什么需要777 后续跟进
2015-11-18 13:51:36
1222
原创 magento event lisetner - sales_order_creditmemo_refund>
module/config.xml Alanstormdotcom_Helloworld_Model_Observer credit
2015-11-17 13:14:04
746
转载 magento sql 4G 导入报错
http://injustfiveminutes.com/2013/02/14/errors-restoring-mysql-database-dump-on-wamp-environment/Errors restoring MySQL database dump on WAMP environmentYou have maybe happened to get
2015-11-04 17:51:45
2089
转载 Zabbix
http://www.ttlsa.com/zabbix/zabbix-pdf-new-v2/Zabbix从入门到精通中文手册PDF更新预告距离上一个版本发布已经过去了9个多月,这期间zabbix文章也增加了不少。应该更新《Zabbix从入门到精通》这本PDF了。BTW发布的这几个月得到很多SA们的喜爱与支持,这让我非常的欣慰。本次的更新以增加新内容为主,修改错误为辅
2015-11-04 10:47:58
335
转载 redis 多数据库
http://www.ttlsa.com/redis/redis-database/一台服务器上都快开启200个redis实例了,看着就崩溃了。这么做无非就是想让不同类型的数据属于不同的应用程序而彼此分开。那么,redis有没有什么方法使不同的应用程序数据彼此分开同时又存储在相同的实例上呢?就相当于mysql数据库,不同的应用程序数据存储在不同的数据库下。redis下,
2015-11-04 10:46:01
1042
原创 aliyun 一键安装 备忘
http://market.aliyun.com/products/53690006/cmgj000262.html?spm=5176.775974333.2.5.pRRRsM
2015-11-02 13:24:09
340
转载 jquery lazy loading
http://www.mzwu.com/article.asp?id=3130 jQuery插件:Lazy Load使用示例-Mzwu.COM $(document).ready(function(){ $("img").lazyload({
2015-10-30 11:19:22
297
原创 magento profile 显示 + print sql profile
1. 安装magento2. 关闭缓存3. 4. index.php 去掉注释 Varien_Profiler::enable();5. .htaccess setEnv MAGE_IS_DEVELOPER_MODE true6. app/etc/local.xml 1
2015-10-28 11:25:53
519
转载 magento default cache using
http://blog.belvg.com/using-default-magento-cache.htmlMagento uses the following cache model: Mage::getModel(‘core/cache’) and 4 main methods: save($value, $key, $tags = array(), $lifeTim
2015-10-27 16:39:57
234
转载 XAMPP环境下用phpStorm+XDebug进行断点调试的配置
http://www.chenxuanyi.cn/xampp-phpstorm-xdebug.html具体过程:服务器端(本地调试的情况下就是在本机)安装好XAMPP,停止apache服务(注意,如果直接退出XAMPP,是不会停止apache的)在安装目录下找到php.ini,类似于D:\xampp\php\php.ini,并打开找到被注释掉的项目并按如下设置:ze
2015-10-26 16:59:51
1680
转载 test credit card account
https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htmTest Credit Card Account NumbersWhile testing, use only the credit card numbers listed here. Other numbe
2015-10-26 16:37:36
749
转载 Fix layout.xml caching causing blocks to render other blocks in Magento
http://davemacaulay.com/fix-layout-xml-caching-causing-blocks-render-blocks-magento/缓存开启后 在付款页面 点击 next无法继续If you’re building a system which uses Ajax and makes numerous calls to $this->getLay
2015-10-23 13:40:32
516
翻译 magento patch
1. apply patch http://magecomp.com/blog/how-to-install-magento-security-patches/#SUPEE15332.
2015-10-16 13:21:09
284
翻译 web performace
1. https://developers.google.com/speed/pagespeed/insights/2. http://www.webpagetest.org/3. https://gtmetrix.com/4. http://www.webkaka.com/5. http://www.alibench.com
2015-10-13 18:16:59
303
翻译 redis php admin
git clone https://github.com/ErikDubbelboer/phpRedisAdmin.gitcd phpRedisAdmingit clone https://github.com/nrk/predis.git vendor
2015-10-09 13:49:13
314
转载 magento connect
http://freegento.com/ddl-magento-extension.php?ext=http%3A%2F%2Fconnect20.magentocommerce.com%2Fcommunity%2FSearchautocompleteget code directly
2015-09-28 14:07:22
296
翻译 magento connection string is empty
cd magento;app/code/commnityapp/designapp/etcapp/localdownloader都必须写入权限外部整体文件夹magento必须为写入权限
2015-09-28 10:48:19
344
原创 乌龟git bug
一直无法正常pull, 报错 /bin/sr 但是 msysgit 可以正常工作。出在配置文件上.git/config[core]repositoryformatversion = 0filemode = falsebare = falselogallrefupdates = truesymlinks = falseignorecase = true
2015-09-15 14:56:48
762
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人