thelia / product-status-module
Thelia 的产品状态模块
1.0.10
2021-11-18 11:54 UTC
Requires
- thelia/installer: ~1.1
README
在此处添加简短描述。如有需要,也可以添加截图。
安装
手动
- 将模块复制到
<thelia_root>/local/modules/
目录,并确保模块名称为 ProductStatus。 - 在 Thelia 管理面板中激活它
Composer
在主 Thelia composer.json 文件中添加它
composer require thelia/product-status-module:~1.0
用法
您可以在模块/配置中创建状态,并将其关联到每个模块标签页的产品。状态将在前端的产品页面上显示描述和代码。
钩子
钩子 module.configuration
用于配置页面
钩子 product.tab-content
用于在产品的模块标签页中显示模块
钩子 product.bottom
用于在 frontOffice 显示状态内容
循环
如果您的模块声明了一个或多个循环,请像这样在此处描述它们
[ProductProductStatusLoop]
[ProductStatusLoop]
输入参数
示例
{if $STATUS_ID !== 1 and !empty($STATUS_TITLE)}
<p id="status-banner" style="border-style: solid; border-color: #dbbf7c;">
{$STATUS_TITLE|upper}
</p>
<div class="mt-3">
{if $STATUS_DESCRIPTION}
<i>
{$STATUS_TITLE} : {$STATUS_DESCRIPTION}
</i>
{/if}
</div>
{/if}
{if $STATUS_ID !== 1 and !empty($STATUS_TITLE)}
<p id="status-banner" style="border-style: solid; border-color: #dbbf7c;">
{$STATUS_TITLE|upper}
</p>
<div class="mt-3">
{if $STATUS_DESCRIPTION}
<i>
{$STATUS_TITLE} : {$STATUS_DESCRIPTION}
</i>
{/if}
</div>
{/if}