fixed prestashop.on('updatedProduct') listener
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
|
||||
prestashop.on('updatedProduct', function(updatedData) {
|
||||
applyPriceVisibility(priceToggleSelect.value);
|
||||
});
|
||||
|
||||
const priceToggleSelect = document.getElementById('priceDisplayToggle');
|
||||
|
||||
const storageKey = 'priceDisplayPreference'; // Key for localStorage
|
||||
|
||||
Reference in New Issue
Block a user