swissup/module-breeze-amasty-stockstatus
最新稳定版本:1.0.1
Composer 安装命令:
composer require swissup/module-breeze-amasty-stockstatus
包简介
Custom Stock Status by Amasty Breeze Frontend Integration
README 文档
README
Required patches
vendor/amasty/stockstatus/view/frontend/web/js/amstockstatus.js
Find the code in the _reloadContent method:
this.nodes.spanElement.replaceWith(this.options[key]['custom_status']);
and add the following line after it:
this.nodes.spanElement = $(this.selectors.stock).first();
Find the code:
this.nodes.stockAlertElement = $('<div>', { class: this.classes.stockAlert, 'data-amstock-js': 'alert', title: $t('Subscribe to back in stock notification'), rel: 'external' });
and replace it with:
this.nodes.stockAlertElement = $('<div>') .addClass(this.classes.stockAlert) .attr('data-amstock-js', 'alert') .attr('title', $t('Subscribe to back in stock notification')) .attr('rel', 'external');
Installation
composer require swissup/module-breeze-amasty-stockstatus bin/magento setup:upgrade --safe-mode=1
统计信息
- 总下载量: 1.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2023-09-04