{"id":4130,"date":"2014-03-30T07:58:47","date_gmt":"2014-03-30T07:58:47","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/getting-a-productid-from-a-variantid-only-collection-of-common-programming-errors\/"},"modified":"2014-03-30T07:58:47","modified_gmt":"2014-03-30T07:58:47","slug":"getting-a-productid-from-a-variantid-only-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/getting-a-productid-from-a-variantid-only-collection-of-common-programming-errors\/","title":{"rendered":"Getting a ProductID from a VariantID ONLY.-Collection of common programming errors"},"content":{"rendered":"<p>Via URL, my application is being given a Product&#8217;s VariantID, but NOT a product id.<\/p>\n<p>I&#8217;m using a WebService Soap Client to access the Commerce Server, as well as a CatalogContext.<\/p>\n<p>How do I retrieve information on the product, when you only have a VariantID?<\/p>\n<p>or, how do I retrieve a productID via a VariantID?<\/p>\n<p>getProduct() and getVariant() require a VariantID AND a ProductID.<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Via URL, my application is being given a Product&#8217;s VariantID, but NOT a product id. I&#8217;m using a WebService Soap Client to access the Commerce Server, as well as a CatalogContext. How do I retrieve information on the product, when you only have a VariantID? or, how do I retrieve a productID via a VariantID? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4130","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4130"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4130\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}