{"id":5249,"date":"2014-03-30T20:01:03","date_gmt":"2014-03-30T20:01:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/excluding-inherited-product-relationships-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:01:03","modified_gmt":"2014-03-30T20:01:03","slug":"excluding-inherited-product-relationships-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/excluding-inherited-product-relationships-collection-of-common-programming-errors\/","title":{"rendered":"Excluding inherited product relationships-Collection of common programming errors"},"content":{"rendered":"<p>Our client has come across a situation where they want a product relationship that is defined in the based catalog to NOT inherit into the Virtual Catalog OR they want to be able to invalidate\/exclude inherited relationships in the Virtual Catalog.<\/p>\n<p>The Catalog Manager UI will not allow one to remove a product relationship if it is inherited from the Base Catalog.<\/p>\n<p>My assumption is that the catalog relational database system cannot handle this type of scenario.<\/p>\n<p>The only suggestion that I came up with is to use the Description field of the relationship itself to store a magic value like inactive&#8217;.<\/p>\n<p>Then, at runtime, when this product relationship is being used to display a product, we could check the relationship description field \u00a0for that magic value prior to displaying the product.<\/p>\n<p>My question to you all is if you think there is a better way to do that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our client has come across a situation where they want a product relationship that is defined in the based catalog to NOT inherit into the Virtual Catalog OR they want to be able to invalidate\/exclude inherited relationships in the Virtual Catalog. The Catalog Manager UI will not allow one to remove a product relationship if [&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-5249","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5249","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=5249"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5249\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}