Shopify rest API
API地址 https://github.com/Shopify/shopify-php-api
Payment model name is not provided in config!
/vendor/magento/module-paypal/etc/config.xml 在 <veri... » 阅读全文
magento ui component form block创建办法
该方法 无需创建 ui component 简单直接
Magento2 Delivery Methods
按照商品数量 Flat Rate 按照订单数量 Flat Rate 免费配送(可设置成自提) Free Shi... » 阅读全文
Magento2 CRUD Models
demo下载http://blog.zuocaibang.cn/down/Model.zip 参考网址http... » 阅读全文
How to Create/Save Admin Grid in Magento 2
引自 https://www.mageplaza.com/magento-2-module-developme... » 阅读全文
Magento2 新建数据表
设置索引(唯一索引,普通索引)
Magento2.4安装流程
composer 下载文件 PHP配置 elasticsearch安装 参考https://www.blog.... » 阅读全文
如何隐藏/查看 magento2版本号
隐藏版本号 查看版本号
后台设置有分类产品,前台只显示部分或者不显示产品
比如后台某产品分类设置有50个产品,前台当前分类只显示10个或者不显示 1. 查看 cron是否开启2. ph... » 阅读全文
Magento2 常用events
生成订单 checkout_onepage_controller_success_action 改变订单状态 ... » 阅读全文
Failed to connect to graph.facebook.com port 443: Connection timed out
最大可能性原因无法连接外网命令行中 curl https://graph.facebook.com 试试会出现... » 阅读全文
Magento2 观察者事件列表
app/code/Magento/Authorizenet/Controller/Directpost/Pay... » 阅读全文
新增注册字段
找到数据表setup_module 中对应的模块 删除
magento2 Required parameter ‘theme_dir’ was not passed
报错原因1.直接删除主题2.导入其他数据库解决办法 1.搜索数据表 theme 删除不存在的主题2.搜索数据表... » 阅读全文
elasticsearch安装(magento2.4)
关闭 elasticsearch ps -ef | grep elastic kill 进程号 总结千万不用使... » 阅读全文
magento2 产品详情属性集顺序
如下图所示 我们要将color 放在size前面 在后台 catalog=>products 编辑产品页面找到... » 阅读全文
Ubuntu 挂载共享文件Nfs
以下在服务器端操作 以下客户端操作
magento2 自定义404配置(nginx)
nginx不能配置404页面# error_page 404 /404.html; 需要屏蔽 本身magent... » 阅读全文
BigCommerce rest API
BigCommerce是一个基于SaaS的专业英文外贸电商独立站建站平台官方网址 https://www.bi... » 阅读全文
微信公众号,微信小程序插件
官方文档https://www.easywechat.com/docs/4.1/installation
WooCommerce rest API
WooCommerce 是 WordPress 的开源电子商务插件API SDKGitHub地址 https:... » 阅读全文
magento2 多域名配置
1.在index.php中配置 nginx在 pub/index.php apache 在 index.php... » 阅读全文
PHP程序快速翻译文本中的中文(可翻译为语言包) TP5写法
将需要翻译的语言文件统一放在一个文件夹下面 命名为 language 遍历文件 获取文件中的所有中文词组 $t... » 阅读全文
magento2 rest API LOGIN The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later.
确定账号密码是否正确 2. 后台 STORES=>Configuration=>CUSTOMERS=>Cust... » 阅读全文
magento2 多店铺设置
web site store store view 区别1. web site 可以看成一个单独的网站 每个网... » 阅读全文
cron Message is added to queue, wait to get your coupons soon 但是没有生成优惠券
解决办法删除cron 重新载入再执行 bin/magento cron:remove bin/magento ... » 阅读全文
magento2 rest API 开发
1. 新建或者修改 webapi.xml 2. 新建或者修改di.xml <config> <pr... » 阅读全文
magento2 删除订单
采用插件 https://www.mageplaza.com/magento-2-delete-orders/... » 阅读全文
composer下载很慢解决办法
国内服务器请更换国内源地址 2. 增加composer最大内存 3. 将 memory_limit设置为-1 ... » 阅读全文
magento2 Unable to load theme by specified key: ‘6’
出现原因 在删除主题模板后, 如果该模板在使用则会出现这个问题 #解决办法查找数据表 core_config_... » 阅读全文
magento2 setup:static-content:deploy
Compilation from source /data/melilon.feifenxiao.com/ap... » 阅读全文
magento2 homepage 404
出现这个问题的原因之一 是因为商品导入的时候商品名称或者其他类型不存在造成 url key 为空 从而首页报错... » 阅读全文
xshell隧道连接
远程连接生产环境中的MySQL或服务器(一般不允许外网访问) 先连接中间服务器 通过中间服务器作为隧道连接到M... » 阅读全文
富文本编辑器相对路径改成绝对路径
在PHP前后端分离时候 富文本编辑器图片不能使用绝对路径储存在数据库中,只能读取出数据后将相对路径转化成绝对路... » 阅读全文
There are no commands defined in the “setup:di” namespace.
PHP命令行版本不对 会造成这个问题 , 更换正确的PHP版本既能解决 (可能也会有其他原因引起的)
magento2 The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
删除 /var/maintenance.flag bin/magento cache:clean
magento2 删除,禁用,开启模块
删除模块 查看模块状态 禁用模块
微信前后端分离微信授权登录
前端通过如下链接获取微信code 然后将code返回给后端进行操作
magento2 语言包
导出翻译包和导入语言包
magento2 后台config配置和读取配置
下拉框选项Maijindou\Customer\Model\Layou 获取配置信息
magento2 迁移项目
数据库导入 项目导入 nginx配置 更改数据库core_config_data 中替换所有原域名为现域名如果... » 阅读全文
magento2 rest API 导入到postman
一共三步 通过后台账号密码 或者token 通过token 获取所有API json 导入到postman 通... » 阅读全文
magento2 home page 404
必须是magento 本身设置的404界面 非nginx 404检查 url_rewrite数据表 reque... » 阅读全文
magento2 Notice: Undefined offset: 2 in
解决办法 重置后台密码 admin_user
magento2 admin login Document Element ‘resource’: The attribute ‘title’ is required but missing
总结 后台登录报错而前台正常 一般都etc报错
magento2 自定义更改订单状态 SQL操作
更改订单表更改前请先备份,以免造成不必要的损失increment_id 替换成自己的订单号
magento2 Each method must have a doc block. See
执行如下命令出现如下报错 , 十有八九是因为接口没有写注释说明, magento2接口必须写注释
magento2 修改后台入口
项目目录/app/etc/env.php
magento2 requested store is not found
The website with id 0 that was requested wasn't found. ... » 阅读全文
fastAdmin 根据条件判断字段的显示隐藏
buttons按钮的隐藏通过 hidden: true/false 控制显示或者隐藏 整个buttons字段的... » 阅读全文
fastAdmin table 刷新
当前页面刷新 弹出层关闭刷新父级页面//在index 中关闭弹出层的时候 刷新父级页面