swissup / module-breeze-amasty-stockstatus
Custom Stock Status by Amasty Breeze Frontend Integration
Package info
github.com/breezefront/module-breeze-amasty-stockstatus
Language:JavaScript
Type:magento2-module
pkg:composer/swissup/module-breeze-amasty-stockstatus
1.0.1
2025-12-05 14:00 UTC
This package is auto-updated.
Last update: 2026-03-05 14:42:56 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();
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