{"id":2098,"date":"2019-05-06T09:50:01","date_gmt":"2019-05-06T13:50:01","guid":{"rendered":"https:\/\/www.thatsoftwareguy.com\/blog\/?p=2098"},"modified":"2019-05-06T09:50:35","modified_gmt":"2019-05-06T13:50:35","slug":"using-zen-cart-valid-cart-to-apply-checkout-rules","status":"publish","type":"post","link":"https:\/\/www.thatsoftwareguy.com\/blog\/2019\/05\/06\/using-zen-cart-valid-cart-to-apply-checkout-rules\/","title":{"rendered":"Using Zen Cart Valid Cart to apply checkout rules"},"content":{"rendered":"\n<p>One of my customers wanted to use <a href=\"https:\/\/www.thatsoftwareguy.com\/zencart_valid_cart.html\">Valid Cart<\/a> for Zen Cart to apply the rules shown in the matrix below.  If one of the products in the first column was in the cart, the customer also had to buy one of the products in columns 3-6, otherwise they would not be permitted to check out.  <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2019\/05\/valid_pairings-1024x378.png\" alt=\"\" class=\"wp-image-2099\" srcset=\"https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2019\/05\/valid_pairings-1024x378.png 1024w, https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2019\/05\/valid_pairings-300x111.png 300w, https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2019\/05\/valid_pairings-768x284.png 768w, https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2019\/05\/valid_pairings.png 1186w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This is easily done with Valid Cart, which will block checkout unless the rule is passed.  So trying to checkout with just product 489, for example (which is an add-on product) would not be permitted; the customer would need to add product 334, 385, 361 or 397 to the cart. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my customers wanted to use Valid Cart for Zen Cart to apply the rules shown in the matrix below. If one of the products in the first column was in the cart, the customer also had to buy one of the products in columns 3-6, otherwise they would not be permitted to check &hellip; <a href=\"https:\/\/www.thatsoftwareguy.com\/blog\/2019\/05\/06\/using-zen-cart-valid-cart-to-apply-checkout-rules\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Using Zen Cart Valid Cart to apply checkout rules<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,78],"tags":[],"class_list":["post-2098","post","type-post","status-publish","format-standard","hentry","category-that-software-guy","category-zen-cart"],"_links":{"self":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/comments?post=2098"}],"version-history":[{"count":3,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2098\/revisions"}],"predecessor-version":[{"id":2102,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/2098\/revisions\/2102"}],"wp:attachment":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/media?parent=2098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/categories?post=2098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/tags?post=2098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}