{"id":1629,"date":"2017-05-03T14:49:00","date_gmt":"2017-05-03T18:49:00","guid":{"rendered":"http:\/\/www.thatsoftwareguy.com\/blog\/?p=1629"},"modified":"2020-04-05T09:18:58","modified_gmt":"2020-04-05T13:18:58","slug":"better-together-for-zen-cart-updates","status":"publish","type":"post","link":"https:\/\/www.thatsoftwareguy.com\/blog\/2017\/05\/03\/better-together-for-zen-cart-updates\/","title":{"rendered":"Better Together for Zen Cart Updates"},"content":{"rendered":"<p>Back in 2013 I extended the one-to-one linkage concept in <a href=\"http:\/\/www.thatsoftwareguy.com\/zencart_better_together.html\">Zen Cart Better Together<\/a> with the One-to-Many feature. &nbsp;This addition of three new radio buttons in the Zen Cart admin panel effectively tripled the number of permutations of computed discounts. &nbsp;What could go wrong?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1630\" src=\"http:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-04-26-at-12.56.24-PM-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-04-26-at-12.56.24-PM-300x187.png 300w, https:\/\/www.thatsoftwareguy.com\/blog\/wp-content\/uploads\/2017\/05\/Screen-Shot-2017-04-26-at-12.56.24-PM.png 452w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Well, as it turned out, a number of things! &nbsp;Freed from the classic one-to-one constraint, the configuration<\/p>\n<pre>add_prod_to_prod(3,3)<\/pre>\n<p>would discount a *single* product 3, because it miscounted the number of items in the cart. &nbsp;You can see this error in the screenshot above.<\/p>\n<p>This bug is fixed in Better Together 2.5.3 for Zen Cart, which is available in the Plugins area.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back in 2013 I extended the one-to-one linkage concept in Zen Cart Better Together with the One-to-Many feature. &nbsp;This addition of three new radio buttons in the Zen Cart admin panel effectively tripled the number of permutations of computed discounts. &nbsp;What could go wrong? Well, as it turned out, a number of things! &nbsp;Freed from &hellip; <a href=\"https:\/\/www.thatsoftwareguy.com\/blog\/2017\/05\/03\/better-together-for-zen-cart-updates\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Better Together for Zen Cart Updates<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,78],"tags":[],"class_list":["post-1629","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\/1629","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=1629"}],"version-history":[{"count":3,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions"}],"predecessor-version":[{"id":2223,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/posts\/1629\/revisions\/2223"}],"wp:attachment":[{"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/media?parent=1629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/categories?post=1629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thatsoftwareguy.com\/blog\/wp-json\/wp\/v2\/tags?post=1629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}