{"id":15755,"date":"2021-05-04T09:57:45","date_gmt":"2021-05-04T08:57:45","guid":{"rendered":"https:\/\/webshop.pic2pat.com\/bestell-tool\/"},"modified":"2021-05-04T23:23:55","modified_gmt":"2021-05-04T22:23:55","slug":"bestell-tool","status":"publish","type":"page","link":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/","title":{"rendered":"Bestell-Tool"},"content":{"rendered":"\n<p>Stickgarn f\u00fcr Muster, die vom Pic2Pat Kreuzstich-Mustergenerator erzeugt wurden, kann jetzt schnell und einfach mit unserem Bestell-Tool bestellt werden. Gib einfach die Nummer des Musters ein und erhalte die Farbliste.<\/p>\n\n<p>Alle Farben k\u00f6nnen dann in einem Schritt dem Warenkorb hinzugef\u00fcgt werden.<\/p>\n<p id=\"pattern_options_block\">Stofffarbe\n <select name=\"fabric_color\" id=\"fabric_color\"><option value=\"white\">Wei\u00df<\/option><option value=\"ecru\" selected>Ecru<\/option><\/select> &nbsp; Stichzahl <select name=\"fabric_size\" id=\"fabric_size\"><option value=\"6\">6 count<\/option><option value=\"11\">11 count<\/option><option value=\"14\" selected>14 count<\/option><option value=\"16\">16 count<\/option><option value=\"18\">18 count<\/option><\/select><\/p><p id=\"pattern_search_block\">Geben Sie Ihren Mustercode ein: P2P-<input name=\"pat_id\" id=\"pat_id\" type=\"number\" min=\"1\" max=\"9999999999\"> <input type=\"button\" id=\"button_search\" name=\"search\" value=\"Farbliste suchen\n\" onclick=\"loadpattern()\"> &nbsp; <input type=\"button\" id=\"button_add\" name=\"load\" value=\"In den Warenkorb hinzuf\u00fcgen\n\" onclick=\"loadcart()\"><\/p><div id=\"dummy_field3\"><\/div><div id=\"dummy_field\"><\/div><div id=\"color_list\"><\/div>\n<script>\n<!--\nvar doctitle = document.title;\nvar totlines = 0;\n\nfunction loadpattern() {\n    var pat_id = document.getElementById(\"pat_id\");\n    if (pat_id == undefined) pat_id = 0;\n    else pat_id = pat_id.value;\n\n    var fabric_color = document.getElementById(\"fabric_color\");\n    if (fabric_color == undefined) fabric_color = 0;\n    else fabric_color = fabric_color.value;\n\n    var fabric_size = document.getElementById(\"fabric_size\");\n    if (fabric_size == undefined) fabric_size = 0;\n    else fabric_size = fabric_size.value;\n\n    var xmlHttp = new XMLHttpRequest();\n    xmlHttp.onreadystatechange = function() {\n        if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {\n            document.getElementById(\"color_list\").innerHTML = xmlHttp.responseText;\n            totlines = document.getElementById(\"p2p_color_list\");\n            if (totlines == undefined) totlines = 0;\n            else totlines = totlines.rows.length - 1;\n            document.getElementById(\"button_add\").disabled = (totlines <= 0);\n        }\n    };\n    xmlHttp.open(\"GET\", \"https:\/\/webshop.pic2pat.com\/wp-content\/plugins\/theme-customisations\/custom\/colorlist.php?pat_id=\" + pat_id + \"&fabric_color=\" + fabric_color + \"&fabric_size=\" + fabric_size + \"&lang=de\", true);\n    xmlHttp.send(null);\n    return false;\n}\n\nfunction loadcart() {\n    var listEl = document.getElementById(\"p2p_color_list\");\n    totlines = (listEl == undefined) ? 0 : listEl.rows.length - 1;\n    if (totlines <= 0) return;\n\n    document.getElementById(\"button_search\").disabled = true;\n    document.getElementById(\"button_add\").disabled = true;\n    document.getElementById(\"dummy_field3\").textContent = \"Preparing \" + totlines + \" colors...\";\n\n    \/\/ Gather all items into a single array\n    var items = [];\n    for (var i = 0; i < totlines; i++) {\n        var idEl     = document.getElementById(\"pid\"    + i);\n        var skuEl    = document.getElementById(\"sku\"    + i);\n        var skeinsEl = document.getElementById(\"skeins\" + i);\n\n        var id     = idEl     ? parseInt(idEl.value, 10)     : 0;\n        var sku    = skuEl    ? skuEl.value                  : \"\";\n        var skeins = skeinsEl ? parseInt(skeinsEl.value, 10) : 0;\n\n        if (id > 0 && sku !== \"\" && skeins > 0) {\n            items.push({ id: id, sku: sku, skeins: skeins });\n        }\n    }\n\n    if (items.length === 0) {\n        document.getElementById(\"dummy_field3\").textContent = \"Nothing to add.\";\n        return;\n    }\n\n\n    document.getElementById(\"dummy_field3\").textContent = \"Adding 0 of \" + items.length + \" colors to cart...\";\n\n    var xmlHttp = new XMLHttpRequest();\n    var lastIndex = 0;\n\n    xmlHttp.onreadystatechange = function() {\n        \/\/ readyState 3 = receiving (streaming); 4 = done\n        if (xmlHttp.readyState >= 3) {\n            var chunk = xmlHttp.responseText.substring(lastIndex);\n            lastIndex = xmlHttp.responseText.length;\n\n            \/\/ Parse SSE events: each event ends with a blank line\n            var events = chunk.split(\"\\n\\n\");\n            for (var i = 0; i < events.length; i++) {\n                var block = events[i];\n                if (!block) continue;\n                var eventType = \"message\";\n                var dataLine = \"\";\n                var lines = block.split(\"\\n\");\n                for (var j = 0; j < lines.length; j++) {\n                    if (lines[j].indexOf(\"event: \") === 0) eventType = lines[j].substring(7);\n                    else if (lines[j].indexOf(\"data: \") === 0) dataLine = lines[j].substring(6);\n                }\n                if (!dataLine) continue;\n                try {\n                    var data = JSON.parse(dataLine);\n                    if (eventType === \"progress\") {\n                        document.getElementById(\"dummy_field3\").textContent =\n                            \"Adding \" + data.current + \" of \" + data.total + \" colors to cart...\";\n                    } else if (eventType === \"done\") {\n                        document.getElementById(\"dummy_field3\").textContent = \"Loading cart...\";\n                        window.location.href = \"https:\/\/webshop.pic2pat.com\/de\/cart\/\";\n                    } else if (eventType === \"error\") {\n                        document.getElementById(\"dummy_field3\").textContent = \"Error: \" + data.error;\n                    }\n                } catch (e) { \/* partial chunk, will arrive next time *\/ }\n            }\n        }\n    };\n\n    xmlHttp.open(\"POST\", \"https:\/\/webshop.pic2pat.com\/wp-content\/plugins\/theme-customisations\/custom\/additem.php\", true);\n    xmlHttp.setRequestHeader(\"Content-Type\", \"application\/json\");\n    xmlHttp.send(JSON.stringify({ items: items }));\n}\n\ndocument.getElementById(\"button_add\").disabled = true;\n\/\/-->\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>Stickgarn f\u00fcr Muster, die vom Pic2Pat Kreuzstich-Mustergenerator erzeugt wurden, kann jetzt schnell und einfach mit unserem Bestell-Tool bestellt werden. Gib einfach die Nummer des Musters ein und erhalte die Farbliste. Alle Farben k\u00f6nnen dann in einem Schritt dem Warenkorb hinzugef\u00fcgt werden.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-15755","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bestell-Tool - Pic2Pat<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bestell-Tool - Pic2Pat\" \/>\n<meta property=\"og:description\" content=\"Stickgarn f\u00fcr Muster, die vom Pic2Pat Kreuzstich-Mustergenerator erzeugt wurden, kann jetzt schnell und einfach mit unserem Bestell-Tool bestellt werden. Gib einfach die Nummer des Musters ein und erhalte die Farbliste. Alle Farben k\u00f6nnen dann in einem Schritt dem Warenkorb hinzugef\u00fcgt werden.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/\" \/>\n<meta property=\"og:site_name\" content=\"Pic2Pat\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-04T22:23:55+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/bestell-tool\\\/\",\"url\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/bestell-tool\\\/\",\"name\":\"Bestell-Tool - Pic2Pat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#website\"},\"datePublished\":\"2021-05-04T08:57:45+00:00\",\"dateModified\":\"2021-05-04T22:23:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/bestell-tool\\\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/bestell-tool\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/bestell-tool\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bestell-Tool\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#website\",\"url\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/\",\"name\":\"Pic2Pat\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#organization\",\"name\":\"Pic2Pat\",\"url\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/webshop.pic2pat.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/cropped-shop-logo.png\",\"contentUrl\":\"https:\\\/\\\/webshop.pic2pat.com\\\/wp-content\\\/uploads\\\/2021\\\/05\\\/cropped-shop-logo.png\",\"width\":470,\"height\":110,\"caption\":\"Pic2Pat\"},\"image\":{\"@id\":\"https:\\\/\\\/webshop.pic2pat.com\\\/de\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bestell-Tool - Pic2Pat","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/","og_locale":"de_DE","og_type":"article","og_title":"Bestell-Tool - Pic2Pat","og_description":"Stickgarn f\u00fcr Muster, die vom Pic2Pat Kreuzstich-Mustergenerator erzeugt wurden, kann jetzt schnell und einfach mit unserem Bestell-Tool bestellt werden. Gib einfach die Nummer des Musters ein und erhalte die Farbliste. Alle Farben k\u00f6nnen dann in einem Schritt dem Warenkorb hinzugef\u00fcgt werden.","og_url":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/","og_site_name":"Pic2Pat","article_modified_time":"2021-05-04T22:23:55+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/","url":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/","name":"Bestell-Tool - Pic2Pat","isPartOf":{"@id":"https:\/\/webshop.pic2pat.com\/de\/#website"},"datePublished":"2021-05-04T08:57:45+00:00","dateModified":"2021-05-04T22:23:55+00:00","breadcrumb":{"@id":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webshop.pic2pat.com\/de\/bestell-tool\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webshop.pic2pat.com\/de\/"},{"@type":"ListItem","position":2,"name":"Bestell-Tool"}]},{"@type":"WebSite","@id":"https:\/\/webshop.pic2pat.com\/de\/#website","url":"https:\/\/webshop.pic2pat.com\/de\/","name":"Pic2Pat","description":"","publisher":{"@id":"https:\/\/webshop.pic2pat.com\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webshop.pic2pat.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/webshop.pic2pat.com\/de\/#organization","name":"Pic2Pat","url":"https:\/\/webshop.pic2pat.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/webshop.pic2pat.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/webshop.pic2pat.com\/wp-content\/uploads\/2021\/05\/cropped-shop-logo.png","contentUrl":"https:\/\/webshop.pic2pat.com\/wp-content\/uploads\/2021\/05\/cropped-shop-logo.png","width":470,"height":110,"caption":"Pic2Pat"},"image":{"@id":"https:\/\/webshop.pic2pat.com\/de\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/pages\/15755","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/comments?post=15755"}],"version-history":[{"count":0,"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/pages\/15755\/revisions"}],"wp:attachment":[{"href":"https:\/\/webshop.pic2pat.com\/de\/wp-json\/wp\/v2\/media?parent=15755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}