{"id":1091,"date":"2021-07-13T04:06:37","date_gmt":"2021-07-13T09:06:37","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=1091"},"modified":"2021-07-13T04:06:38","modified_gmt":"2021-07-13T09:06:38","slug":"edd-3-0-beta3","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2021\/07\/13\/edd-3-0-beta3\/","title":{"rendered":"Easy Digital Downloads 3.0-beta3 now available"},"content":{"rendered":"\n<p>Our beta3 release is fairly small compared to the other two, but it  contains some pretty important bug fixes, which is why we wanted to make it available to anyone testing 3.0.<\/p>\n\n\n\n<p><strong>Important Note:<\/strong>&nbsp;This beta release is NOT production ready. It should only be tested on development sites. Do not install it on your live site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Migration fixes<\/h2>\n\n\n\n<p>We discovered that migrated order totals could be incorrect if the order had a fee applied that affected the entire order (as opposed to being linked to an individual item). This has now been resolved.<\/p>\n\n\n\n<p>While fixing the fee issue, we also found a few problems when migrating data from <em>very<\/em> <em>old<\/em> versions of Easy Digital Downloads &#8212; we&#8217;re talking back to 2013. Back then, individual payments didn&#8217;t even store things like the subtotal or exact discount amount, and that led to unexpected results when the data was migrated to the 3.0 format.<\/p>\n\n\n\n<p>Orders with discounts from that period still may not be perfect, but we&#8217;re confident we&#8217;ve done the best we can given the limited data from that era. It won&#8217;t be any worse than EDD 2.10, it&#8217;s just that EDD 3.0 exposes the problems that exist in 2.10 and are simply hidden. For example: if a discount amount wasn&#8217;t saved with an old EDD order, EDD 3.0 will show the discount amount as $0.00. That&#8217;s not technically correct; there <strong>was<\/strong> a discount amount, but because EDD never stored it we don&#8217;t know what it is.<\/p>\n\n\n\n<p>Other migration fixes include:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Undefined index errors when migrating some order addresses.<\/li><li>When migrating tax rates via the CLI we now show the before and after count.<\/li><li>Some very old PayPal orders didn&#8217;t have their transaction IDs migrated. This is because old orders didn&#8217;t store transaction IDs the way we do now, and they only existed in order notes. These are now migrated over.<\/li><li>Some currency codes were saved (and thus also migrated) in lowercase, which caused unexpected results in our UIs. We now ensure all currency codes are uppercase when migrated.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">The sales log has been removed<\/h2>\n\n\n\n<p>The sales log has historically existed because it was too difficult for us to query on payments directly, due to storing data in post meta. EDD 3.0 has made the sales log no longer necessary, as we can now very easily query order data. However, the UI still existed.<\/p>\n\n\n\n<p>We made the decision to remove it when we found a bug: refund records were being included in the sales log incorrectly. Fixing that issue actually proved to be more complicated than expected, to the point where it would take less time to just remove the sales log and instead add the one missing feature to the main orders page: the ability to filter by download (product).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2021\/07\/edd-orders-product-filter.png\"><img loading=\"lazy\" decoding=\"async\" width=\"557\" height=\"333\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2021\/07\/edd-orders-product-filter.png\" alt=\"Product filter on the admin orders page\" class=\"wp-image-1093\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2021\/07\/edd-orders-product-filter.png 557w, https:\/\/easydigitaldownloads.com\/development\/files\/2021\/07\/edd-orders-product-filter-300x179.png 300w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>So there&#8217;s a shiny new feature for you!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Other bug fixes<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><code>EDD_Payments_Stats<\/code> methods returning unexpected results.<\/li><li><code>edd_store_discount()<\/code> had the default value for its second parameter changed from <code>null<\/code> to <code>0<\/code>, which broke backwards compatibility. This has now been reverted.<\/li><li>The <code>edd_post_insert_discount<\/code> hook wasn&#8217;t firing after adding a discount code from the admin UI. This caused at least one add-on to stop working with EDD 3.0.<\/li><li>The Discount API endpoint wasn&#8217;t 3.0-ready.<\/li><li>Negative fees were showing as positive on the admin orders UI.<\/li><li>Adding a manual order now supports inclusive taxes.<\/li><li>Several methods in the <code>EDD_Discount<\/code> class were missing compared to 2.x. (Such as the <code>get_name()<\/code> method.)<\/li><li>The tool for re-counting download stats was incorrectly including refunds. It now counts gross earnings, and the label has been updated to better clarify that.<\/li><li>Reports: Manually adding an invalid date to the custom range field could cause a fatal error.<\/li><li>A few discount note functions that were introduced in 3.0 and ultimately never used (due to later refactoring) have been removed. Those functions are: <code>edd_ajax_add_discount_note()<\/code>, <code>edd_delete_discount_note()<\/code>, and <code>edd_ajax_delete_discount_note()<\/code>. These were all AJAX callback functions and were never designed for public use.<\/li><li>Order item meta arrays were incorrectly being double serialized.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Installing and testing 3.0-beta3<\/h2>\n\n\n\n<p>The 3.0-beta3 release can be&nbsp;<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/releases\/download\/3.0-beta3\/easy-digital-downloads.zip\" target=\"_blank\" rel=\"noreferrer noopener\">downloaded from GitHub<\/a>&nbsp;and installed as normal. If you encounter any bugs, please&nbsp;<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\">search through our existing issues<\/a>. If there\u2019s not already an open issue, you may create a new one (after reading our&nbsp;<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/blob\/master\/CONTRIBUTING.md\">Contributor Guidelines<\/a>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Our beta3 release is fairly small compared to the other two, but it contains some pretty important bug fixes, which is why we wanted to make it available to anyone testing 3.0. Important Note:&nbsp;This beta&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2021\/07\/13\/edd-3-0-beta3\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":2782,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[17],"class_list":["post-1091","post","type-post","status-publish","format-standard","hentry","category-core","tag-3dd"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/users\/2782"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=1091"}],"version-history":[{"count":9,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1091\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1091\/revisions\/1106"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=1091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=1091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=1091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}