swissup / module-breeze-amasty-stockstatus
Custom Stock Status by Amasty Breeze Frontend Integration
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Language:JavaScript
Type:magento2-module
This package is not auto-updated.
Last update: 2024-04-30 16:11:01 UTC
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();
Installation
composer require swissup/module-breeze-amasty-stockstatus bin/magento setup:upgrade --safe-mode=1