{"id":1589,"date":"2026-03-31T09:53:21","date_gmt":"2026-03-31T07:53:21","guid":{"rendered":"https:\/\/www.gelaterialeccapaletta.it\/?page_id=1589"},"modified":"2026-03-31T10:28:50","modified_gmt":"2026-03-31T08:28:50","slug":"postordine","status":"publish","type":"page","link":"https:\/\/www.gelaterialeccapaletta.it\/en\/postordine\/","title":{"rendered":"Postordine"},"content":{"rendered":"<div class=\"postordine-page\">\n<style>\n    body {\n      background-color: #e5e5e5 !important;\n      margin: 0;\n      font-family: Arial, sans-serif;\n      color: #2b2b2b;\n    }<\/p>\n<p>    .postordine-page {\n      max-width: 980px;\n      margin: 0 auto;\n      padding: 30px 20px 120px;\n      box-sizing: border-box;\n    }<\/p>\n<p>    .page-title {\n      text-align: center;\n      font-size: 34px;\n      font-weight: 700;\n      letter-spacing: 1px;\n      margin: 10px 0 10px;\n      color: #7a1d1d;\n    }<\/p>\n<p>    .page-subtitle {\n      text-align: center;\n      font-size: 20px;\n      font-weight: 700;\n      line-height: 1.2;\n      margin-bottom: 35px;\n      color: #5c2b2b;\n    }<\/p>\n<p>    .page-subtitle span {\n      display: block;\n      font-size: 14px;\n      font-weight: 500;\n      color: #7a5b5b;\n      margin-top: 6px;\n    }<\/p>\n<p>    .empty-box,\n    .order-box {\n      background: #ffffff;\n      border-radius: 20px;\n      box-shadow: 0 10px 24px rgba(0,0,0,0.12);\n      padding: 24px;\n    }<\/p>\n<p>    .section-title {\n      font-size: 22px;\n      font-weight: 700;\n      color: #5c2b2b;\n      margin: 0 0 18px;\n    }<\/p>\n<p>    .top-grid,\n    .gusti-grid,\n    .actions {\n      display: grid;\n      grid-template-columns: repeat(2, minmax(220px, 1fr));\n      gap: 20px;\n    }<\/p>\n<p>    .top-grid { margin-bottom: 28px; }\n    .gusti-grid { margin-top: 16px; }\n    .actions { margin-top: 28px; }<\/p>\n<p>    .top-card,\n    .gusto-card {\n      background: #fafafa;\n      border: 1px solid #ececec;\n      border-radius: 18px;\n      overflow: hidden;\n      position: relative;\n    }<\/p>\n<p>    .top-card img,\n    .gusto-card img {\n      width: 100%;\n      height: 210px;\n      object-fit: cover;\n      display: block;\n      background: #f3f3f3;\n    }<\/p>\n<p>    .top-card-info,\n    .gusto-info {\n      padding: 16px;\n    }<\/p>\n<p>    .top-card-label {\n      font-size: 12px;\n      text-transform: uppercase;\n      letter-spacing: .8px;\n      color: #7a5b5b;\n      margin-bottom: 6px;\n      font-weight: 700;\n    }<\/p>\n<p>    .top-card-name,\n    .gusto-name {\n      font-size: 22px;\n      font-weight: 700;\n      color: #4b2b2b;\n      margin-bottom: 6px;\n    }<\/p>\n<p>    .top-card-price,\n    .gusto-price {\n      font-size: 16px;\n      font-weight: 700;\n      color: #7a1d1d;\n    }<\/p>\n<p>    .gusto-badge {\n      position: absolute;\n      top: 10px;\n      right: 10px;\n      min-width: 34px;\n      height: 34px;\n      border-radius: 999px;\n      background: #6fbe44;\n      color: #fff;\n      font-size: 14px;\n      font-weight: 700;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n    }<\/p>\n<p>    .totale-box {\n      margin-top: 28px;\n      padding: 18px 20px;\n      border-radius: 16px;\n      background: #fff4e8;\n      border: 1px solid #f0d2b1;\n      display: flex;\n      justify-content: space-between;\n      align-items: center;\n      gap: 20px;\n      flex-wrap: wrap;\n    }<\/p>\n<p>    .totale-label {\n      font-size: 17px;\n      color: #7a1d1d;\n      font-weight: 700;\n    }<\/p>\n<p>    .totale-value {\n      font-size: 28px;\n      font-weight: 800;\n      color: #7a1d1d;\n    }<\/p>\n<p>    .action-btn {\n      min-height: 56px;\n      border: none;\n      border-radius: 16px;\n      cursor: pointer;\n      font-size: 17px;\n      font-weight: 700;\n      box-shadow: 0 6px 16px rgba(0,0,0,0.12);\n    }<\/p>\n<p>    .btn-secondary {\n      background: #ffffff;\n      color: #7a1d1d;\n      border: 2px solid #7a1d1d;\n    }<\/p>\n<p>    .btn-primary {\n      background: #7a1d1d;\n      color: #ffffff;\n    }<\/p>\n<p>    @media (max-width: 768px) {\n      .top-grid,\n      .gusti-grid,\n      .actions {\n        grid-template-columns: 1fr;\n      }\n    }\n  <\/style>\n<h1 class=\"page-title\">POSTORDINE<\/h1>\n<div class=\"page-subtitle\">\n    RIEPILOGO DEL TUO GELATO<br \/>\n    <span>Check your order before payment<\/span>\n  <\/div>\n<div id=\"postordineApp\">\n<div v-if=\"!ordine\" class=\"empty-box\">\n<h2 class=\"section-title\">Nessun ordine trovato<\/h2>\n<p>Non \u00e8 stato trovato nessun gelato composto.<\/p>\n<div class=\"actions\">\n        <button class=\"action-btn btn-secondary\" type=\"button\" @click=\"tornaIndietro()\"><br \/>\n          Torna alla composizione<br \/>\n        <\/button>\n      <\/div>\n<\/p><\/div>\n<div v-else class=\"order-box\">\n<h2 class=\"section-title\">Controlla il tuo ordine<\/h2>\n<div class=\"top-grid\">\n<div class=\"top-card\">\n          <img :src=\"ordine.contenitore.image || placeholder\" :alt=\"ordine.contenitore.name\"><\/p>\n<div class=\"top-card-info\">\n<div class=\"top-card-label\">Contenitore<\/div>\n<div class=\"top-card-name\">{{ ordine.contenitore.name }}<\/div>\n<div class=\"top-card-price\">{{ formatEuro(ordine.contenitore.price) }}<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"top-card\">\n          <img :src=\"ordine.variante.image || placeholder\" :alt=\"ordine.variante.name\"><\/p>\n<div class=\"top-card-info\">\n<div class=\"top-card-label\">Variante<\/div>\n<div class=\"top-card-name\">{{ ordine.variante.name }}<\/div>\n<div class=\"top-card-price\">{{ formatEuro(ordine.variante.price) }}<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<h3 class=\"section-title\">Gusti selezionati<\/h3>\n<div class=\"gusti-grid\">\n<div class=\"gusto-card\" v-for=\"gusto in ordine.gusti\" :key=\"gusto.id\">\n<div class=\"gusto-badge\">x{{ gusto.qty }}<\/div>\n<p>          <img :src=\"gusto.image || placeholder\" :alt=\"gusto.name\"><\/p>\n<div class=\"gusto-info\">\n<div class=\"gusto-name\">{{ gusto.name }}<\/div>\n<div class=\"gusto-price\">{{ formatEuro(gusto.price) }}<\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"totale-box\">\n<div class=\"totale-label\">\n          Totale ordine \u2014 gusti selezionati: {{ ordine.qta_tot }}\/{{ ordine.max_gusti }}\n        <\/div>\n<div class=\"totale-value\">{{ formatEuro(ordine.totale) }}<\/div>\n<\/p><\/div>\n<div class=\"actions\">\n        <button class=\"action-btn btn-secondary\" type=\"button\" @click=\"tornaIndietro()\"><br \/>\n          Modifica ordine<br \/>\n        <\/button><\/p>\n<p>        <button class=\"action-btn btn-primary\" type=\"button\" @click=\"vaiAlCheckout()\"><br \/>\n          Procedi al pagamento<br \/>\n        <\/button>\n      <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<p><script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue\/dist\/vue.js\"><\/script><br \/>\n<script>\nnew Vue({\n  el: '#postordineApp',\n  data: {\n    ordine: null,\n    placeholder: 'https:\/\/via.placeholder.com\/800x600?text=Gelato'\n  },\n  mounted: function () {\n    this.caricaOrdine();\n  },\n  methods: {\n    caricaOrdine: function () {\n      try {\n        var rawSession = sessionStorage.getItem('gelato_config');\n        var rawLocal = localStorage.getItem('gelato_config');\n        var raw = rawSession || rawLocal;<\/p>\n<p>        if (!raw) {\n          this.ordine = null;\n          return;\n        }<\/p>\n<p>        var parsed = JSON.parse(raw);<\/p>\n<p>        if (!parsed || !parsed.contenitore || !parsed.variante || !parsed.gusti || !parsed.gusti.length) {\n          this.ordine = null;\n          return;\n        }<\/p>\n<p>        this.ordine = parsed;\n      } catch (e) {\n        this.ordine = null;\n      }\n    },<\/p>\n<p>    formatEuro: function (valore) {\n      return new Intl.NumberFormat('it-IT', {\n        style: 'currency',\n        currency: 'EUR'\n      }).format(parseFloat(valore || 0));\n    },<\/p>\n<p>    tornaIndietro: function () {\n      window.location.href = '\/sezioneconocoppetta\/';\n    },<\/p>\n<p>    vaiAlCheckout: function () {\n      window.location.href = '\/checkout\/';\n    }\n  }\n});\n<\/script><\/p>","protected":false},"excerpt":{"rendered":"<p>POSTORDINE RIEPILOGO DEL TUO GELATO Check your order before payment Nessun ordine trovato Non \u00e8 stato trovato nessun gelato composto. Torna alla composizione Controlla il tuo<span class=\"excerpt-hellip\"> [\u2026]<\/span><\/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-1589","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/pages\/1589","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/comments?post=1589"}],"version-history":[{"count":3,"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/pages\/1589\/revisions"}],"predecessor-version":[{"id":1595,"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/pages\/1589\/revisions\/1595"}],"wp:attachment":[{"href":"https:\/\/www.gelaterialeccapaletta.it\/en\/wp-json\/wp\/v2\/media?parent=1589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}