{"id":22,"date":"2025-04-28T11:47:23","date_gmt":"2025-04-28T11:47:23","guid":{"rendered":"https:\/\/help.storelinkr.com\/nl\/2025\/04\/28\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/"},"modified":"2025-04-28T11:47:23","modified_gmt":"2025-04-28T11:47:23","slug":"hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce","status":"publish","type":"post","link":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/","title":{"rendered":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce?"},"content":{"rendered":"<p>Als we in StoreLinkr de juiste productcondities hebben, sturen we deze ook door naar WooCommerce via de <a href=\"https:\/\/nl.wordpress.org\/plugins\/storelinkr\/\" target=\"_blank\">StoreLinkr plugin<\/a>. Wij moeten dan wel de conditie ook inlezen van je databron, bijvoorbeeld een kassapakket.<\/p>\n<h2>Voorbeeld code<\/h2>\n<p>Gebruik onderstaande snippet om op een productpagina van WooCommerce de gebruikt status weer te geven. Deze code kan je ook gebruiken als basis om je webshop verder op te bouwen:<\/p>\n<pre>add_action(&#39;woocommerce_single_product_summary&#39;, function() {\n    global $product;\n\n    if (!$product instanceof WC_Product) {\n        return;\n    }\n\n    $used = $product-&gt;get_meta(&#39;used&#39;);\n\n    if ($used !== &#39;&#39; &amp;&amp; $used !== null) {\n        \/\/ 0 = new\n        \/\/ 1 = used\n        echo &#39;&lt;p&gt;&lt;strong&gt;Used:&lt;\/strong&gt; &#39; . esc_html($used) . &#39;&lt;\/p&gt;&#39;;\n    } else {\n        echo &#39;&lt;p&gt;&lt;strong&gt;Used-veld not found.&lt;\/strong&gt;&lt;\/p&gt;&#39;;\n    }\n});\n<\/pre>\n<p>De code kijkt naar het meta_veld &quot;used&quot; van het product object. Hierin wordt \u00e9\u00e9n van de volgende values opgeslagen:<\/p>\n<ul>\n<li>0 = nieuw<\/li>\n<li>1 = gebruikt<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Als we in StoreLinkr de juiste productcondities hebben, sturen we deze ook door naar WooCommerce via de StoreLinkr plugin. Wij moeten dan wel de conditie ook inlezen van je databron, bijvoorbeeld een kassapakket. Voorbeeld code Gebruik onderstaande snippet om op een productpagina van WooCommerce de gebruikt status weer te geven. Deze code kan je ook [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[8],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-woocommerce"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank<\/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:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank\" \/>\n<meta property=\"og:description\" content=\"Als we in StoreLinkr de juiste productcondities hebben, sturen we deze ook door naar WooCommerce via de StoreLinkr plugin. Wij moeten dan wel de conditie ook inlezen van je databron, bijvoorbeeld een kassapakket. Voorbeeld code Gebruik onderstaande snippet om op een productpagina van WooCommerce de gebruikt status weer te geven. Deze code kan je ook [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"StoreLinkr kennisbank\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-28T11:47:23+00:00\" \/>\n<meta name=\"author\" content=\"martinvw\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"martinvw\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\"},\"author\":{\"name\":\"martinvw\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/eac16d2aee01e4affd1a5065d21780cc\"},\"headline\":\"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce?\",\"datePublished\":\"2025-04-28T11:47:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\"},\"wordCount\":100,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#organization\"},\"articleSection\":[\"WooCommerce\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\",\"url\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\",\"name\":\"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank\",\"isPartOf\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#website\"},\"datePublished\":\"2025-04-28T11:47:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/help.storelinkr.com\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#website\",\"url\":\"https:\/\/help.storelinkr.com\/nl\/\",\"name\":\"StoreLinkr ondersteuning\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/help.storelinkr.com\/nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#organization\",\"name\":\"StoreLinkr ondersteuning\",\"url\":\"https:\/\/help.storelinkr.com\/nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/help.storelinkr.com\/nl\/wp-content\/uploads\/sites\/2\/2025\/08\/storelinkr.png\",\"contentUrl\":\"https:\/\/help.storelinkr.com\/nl\/wp-content\/uploads\/sites\/2\/2025\/08\/storelinkr.png\",\"width\":361,\"height\":100,\"caption\":\"StoreLinkr ondersteuning\"},\"image\":{\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/eac16d2aee01e4affd1a5065d21780cc\",\"name\":\"martinvw\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ae3891871e36b05485abab28b48ad02816f4096a4dafb1bb295d98ba932b8d0a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ae3891871e36b05485abab28b48ad02816f4096a4dafb1bb295d98ba932b8d0a?s=96&d=mm&r=g\",\"caption\":\"martinvw\"},\"sameAs\":[\"https:\/\/help.storelinkr.com\"],\"url\":\"https:\/\/help.storelinkr.com\/nl\/author\/martinvw\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank","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:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/","og_locale":"nl_NL","og_type":"article","og_title":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank","og_description":"Als we in StoreLinkr de juiste productcondities hebben, sturen we deze ook door naar WooCommerce via de StoreLinkr plugin. Wij moeten dan wel de conditie ook inlezen van je databron, bijvoorbeeld een kassapakket. Voorbeeld code Gebruik onderstaande snippet om op een productpagina van WooCommerce de gebruikt status weer te geven. Deze code kan je ook [&hellip;]","og_url":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/","og_site_name":"StoreLinkr kennisbank","article_published_time":"2025-04-28T11:47:23+00:00","author":"martinvw","twitter_card":"summary_large_image","twitter_misc":{"Geschreven door":"martinvw","Geschatte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#article","isPartOf":{"@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/"},"author":{"name":"martinvw","@id":"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/eac16d2aee01e4affd1a5065d21780cc"},"headline":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce?","datePublished":"2025-04-28T11:47:23+00:00","mainEntityOfPage":{"@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/"},"wordCount":100,"commentCount":0,"publisher":{"@id":"https:\/\/help.storelinkr.com\/nl\/#organization"},"articleSection":["WooCommerce"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/","url":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/","name":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce? - StoreLinkr kennisbank","isPartOf":{"@id":"https:\/\/help.storelinkr.com\/nl\/#website"},"datePublished":"2025-04-28T11:47:23+00:00","breadcrumb":{"@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/help.storelinkr.com\/nl\/hoe-kan-ik-de-conditie-nieuw-of-gebruikt-tonen-in-woocommerce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/help.storelinkr.com\/nl\/"},{"@type":"ListItem","position":2,"name":"Hoe kan ik de conditie (nieuw of gebruikt) tonen in WooCommerce?"}]},{"@type":"WebSite","@id":"https:\/\/help.storelinkr.com\/nl\/#website","url":"https:\/\/help.storelinkr.com\/nl\/","name":"StoreLinkr ondersteuning","description":"","publisher":{"@id":"https:\/\/help.storelinkr.com\/nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/help.storelinkr.com\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":"Organization","@id":"https:\/\/help.storelinkr.com\/nl\/#organization","name":"StoreLinkr ondersteuning","url":"https:\/\/help.storelinkr.com\/nl\/","logo":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/help.storelinkr.com\/nl\/#\/schema\/logo\/image\/","url":"https:\/\/help.storelinkr.com\/nl\/wp-content\/uploads\/sites\/2\/2025\/08\/storelinkr.png","contentUrl":"https:\/\/help.storelinkr.com\/nl\/wp-content\/uploads\/sites\/2\/2025\/08\/storelinkr.png","width":361,"height":100,"caption":"StoreLinkr ondersteuning"},"image":{"@id":"https:\/\/help.storelinkr.com\/nl\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/eac16d2aee01e4affd1a5065d21780cc","name":"martinvw","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/help.storelinkr.com\/nl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ae3891871e36b05485abab28b48ad02816f4096a4dafb1bb295d98ba932b8d0a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ae3891871e36b05485abab28b48ad02816f4096a4dafb1bb295d98ba932b8d0a?s=96&d=mm&r=g","caption":"martinvw"},"sameAs":["https:\/\/help.storelinkr.com"],"url":"https:\/\/help.storelinkr.com\/nl\/author\/martinvw\/"}]}},"_links":{"self":[{"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.storelinkr.com\/nl\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}