
07-10-2017, 07:04 PM
|
 |
Ecwid Team
|
|
Join Date: Nov 2016
Posts: 151
|
|
Quote:
Originally Posted by Joseph Murawski
Okay, i got 1/2 working. However, we had blocked the pricing from appearing if it was entered as $0.00 . It now ways price on request but the ZERO amount is now showing
This script is not working;
|
Hello,
Una here, Ecwid Customer Care team. I’m extremely sorry for the delayed answer! Please accept my sincere apologies!
In order to hide zero prices, please try to use this script instead of the script you posted above:
Code:
Ecwid.OnPageLoaded.add(function(page) {
if (page.type === 'PRODUCT' || page.type === 'CATEGORY') {
[].slice.apply(document.querySelectorAll('.ecwid-productBrowser-price')).map(function(i) {
var price = i.textContent;
if (price.indexOf('0.00') === 1) {
i.style.display = 'none';
}
});
}
});
I hope it will fix the issue! If any further questions arise, please feel free to ask. We will be glad to answer and help.
Best regards,
Una Q.,
Ecwid Support Team
|