定制 reach-digital/magento2-blank-classic-frontend 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

reach-digital/magento2-blank-classic-frontend

最新稳定版本:1.4.1

Composer 安装命令:

composer require reach-digital/magento2-blank-classic-frontend

包简介

README 文档

README

Module for hiding the classic Magento frontend in headless setups.

This only affects routes that use the page layout system. This means APIs that are implemented in the frontend area still function as usual (like PSP payment processing), as long as they don't use the page layout system.

Allowing additional routes

To enable page layout rendering for specific routes, these can be injected into the allowedRoutes parameter of \ReachDigital\BlankClassicFrontend\Plugin\PreventLayoutRendering

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="ReachDigital\BlankClassicFrontend\Plugin\PreventLayoutRendering">
        <arguments>
            <argument name="allowedRoutes" xsi:type="array">
                <item name="swagger" xsi:type="string">swagger</item>
            </argument>
        </arguments>
    </type>
</config>

(The above example is already included in the package)

Installation

composer require reach-digital/magento2-blank-classic-frontend

Configuration

You can make the classic frontend redirect to the URL configured as base link url by setting the blank_classic_frontend/general/should_redirect configuration option.

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-02-23