{"id":91,"date":"2021-11-28T13:54:16","date_gmt":"2021-11-28T13:54:16","guid":{"rendered":"http:\/\/test.aiuaio.com\/cart\/"},"modified":"2024-09-21T12:04:08","modified_gmt":"2024-09-21T12:04:08","slug":"cart","status":"publish","type":"page","link":"https:\/\/cleopatrathediva.com\/ar\/cart\/","title":{"rendered":"Cart"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"91\" class=\"elementor elementor-91\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-83f5d5d e-con-full e-flex e-con e-parent\" data-id=\"83f5d5d\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-79e19a6 e-con-full e-flex e-con e-child\" data-id=\"79e19a6\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-afbf3c4 elementor-hidden-tablet elementor-hidden-mobile elementor-widget elementor-widget-image\" data-id=\"afbf3c4\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/ar\/\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"500\" height=\"498\" src=\"https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo.png\" class=\"attachment-full size-full wp-image-17383\" alt=\"\" srcset=\"https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo.png 500w, https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo-300x300.png 300w, https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo-150x150.png 150w, https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo-60x60.png 60w, https:\/\/cleopatrathediva.com\/wp-content\/uploads\/2024\/04\/logo-100x100.png 100w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b3d6e5e elementor-widget elementor-widget-heading\" data-id=\"b3d6e5e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Cart<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6a76174 elementor-widget elementor-widget-html\" data-id=\"6a76174\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<div class='custom-woocommerce-cart'><\/div>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-65960ba elementor-widget elementor-widget-html\" data-id=\"65960ba\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<script>\n    window.onload = function() {\n    \/\/ Get all input elements\n    var inputs = document.querySelector('.custom-woocommerce-cart').querySelectorAll('input');\n\n    \/\/ Iterate over each input element\n    for (var i = 0; i < inputs.length; i++) {\n        \/\/ Check if the input type is number\n        if (inputs[i].type == 'number') {\n            \/\/ Create \"+\" button\n            var plusButton = document.createElement('button');\n            plusButton.innerHTML = '+';\n            plusButton.onclick = function() {\n                this.nextSibling.value = parseInt(this.nextSibling.value) + 1;\n            };\n\n            \/\/ Create \"-\" button\n            var minusButton = document.createElement('button');\n            minusButton.innerHTML = '-';\n            minusButton.onclick = function() {\n                this.previousSibling.value = parseInt(this.previousSibling.value) - 1;\n            };\n\n            \/\/ Insert \"+\" button before the input\n            inputs[i].parentNode.insertBefore(plusButton, inputs[i]);\n\n            \/\/ Insert \"-\" button after the input\n            inputs[i].parentNode.insertBefore(minusButton, inputs[i].nextSibling);\n        }\n    }\n};\n\n<\/script>\n<script>\njQuery(window).on('load', function() {\n    var movedDiv = jQuery('#cpops-drawer-modal').appendTo('.custom-woocommerce-cart');\n    window.CartPops.drawer.show();\n    \/\/ Select the HTML element\ndocument.querySelector(\"html\").classList.remove('cpops-trigger-open');\n\/\/ replace 'selector' with your actual selector\n\n\/\/ Set the style\n\n\n});\n\n\n<\/script>\n<script>\n    window.addEventListener('DOMContentLoaded', (event) => {\n    const my_prefix = window.CartPops;\n\n    my_prefix.drawer.on( 'show', function( drawer ) {\n            document.querySelector(\"html\").classList.remove('cpops-trigger-open');\n\n            \/\/ Do Analytics or show something\n    } );\n});\n<\/script>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-355f979 e-con-full e-flex e-con e-child\" data-id=\"355f979\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-1cdfff5 e-flex e-con-boxed e-con e-child\" data-id=\"1cdfff5\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Cart<\/p>","protected":false},"author":18,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-91","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/pages\/91"}],"collection":[{"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":384,"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/pages\/91\/revisions"}],"predecessor-version":[{"id":17561,"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/pages\/91\/revisions\/17561"}],"wp:attachment":[{"href":"https:\/\/cleopatrathediva.com\/ar\/wp-json\/wp\/v2\/media?parent=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}