{"id":1222,"date":"2026-09-18T20:28:37","date_gmt":"2026-09-18T18:28:37","guid":{"rendered":"https:\/\/test.hardcoverdiscounter.com\/calculateur-de-prix\/"},"modified":"2026-11-22T21:28:35","modified_gmt":"2026-11-22T20:28:35","slug":"calculateur-de-prix","status":"publish","type":"page","link":"https:\/\/hardcoverdiscounter.com\/fr\/calculateur-de-prix\/","title":{"rendered":"Calculateur de prix"},"content":{"rendered":"\n<style>\n.hcd-calc-pagina{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:48px;align-items:start;margin-top:8px}\n.hcd-calc-links h2{font-size:28px;font-weight:700;line-height:1.25;margin:0 0 12px}\n.hcd-calc-links h3{font-size:19px;font-weight:600;line-height:1.3;margin:28px 0 8px;color:#0f172a}\n.hcd-calc-links p{font-size:16px;line-height:1.65;color:#475569;margin:0 0 12px}\n.hcd-calc-keuzes{list-style:none !important;padding:0 !important;margin:0}.hcd-calc-keuzes li{list-style:none !important}.hcd-calc-keuzes li::marker{content:none}\n.hcd-calc-keuzes li{position:relative;padding-left:26px;margin:0 0 8px;font-size:16px;line-height:1.55;color:#475569}\n.hcd-calc-keuzes li:before{content:\"\\2713\";position:absolute;left:0;top:0;color:#0d59f2;font-weight:700}\n.hcd-calc-keuzes strong{color:#0f172a}\n.hcd-prodfig{margin:0 0 28px;aspect-ratio:1\/1;border-radius:50%;overflow:hidden;background:#e9edf2;box-shadow:0 10px 30px rgba(15,23,42,.10)}\n.hcd-prodfig img{width:100%;height:100%;object-fit:cover;display:block}\n@media (max-width:900px){.hcd-calc-pagina{grid-template-columns:1fr;gap:24px}.hcd-prodfig{max-width:380px;margin:0 auto 20px}}\n<\/style>\n<div class=\"hcd-calc-pagina\">\n<div class=\"hcd-calc-links\">\n<figure class=\"hcd-prodfig\"><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/09\/kookboek-drukken-hardcover-DLkq1Nd2.jpg\" alt=\"Livre de cuisine reli\u00e9, ouvert\"><\/figure>\n<h2>Calculez directement le prix de votre livre reli\u00e9<\/h2>\n<p>Composez votre livre ici m\u00eame et voyez imm\u00e9diatement ce qu\u2019il co\u00fbte, sans attendre de devis. Vous commandez directement aupr\u00e8s du fabricant, d\u00e8s un exemplaire et jusqu\u2019\u00e0 500.<\/p>\n<h3>Que pouvez-vous choisir ?<\/h3>\n<ul class=\"hcd-calc-keuzes\">\n<li><strong>Format<\/strong> : A4 et A5, portrait ou paysage, carr\u00e9 (148 ou 210 mm) ou 170 \u00d7 240 mm.<\/li>\n<li><strong>Int\u00e9rieur<\/strong> : en couleur ou en noir et blanc, sur papier silk, mat ou brillant de 80 \u00e0 170 g\/m\u00b2.<\/li>\n<li><strong>Couverture<\/strong> : imprim\u00e9e en quadrichromie, avec une finition mate ou brillante ou en toile, avec un dos rond ou droit.<\/li>\n<li><strong>Finition<\/strong> : pages de garde blanches et, pour plus de solidit\u00e9, une reliure cousue.<\/li>\n<li><strong>Tirage<\/strong> : plus il y a d\u2019exemplaires, plus le prix par livre est bas.<\/li>\n<\/ul>\n<h3>Quel papier convient \u00e0 votre livre ?<\/h3>\n<p>Le calculateur est r\u00e9gl\u00e9 par d\u00e9faut sur du silk 170 g\/m\u00b2. C\u2019est un papier \u00e9pais sur lequel photos et illustrations ressortent nettes et color\u00e9es, id\u00e9al pour les livres de cuisine, les livres photo et les \u00e9ditions anniversaire. Si votre livre contient surtout du texte, comme un roman ou une biographie, un papier plus l\u00e9ger de 90 \u00e0 120 g\/m\u00b2 se lit agr\u00e9ablement et garde le livre maniable. Le papier mat donne un aspect sobre et calme ; le brillant fait davantage ressortir les couleurs.<\/p>\n<h3>D\u00e9lai de livraison et exp\u00e9dition<\/h3>\n<p>En standard, nous fabriquons vos livres en 7 jours de production, sans suppl\u00e9ment. Press\u00e9 ? Avec la production urgente, il faut 5 jours de production, avec la production express 4. Vous voyez le suppl\u00e9ment imm\u00e9diatement dans le calculateur. Ensuite, nous comptons encore 2 jours pour le transport. La livraison est gratuite.<\/p>\n<h3>D\u2019abord un exemplaire d\u2019essai ?<\/h3>\n<p>Comme vous pouvez commander d\u00e8s un exemplaire, vous pouvez d\u2019abord faire imprimer un seul livre et voir le papier, la couleur et la finition en vrai. Satisfait ? Commandez ensuite le reste du tirage.<\/p>\n<\/div>\n<div class=\"hcd-calc-rechts\">\n<div class=\"pie-calc\" data-config=\"{&quot;category&quot;:&quot;hardcover&quot;,&quot;label&quot;:&quot;Livre \\u00e0 couverture rigide&quot;,&quot;base_price&quot;:5,&quot;fields&quot;:[{&quot;key&quot;:&quot;format&quot;,&quot;label&quot;:&quot;Format&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;a4-staand&quot;,&quot;label&quot;:&quot;A4 portrait (21 x 29,7 cm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;a4-liggend&quot;,&quot;label&quot;:&quot;A4 paysage (29,7 x 21 cm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;a5-staand&quot;,&quot;label&quot;:&quot;A5 portrait (14,8 x 21 cm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;a5-liggend&quot;,&quot;label&quot;:&quot;A5 paysage (21 x 14,8 cm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;v148&quot;,&quot;label&quot;:&quot;Carr\\u00e9 (148 x 148 mm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;vierkant&quot;,&quot;label&quot;:&quot;Carr\\u00e9 (21 x 21 cm)&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75},{&quot;key&quot;:&quot;f170x240&quot;,&quot;label&quot;:&quot;170 x 240 mm&quot;,&quot;sales_price&quot;:5.25,&quot;cost&quot;:3,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;pages&quot;,&quot;label&quot;:&quot;Nombre de pages (couverture comprise)&quot;,&quot;type&quot;:&quot;number&quot;,&quot;options&quot;:[],&quot;unit&quot;:&quot;p.&quot;,&quot;default&quot;:100,&quot;min&quot;:60,&quot;max&quot;:600,&quot;step&quot;:2},{&quot;key&quot;:&quot;print&quot;,&quot;label&quot;:&quot;Impression int\\u00e9rieure&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;fc&quot;,&quot;label&quot;:&quot;Quadrichromie (4\\\/4)&quot;,&quot;sales_price&quot;:0.035,&quot;cost&quot;:0.02,&quot;marge&quot;:74.9},{&quot;key&quot;:&quot;bw&quot;,&quot;label&quot;:&quot;Noir et blanc (1\\\/1)&quot;,&quot;sales_price&quot;:0.014,&quot;cost&quot;:0.008,&quot;marge&quot;:75}],&quot;per_page&quot;:true},{&quot;key&quot;:&quot;paper_type&quot;,&quot;label&quot;:&quot;Papier int\\u00e9rieur&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;silk&quot;,&quot;label&quot;:&quot;Silk&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;mat&quot;,&quot;label&quot;:&quot;Mat&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;gloss&quot;,&quot;label&quot;:&quot;Brillant&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75}],&quot;per_page&quot;:true},{&quot;key&quot;:&quot;paper_weight&quot;,&quot;label&quot;:&quot;Grammage du papier&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;115&quot;,&quot;label&quot;:&quot;115 g\\\/m2&quot;,&quot;sales_price&quot;:0.009,&quot;cost&quot;:0.005,&quot;marge&quot;:75},{&quot;key&quot;:&quot;80&quot;,&quot;label&quot;:&quot;80 g\\\/m2&quot;,&quot;sales_price&quot;:0.005,&quot;cost&quot;:0.003,&quot;marge&quot;:75},{&quot;key&quot;:&quot;90&quot;,&quot;label&quot;:&quot;90 g\\\/m2&quot;,&quot;sales_price&quot;:0.007,&quot;cost&quot;:0.004,&quot;marge&quot;:75},{&quot;key&quot;:&quot;120&quot;,&quot;label&quot;:&quot;120 g\\\/m2&quot;,&quot;sales_price&quot;:0.012,&quot;cost&quot;:0.007,&quot;marge&quot;:75},{&quot;key&quot;:&quot;135&quot;,&quot;label&quot;:&quot;135 g\\\/m2&quot;,&quot;sales_price&quot;:0.014,&quot;cost&quot;:0.008,&quot;marge&quot;:75},{&quot;key&quot;:&quot;170&quot;,&quot;label&quot;:&quot;170 g\\\/m2&quot;,&quot;sales_price&quot;:0.019,&quot;cost&quot;:0.011,&quot;marge&quot;:75}],&quot;per_page&quot;:true},{&quot;key&quot;:&quot;cover_print&quot;,&quot;label&quot;:&quot;Impression de la couverture&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;4-0&quot;,&quot;label&quot;:&quot;Recto quadrichromie (4\\\/0)&quot;,&quot;sales_price&quot;:0.158,&quot;cost&quot;:0.09,&quot;marge&quot;:75},{&quot;key&quot;:&quot;4-4&quot;,&quot;label&quot;:&quot;Recto verso quadrichromie (4\\\/4)&quot;,&quot;sales_price&quot;:0.158,&quot;cost&quot;:0.09,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;finish&quot;,&quot;label&quot;:&quot;Finition&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;mat&quot;,&quot;label&quot;:&quot;Pelliculage mat&quot;,&quot;sales_price&quot;:0.14,&quot;cost&quot;:0.08,&quot;marge&quot;:75},{&quot;key&quot;:&quot;glans&quot;,&quot;label&quot;:&quot;Pelliculage brillant&quot;,&quot;sales_price&quot;:0.14,&quot;cost&quot;:0.08,&quot;marge&quot;:75},{&quot;key&quot;:&quot;linnen&quot;,&quot;label&quot;:&quot;Toile&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;spine&quot;,&quot;label&quot;:&quot;Dos&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;rond&quot;,&quot;label&quot;:&quot;Dos rond&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;recht&quot;,&quot;label&quot;:&quot;Dos carr\\u00e9&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;endpaper&quot;,&quot;label&quot;:&quot;Pages de garde&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;140-offset-wit&quot;,&quot;label&quot;:&quot;140 g\\\/m2 offset blanc&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;160-offset-wit&quot;,&quot;label&quot;:&quot;160 g\\\/m2 offset blanc&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;processing&quot;,&quot;label&quot;:&quot;Conditionnement&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;geen&quot;,&quot;label&quot;:&quot;Aucun&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;sealen&quot;,&quot;label&quot;:&quot;Sous film \\u00e0 l&#039;unit\\u00e9&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;delivery_time&quot;,&quot;label&quot;:&quot;D\\u00e9lai de production&quot;,&quot;type&quot;:&quot;select&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;standard&quot;,&quot;label&quot;:&quot;Production standard (7 jours de production)&quot;,&quot;sales_price&quot;:0,&quot;cost&quot;:0,&quot;marge&quot;:75},{&quot;key&quot;:&quot;rush&quot;,&quot;label&quot;:&quot;Production rapide (3 \\u00e0 5 jours de production)&quot;,&quot;sales_price&quot;:17.413,&quot;cost&quot;:9.95,&quot;marge&quot;:75},{&quot;key&quot;:&quot;express&quot;,&quot;label&quot;:&quot;Production express (2 \\u00e0 3 jours de production)&quot;,&quot;sales_price&quot;:34.913,&quot;cost&quot;:19.95,&quot;marge&quot;:75}],&quot;per_order&quot;:true},{&quot;key&quot;:&quot;genaaid&quot;,&quot;label&quot;:&quot;Reliure cousue&quot;,&quot;type&quot;:&quot;toggle&quot;,&quot;options&quot;:[{&quot;key&quot;:&quot;on&quot;,&quot;label&quot;:&quot;Avec reliure cousue&quot;,&quot;sales_price&quot;:2.625,&quot;cost&quot;:1.5,&quot;marge&quot;:75}]},{&quot;key&quot;:&quot;oplage&quot;,&quot;label&quot;:&quot;Nombre d&#039;exemplaires&quot;,&quot;type&quot;:&quot;number&quot;,&quot;options&quot;:[],&quot;is_quantity&quot;:true,&quot;default&quot;:1,&quot;min&quot;:1,&quot;max&quot;:1000}],&quot;staffels&quot;:[{&quot;min&quot;:1,&quot;mult&quot;:1},{&quot;min&quot;:10,&quot;mult&quot;:0.97},{&quot;min&quot;:25,&quot;mult&quot;:0.95},{&quot;min&quot;:50,&quot;mult&quot;:0.85},{&quot;min&quot;:200,&quot;mult&quot;:0.8},{&quot;min&quot;:300,&quot;mult&quot;:0.75}],&quot;btw&quot;:21,&quot;cart_url&quot;:&quot;\\\/winkelwagen&quot;,&quot;delivery_days&quot;:{&quot;standaard&quot;:7,&quot;snel&quot;:5,&quot;spoed&quot;:4}}\"><div class=\"pie-calc-head\"><span class=\"pie-calc-icoon\" aria-hidden=\"true\"><\/span>Calculateur de livre<\/div><div class=\"pie-calc-fields\"><\/div><div class=\"pie-calc-price\"><\/div><a class=\"pie-calc-order\" href=\"#\">Passer la commande<\/a><div class=\"pie-calc-tiers\"><\/div><\/div><script>window.pieAjax=\"https:\\\/\\\/hardcoverdiscounter.com\\\/wp-admin\\\/admin-ajax.php\";<\/script><style>\r\n.pie-calc{border:1px solid rgba(38,157,217,.2);border-radius:8px;padding:0 0 24px;max-width:none;background:#fff;font-size:15px}\r\n.pie-calc > *:not(.pie-calc-head){margin-left:24px;margin-right:24px}\r\n.pie-calc-head{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600;color:#020817;padding:20px 24px;margin:0 0 20px;border-radius:8px 8px 0 0;background-image:linear-gradient(to right,rgba(38,157,217,.1),rgba(13,89,242,.1))}\r\n.pie-calc-icoon{display:inline-block;width:16px;height:18px;flex:none;border:2px solid #0D59F2;border-radius:2px 4px 4px 2px;border-left-width:4px}\r\n.pie-calc-row{margin-bottom:12px}\r\n.pie-calc-row label{display:block;font-size:.85rem;color:#475569;margin-bottom:4px}\r\n.pie-calc-row select,.pie-calc-row input[type=number]{width:100%;padding:9px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px;box-sizing:border-box}\r\n.pie-calc-toggle{display:flex;align-items:center;gap:8px}\r\n.pie-calc-toggle input{width:auto}\r\n.pie-calc-price{margin-top:18px;background:#f6f8fb;border-radius:12px;padding:16px}\r\n.pie-calc-price .r{display:flex;justify-content:space-between;padding:3px 0;color:#475569}\r\n.pie-calc-price .r.total{border-top:1px solid #dbe3ee;margin-top:6px;padding-top:8px;font-weight:800;color:#0f172a;font-size:1.15rem}\r\n.hcd-inhoud a.pie-calc-order,a.pie-calc-order{display:inline-block;margin-top:16px;background:#0D59F2;color:#fff;text-decoration:none;padding:12px 20px;border-radius:8px;font-weight:600}\r\n.pie-vat-toggle{display:inline-flex;border:1px solid #d6dbe4;border-radius:8px;overflow:hidden;margin-bottom:10px}.pie-vat-toggle .pie-vat-seg{padding:6px 14px;background:#fff;color:#0f172a;border:0;cursor:pointer;font-size:13px;font-weight:600}.pie-vat-toggle .pie-vat-seg.on{background:#0D59F2;color:#fff}.hcd-inhoud a.pie-calc-order:hover,a.pie-calc-order:hover{background:#0A47C2;color:#fff}\r\n.pie-calc-tiers{margin-top:20px}\r\n.pie-calc-tiers table{width:100%;border-collapse:collapse;font-size:.9rem}\r\n.pie-calc-tiers th,.pie-calc-tiers td{text-align:left;padding:6px 8px;border-bottom:1px solid #eef2f7}\r\n.pie-calc-tiers th{color:#64748b;font-weight:600}\r\n<\/style><script>(function(){\r\n  function euro(n){return '\u20ac ' + n.toLocaleString('nl-NL',{minimumFractionDigits:2,maximumFractionDigits:2});}\r\n  function tierMult(staffels, qty){\r\n    var m=1; for(var i=0;i<staffels.length;i++){ if(qty>=staffels[i].min) m=staffels[i].mult; } return m;\r\n  }\r\n  function tierPost(staffels, qty){\r\n    var p=0; for(var i=0;i<staffels.length;i++){ if(qty>=staffels[i].min) p=parseFloat(staffels[i].post)||0; } return p;\r\n  }\r\n  function build(el){\r\n    var cfg;\r\n    try{ cfg=JSON.parse(el.getAttribute('data-config')); }catch(e){ return; }\r\n    var fieldsWrap=el.querySelector('.pie-calc-fields');\r\n    var priceWrap=el.querySelector('.pie-calc-price');\r\n    var tiersWrap=el.querySelector('.pie-calc-tiers');\r\n    var orderBtn=el.querySelector('.pie-calc-order');\r\n\r\n    cfg.fields.forEach(function(f){\r\n      var row=document.createElement('div'); row.className='pie-calc-row'; row.setAttribute('data-key',f.key);\r\n      if(f.type==='select'){\r\n        var lab=document.createElement('label'); lab.textContent=f.label; row.appendChild(lab);\r\n        var sel=document.createElement('select');\r\n        f.options.forEach(function(o){var op=document.createElement('option');op.value=o.key;op.textContent=o.label;sel.appendChild(op);});\r\n        row.appendChild(sel);\r\n      } else if(f.type==='number'){\r\n        var lab2=document.createElement('label'); lab2.textContent=f.label+(f.unit?' ('+f.unit+')':''); row.appendChild(lab2);\r\n        var inp=document.createElement('input'); inp.type='number'; inp.min='1'; inp.value=(f['default']||1); row.appendChild(inp);\r\n      } else if(f.type==='toggle'){\r\n        row.className='pie-calc-row pie-calc-toggle';\r\n        var cb=document.createElement('input'); cb.type='checkbox';\r\n        var lab3=document.createElement('label'); lab3.textContent=f.label; lab3.style.margin='0';\r\n        row.appendChild(cb); row.appendChild(lab3);\r\n      }\r\n      fieldsWrap.appendChild(row);\r\n    });\r\n\r\n    function readVal(f){\r\n      var row=fieldsWrap.querySelector('[data-key=\"'+f.key+'\"]');\r\n      if(!row) return null;\r\n      if(f.type==='select'){ var _ss=row.querySelectorAll('select'); if(_ss.length>1){ var _ks=(f.options||[]).map(function(o){return o.key;}); for(var _i=0;_i<_ss.length;_i++){ if(_ks.indexOf(_ss[_i].value)>-1) return _ss[_i].value; } } return row.querySelector('select').value; }\r\n      if(f.type==='number') return parseFloat(row.querySelector('input').value)||0;\r\n      if(f.type==='toggle') return row.querySelector('input').checked;\r\n      return null;\r\n    }\r\n    function pages(){ var p=cfg.fields.filter(function(f){return f.key==='pages';})[0]; return p?readVal(p):0; }\r\n    function qty(){ var q=cfg.fields.filter(function(f){return f.is_quantity;})[0]; return q?Math.max(1,readVal(q)):1; }\r\n\r\n    function perCopyAndOrder(pg){\r\n      var perCopy=parseFloat(cfg.base_price)||0, orderExtra=0;\r\n      cfg.fields.forEach(function(f){\r\n        if(f.type==='number') return;\r\n        var v=readVal(f); if(v===null) return;\r\n        if(f.type==='select'){\r\n          var o=f.options.filter(function(x){return x.key===v;})[0]; if(!o) return;\r\n          var p=o.sales_price; if(f.per_page) p=p*pg;\r\n          if(f.per_order) orderExtra+=p; else perCopy+=p;\r\n        } else if(f.type==='toggle'){\r\n          if(v){ var o2=f.options[0]; if(o2){ var p2=o2.sales_price; if(f.per_page)p2=p2*pg; if(f.per_order)orderExtra+=p2; else perCopy+=p2; } }\r\n        }\r\n      });\r\n      return {perCopy:perCopy, orderExtra:orderExtra};\r\n    }\r\n    function calc(q){\r\n      var pg=pages(); var pc=perCopyAndOrder(pg);\r\n      var mult=tierMult(cfg.staffels,q);\r\n      var base=pc.perCopy*mult;\r\n      var ex=base*q + pc.orderExtra + tierPost(cfg.staffels,q);\r\n      var unit=(q>0)?ex\/q:ex;\r\n      var inc=ex*(1+(parseFloat(cfg.btw)||0)\/100);\r\n      return {unit:unit, ex:ex, inc:inc, mult:mult, orderExtra:pc.orderExtra};\r\n    }\r\n\r\n    var pieVI=false;\r\n    function render(){\r\n      var _hl=(document.documentElement.lang||'').toLowerCase(); var PV=(_hl.indexOf('en')===0)?{unit:'Unit price',qty:'Quantity',ex:'Excl. VAT',in:'Incl. VAT',alt:'Alternative quantities'}:(_hl.indexOf('de')===0)?{unit:'St\u00fcckpreis',qty:'Menge',ex:'Exkl. MwSt.',in:'Inkl. MwSt.',alt:'Alternative Auflagen'}:(_hl.indexOf('fr')===0)?{unit:'Prix unitaire',qty:'Quantit\u00e9',ex:'Hors TVA',in:'TVA incl.',alt:'Autres quantit\u00e9s'}:(_hl.indexOf('es')===0)?{unit:'Precio unitario',qty:'Cantidad',ex:'Sin IVA',in:'Con IVA',alt:'Otras cantidades'}:{unit:'Stukprijs',qty:'Aantal',ex:'Excl. btw',in:'Incl. btw',alt:'Alternatieve oplages'}; \r\n      var q=qty(); var r=calc(q);\r\n      var vf=1+(parseFloat(cfg.btw)||0)\/100;\r\n      priceWrap.innerHTML='<div class=\"pie-vat-toggle\"><button type=\"button\" data-vat=\"ex\" class=\"pie-vat-seg'+(pieVI?'':' on')+'\">'+PV.ex+'<\/button><button type=\"button\" data-vat=\"in\" class=\"pie-vat-seg'+(pieVI?' on':'')+'\">'+PV.in+'<\/button><\/div>'+'<div class=\"r\"><span>'+PV.unit+'<\/span><span>'+euro(pieVI?r.unit*vf:r.unit)+'<\/span><\/div>'+'<div class=\"r\"><span>'+PV.qty+'<\/span><span>'+q+'<\/span><\/div>'+'<div class=\"r total\"><span>'+(pieVI?PV.in:PV.ex)+'<\/span><span>'+euro(pieVI?r.inc:r.ex)+'<\/span><\/div>';\r\n      [].forEach.call(priceWrap.querySelectorAll('.pie-vat-seg'),function(bn){bn.onclick=function(){pieVI=(this.getAttribute('data-vat')==='in');render();};});\r\n      var tiers=(cfg.staffels&&cfg.staffels.length?cfg.staffels.map(function(s){return s.min;}):[1,10,25,50,100,250,500]);\r\n      var rows='';\r\n      tiers.forEach(function(t){ var rr=calc(t); rows+='<tr><td>'+t+'<\/td><td>'+euro(pieVI?rr.unit*vf:rr.unit)+'<\/td><td>'+euro(pieVI?rr.inc:rr.ex)+'<\/td><\/tr>'; });\r\n      tiersWrap.innerHTML='<h4 style=\"margin:0 0 8px\">'+PV.alt+'<\/h4><table><thead><tr><th>'+PV.qty+'<\/th><th>'+PV.unit+'<\/th><th>'+(pieVI?PV.in:PV.ex)+'<\/th><\/tr><\/thead><tbody>'+rows+'<\/tbody><\/table>';\r\n\r\n    }\r\n\r\n    function lineItem(){\r\n      var q=qty(); var r=calc(q); var opts=[];\r\n      cfg.fields.forEach(function(f){\r\n        if(f.is_quantity) return;\r\n        var v=readVal(f);\r\n        if(f.type==='number'){ opts.push({label:f.label, value:String(v)}); }\r\n        else if(f.type==='select'){ var o=f.options.filter(function(x){return x.key===v;})[0]; opts.push({label:f.label, value:o?o.label:String(v)}); }\r\n        else if(f.type==='toggle'){ opts.push({label:f.label, value:v?'Oui':'Non'}); }\r\n      });\r\n      var spec={};\r\n      cfg.fields.forEach(function(f){ var v=readVal(f); if(v!==null&&v!=='') spec[f.key]=v; });\r\n      return {category:cfg.category, label:cfg.label, qty:q, spec:spec, unit:r.unit, ex:r.ex, inc:r.inc, btw:cfg.btw, ship:((r.orderExtra||0)*(1+(parseFloat(cfg.btw)||0)\/100)), options:opts};\r\n    }\r\n\r\n    orderBtn.addEventListener('click', function(e){\r\n      e.preventDefault();\r\n      var btn=this, oud=btn.textContent;\r\n      btn.disabled=true; btn.textContent='Veuillez patienter\\u2026';\r\n      fetch((window.pieAjax||'\/wp-admin\/admin-ajax.php')+'?action=pie_wc_add', {\r\n        method:'POST', headers:{'Content-Type':'application\/json'}, credentials:'same-origin',\r\n        body: JSON.stringify({cart: lineItem()})\r\n      }).then(function(res){ return res.json(); }).then(function(j){\r\n        if(j && j.success && j.data && j.data.redirect){ window.location.href = j.data.redirect; return; }\r\n        btn.disabled=false; btn.textContent=oud;\r\n        alert((j && j.data && j.data.msg) || 'Ajout au panier impossible.');\r\n      }).catch(function(){ btn.disabled=false; btn.textContent=oud; alert('\u00c9chec de la connexion.'); });\r\n    });\r\n\r\n    fieldsWrap.addEventListener('input', render);\r\n    fieldsWrap.addEventListener('change', render);\r\n    render();\r\n  }\r\n  document.addEventListener('DOMContentLoaded', function(){\r\n    document.querySelectorAll('.pie-calc').forEach(build);\r\n  });\r\n})();<\/script>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Calculez directement le prix de votre livre reli\u00e9 Composez votre livre ici m\u00eame et voyez imm\u00e9diatement ce qu\u2019il co\u00fbte, sans attendre de devis. Vous commandez directement aupr\u00e8s du fabricant, d\u00e8s un exemplaire et jusqu\u2019\u00e0 500. Que pouvez-vous choisir ? Format : A4 et A5, portrait ou paysage, carr\u00e9 (148 ou 210 mm) ou 170 \u00d7&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"class_list":["post-1222","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/pages\/1222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/comments?post=1222"}],"version-history":[{"count":1,"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/pages\/1222\/revisions"}],"predecessor-version":[{"id":1327,"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/pages\/1222\/revisions\/1327"}],"wp:attachment":[{"href":"https:\/\/hardcoverdiscounter.com\/fr\/wp-json\/wp\/v2\/media?parent=1222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}