{"id":756,"date":"2019-01-14T15:00:45","date_gmt":"2019-01-14T21:00:45","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=756"},"modified":"2019-12-12T18:57:04","modified_gmt":"2019-12-13T00:57:04","slug":"easy-digital-downloads-3-0-update-january-14-1019","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2019\/01\/14\/easy-digital-downloads-3-0-update-january-14-1019\/","title":{"rendered":"Easy Digital Downloads 3.0 Update &#8211; January 14, 1019"},"content":{"rendered":"<p>Welcome back from the holidays, and as we stated before our holiday break we&#8217;re back with a bi-weekly Easy Digital Downloads 3.0 progress update. Over the holidays and last few weeks we&#8217;ve been working through to get some of the UI bugs fixed. Here are the highlights of the changes since our last update.<\/p>\n<h2>Improved AJAX responses for new AJAX actions<\/h2>\n<p>Easy Digital Downloads uses AJAX to make for a better user and administrative experience. They are collectively called &#8220;EDD Actions&#8221; when we use them via AJAX. In our pre-3.0 EDD Actions, we&#8217;ve always done our best to do as much error handling as we can. When presented with an error response we have always written the response to be <code>-1<\/code>. While this functions as a way for us to know that the AJAX response had an error, it doesn&#8217;t quite provide us with enough information to provide a better user experience to inform the user of an action that ends in error.<\/p>\n<p>In 3.0, we&#8217;ve added some new EDD Actions, but these will respond with a full JSON response when they are presented with an error, instead of the <code>-1<\/code>, as with our existing actions. These new actions are all centered around the new &#8216;Add Order&#8217; process. If all works as expected, we&#8217;ll investigate on making all our AJAX responses have full JSON responses, which should allow people customizing their EDD Shops to better serve their customers error messages when there is a problem.<\/p>\n<p><a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7070\">View the issue on GitHub<\/a>.<\/p>\n<h2>UI Fixes and improvements<\/h2>\n<p>A number of UI improvements and fixes were corrected, mostly centered around the administrative sections of Easy Digital Downloads. Here are some of those fixes:<\/p>\n<ul>\n<li>Card icon was no longer showing on checkout when entering the card number (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7087\">#7087<\/a>)<\/li>\n<li>Improved backwards compatibility of the &#8216;card&#8217; view for extensions (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/6773\">#6773<\/a>)<\/li>\n<li>Improved reports compatibility on larger screens (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7080\">#7080<\/a>)<\/li>\n<li>Updated tax settings to only show the rates subsection when taxes are enabled (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7109\">#7109<\/a>)<\/li>\n<\/ul>\n<h2>Status change for &#8216;completed&#8217; orders<\/h2>\n<p>In the past, orders (previously called payments) were stored in the same table as Posts and Pages. Therefore, we made the decision to take a &#8216;completed&#8217; order and mark it with a status of &#8216;publish&#8217; in the database. On the front end, this was output as &#8216;Completed&#8217;, but all of the code and database records referenced &#8216;publish&#8217; as the end state of an order that was in good standing. In Easy Digital Downloads 3.0 we&#8217;re changing this. Thanks to our new database tables we no longer feel the need to adhere to this status and have switched a &#8216;completed&#8217; order to have a status of &#8216;complete&#8217; in the database. This just brings our code and visual output into a more cohesive state, which makes Easy Digital Downloads easier to work with from a development perspective.<\/p>\n<p>While <em>not yet<\/em> merged into the <code>release\/3.0<\/code> branch, the changes are code-complete and ready for testing. If you want to follow along, you can <a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7089\">view this issue on GitHub<\/a>.<\/p>\n<h2>Other improvements and bug fixes<\/h2>\n<ul>\n<li>Fixed an issue where pasting in a URL for a file download would still deliver the old file that had been uploaded using the File Upload Dialog. (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/6713\">#6713<\/a>)<\/li>\n<li>Improved the <code>[downloads]<\/code> shortcode to not fatal error when it is used on a single download page. (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/6072\">#6072<\/a>)<\/li>\n<li>Corrected inconsistencies in the new Order Adjustments section of the Add Order screen. (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7108\">#7108<\/a>)<\/li>\n<li>Fixed a bug that caused a fatal error when creating a new customer while editing an existing order. (<a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues\/7096\">#7096<\/a>)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Welcome back from the holidays, and as we stated before our holiday break we&#8217;re back with a bi-weekly Easy Digital Downloads 3.0 progress update. Over the holidays and last few weeks we&#8217;ve been working through&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2019\/01\/14\/easy-digital-downloads-3-0-update-january-14-1019\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":650,"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-756","post","type-post","status-publish","format-standard","hentry","category-core","tag-3dd"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/756","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\/650"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=756"}],"version-history":[{"count":10,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":769,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/756\/revisions\/769"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}