{"id":51,"date":"2026-01-29T05:53:12","date_gmt":"2026-01-29T04:53:12","guid":{"rendered":"https:\/\/wordpresstest.ddns.net\/?page_id=51"},"modified":"2026-01-29T05:53:12","modified_gmt":"2026-01-29T04:53:12","slug":"shop","status":"publish","type":"page","link":"https:\/\/wordpresstest.ddns.net\/index.php\/shop\/","title":{"rendered":"Shop"},"content":{"rendered":"<div style=\"max-width: 90%; margin: 100px auto;\">\r\n            <h1 class=\"mt-4 text-warning\">Shop Online<\/h1>\r\n            <h5 class=\"m3-4 text-muted\">Acquista i prodotti nel nostro negozio online realizzati artigianalmente!<\/h5>        <div class=\"card m-2 shadow\" style=\"max-width: 25rem; height: 600px; float:left;\">\r\n            <img decoding=\"async\" src=\"https:\/\/wordpresstest.ddns.net\/wp-content\/uploads\/2026\/01\/pc01.jfif\" class=\"card-img-top\" alt=\"...\">\r\n            <div class=\"card-body\">\r\n                <h5 class=\"card-title\">Pc potente<\/h5>\r\n                <p class=\"card-text\">Esempio articolo<\/p>                \r\n            <\/div>\r\n            <div class=\"card-footer text-muted\">\r\n                <div class=\"d-flex justify-content-between\" style=\"height: 40px;\">\r\n                    <div>\r\n                        <span class=\"text-success\" id=\"amount_1\">990.00 \u20ac<\/span><br>\r\n                        \r\n                    <\/div>\r\n                    \r\n                    <div class=\"input-group mb-3\" style=\"width: 120px;\">\r\n                        <div class=\"input-group-prepend\">\r\n                            <span class=\"input-group-text\" id=\"basic-addon1\" style=\"cursor: pointer;\" onclick=\"qnt_change('-','1','990.00');\">-<\/span>\r\n                        <\/div>\r\n                        <input disabled type=\"number\" id=\"qnt_1\" name=\"qnt_1\" value=\"1\" class=\"text-center form-control p-0\" placeholder=\"qnt\" aria-label=\"qnt\" aria-describedby=\"basic-addon1\">\r\n                        <div class=\"input-group-prepend\">\r\n                            <span class=\"input-group-text\" id=\"basic-addon1\" style=\"cursor: pointer;\" onclick=\"qnt_change('+','1','990.00');\">+<\/span>\r\n                        <\/div>\r\n                    <\/div>\r\n                    <button id=\"addbtn_1\" class=\"btn btn-primary\" onclick=\"add_to_cart('1');\" >Aggiungi <i class=\"fa-solid fa-cart-plus\"><\/i><\/button>\r\n                <\/div>\r\n                <hr>\r\n                <div class=\"d-flex justify-content-between\">\r\n                    <small style=\"font-size: 0.75em;\">990.00 \u20ac \/ Qnt<\/small>\r\n                    <small style=\"font-size: 0.75em;\">Rimanenti <span id=\"remain_1\">5.00<\/span><\/small>\r\n                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n       <div style=\"clear:both;\"><\/div><\/div>    <script>\r\n        function qnt_change(type,id,price_standard){\r\n            const remain = parseFloat(jQuery(`#remain_${id}`).text());\r\n            if(remain < 1){\r\n                \r\n                \r\n                Swal.fire({\r\n                    html: `Scorte momentaneamente esaurite!<br>Riprova pi\u00f9 tardi..`,\r\n                    showClass: {\r\n                        popup: `\r\n                        animate__animated\r\n                        animate__fadeInUp\r\n                        animate__faster\r\n                        `\r\n                    },\r\n                    hideClass: {\r\n                        popup: `\r\n                        animate__animated\r\n                        animate__fadeOutDown\r\n                        animate__faster\r\n                        `\r\n                    },\r\n                    icon: \"warning\"\r\n                });\r\n                return false;\r\n            }\r\n            price_standard = parseFloat(price_standard);\r\n            const actual = parseFloat(jQuery(`#qnt_${id}`).val());\r\n            let newval = 0;\r\n            let new_price = 0;\r\n            switch(type) {\r\n                case \"-\":\r\n                    if(actual > 1){\r\n                        newval = actual - 1;                        \r\n                    }\r\n                    if(actual == 1){\r\n                        newval = 1;\r\n                    }\r\n                    \r\n                    break;\r\n                case \"+\":\r\n                    newval = actual + 1;\r\n                    if(newval > remain){\r\n                        newval = newval - 1;                        \r\n                    }\r\n                    break;\r\n                default:\r\n                    \/\/ code block\r\n            }\r\n            new_price = price_standard * newval;\r\n            jQuery(`#qnt_${id}`).val(newval);\r\n            jQuery(`#amount_${id}`).text(`${new_price.toFixed(2)} \u20ac`);\r\n        }\r\n\r\n        function add_to_cart(article_id){\r\n            \/*\r\n            Swal.fire({\r\n                title: \"Shopping Online\",\r\n                html: `<div class=\"text-start\">Il nostro Negozio online \u00e8 momentaneamente in fase di aggiornamento, per i tuoi ordini puoi contattarci via email su <b>info@ladolcissima.it<\/b> oppure telefonicamente ai numeri <b>0923 906516 - 347 3524336<\/b><\/div>`,\r\n                showClass: {\r\n                    popup: `\r\n                    animate__animated\r\n                    animate__fadeInUp\r\n                    animate__faster\r\n                    `\r\n                },\r\n                hideClass: {\r\n                    popup: `\r\n                    animate__animated\r\n                    animate__fadeOutDown\r\n                    animate__faster\r\n                    `\r\n                }\r\n            });\r\n            \r\n            *\/\r\n            const quantity = jQuery(`#qnt_${article_id}`).val();\r\n            location.href = `?id=${article_id}&quantity=${quantity}`;\r\n            \r\n            \r\n        }\r\n\r\n    <\/script>\r\n    \n","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-51","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/pages\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":1,"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/pages\/51\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/pages\/51\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/wordpresstest.ddns.net\/index.php\/wp-json\/wp\/v2\/media?parent=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}