{"id":4736,"date":"2024-08-17T14:02:02","date_gmt":"2024-08-17T14:02:02","guid":{"rendered":"https:\/\/aiviouvapes.com\/cart\/"},"modified":"2025-08-11T14:26:46","modified_gmt":"2025-08-11T06:26:46","slug":"cart","status":"publish","type":"page","link":"https:\/\/aiviouvapes.com\/de\/cart\/","title":{"rendered":"Wagen"},"content":{"rendered":"<script>document.addEventListener('DOMContentLoaded', function() {\r\n    \/\/ Select the quantity input based on its class name\r\n    const quantityInput = document.querySelector('.quantity-input-product-3896');\r\n\r\n    \/\/ Function to adjust the value to the nearest multiple of 10\r\n    function adjustValue(value) {\r\n        if (value < 10) {\r\n            return value; \/\/ If value is less than 10, return it unchanged\r\n        } else {\r\n            return Math.ceil(value \/ 10) * 10; \/\/ Round up to the nearest multiple of 10\r\n        }\r\n    }\r\n\r\n    \/\/ Event listener for changes in the input\r\n    quantityInput.addEventListener('change', function() {\r\n        let currentValue = parseInt(quantityInput.value, 10);\r\n        quantityInput.value = adjustValue(currentValue); \/\/ Adjust the value when changed\r\n    });\r\n\r\n    \/\/ Additional event listeners for increment and decrement buttons\r\n    document.querySelector('.ux-quantity__button--plus').addEventListener('click', function() {\r\n        setTimeout(() => { \/\/ Timeout to wait for the value to update\r\n            let currentValue = parseInt(quantityInput.value, 10);\r\n            quantityInput.value = adjustValue(currentValue);\r\n        }, 1);\r\n    });\r\n\r\n    document.querySelector('.ux-quantity__button--minus').addEventListener('click', function() {\r\n        setTimeout(() => { \/\/ Timeout to wait for the value to update\r\n            let currentValue = parseInt(quantityInput.value, 10);\r\n            quantityInput.value = adjustValue(currentValue);\r\n        }, 1);\r\n    });\r\n});\r\n<\/script>\n<style>.blockUI, .blockOverlay{display: none !important;}<\/style>\n\t<div id=\"gap-513524880\" class=\"gap-element clearfix\" style=\"display:block; height:auto;\">\n\t\t\n<style>\n#gap-513524880 {\n  padding-top: 50px;\n}\n<\/style>\n\t<\/div>\n\t\n\n<style>\n#wc-prl-deployment-2 > h2 {margin-top: 50px;}\n<\/style>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4736","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/pages\/4736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/comments?post=4736"}],"version-history":[{"count":0,"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/pages\/4736\/revisions"}],"wp:attachment":[{"href":"https:\/\/aiviouvapes.com\/de\/wp-json\/wp\/v2\/media?parent=4736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}