{"id":126,"date":"2026-05-19T12:13:12","date_gmt":"2026-05-19T12:13:12","guid":{"rendered":"https:\/\/demo.malotop.ro\/predictcart\/?page_id=126"},"modified":"2026-05-30T08:20:33","modified_gmt":"2026-05-30T08:20:33","slug":"demo","status":"publish","type":"page","link":"https:\/\/demo.malotop.ro\/predictcart\/","title":{"rendered":"Demo Setup"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><code>        <div class=\"pcd-wrap\">\n            <div class=\"pcd-card\">\n                <div class=\"pcd-icon\">\n                    <svg width=\"48\" height=\"48\" viewBox=\"0 0 32 32\" fill=\"none\">\n                        <rect width=\"32\" height=\"32\" rx=\"8\" fill=\"#2563eb\"\/>\n                        <path d=\"M9 21V11l7 5-7 5z\" fill=\"#fff\"\/>\n                        <path d=\"M16 21V11l7 5-7 5z\" fill=\"#fff\" opacity=\"0.6\"\/>\n                    <\/svg>\n                <\/div>\n                <h3 class=\"pcd-title\">Try PredictCart Free<\/h3>\n                <p class=\"pcd-sub\">\n                    Get a fully loaded demo site with PredictCart, WooCommerce, and sample products. Valid for 48 hours \u2014 no email required.                <\/p>\n                <button type=\"button\" class=\"pcd-btn\" id=\"pcd-btn\">\n                    <span class=\"pcd-btn-text\">Start My 48-Hour Demo<\/span>\n                    <span class=\"pcd-btn-loader\" style=\"display:none;\">\n                        <span class=\"pcd-spinner\"><\/span>\n                        Spinning up your demo...                    <\/span>\n                <\/button>\n                <div class=\"pcd-status\" id=\"pcd-status\" style=\"display:none;\"><\/div>\n                <p class=\"pcd-footnote\">Instant setup. Cancel anytime. No spam, no catches.<\/p>\n            <\/div>\n        <\/div>\n\n        <script>\n        document.getElementById('pcd-btn').addEventListener('click', function() {\n            var btn = this;\n            btn.disabled = true;\n            btn.querySelector('.pcd-btn-text').style.display = 'none';\n            btn.querySelector('.pcd-btn-loader').style.display = 'inline-flex';\n\n            var data = new FormData();\n            data.set('action', 'pcd_start_demo');\n            data.set('nonce', '9eb758df6a');\n\n            fetch('https:\/\/demo.malotop.ro\/predictcart\/wp-admin\/admin-ajax.php', {\n                method: 'POST',\n                body: data\n            })\n            .then(function(r) { return r.json(); })\n            .then(function(r) {\n                if (r.success && r.data.redirect_url) {\n                    window.location.href = r.data.redirect_url;\n                } else {\n                    var status = document.getElementById('pcd-status');\n                    status.textContent = r.data.message || 'Something went wrong. Please try again.';\n                    status.className = 'pcd-status pcd-error';\n                    status.style.display = 'block';\n                    btn.disabled = false;\n                    btn.querySelector('.pcd-btn-text').style.display = 'inline';\n                    btn.querySelector('.pcd-btn-loader').style.display = 'none';\n                }\n            })\n            .catch(function() {\n                var status = document.getElementById('pcd-status');\n                status.textContent = 'Network error. Please try again.';\n                status.className = 'pcd-status pcd-error';\n                status.style.display = 'block';\n                btn.disabled = false;\n                btn.querySelector('.pcd-btn-text').style.display = 'inline';\n                btn.querySelector('.pcd-btn-loader').style.display = 'none';\n            });\n        });\n        <\/script>\n        <\/code>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-126","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/pages\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":3,"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/pages\/126\/revisions"}],"predecessor-version":[{"id":143,"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/pages\/126\/revisions\/143"}],"wp:attachment":[{"href":"https:\/\/demo.malotop.ro\/predictcart\/wp-json\/wp\/v2\/media?parent=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}