faonni / module-product-most-sold
此扩展显示您商店中最畅销的产品。
2.1.1
2017-11-24 20:38 UTC
Requires
- php: ~5.6.0|~7.0.0|~7.1.0
- magento/module-sales: 100.1.*|101.0.*
This package is auto-updated.
Last update: 2024-08-29 04:37:02 UTC
README
此扩展显示您商店中最畅销的产品。
主页
分类页面
使用Composer进行安装
-
转到Magento2根目录
-
输入以下命令安装模块
composer require faonni/module-product-most-sold
等待依赖项更新。
-
输入以下命令启用模块
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
-
刷新统计信息
显示和配置
-
一个短代码用于主页和其他CMS页面或CMS块。
{{block class='Faonni\ProductMostSold\Block\ProductList' template='Faonni_ProductMostSold::product/list/items.phtml' title='Most Sold Products' interval='45' num_products='6' }}
-
一个布局更新XML用于所有类别。
<referenceBlock name="catalog.product.most.sold"> <action method="setTitle"> <argument name="title" xsi:type="string" translate="true">Most Sold Products of Category</argument> </action> <action method="setNumProducts"> <argument name="num_products" xsi:type="string">6</argument> </action> <!-- last 45 days, if 0 - all lifetime --> <action method="setInterval"> <argument name="interval" xsi:type="string">45</argument> </action> </referenceBlock>