Fix: js error #raty_baner
This commit is contained in:
@@ -584,9 +584,11 @@
|
|||||||
const priceProduct = document.querySelector('.product-prices .current-price span[itemprop="price"]').getAttribute('content');
|
const priceProduct = document.querySelector('.product-prices .current-price span[itemprop="price"]').getAttribute('content');
|
||||||
window.addEventListener('load', (event) => {
|
window.addEventListener('load', (event) => {
|
||||||
const ratyBaner = document.querySelector('#raty_baner');
|
const ratyBaner = document.querySelector('#raty_baner');
|
||||||
|
if (ratyBaner) {
|
||||||
ratyBaner.addEventListener('click', () => {
|
ratyBaner.addEventListener('click', () => {
|
||||||
PoliczRate(priceProduct);
|
PoliczRate(priceProduct);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{/literal}
|
{/literal}
|
||||||
|
|||||||
Reference in New Issue
Block a user