![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
magento2
weixin_37584406
这个作者很懒,什么都没留下…
展开
-
magento2 post 请求无法路由
magento2 当控制器下的方法实现了HttpPostActionInterface 前台发起的post的请求始终无法路由,解决方案:添加Content-Type:application/json,X-Requested-With:XMLHttpRequest到请求头即可详细查看https://magento.stackexchange.com/questions/253585/magento2-3-controller-wont-handle-post-method...原创 2022-03-08 16:27:00 · 1708 阅读 · 1 评论 -
magento2创建theme
1. 主题目录通常位于两个位置app/design/frontend/<Vendor>/<theme>vendor/magento/theme-frontend-<theme>假设我们创建了一个app/design/frontend/Hello/World主题目录2.添加the CSS critical path原创 2022-02-09 10:20:43 · 314 阅读 · 0 评论 -
magento2国际化相关
magento2 國際化 翻譯 多店舖原创 2022-01-19 14:18:05 · 91 阅读 · 0 评论 -
Magento2创建webapi
1. 配置一个webapi.xml添加一个webapi.xml文件到app/code/自定义模块/etc目录<?xml version="1.0"?> <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"> <!-- Cust原创 2022-01-17 15:27:34 · 454 阅读 · 0 评论