{"id":70,"date":"2016-05-26T17:19:11","date_gmt":"2016-05-26T22:19:11","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=70"},"modified":"2021-12-15T15:31:19","modified_gmt":"2021-12-15T21:31:19","slug":"version-2-6-beta-1-now-available","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2016\/05\/26\/version-2-6-beta-1-now-available\/","title":{"rendered":"Version 2.6 beta 1 now available"},"content":{"rendered":"<p>Easy Digital Downloads version 2.6 is getting close to being ready. Today we&#8217;re happy to announce the first beta version of the release.<\/p>\n<p>There are numerous significant improvements in 2.6 and we would like to encourage all theme and plugin developers, as well as store owners, to test the beta version as soon as possible so that we can ensure the final release goes smoothly.<\/p>\n<p>2.6 includes more than 250 commits 10 different\u00a0contributors. Numerous other contributors assisted in bug reporting and enhancement testing.<\/p>\n<h3>Testing the beta<\/h3>\n<p>To ensure that the update to version 2.6 goes smoothly, we need as many people as possible to help test the beta. Every bug that we catch between now and the final release is one less problem for live sites.<\/p>\n<p><strong>Please do not test this beta on a live site. Use a staging or <a href=\"https:\/\/easydigitaldownloads.com\/blog\/a-testing-server-the-easy-way\/\" target=\"_blank\" rel=\"noopener\">development site<\/a>.<\/strong><\/p>\n<p>The latest version of the beta may be <a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/archive\/2.6-beta1.zip\" target=\"_blank\" rel=\"noopener\">downloaded from GitHub<\/a>.<\/p>\n<h3>Important changes<\/h3>\n<p>There are numerous important changes in 2.6, but there are several that we wish to highlight.<\/p>\n<p><strong>CSV product import<\/strong><\/p>\n<p>In version 2.5 we introduced <a href=\"https:\/\/easydigitaldownloads.com\/blog\/version-2-5-released\/\" target=\"_blank\" rel=\"noopener\">improved product export<\/a>. On the heels of that, we have now introduced a robust and reliable product import method for Easy Digital Downloads. From the\u00a0<em>Downloads &gt; Tools\u00a0<\/em><em>&gt; Import \/ Export\u00a0<\/em>page, you can now upload a CSV file of products and import them. This import process uses our batch processing API so can reliable handle hundreds or even thousands of products at a time.<\/p>\n<p><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.34.06-PM.png\" rel=\"attachment wp-att-71\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-71\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.34.06-PM.png\" alt=\"Product Import\" width=\"882\" height=\"192\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.34.06-PM.png 882w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.34.06-PM-300x65.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.34.06-PM-768x167.png 768w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/a><\/p>\n<p>The import process\u00a0includes a step where site administrators can map CSV columns to product fields, making the import capable of handling just about any CSV file.<\/p>\n<p><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM.png\" rel=\"attachment wp-att-72\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-72\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM-748x1024.png\" alt=\"Product Import Field Mapping\" width=\"722\" height=\"988\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM-748x1024.png 748w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM-219x300.png 219w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM-768x1051.png 768w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.35.04-PM.png 866w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/a><\/p>\n<p><strong>CSV payment import<\/strong><\/p>\n<p>Similarly to the CSV product import, we have also introduced a CSV importer for payment records.<\/p>\n<p><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.36.43-PM.png\" rel=\"attachment wp-att-73\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-73\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.36.43-PM.png\" alt=\"CSV Payment Import\" width=\"877\" height=\"189\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.36.43-PM.png 877w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.36.43-PM-300x65.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.36.43-PM-768x166.png 768w\" sizes=\"auto, (max-width: 877px) 100vw, 877px\" \/><\/a><\/p>\n<p>Just like the product importer, site administrators are able to map the CSV columns to specific payment fields, making it possible to import just about any CSV file.<\/p>\n<p>These two import options are designed to replace the rather unreliable <a href=\"https:\/\/wordpress.org\/plugins\/easy-digital-downloads-csv-manager\/\" target=\"_blank\" rel=\"noopener\">CSV Manager plugin<\/a>.<\/p>\n<p><strong>Additional email address for customers<\/strong><\/p>\n<p>As most people are aware, almost everyone has at least two email address. Some has as many as 5 or 10. It&#8217;s very common for customers to purchase\u00a0a product with one email address then come back later, log into their account, and use a different email.<\/p>\n<p>In 2.6, we have introduced support for\u00a0secondary email addresses on customer records.<\/p>\n<p><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.47.21-PM.png\" rel=\"attachment wp-att-74\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-74\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.47.21-PM.png\" alt=\"Custom Details\" width=\"755\" height=\"558\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.47.21-PM.png 755w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.47.21-PM-300x222.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<p>This enhancement makes record keeping easier and helps prevent customers from having multiple accounts. Customers can return to your site and purchase with any of the email addresses on their account and the purchases will be attributed properly.<\/p>\n<p><strong>Customer metadata API<\/strong><\/p>\n<p>We have introduced a metadata API\u00a0for customers. This API is nearly identical to the standard WordPress postmeta and usermeta APIs except it is for customer records.<\/p>\n<p>The\u00a0<a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/1004-eddcustomer\" target=\"_blank\" rel=\"noopener\">EDD_Customer<\/a>\u00a0class has new helper methods for adding, updating, deleting, and retrieving metadata.<\/p>\n<ul>\n<li>add_meta()<\/li>\n<li>update_meta()<\/li>\n<li>delete_meta()<\/li>\n<li>get_meta()<\/li>\n<\/ul>\n<p>These methods work just like the standard WordPress metadata functions, except they are methods within the EDD_Customer class.<\/p>\n<pre>$customer = new EDD_Customer( 1 );\r\n$meta = $customer-&gt;get_meta( $key, $single = true );<\/pre>\n<p><strong>PayPal refunds<\/strong><\/p>\n<p>For version 2.6, one of the most significant\u00a0features for store owners is the ability to refund PayPal payments directly from the\u00a0<em>View Order Details <\/em>screen.<\/p>\n<p>To initiate a refund, simply change the status to\u00a0<em>Refunded\u00a0<\/em>and check the box to refund the payment in PayPal:<\/p>\n<p><a href=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.54.53-PM.png\" rel=\"attachment wp-att-75\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-75\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.54.53-PM.png\" alt=\"Refund in PayPal\" width=\"291\" height=\"466\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.54.53-PM.png 291w, https:\/\/easydigitaldownloads.com\/development\/files\/2016\/05\/Screen-Shot-2016-05-26-at-2.54.53-PM-187x300.png 187w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p>Refunding PayPal payments is made possible through the introduction of additional settings in\u00a0<em>Downloads &gt; Settings &gt; Payment Gateways &gt; PayPal Standard\u00a0<\/em>for account API keys. In order to refund payments to PayPal, API keys from the PayPal account must be set.<\/p>\n<p><strong>EDD REST API V2<\/strong><\/p>\n<p>We are including\u00a0<em>v2\u00a0<\/em>of our REST API in Easy Digital Downloads 2.6, which\u00a0adds several enhancements to the API and introduces a few breaking changes.<\/p>\n<p>If you are not familiar with our API versioning, see <a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/1132-edd-rest-api---versioning\">our documentation<\/a>. Note: the documentation has not been updated to reflect v2 at\u00a0this time but will be before 2.6 is officially released.<\/p>\n<p>V2 of the REST API includes the following changes:<\/p>\n<ul>\n<li>\/customers\/ endpoint now properly shows the customer&#8217;s ID instead of the associated user ID<\/li>\n<li>\/customers\/ endpoint now includes the customer&#8217;s creation date<\/li>\n<li>\/customers\/ endpoint now accepts a &#8220;date&#8221; parameter<\/li>\n<li>\/products\/ endpoint now includes product SKUs<\/li>\n<li>\/products\/ endpoint now accepts a &#8220;s&#8221; parameter for searching<\/li>\n<li>\/products\/ endpoint now accepts a &#8220;category&#8221; parameter<\/li>\n<li>\/products\/ endpoint now accepts a &#8220;tag&#8221; parameter<\/li>\n<li>\/sales\/ endpoint now includes more verbose details for &#8220;discounts&#8221; field<\/li>\n<\/ul>\n<p>To see exact changes in the REST API v2, see <a href=\"https:\/\/github.com\/easydigitaldownloads\/easy-digital-downloads\/issues?q=milestone%3A2.6+label%3AAPI\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>.<\/p>\n<p><strong>Other notable improvements<\/strong><\/p>\n<p>The\u00a0changes above are the primary features we&#8217;d like to highlight, but there are other important improvements\u00a0as well.<\/p>\n<ul>\n<li>Credit card number fields\u00a0on checkout now\u00a0use the proper input types to trigger a numerical keyboard type on mobile devices<\/li>\n<li>All HTML tables now include a common &#8220;edd-table&#8221; class<\/li>\n<li>Several new actions added to the increase_earnings(), increase_sales(), decrease_sales(), and decrease_earnings() methods of EDD_Download<\/li>\n<li>edd_get_payment_status() now accepts a payment ID or object<\/li>\n<li>Download product oEmbed templates now display prices<\/li>\n<li>Added support for post__in to [[downloads]]<\/li>\n<li>Added new &#8220;edd_gateway_loaded&#8221; JS trigger<\/li>\n<li>Log in and register forms now redirect to purcahse history page by default<\/li>\n<li>Duplicate function for getting success page URL deprecated<\/li>\n<li>EDD_Fees now supports price_id specific fees<\/li>\n<li>Download ID is now shown on Downloads list table<\/li>\n<li>EDD_Customer now includes a get_payments() method<\/li>\n<li>Added new &#8220;Products (raw)&#8221; column to payment history export<\/li>\n<\/ul>\n<p><strong>Notable bugs fixed<\/strong><\/p>\n<p>As with any release, there are always bugs to fix. In 2.6 beta 1 we have fixed 24 bugs.<\/p>\n<ul>\n<li>\/customers\/ endpoint of REST API shows user ID in place of customer ID<\/li>\n<li>Incorrect heading set on new user notification emails<\/li>\n<li>&#8220;nostates&#8221; response for country drop down fields fails sometimes due to non-trimmed whitespace<\/li>\n<li>Resolved occasional PHP notice with\u00a0edd_get_users_purchased_products()<\/li>\n<li>Flat rate discounts can result in a purchase total\u00a0becoming negative<\/li>\n<li>Transients deleted during uninstall are non-performant<\/li>\n<li>Sales log shows incorrect price option<\/li>\n<li>Accessibility problems with navigation tabs of customer details pages<\/li>\n<li>User ID not stored properly on payment records in some cases<\/li>\n<li>Hooks in EDD_API fire once for each time EDD_API is instantiated<\/li>\n<li>Incorrect message on change password form<\/li>\n<li>Accessibility problem with Add New button for variable prices<\/li>\n<li>Accessibility problem with delete button for variable prices<\/li>\n<li>Clicking purchase multiple times on checkout can result in empty cart message<\/li>\n<li>Some settings not retrieved with edd_get_option()<\/li>\n<li>No gateway enabled error shown erroneously even when purchase total is 0.00<\/li>\n<li>Customer details screen not responsive<\/li>\n<li>Incorrect &#8220;for&#8221; attributes in purchase\u00a0form when a page contains multiple purchase forms<\/li>\n<li>Invalid schema microdata on some pages<\/li>\n<li>Missing priceCurrency schema microdata<\/li>\n<\/ul>\n<p>At this time, we hope to release version 2.6 on or near June\u00a022, 2016.<\/p>\n<p>Have a question or comment? Think you found a bug? Let us know by leaving a comment below!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Easy Digital Downloads version 2.6 is getting close to being ready. Today we&#8217;re happy to announce the first beta version of the release.<\/p>\n<p>There are numerous significant improvements in 2.6 and we would like to encourage all theme and plugin developers, as well as store owners, to test the beta version as soon as possible so that we can ensure the final release goes smoothly.<\/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":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-core"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/70","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=70"}],"version-history":[{"count":2,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":1119,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/70\/revisions\/1119"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}