{"id":127869,"date":"2025-03-12T16:26:52","date_gmt":"2025-03-12T16:26:52","guid":{"rendered":"https:\/\/www.logicmobility.com\/?page_id=127869"},"modified":"2025-03-12T16:28:12","modified_gmt":"2025-03-12T16:28:12","slug":"shop","status":"publish","type":"page","link":"https:\/\/www.logicmobility.com\/es\/shop\/","title":{"rendered":"SHOP"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"127869\" class=\"elementor elementor-127869\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e451891 e-con-full e-flex e-con e-parent\" data-id=\"e451891\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-dc15cca elementor-widget elementor-widget-html\" data-id=\"dc15cca\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n \n    <style>\n        body { font-family: Arial, sans-serif; margin: 0; padding: 0; }\n        .container { max-width: 1200px; margin: auto; padding: 20px; }\n        .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }\n        .product { border: 1px solid #ddd; padding: 15px; text-align: center; border-radius: 5px; }\n        .product img { max-width: 100%; height: auto; }\n        .button { background: #28a745; color: white; padding: 10px; border: none; cursor: pointer; border-radius: 5px; }\n        .button:hover { background: #218838; }\n    <\/style>\n<\/head>\n<body>\n    <div class=\"container\">\n        <h1>Tienda Online<\/h1>\n        <div class=\"product-grid\">\n            <div class=\"product\">\n                <img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/200\" alt=\"Producto 1\">\n                <h2>Producto 1<\/h2>\n                <p>$20.00<\/p>\n                <button class=\"button\" onclick=\"addToCart('Producto 1', 20.00)\">Agregar al carrito<\/button>\n            <\/div>\n            <div class=\"product\">\n                <img decoding=\"async\" src=\"https:\/\/via.placeholder.com\/200\" alt=\"Producto 2\">\n                <h2>Producto 2<\/h2>\n                <p>$30.00<\/p>\n                <button class=\"button\" onclick=\"addToCart('Producto 2', 30.00)\">Agregar al carrito<\/button>\n            <\/div>\n        <\/div>\n        <h2>Carrito<\/h2>\n        <ul id=\"cart\"><\/ul>\n    <\/div>\n    <script>\n        let cart = [];\n        function addToCart(product, price) {\n            cart.push({ product, price });\n            updateCart();\n        }\n        function updateCart() {\n            let cartList = document.getElementById(\"cart\");\n            cartList.innerHTML = \"\";\n            cart.forEach(item => {\n                let li = document.createElement(\"li\");\n                li.textContent = `${item.product} - $${item.price.toFixed(2)}`;\n                cartList.appendChild(li);\n            });\n        }\n    <\/script>\n<\/body>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Tienda Online Producto 1 $20.00 Agregar al carrito Producto 2 $30.00 Agregar al carrito Carrito<\/p>","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-127869","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/pages\/127869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/comments?post=127869"}],"version-history":[{"count":0,"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/pages\/127869\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.logicmobility.com\/es\/wp-json\/wp\/v2\/media?parent=127869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}