outeredge/magento-base-module
Composer 安装命令:
composer require outeredge/magento-base-module
包简介
Magento 2 Base Module by outer/edge
README 文档
README
This module provides the following useful features for Magento 2:
Admin
- Additional widget types
- Image picker
- Text field
- Enabled
anchorbutton in WYSIWYG - Banner images for CMS pages - adds an option to upload a banner image to all page in
Content > Pageswhich can be pulled through to the frontend. Createsection in admin menu for quick actions:- Create new order
- Create product
- Enforces media URL seen by the admin to be NULL always (i.e. so CDN isn't used)
- Adds bulk actions to Cart Price Rules
SEO
- Canonical URL improvements
- Add canonical URL for all CMS pages
- Include pagination in category canonical URLs as per Google Recommendation
- Set robots meta tag to
NOINDEX/NOFOLLOWfor:- Common query strings such as list ordering, limit, store codes etc
- Search results
- Product review list
- Forces a 404 HTTP response for placeholder images
- Adds preconnect headers for google.com/gstatic.com
Cookiebot & Termly
- Don't move cookiebot tags to footer when move JS to footer is enabled
- Block YouTube cookies unless Cookiebot has given consent (Enabled by default)
- Cookiebot declaration template for use on cookie policy CMS page
- Import Termly generated Cookie Policy for use on cookie policy CMS page
API
/rest/V1/site_status/get- To remotely obtain recent config changes and indexer statuses
Developer Tools
- Helper classes:
- Asset helper - get assets
- Image helper - get media images and resize, crop etc.
- Config helper - get values from Magento config
- Console commands
outeredge:nukefor removing all cache and static filesouteredge:configlists all recent config changes
- Adds support for newer version of MariaDB
- Disables jQuery mutate console messages
- Forces the first encryption key to always be used for media assets
Console Commands
| Command | Description |
|---|---|
$ bin/magento outeredge:config |
Show recent core_config_data changes (use --save to save differences shown to config.php and --force to overwrite any existing config) |
$ bin/magento outeredge:nuke |
Remove generated + static files and flushes cache) |
$ bin/magento outeredge:eav-clean |
Removes non-existent types from EAV attributes |
$ bin/magento outeredge:convert-quote |
Converts a quote into an order |
Cookiebot Declaration
To add the Cookiebot cookie declaration form into your cookie policy CMS page, add the following snippet into the CMS page in the Magento admin:
{{block class="Magento\Framework\View\Element\Template" template="OuterEdge_Base::cookiebot/declaration.phtml"}}
Termly Cookie Policy
To add the Termly cookie policy into your cookie policy CMS page, add the following snippet into the CMS page in the Magento admin:
{{block class="Magento\Framework\View\Element\Template" template="OuterEdge_Base::termly/cookie-policy.phtml"}}
Multistore projects
Add multistore.php to the top of the composer.json autoload/files section to allow separate config files (and thus databases) per store on the same instance/repository:
- Add to
composer.json:
"autoload": {
"files": [
"vendor/outeredge/magento-base-module/multistore.php",
...
- Then create individual env.php files for each, naming them
env.php.STORE_CODEreplacingSTORE_CODEas applicable.
outeredge/magento-base-module 适用场景与选型建议
outeredge/magento-base-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 48.44k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2016 年 06 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 outeredge/magento-base-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 outeredge/magento-base-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 48.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 2
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-07