Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- (function () {
- var pageProductFormTimer = 10;
- function seveProductPrice(productPrice) {
- if (!productPrice) return false;
- if (productPrice.length == 0) return false;
- window.adoricCurrentProductPrice = parseFloat(productPrice);
- }
- function waitPageProduct() {
- pageProductFormTimer--;
- var productPriceElement = document.querySelector('.product-info-price [itemprop="price"]');
- if (!productPriceElement && pageProductFormTimer > 0) {
- setTimeout(waitPageProduct, 1000);
- } else if (pageProductFormTimer > 0) {
- seveProductPrice(productPriceElement.getAttribute('content'));
- }
- }
- waitPageProduct();
- })();
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement