{"id":8,"date":"2022-10-19T13:31:22","date_gmt":"2022-10-19T12:31:22","guid":{"rendered":"https:\/\/bevas.com\/basket\/"},"modified":"2024-04-24T13:35:24","modified_gmt":"2024-04-24T12:35:24","slug":"basket","status":"publish","type":"page","link":"https:\/\/bevas.com\/en\/basket\/","title":{"rendered":"Basket"},"content":{"rendered":"\n<div>\n<p>    <script>\n    jQuery(function($) {\n    \/\/ Get the <\/p>\n<td> element that contains the price\n        if (document.querySelector('.tax-total td[data-title=\"VAT\"]')) {\n    const priceElement = document.querySelector('.tax-total td[data-title=\"VAT\"]');<\/p>\n<p>    \/\/ Get the currency symbol\n    const currencySymbol = priceElement.querySelector('.woocommerce-Price-currencySymbol').textContent;<\/p>\n<p>    \/\/ Get the price value from the element\n    const priceValueWithSymbol = priceElement.textContent.trim();\n    const priceValue = parseFloat(priceValueWithSymbol.replace(currencySymbol, '').trim());<\/p>\n<p>    \/\/ Check if the price is 0\n    if (priceValue === 0) {\n        \/\/ Replace the price with \"--\"\n        priceElement.innerHTML = `<span class=\"woocommerce-Price-amount amount\"><bdi>${currencySymbol}--.--<\/bdi><\/span>`;\n    }\n        }\n        });\n<\/script>\n<\/div>\n<p><!--more--><br \/>\n<!-- {\"type\":\"layout\",\"children\":[{\"type\":\"section\",\"props\":{\"image_position\":\"center-center\",\"padding_remove_bottom\":true,\"section_image_column\":\"hide\",\"section_width\":\"fullwidth\",\"style\":\"default\",\"title_breakpoint\":\"xl\",\"title_position\":\"top-left\",\"title_rotation\":\"left\",\"vertical_align\":\"middle\",\"width\":\"default\"},\"children\":[{\"type\":\"row\",\"children\":[{\"type\":\"column\",\"props\":{\"image_position\":\"center-center\",\"position_sticky_breakpoint\":\"m\"},\"children\":[{\"type\":\"headline\",\"props\":{\"content_de_de\":\"Warenkorb\",\"text_align\":\"left\",\"title_color\":\"primary\",\"title_element\":\"h1\",\"title_style\":\"h1\"},\"source_extended\":{\"props\":{\"content\":{\"filters\":{\"search\":\"\",\"before\":\"Your \"},\"name\":\"title\",\"query\":{\"name\":\"pages.singlePage\"}}}},\"source\":{}}]}]}]},{\"type\":\"section\",\"props\":{\"image_position\":\"center-center\",\"padding_remove_top\":true,\"section_image_column\":\"hide\",\"section_width\":\"fullwidth\",\"style\":\"default\",\"title_breakpoint\":\"xl\",\"title_position\":\"top-left\",\"title_rotation\":\"left\",\"vertical_align\":\"middle\",\"width\":\"default\"},\"children\":[{\"type\":\"row\",\"children\":[{\"type\":\"column\",\"props\":{\"image_position\":\"center-center\",\"position_sticky_breakpoint\":\"m\"},\"children\":[{\"type\":\"woo_pages\",\"props\":{\"css\":\".el-element .product-name a { \\n    font-family: Poppins;\\n    font-size: 15px;\\n    font-weight: 600;\\n    line-height: 25px;\\n    letter-spacing: 0em;\\n    text-align: left;\\n    color: #032416;\\n}\\n.el-element .product-price .ammount{\\n    font-family: Poppins;\\n    font-size: 15px;\\n    font-weight: 400;\\n    line-height: 25px;\\n    letter-spacing: 0em;\\n    text-align: left;\\n    color: #595959;\\n}\",\"page\":\"cart\"}}]}]}]},{\"type\":\"section\",\"props\":{\"image_position\":\"center-center\",\"section_image_column\":\"hide\",\"section_width\":\"fullwidth\",\"style\":\"default\",\"title_breakpoint\":\"xl\",\"title_position\":\"top-left\",\"title_rotation\":\"left\",\"vertical_align\":\"middle\",\"width\":\"default\"},\"children\":[{\"type\":\"row\",\"children\":[{\"type\":\"column\",\"props\":{\"image_position\":\"center-center\",\"position_sticky_breakpoint\":\"m\"},\"children\":[{\"type\":\"html\",\"props\":{\"content\":\"<script>\\n    jQuery(function($) {\\n    \\\/\\\/ Get the \n\n<td> element that contains the price\\n        if (document.querySelector('.tax-total td[data-title=\\\"VAT\\\"]')) {\\n    const priceElement = document.querySelector('.tax-total td[data-title=\\\"VAT\\\"]');\\n\\n    \\\/\\\/ Get the currency symbol\\n    const currencySymbol = priceElement.querySelector('.woocommerce-Price-currencySymbol').textContent;\\n\\n    \\\/\\\/ Get the price value from the element\\n    const priceValueWithSymbol = priceElement.textContent.trim();\\n    const priceValue = parseFloat(priceValueWithSymbol.replace(currencySymbol, '').trim());\\n\\n    \\\/\\\/ Check if the price is 0\\n    if (priceValue === 0) {\\n        \\\/\\\/ Replace the price with \\\"--\\\"\\n        priceElement.innerHTML = `<span class=\\\"woocommerce-Price-amount amount\\\"><bdi>${currencySymbol}--.--<\\\/bdi><\\\/span>`;\\n    }\\n        }\\n        });\\n<\\\/script>\"}}]}]}]}],\"version\":\"4.3.4\",\"yooessentialsVersion\":\"2.2.4\"} --><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":11322,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"iawp_total_views":29,"footnotes":""},"class_list":["post-8","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/pages\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":15,"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/pages\/8\/revisions"}],"predecessor-version":[{"id":10277,"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/pages\/8\/revisions\/10277"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/media\/11322"}],"wp:attachment":[{"href":"https:\/\/bevas.com\/en\/wp-json\/wp\/v2\/media?parent=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}