Easy Digital Downloads - Version 2.6.9

Version Description

Download this release

Release Info

Developer cklosows
Plugin Icon 128x128 Easy Digital Downloads
Version 2.6.9
Comparing to
See all releases

Code changes from version 2.6.8 to 2.6.9

Files changed (39) hide show
  1. assets/css/edd-admin.css +4 -0
  2. assets/css/edd-admin.min.css +1 -1
  3. assets/js/admin-scripts.js +45 -3
  4. assets/js/admin-scripts.min.js +2 -2
  5. assets/js/edd-ajax.min.js +1 -1
  6. assets/js/edd-checkout-global.min.js +1 -1
  7. easy-digital-downloads.php +3 -3
  8. includes/admin/customers/customer-actions.php +3 -2
  9. includes/admin/discounts/add-discount.php +8 -8
  10. includes/admin/discounts/discount-actions.php +18 -2
  11. includes/admin/discounts/edit-discount.php +8 -8
  12. includes/admin/payments/actions.php +5 -6
  13. includes/admin/payments/class-payments-table.php +1 -0
  14. includes/admin/payments/view-order-details.php +24 -9
  15. includes/admin/reporting/export/class-batch-export-payments.php +1 -1
  16. includes/admin/settings/register-settings.php +3 -3
  17. includes/admin/tools/class-edd-tools-recount-all-stats.php +12 -1
  18. includes/admin/tools/class-edd-tools-recount-download-stats.php +14 -1
  19. includes/ajax-functions.php +69 -1
  20. includes/api/class-edd-api-v2.php +1 -1
  21. includes/api/class-edd-api.php +2 -0
  22. includes/checkout/template.php +1 -1
  23. includes/class-edd-customer.php +14 -0
  24. includes/class-edd-fees.php +13 -1
  25. includes/class-edd-html-elements.php +145 -15
  26. includes/discount-functions.php +0 -8
  27. includes/download-functions.php +56 -5
  28. includes/emails/actions.php +8 -1
  29. includes/emails/class-edd-emails.php +9 -0
  30. includes/emails/functions.php +6 -2
  31. includes/payments/actions.php +12 -2
  32. includes/payments/class-edd-payment.php +43 -9
  33. includes/payments/functions.php +11 -1
  34. includes/process-purchase.php +2 -2
  35. includes/user-functions.php +9 -1
  36. languages/easy-digital-downloads.pot +194 -184
  37. readme.txt +25 -1
  38. templates/edd.min.css +1 -1
  39. uninstall.php +16 -0
assets/css/edd-admin.css CHANGED
@@ -59,6 +59,7 @@ a.edd-delete:hover {
59
  max-width: 300px;
60
  padding: 7px;
61
  text-rendering: optimizeLegibility;
 
62
  }
63
 
64
  /* =Add Ons Styles
@@ -341,6 +342,9 @@ textarea#edd-payment-note {
341
  #edd-order-resend-receipt .inside {
342
  margin-top: 11px;
343
  }
 
 
 
344
  .edd-admin-box-inside:last-child {
345
  border-bottom: 0;
346
  }
59
  max-width: 300px;
60
  padding: 7px;
61
  text-rendering: optimizeLegibility;
62
+ z-index: 9999 !important;
63
  }
64
 
65
  /* =Add Ons Styles
342
  #edd-order-resend-receipt .inside {
343
  margin-top: 11px;
344
  }
345
+ #edd-order-resend-receipt .edd-order-resend-receipt-addresses {
346
+ margin-top: 10px;
347
+ }
348
  .edd-admin-box-inside:last-child {
349
  border-bottom: 0;
350
  }
assets/css/edd-admin.min.css CHANGED
@@ -1 +1 @@
1
- .edd-admin-box .label,.edd-admin-box-inside .strong{font-weight:600}.edd-mobile-link,.edd_repeatable_row td{vertical-align:middle}.edd-hidden{display:none}.edd-clearfix:after{content:".";display:block;height:0;text-indent:-9999px;visibility:hidden}.edd-wrap a{text-decoration:none}a.edd-delete{color:#a00}a.edd-delete:hover{color:red}.download_page_edd-settings .form-table label{color:#666;font-size:14px;font-style:italic;margin:4px 0 0}.download_page_edd-settings .form-table input.small-text~label,.download_page_edd-settings .form-table input[type=checkbox]+label{display:inline}.download_page_edd-settings .form-table tr>th>h3,.download_page_edd-settings .form-table tr>th>strong{font-size:1.2em;font-weight:600;margin:0 auto}.edd-help-tip{cursor:help}.edd-ui-tooltip{background:#333!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px rgba(214,214,214,.5);color:#dedede!important;max-width:300px;padding:7px;text-rendering:optimizeLegibility}#edd-add-ons h2.nav-tab-wrapper{position:relative}#edd-add-ons h2 .button-primary,.edd-tab-span{position:absolute}.edd-tab-span{top:-6px;right:0}.edd-add-ons-footer{padding-top:10px}#edd-add-ons h2{margin:0 0 15px}#edd-add-ons .edd-extension{background:#fff;border:1px solid #ccc;float:left;padding:14px;position:relative;margin:0 15px 15px 0;width:320px;height:315px}#edd-add-ons .edd-extension h3{font-size:13px;margin:0 0 8px}#edd-add-ons .edd-extension .button-secondary{position:absolute;bottom:14px;left:14px}#edd-add-ons .edd-browse-all{clear:both;width:100%}#edd-add-ons .edd-extension .third-party{display:none}#edd-add-ons .edd-starter-package{background-color:#85c0e5;border-color:#62a9d7;color:#fff}#edd-add-ons .edd-starter-package h3{color:#fff}#edd-add-ons .edd-extension .wp-post-image{width:100%;height:auto}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=checkbox],#edd-edit-discount input[type=checkbox]{width:15px}#edd-payment-filters{background:#f5f5f5;clear:both;background-image:-webkit-gradient(linear,left bottom,left top,from(#f5f5f5),to(#fafafa));background-image:-webkit-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-moz-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-o-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:linear-gradient(to top,#f5f5f5,#fafafa);border-color:#dfdfdf;border-width:1px;border-style:solid;border-radius:3px;font-size:13px;line-height:2.1em;overflow:auto;padding:12px;margin:8px 0}#edd-payments-filter ul.subsubsub{margin-bottom:8px}#edd-payment-filters p{color:#777}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.downloads th#ID{width:80px}.wp-list-table.downloads th#details{width:130px}.wp-list-table.downloads th#date{width:140px}.wp-list-table.downloads th#user{width:130px}.edd-mobile-link{line-height:32px}.edd-mobile-link img{max-width:80%;height:auto;float:left}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}.download_page_edd-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:left}.edd_files_url_label{width:220px;float:left}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}.edd_add_repeatable{display:inline-block}#downloadinformation .edd_meta_table_wrap table input,#downloadinformation .edd_meta_table_wrap table select,#downloadinformation .edd_meta_table_wrap table textarea{margin:4px 0;width:100%}#downloadinformation .edd_meta_table_wrap table .submit input{width:auto}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative}.edd_upload_file{background:#fff;display:block;padding:2px 8px;position:absolute;top:2px;right:7px}.edd_upload_field{padding-right:8em}.edd_remove_repeatable{border:none;cursor:pointer;display:inline-block;padding:0;overflow:hidden;margin:8px 0 0;text-indent:-9999px;width:10px;height:10px}.edd_remove_repeatable:active,.edd_remove_repeatable:focus,.edd_remove_repeatable:hover{background-position:-10px 0!important}.edd_draghandle{background:url(../images/edd-cross-hair.png);cursor:move;display:block;margin:4px 0 0;width:20px;height:20px}textarea#edd-payment-note{width:100%;height:4em;margin:0}.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%}#edd_product_notes_field{margin:0;width:98%;height:4em}.edd_repeatable_default_wrapper{text-align:center;width:25px}#edd-purchased-files ul li.remove,td.edd_order_price{text-align:right}.edd-admin-box-inside{border-bottom:1px solid #eee;clear:both;padding:3px 12px;margin:0;word-break:break-word}.rtl .edd-admin-box-inside{padding:5px 10px 5px 0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:right}.rtl .edd-admin-box .right{float:left;margin-left:10px}#edd-customer-details .actions,#edd-order-recalc-total{float:right}#edd-order-details .inside,#edd-order-update .inside{margin:0;padding:0}#edd-order-update input.edd_datepicker{width:180px}#edd-order-update input[type=number].edd-payment-time-hour,#edd-order-update input[type=number].edd-payment-time-min{width:50px}#edd-order-resend-receipt .inside{margin-top:11px}.edd-admin-box-inside:last-child{border-bottom:0}#edd-edit-order-form .data-payment-key{word-break:break-all}.edd-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#edd-purchased-files .edd-select-chosen{width:196px}#edd-customer-details .order-data-address input,#edd-customer-details .order-data-column p.data input,#edd-edit-order-form .column input,#edd-order-address-country-wrap select,#edd-purchased-files ul{clear:both;display:block}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}#edd-order-update span.label{display:inline;width:50px}.edd-order-update-box .button-primary{margin-right:0}#edd-edit-order-form .column .description{padding-right:10px}#edd-edit-order-form .column,#edd-purchased-files .inside>ul>li,#edd-purchased-files .row>ul>li{display:inline-block;line-height:30px;position:relative;margin-right:5%;vertical-align:middle}#edd-purchased-files li.actions{min-width:200px;text-align:right}#edd-purchased-files .row{border-bottom:1px solid #eee;padding:12px}#edd-purchased-files ul{font-size:0}#edd-purchased-files ul li{font-size:13px}#edd-order-data .data span{color:#666;font-weight:600}#edd-purchased-files .inside{padding:12px}.edd-price-field{width:80px}#edd_products .edd-select,.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%;max-width:200px}.edd_repeatable_product_wrapper td{overflow:visible}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}@media screen and (min-width:851px){#edd-purchased-files .inside li.actions{text-align:right}}@media screen and (max-width:1024px){#edd-edit-order-form .column{width:49%}}@media screen and (max-width:1280px) and (min-width:1279px){#edd-purchased-files .inside li.actions{width:35%}#edd-edit-order-form .column{width:32%}}@media screen and (min-width:1280px){#edd-edit-order-form .column,#edd-purchased-files.columns-3 .inside>ul>li,#edd-purchased-files.columns-3 .row>ul>li{width:32%;margin-right:3%}#edd-edit-order-form .columns-4 .column,#edd-purchased-files.columns-4 .inside>ul>li,#edd-purchased-files.columns-4 .row>ul>li{width:22%;margin-right:2%}#edd-edit-order-form .column:nth-child(2n+1),#edd-edit-order-form .columns-3 .column:nth-child(2n+1),#edd-edit-order-form .columns-4 .column:nth-child(3n+1){margin-right:0}#edd-purchased-files.columns-4 li.download{width:33%}#edd-purchased-files.columns-3 .inside>ul>li.price,#edd-purchased-files.columns-3 .row>ul>li.price,#edd-purchased-files.columns-4 li.price{width:14%}#edd-purchased-files.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1284px){#edd-edit-order-form .column strong{display:block}}#edd_product_stats .label{display:inline-block}#edd_product_stats hr{border-style:solid;border-width:1px;border-color:#ccc #fff #fff #ccc}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:400 20px/1 dashicons;display:inline-block;padding:0 2px 0 0;position:relative;top:0;left:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd-item-card-wrapper a.delete,#edd-item-stats-wrapper a,.customer-edit-link a,.disconnect-user a,.wrap-licenses .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover,.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}#edd_product_stats .product-sales-stats:before{content:'\f174'}#edd_product_stats .product-earnings-stats:before{content:'\f239'}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:left;width:45%}.edd_dashboard_widget .table_right{float:right;width:45%}.edd_dashboard_widget .inside{font-size:12px}.edd_dashboard_widget td{padding:3px 0}.edd_dashboard_widget .b,.edd_dashboard_widget .t{line-height:1.5;vertical-align:middle}.edd_dashboard_widget .b{font-size:14px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;padding-right:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-right:12px;color:#777;width:100%}.edd_dashboard_widget .label_heading{border-top:1px solid #ececec;color:#8f8f8f;font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;display:block;padding-top:10px;margin:0 0 8px 12px}.edd_dashboard_widget .edd_dashboard_widget_subheading{border-top:1px solid #ececec;color:#8f8f8f;font-size:14px;padding-top:10px;margin:1em 0 0}.edd_dashboard_widget .edd_dashboard_widget_subheading+.table{margin:8px 0 0}.edd_dashboard_widget .edd_price_label{background:#00769c;border-radius:3px;color:#fff;font-size:10px;padding:2px 4px;margin-right:2px}.edd_dashboard_widget table{width:100%;margin-left:0;margin-bottom:1em}td.edd_order_label{width:80%}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}#edd-dashboard-widgets-wrap .postbox h3{cursor:default}#edd-date-range-options,#edd-graphs-date-options{float:left}#edd-date-range-options span{float:left;line-height:24px;height:24px;margin-right:6px}.edd-import-export-form{position:relative}.edd-import-export-form .edd-progress{background:#ddd;position:absolute;bottom:15px;width:95%;height:15px}.edd-import-export-form .edd-progress div{background:#ccc;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-style:solid;border-width:1px 0;border-color:#eae9e9;padding:12px 12px 4px;overflow:auto;margin:20px -12px -23px}.edd-import-export-form .notice-wrap .spinner{margin:4px 10px 8px}.admin-color-fresh .edd-import-export-form .edd-progress div{background:#0073aa}.admin-color-light .edd-import-export-form .edd-progress div{background:#888}.admin-color-blue .edd-import-export-form .edd-progress div{background:#096484}.admin-color-coffee .edd-import-export-form .edd-progress div{background:#c7a589}.admin-color-ectoplasm .edd-import-export-form .edd-progress div{background:#a3b745}.admin-color-midnight .edd-import-export-form .edd-progress div{background:#e14d43}.admin-color-sunrise .edd-import-export-form .edd-progress div{background:#dd823b}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{float:left;line-height:2.5em;padding-right:5px}.edd-mix-totals{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:10px}.edd-mix-chart{display:inline-block;width:49%;vertical-align:top}.edd-graph-notes{color:#9c9c9c}.edd-graph-notes span{display:block}.edd-pie-graph .legend{display:none}.edd-pie-legend{overflow:auto;margin-top:10px}.edd-legend-item-wrapper{color:#333;display:inline-block;font-size:8pt;padding:2px 5px 0;width:48%;height:20px}.edd-legend-color{border:1px solid #cfcfcf;display:inline-block;margin-right:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd_tax_rates{margin:1em 0 0}#edd_tax_rates .edd_tax_country *,#edd_tax_rates .edd_tax_state *{max-width:100%}#edd_tax_rates .edd_tax_country,#edd_tax_rates .edd_tax_state{width:180px}#edd_tax_rates .edd_tax_rate{width:80px}#edd_tax_rates th{padding:15px 10px}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tbody,.wrap-licenses td,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}.wrap-licenses .form-table tr{float:left;margin:0 15px 15px 0;background:#fff;border:1px solid #ccc;width:30.5%;max-width:350px;padding:14px;min-height:220px;position:relative;box-sizing:border-box}.wrap-licenses .form-table th{background:#f9f9f9;padding:14px;border-bottom:1px solid #ccc;margin:-14px -14px 20px;width:100%}.wrap-licenses .form-table td{padding:0}.wrap-licenses td input.regular-text{margin:0 0 8px;width:100%}.wrap-licenses .edd-license-data[class*=edd-license-]{position:absolute;background:#fafafa;padding:14px;border-top:1px solid #eee;margin:20px -14px -14px;min-height:67px;width:100%;bottom:14px;box-sizing:border-box}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data.license-expires-soon-notice{background-color:#00a0d2;color:#fff;border-color:#00a0d2}.wrap-licenses .edd-license-data.edd-license-expired{background-color:#e24e4e;color:#fff;border-color:#e24e4e}.wrap-licenses .edd-license-data.edd-license-error,.wrap-licenses .edd-license-data.edd-license-invalid,.wrap-licenses .edd-license-data.edd-license-item_name_mismatch,.wrap-licenses .edd-license-data.edd-license-missing,.wrap-licenses .edd-license-data.edd-license-site_inactive{background-color:#ffebcd;border-color:#ffebcd}.wrap-licenses .edd-license-data p{font-size:13px;margin-top:0}.wrap-licenses .edd-license-data.edd-license-expired a,.wrap-licenses .edd-license-data.license-expires-soon-notice a{color:#fff}.wrap-licenses p.submit{clear:both}.post-type-download .fixed .column-name{width:27%}.post-type-download .fixed .column-description{width:30%}.post-type-download .fixed .column-slug{width:23%}.post-type-download .fixed .column-posts{text-align:left;width:17%}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px}#TB_window #edd-add-download:active,#TB_window #edd-add-download:focus,#TB_window #edd-add-download:hover{color:#fff}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.download_page_edd-tools .apikeys .column-user{width:192px}.edd-select-chosen{width:300px}.chosen-container-multi .chosen-choices{background-image:none;border-color:#dfdfdf;-webkit-border-radius:3px;border-radius:3px}.chosen-container-multi .chosen-choices input{border-color:#dfdfdf;height:27px!important;margin:2px}.chosen-container .chosen-drop{border-color:#aaa;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1)}.chosen-container .search-field{float:none!important}.chosen-container .search-field input{width:90%!important}.chosen-container-active .chosen-choices{border-color:#aaa;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1);border-radius:3px 3px 0 0}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_results{position:absolute;left:0;top:27px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#f0f0f0;border:1px solid #dfdfdf;overflow-y:scroll;padding:10px 10px 4px;margin:0;max-height:200px;width:300px}.wp-list-table .type-download .row-actions{color:#999}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}.wrap-licenses .form-table tr{width:46%;max-width:none;min-height:230px}}@media screen and (max-width:782px){.post-type-download .nav-tab-wrapper a{font-size:50%;padding:2px 4px}.download_page_edd-tools .apikeys .column-user{width:80px}.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}[class^=license-] input[type=text]{margin-bottom:3px}}@media screen and (max-width:600px){.wrap-licenses .form-table tr{width:100%;min-height:230px}}#edd-item-tab-wrapper{display:inline-block;margin-left:-1px;text-align:center;z-index:1}#edd-item-tab-wrapper-list li{background-color:#fff;width:32px;height:32px}#edd-item-tab-wrapper-list .inactive{background-color:#fff;border-left:1px solid #e5e5e5;color:#eee}#edd-item-tab-wrapper-list .inactive a,#edd-item-tab-wrapper-list .inactive a:visited{color:#eee;display:block;line-height:32px;text-decoration:none}#edd-item-tab-wrapper-list .inactive a:active,#edd-item-tab-wrapper-list .inactive a:focus,#edd-item-tab-wrapper-list .inactive a:hover{color:#444}#edd-item-tab-wrapper-list .active{border-color:#e5e5e5;border-style:solid;border-width:1px 1px 1px 0}#edd-item-tab-wrapper-list :not(:last-child){margin-bottom:3px}#edd-item-tab-wrapper-list .dashicons{font-size:24px;line-height:32px}#edd-item-card-wrapper .left{float:left}#edd-item-card-wrapper .right{float:right}#edd-item-card-wrapper input{font-weight:400}#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:24px;font-weight:600}#edd-item-card-wrapper{background-color:#fff;border:1px solid #e5e5e5;webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);display:inline-block;margin-left:-1px;min-height:200px;width:700px;z-index:2}#edd-item-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px;overflow:auto}#edd-item-card-wrapper .customer-section table{margin-bottom:20px}#edd-item-card-wrapper>div{padding:0 20px}#edd-item-card-wrapper>div:first-child{padding-top:20px}#edd-item-card-wrapper>div:last-child{border:none;padding-bottom:20px}#edd-item-card-wrapper .avatar-wrap{padding-right:10px;text-align:center}#edd-item-card-wrapper .customer-main-wrapper input{width:200px}#edd-item-card-wrapper .customer-address-wrapper{margin-right:25px;max-width:33%;width:202px}#edd-item-card-wrapper .customer-address-wrapper select,#edd-item-card-wrapper .edd_user_search_results ul{width:200px}#edd-item-card-wrapper .customer-info{margin-top:5px;margin-bottom:10px;min-height:185px}#edd-item-card-wrapper .info-wrapper{min-height:125px;overflow:visible}#edd-item-card-wrapper a.delete{color:red;margin-right:5px}.customer-edit-link a,.disconnect-user a{font-size:12px;font-weight:400}#customer-edit-actions{line-height:28px;margin-bottom:20px;text-align:center}#customer-edit-actions .button-secondary{margin-right:10px}#edd-item-card-wrapper .info-item{display:block;line-height:16px;padding-bottom:5px}#edd-item-card-wrapper .edit-item{display:none}#edd-item-card-wrapper .edd_user_search_results{left:1px;top:16px}#edd-item-stats-wrapper{margin:0 auto;min-height:30px;text-align:center}#edd-item-stats-wrapper li{font-size:14px;float:left;line-height:22px;width:50%}#edd-item-stats-wrapper .dashicons{color:#888}#edd-item-tables-wrapper table{text-align:center;width:100%}#edd-item-tables-wrapper th{text-align:center}#edd-item-tables-wrapper .downloads tr>td:first-child,#edd-item-tables-wrapper .downloads tr>th:first-child,#edd-item-tables-wrapper .emails tr>td:first-child,#edd-item-tables-wrapper .emails tr>th:first-child{text-align:left}#edd-item-tables-wrapper .downloads tr>td:only-child,.delete-customer{text-align:center}#edd-item-tables-wrapper .emails .add-customer-email-row td{background-color:#f9f9f9;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .emails .primary-email-icon{font-size:13px;vertical-align:middle;line-height:1.5em}#edd-item-tables-wrapper .emails input{vertical-align:middle;margin:6px 0}#edd-item-tables-wrapper .emails .spinner{float:none}#edd-item-notes-wrapper{min-height:50px}.edd-item-notes-header img,.edd-item-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{margin-bottom:5px;width:100%}#edd-customer-notes div:nth-of-type(even){background-color:#fcfcfc}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 0 7px 7px}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}#edd-item-card-wrapper .notice-wrap{padding-left:20px;padding-right:20px;margin-left:-20px;margin-right:-20px}@media screen and (max-width:810px) and (min-width:656px){#edd-item-card-wrapper{width:600px}.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell}}@media screen and (max-width:656px){#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper{margin:0;width:100%}#edd-item-tab-wrapper{margin:0 0 -5px}#edd-item-tab-wrapper-list{height:32px;margin:0}#edd-item-tab-wrapper-list .inactive{border-bottom:1px solid #e5e5e5;border-left:none}#edd-item-tab-wrapper-list .active{border-width:1px 1px 0}#edd-item-tab-wrapper-list li{float:left;margin:0 0 0 5px!important;width:32px;height:32px}#edd-item-tab-wrapper-list li span{width:32px;height:32px;margin:0!important}#edd-item-card-wrapper .customer-info{min-height:210px}.edd-item-info.customer-info{position:relative}#edd-item-card-wrapper .customer-address-wrapper{float:none;position:absolute;top:84px;left:110px;max-width:200px}#edd-item-card-wrapper .customer-main-wrapper{float:none;position:absolute;left:110px}#edd-item-card-wrapper #edd-item-stats-wrapper{padding-left:0;padding-right:0}#edd-item-card-wrapper .customer-section{margin-bottom:0}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell;overflow:hidden}#edd-item-card-wrapper>div:first-child{height:auto}}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}
1
+ .edd-admin-box .label,.edd-admin-box-inside .strong{font-weight:600}.edd-mobile-link,.edd_repeatable_row td{vertical-align:middle}.edd-hidden{display:none}.edd-clearfix:after{content:".";display:block;height:0;text-indent:-9999px;visibility:hidden}.edd-wrap a{text-decoration:none}a.edd-delete{color:#a00}a.edd-delete:hover{color:red}.download_page_edd-settings .form-table label{color:#666;font-size:14px;font-style:italic;margin:4px 0 0}.download_page_edd-settings .form-table input.small-text~label,.download_page_edd-settings .form-table input[type=checkbox]+label{display:inline}.download_page_edd-settings .form-table tr>th>h3,.download_page_edd-settings .form-table tr>th>strong{font-size:1.2em;font-weight:600;margin:0 auto}.edd-help-tip{cursor:help}.edd-ui-tooltip{background:#333!important;border-radius:3px!important;box-shadow:1px 1px 2px 1px rgba(214,214,214,.5);color:#dedede!important;max-width:300px;padding:7px;text-rendering:optimizeLegibility}#edd-add-ons h2.nav-tab-wrapper{position:relative}#edd-add-ons h2 .button-primary,.edd-tab-span{position:absolute}.edd-tab-span{top:-6px;right:0}.edd-add-ons-footer{padding-top:10px}#edd-add-ons h2{margin:0 0 15px}#edd-add-ons .edd-extension{background:#fff;border:1px solid #ccc;float:left;padding:14px;position:relative;margin:0 15px 15px 0;width:320px;height:315px}#edd-add-ons .edd-extension h3{font-size:13px;margin:0 0 8px}#edd-add-ons .edd-extension .button-secondary{position:absolute;bottom:14px;left:14px}#edd-add-ons .edd-browse-all{clear:both;width:100%}#edd-add-ons .edd-extension .third-party{display:none}#edd-add-ons .edd-starter-package{background-color:#85c0e5;border-color:#62a9d7;color:#fff}#edd-add-ons .edd-starter-package h3{color:#fff}#edd-add-ons .edd-extension .wp-post-image{width:100%;height:auto}#edd-products{height:100px;min-width:200px}#edd-add-discount input[type=checkbox],#edd-edit-discount input[type=checkbox]{width:15px}#edd-payment-filters{background:#f5f5f5;clear:both;background-image:-webkit-gradient(linear,left bottom,left top,from(#f5f5f5),to(#fafafa));background-image:-webkit-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-moz-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:-o-linear-gradient(bottom,#f5f5f5,#fafafa);background-image:linear-gradient(to top,#f5f5f5,#fafafa);border-color:#dfdfdf;border-width:1px;border-style:solid;border-radius:3px;font-size:13px;line-height:2.1em;overflow:auto;padding:12px;margin:8px 0}#edd-payments-filter ul.subsubsub{margin-bottom:8px}#edd-payment-filters p{color:#777}tr.status-refunded td{background:#cecece;border-top-color:#ccc}.wp-list-table.downloads th#ID{width:80px}.wp-list-table.downloads th#details{width:130px}.wp-list-table.downloads th#date{width:140px}.wp-list-table.downloads th#user{width:130px}.edd-mobile-link{line-height:32px}.edd-mobile-link img{max-width:80%;height:auto;float:left}@media handheld,only screen and (max-width:640px){.wp-list-table.downloads th{width:auto!important}}.download_page_edd-payment-history .ui-dialog .ui-dialog-titlebar-close span{margin-left:-8px;margin-top:-8px}#edd-download-link-textarea{width:100%}.edd_files_name_label{width:225px;float:left}.edd_files_url_label{width:220px;float:left}#postbox-container-1 .edd_files_name_label,#postbox-container-1 .edd_files_url_label{width:80px}.edd_add_repeatable{display:inline-block}#downloadinformation .edd_meta_table_wrap table input,#downloadinformation .edd_meta_table_wrap table select,#downloadinformation .edd_meta_table_wrap table textarea{margin:4px 0;width:100%}#downloadinformation .edd_meta_table_wrap table .submit input{width:auto}.edd_repeatable_upload_wrapper .edd_repeatable_upload_field_container{position:relative}.edd_upload_file{background:#fff;display:block;padding:2px 8px;position:absolute;top:2px;right:7px}.edd_upload_field{padding-right:8em}.edd_remove_repeatable{border:none;cursor:pointer;display:inline-block;padding:0;overflow:hidden;margin:8px 0 0;text-indent:-9999px;width:10px;height:10px}.edd_remove_repeatable:active,.edd_remove_repeatable:focus,.edd_remove_repeatable:hover{background-position:-10px 0!important}.edd_draghandle{background:url(../images/edd-cross-hair.png);cursor:move;display:block;margin:4px 0 0;width:20px;height:20px}textarea#edd-payment-note{width:100%;height:4em;margin:0}.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%}#edd_product_notes_field{margin:0;width:98%;height:4em}.edd_repeatable_default_wrapper{text-align:center;width:25px}#edd-purchased-files ul li.remove,td.edd_order_price{text-align:right}.edd-admin-box-inside{border-bottom:1px solid #eee;clear:both;padding:3px 12px;margin:0;word-break:break-word}.rtl .edd-admin-box-inside{padding:5px 10px 5px 0}.edd-payment-fees .fee-label{color:#666;font-weight:400}.edd-admin-box .right{float:right}.rtl .edd-admin-box .right{float:left;margin-left:10px}#edd-customer-details .actions,#edd-order-recalc-total{float:right}#edd-order-details .inside,#edd-order-update .inside{margin:0;padding:0}#edd-order-update input.edd_datepicker{width:180px}#edd-order-update input[type=number].edd-payment-time-hour,#edd-order-update input[type=number].edd-payment-time-min{width:50px}#edd-order-resend-receipt .inside{margin-top:11px}#edd-order-resend-receipt .edd-order-resend-receipt-addresses{margin-top:10px}.edd-admin-box-inside:last-child{border-bottom:0}#edd-edit-order-form .data-payment-key{word-break:break-all}.edd-order-update-box #major-publishing-actions .button-secondary{margin-right:10px}#edd-purchased-files .edd-select-chosen{width:196px}#edd-customer-details .order-data-address input,#edd-customer-details .order-data-column p.data input,#edd-edit-order-form .column input,#edd-order-address-country-wrap select,#edd-purchased-files ul{clear:both;display:block}.edd-order-data input.small-text{margin:0}.edd-order-data input.med-text{margin:0;width:100px}#edd-order-update span.label{display:inline;width:50px}.edd-order-update-box .button-primary{margin-right:0}#edd-edit-order-form .column .description{padding-right:10px}#edd-edit-order-form .column,#edd-purchased-files .inside>ul>li,#edd-purchased-files .row>ul>li{display:inline-block;line-height:30px;position:relative;margin-right:5%;vertical-align:middle}#edd-purchased-files li.actions{min-width:200px;text-align:right}#edd-purchased-files .row{border-bottom:1px solid #eee;padding:12px}#edd-purchased-files ul{font-size:0}#edd-purchased-files ul li{font-size:13px}#edd-order-data .data span{color:#666;font-weight:600}#edd-purchased-files .inside{padding:12px}.edd-price-field{width:80px}#edd_products .edd-select,.edd_repeatable_product_wrapper .edd-select,.edd_repeatable_upload_wrapper .pricing select{min-width:100%;max-width:200px}.edd_repeatable_product_wrapper td{overflow:visible}@media screen and (max-width:782px){.order-data-column input[type=email]{padding:6px 10px}}@media screen and (min-width:851px){#edd-purchased-files .inside li.actions{text-align:right}}@media screen and (max-width:1024px){#edd-edit-order-form .column{width:49%}}@media screen and (max-width:1280px) and (min-width:1279px){#edd-purchased-files .inside li.actions{width:35%}#edd-edit-order-form .column{width:32%}}@media screen and (min-width:1280px){#edd-edit-order-form .column,#edd-purchased-files.columns-3 .inside>ul>li,#edd-purchased-files.columns-3 .row>ul>li{width:32%;margin-right:3%}#edd-edit-order-form .columns-4 .column,#edd-purchased-files.columns-4 .inside>ul>li,#edd-purchased-files.columns-4 .row>ul>li{width:22%;margin-right:2%}#edd-edit-order-form .column:nth-child(2n+1),#edd-edit-order-form .columns-3 .column:nth-child(2n+1),#edd-edit-order-form .columns-4 .column:nth-child(3n+1){margin-right:0}#edd-purchased-files.columns-4 li.download{width:33%}#edd-purchased-files.columns-3 .inside>ul>li.price,#edd-purchased-files.columns-3 .row>ul>li.price,#edd-purchased-files.columns-4 li.price{width:14%}#edd-purchased-files.columns-4 li.actions{width:25%;margin-top:0;margin-right:0}}@media screen and (max-width:1284px){#edd-edit-order-form .column strong{display:block}}#edd_product_stats .label{display:inline-block}#edd_product_stats hr{border-style:solid;border-width:1px;border-color:#ccc #fff #fff #ccc}#edd_product_stats .product-earnings-stats:before,#edd_product_stats .product-sales-stats:before{color:#82878c;font:400 20px/1 dashicons;display:inline-block;padding:0 2px 0 0;position:relative;top:0;left:-1px;speak:none;text-decoration:none!important;vertical-align:top;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#edd-item-card-wrapper a.delete,#edd-item-stats-wrapper a,.customer-edit-link a,.disconnect-user a,.wrap-licenses .edd-license-data.edd-license-expired a:hover,.wrap-licenses .edd-license-data.license-expires-soon-notice a:hover,.wrap-licenses .edd-license-data[class*=edd-license-] a:hover{text-decoration:none}#edd_product_stats .product-sales-stats:before{content:'\f174'}#edd_product_stats .product-earnings-stats:before{content:'\f239'}.edd_dashboard_widget table thead td{border-bottom:1px solid #ececec;color:#777}.edd_dashboard_widget .table_left{float:left;width:45%}.edd_dashboard_widget .table_right{float:right;width:45%}.edd_dashboard_widget .inside{font-size:12px}.edd_dashboard_widget td{padding:3px 0}.edd_dashboard_widget .b,.edd_dashboard_widget .t{line-height:1.5;vertical-align:middle}.edd_dashboard_widget .b{font-size:14px;font-family:Georgia,"Times New Roman","Bitstream Charter",Times,serif;padding-right:6px;width:auto}.edd_dashboard_widget .t{font-size:12px;padding-right:12px;color:#777;width:100%}.edd_dashboard_widget .label_heading{border-top:1px solid #ececec;color:#8f8f8f;font-family:Helvetica,Arial,sans-serif;font-size:12px;font-weight:400;display:block;padding-top:10px;margin:0 0 8px 12px}.edd_dashboard_widget .edd_dashboard_widget_subheading{border-top:1px solid #ececec;color:#8f8f8f;font-size:14px;padding-top:10px;margin:1em 0 0}.edd_dashboard_widget .edd_dashboard_widget_subheading+.table{margin:8px 0 0}.edd_dashboard_widget .edd_price_label{background:#00769c;border-radius:3px;color:#fff;font-size:10px;padding:2px 4px;margin-right:2px}.edd_dashboard_widget table{width:100%;margin-left:0;margin-bottom:1em}td.edd_order_label{width:80%}@media handheld,only screen and (max-width:1000px){.edd_dashboard_widget .edd-recent-email{display:none}}#edd-dashboard-widgets-wrap .postbox h3{cursor:default}#edd-date-range-options,#edd-graphs-date-options{float:left}#edd-date-range-options span{float:left;line-height:24px;height:24px;margin-right:6px}.edd-import-export-form{position:relative}.edd-import-export-form .edd-progress{background:#ddd;position:absolute;bottom:15px;width:95%;height:15px}.edd-import-export-form .edd-progress div{background:#ccc;height:100%;width:0}.edd-import-export-form .notice-wrap{background-color:#f4f4f4;border-style:solid;border-width:1px 0;border-color:#eae9e9;padding:12px 12px 4px;overflow:auto;margin:20px -12px -23px}.edd-import-export-form .notice-wrap .spinner{margin:4px 10px 8px}.admin-color-fresh .edd-import-export-form .edd-progress div{background:#0073aa}.admin-color-light .edd-import-export-form .edd-progress div{background:#888}.admin-color-blue .edd-import-export-form .edd-progress div{background:#096484}.admin-color-coffee .edd-import-export-form .edd-progress div{background:#c7a589}.admin-color-ectoplasm .edd-import-export-form .edd-progress div{background:#a3b745}.admin-color-midnight .edd-import-export-form .edd-progress div{background:#e14d43}.admin-color-sunrise .edd-import-export-form .edd-progress div{background:#dd823b}#edd-graphs-filter label{vertical-align:inherit}#edd-graphs-filter .graph-option-section{float:left;line-height:2.5em;padding-right:5px}.edd-mix-totals{background-color:#fff;border:1px solid #e5e5e5;box-shadow:0 1px 1px rgba(0,0,0,.04);padding:10px}.edd-mix-chart{display:inline-block;width:49%;vertical-align:top}.edd-graph-notes{color:#9c9c9c}.edd-graph-notes span{display:block}.edd-pie-graph .legend{display:none}.edd-pie-legend{overflow:auto;margin-top:10px}.edd-legend-item-wrapper{color:#333;display:inline-block;font-size:8pt;padding:2px 5px 0;width:48%;height:20px}.edd-legend-color{border:1px solid #cfcfcf;display:inline-block;margin-right:5px;width:20px;height:15px}.edd-pie-legend-item{display:inline-block;vertical-align:top;width:80%}#edd_tax_rates{margin:1em 0 0}#edd_tax_rates .edd_tax_country *,#edd_tax_rates .edd_tax_state *{max-width:100%}#edd_tax_rates .edd_tax_country,#edd_tax_rates .edd_tax_state{width:180px}#edd_tax_rates .edd_tax_rate{width:80px}#edd_tax_rates th{padding:15px 10px}.wrap-licenses .form-table,.wrap-licenses caption,.wrap-licenses tbody,.wrap-licenses td,.wrap-licenses tfoot,.wrap-licenses th,.wrap-licenses thead,.wrap-licenses tr{display:block}.wrap-licenses .form-table tr{float:left;margin:0 15px 15px 0;background:#fff;border:1px solid #ccc;width:30.5%;max-width:350px;padding:14px;min-height:220px;position:relative;box-sizing:border-box}.wrap-licenses .form-table th{background:#f9f9f9;padding:14px;border-bottom:1px solid #ccc;margin:-14px -14px 20px;width:100%}.wrap-licenses .form-table td{padding:0}.wrap-licenses td input.regular-text{margin:0 0 8px;width:100%}.wrap-licenses .edd-license-data[class*=edd-license-]{position:absolute;background:#fafafa;padding:14px;border-top:1px solid #eee;margin:20px -14px -14px;min-height:67px;width:100%;bottom:14px;box-sizing:border-box}.wrap-licenses .edd-license-data[class*=edd-license-] a{color:#444}.wrap-licenses .edd-license-data.license-expires-soon-notice{background-color:#00a0d2;color:#fff;border-color:#00a0d2}.wrap-licenses .edd-license-data.edd-license-expired{background-color:#e24e4e;color:#fff;border-color:#e24e4e}.wrap-licenses .edd-license-data.edd-license-error,.wrap-licenses .edd-license-data.edd-license-invalid,.wrap-licenses .edd-license-data.edd-license-item_name_mismatch,.wrap-licenses .edd-license-data.edd-license-missing,.wrap-licenses .edd-license-data.edd-license-site_inactive{background-color:#ffebcd;border-color:#ffebcd}.wrap-licenses .edd-license-data p{font-size:13px;margin-top:0}.wrap-licenses .edd-license-data.edd-license-expired a,.wrap-licenses .edd-license-data.license-expires-soon-notice a{color:#fff}.wrap-licenses p.submit{clear:both}.post-type-download .fixed .column-name{width:27%}.post-type-download .fixed .column-description{width:30%}.post-type-download .fixed .column-slug{width:23%}.post-type-download .fixed .column-posts{text-align:left;width:17%}#system-info-textarea{background:0 0;font-family:Menlo,Monaco,monospace;display:block;overflow:auto;white-space:pre;width:800px;height:400px}#TB_window #edd-add-download:active,#TB_window #edd-add-download:focus,#TB_window #edd-add-download:hover{color:#fff}.edd-graph .y1Axis{color:#edc240!important}.edd-graph .y2Axis{color:#afd8f8!important}.download_page_edd-tools .apikeys .column-user{width:192px}.edd-select-chosen{width:300px}.chosen-container-multi .chosen-choices{background-image:none;border-color:#dfdfdf;-webkit-border-radius:3px;border-radius:3px}.chosen-container-multi .chosen-choices input{border-color:#dfdfdf;height:27px!important;margin:2px}.chosen-container .chosen-drop{border-color:#aaa;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1)}.chosen-container .search-field{float:none!important}.chosen-container .search-field input{width:90%!important}.chosen-container-active .chosen-choices{border-color:#aaa;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.1);box-shadow:1px 1px 2px rgba(0,0,0,.1);border-radius:3px 3px 0 0}.download_page_edd-tools .tablenav .actions{overflow:visible}.edd_user_search_wrap{position:relative;overflow:visible}.edd_user_search_results{position:absolute;left:0;top:27px}.edd_user_search_results a.edd-ajax-user-cancel{position:absolute;right:6px;top:2px}.edd_user_search_results ul{background:#f0f0f0;border:1px solid #dfdfdf;overflow-y:scroll;padding:10px 10px 4px;margin:0;max-height:200px;width:300px}.wp-list-table .type-download .row-actions{color:#999}@media screen and (max-width:1100px){.edd-mix-chart{display:block;width:100%}.wrap-licenses .form-table tr{width:46%;max-width:none;min-height:230px}}@media screen and (max-width:782px){.post-type-download .nav-tab-wrapper a{font-size:50%;padding:2px 4px}.download_page_edd-tools .apikeys .column-user{width:80px}.license-expiration-date-notice,.license-lifetime-notice,.license-null{padding-left:0}[class^=license-] input[type=text]{margin-bottom:3px}}@media screen and (max-width:600px){.wrap-licenses .form-table tr{width:100%;min-height:230px}}#edd-item-tab-wrapper{display:inline-block;margin-left:-1px;text-align:center;z-index:1}#edd-item-tab-wrapper-list li{background-color:#fff;width:32px;height:32px}#edd-item-tab-wrapper-list .inactive{background-color:#fff;border-left:1px solid #e5e5e5;color:#eee}#edd-item-tab-wrapper-list .inactive a,#edd-item-tab-wrapper-list .inactive a:visited{color:#eee;display:block;line-height:32px;text-decoration:none}#edd-item-tab-wrapper-list .inactive a:active,#edd-item-tab-wrapper-list .inactive a:focus,#edd-item-tab-wrapper-list .inactive a:hover{color:#444}#edd-item-tab-wrapper-list .active{border-color:#e5e5e5;border-style:solid;border-width:1px 1px 1px 0}#edd-item-tab-wrapper-list :not(:last-child){margin-bottom:3px}#edd-item-tab-wrapper-list .dashicons{font-size:24px;line-height:32px}#edd-item-card-wrapper .left{float:left}#edd-item-card-wrapper .right{float:right}#edd-item-card-wrapper input{font-weight:400}#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:24px;font-weight:600}#edd-item-card-wrapper{background-color:#fff;border:1px solid #e5e5e5;webkit-box-shadow:0 1px 1px rgba(0,0,0,.04);box-shadow:0 1px 1px rgba(0,0,0,.04);display:inline-block;margin-left:-1px;min-height:200px;width:700px;z-index:2}#edd-item-card-wrapper .customer-section{border-bottom:1px solid #eee;margin-bottom:10px;overflow:auto}#edd-item-card-wrapper .customer-section table{margin-bottom:20px}#edd-item-card-wrapper>div{padding:0 20px}#edd-item-card-wrapper>div:first-child{padding-top:20px}#edd-item-card-wrapper>div:last-child{border:none;padding-bottom:20px}#edd-item-card-wrapper .avatar-wrap{padding-right:10px;text-align:center}#edd-item-card-wrapper .customer-main-wrapper input{width:200px}#edd-item-card-wrapper .customer-address-wrapper{margin-right:25px;max-width:33%;width:202px}#edd-item-card-wrapper .customer-address-wrapper select,#edd-item-card-wrapper .edd_user_search_results ul{width:200px}#edd-item-card-wrapper .customer-info{margin-top:5px;margin-bottom:10px;min-height:185px}#edd-item-card-wrapper .info-wrapper{min-height:125px;overflow:visible}#edd-item-card-wrapper a.delete{color:red;margin-right:5px}.customer-edit-link a,.disconnect-user a{font-size:12px;font-weight:400}#customer-edit-actions{line-height:28px;margin-bottom:20px;text-align:center}#customer-edit-actions .button-secondary{margin-right:10px}#edd-item-card-wrapper .info-item{display:block;line-height:16px;padding-bottom:5px}#edd-item-card-wrapper .edit-item{display:none}#edd-item-card-wrapper .edd_user_search_results{left:1px;top:16px}#edd-item-stats-wrapper{margin:0 auto;min-height:30px;text-align:center}#edd-item-stats-wrapper li{font-size:14px;float:left;line-height:22px;width:50%}#edd-item-stats-wrapper .dashicons{color:#888}#edd-item-tables-wrapper table{text-align:center;width:100%}#edd-item-tables-wrapper th{text-align:center}#edd-item-tables-wrapper .downloads tr>td:first-child,#edd-item-tables-wrapper .downloads tr>th:first-child,#edd-item-tables-wrapper .emails tr>td:first-child,#edd-item-tables-wrapper .emails tr>th:first-child{text-align:left}#edd-item-tables-wrapper .downloads tr>td:only-child,.delete-customer{text-align:center}#edd-item-tables-wrapper .emails .add-customer-email-row td{background-color:#f9f9f9;border-top:1px solid #e5e5e5}#edd-item-tables-wrapper .emails .primary-email-icon{font-size:13px;vertical-align:middle;line-height:1.5em}#edd-item-tables-wrapper .emails input{vertical-align:middle;margin:6px 0}#edd-item-tables-wrapper .emails .spinner{float:none}#edd-item-notes-wrapper{min-height:50px}.edd-item-notes-header img,.edd-item-notes-header span{font-weight:600;line-height:30px;vertical-align:middle}.customer-note-input{margin-bottom:5px;width:100%}#edd-customer-notes div:nth-of-type(even){background-color:#fcfcfc}.customer-note-wrapper{border-bottom:1px solid #f9f9f9;min-height:38px;padding:7px 0 7px 7px}.customer-note-wrapper span{display:block}.note-content-wrap{padding-top:7px}#edd-item-card-wrapper .notice-wrap{padding-left:20px;padding-right:20px;margin-left:-20px;margin-right:-20px}@media screen and (max-width:810px) and (min-width:656px){#edd-item-card-wrapper{width:600px}.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell}}@media screen and (max-width:656px){#edd-item-card-wrapper .customer-id,.customer-info .customer-name{font-size:16px}#edd-item-card-wrapper{margin:0;width:100%}#edd-item-tab-wrapper{margin:0 0 -5px}#edd-item-tab-wrapper-list{height:32px;margin:0}#edd-item-tab-wrapper-list .inactive{border-bottom:1px solid #e5e5e5;border-left:none}#edd-item-tab-wrapper-list .active{border-width:1px 1px 0}#edd-item-tab-wrapper-list li{float:left;margin:0 0 0 5px!important;width:32px;height:32px}#edd-item-tab-wrapper-list li span{width:32px;height:32px;margin:0!important}#edd-item-card-wrapper .customer-info{min-height:210px}.edd-item-info.customer-info{position:relative}#edd-item-card-wrapper .customer-address-wrapper{float:none;position:absolute;top:84px;left:110px;max-width:200px}#edd-item-card-wrapper .customer-main-wrapper{float:none;position:absolute;left:110px}#edd-item-card-wrapper #edd-item-stats-wrapper{padding-left:0;padding-right:0}#edd-item-card-wrapper .customer-section{margin-bottom:0}#edd-item-card-wrapper .widefat td,.widefat th{padding:4px 6px;max-width:100px!important;display:table-cell;overflow:hidden}#edd-item-card-wrapper>div:first-child{height:auto}}.recount-stats-controls form{display:inline}.edd-recount-stats-descriptions span{display:none;line-height:24px}
assets/js/admin-scripts.js CHANGED
@@ -400,6 +400,8 @@ jQuery(document).ready(function ($) {
400
  };
401
  $.post(ajaxurl, data, function (response) {
402
  var state_wrapper = $( '#edd-order-address-state-wrap select, #edd-order-address-state-wrap input' );
 
 
403
  if( 'nostates' == response ) {
404
  state_wrapper.replaceWith( '<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>' );
405
  } else {
@@ -432,6 +434,9 @@ jQuery(document).ready(function ($) {
432
  var price_id = $('input[name="edd-payment-details-downloads['+key+'][price_id]"]').val();
433
  var quantity = $('input[name="edd-payment-details-downloads['+key+'][quantity]"]').val();
434
  var amount = $('input[name="edd-payment-details-downloads['+key+'][amount]"]').val();
 
 
 
435
 
436
  var currently_removed = $('input[name="edd-payment-removed"]').val();
437
  currently_removed = $.parseJSON(currently_removed);
@@ -445,6 +450,11 @@ jQuery(document).ready(function ($) {
445
  $('input[name="edd-payment-removed"]').val(JSON.stringify(currently_removed));
446
 
447
  $(this).parent().parent().parent().remove();
 
 
 
 
 
448
 
449
  // Flag the Downloads section as changed
450
  $('#edd-payment-downloads-changed').val(1);
@@ -694,9 +704,33 @@ jQuery(document).ready(function ($) {
694
  },
695
 
696
  resend_receipt : function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  $( document.body ).on( 'click', '#edd-resend-receipt', function( e ) {
 
698
  return confirm( edd_vars.resend_receipt );
 
699
  } );
 
700
  },
701
 
702
  copy_download_link : function() {
@@ -1186,14 +1220,22 @@ jQuery(document).ready(function ($) {
1186
  // Replace options with search results
1187
  $( document.body ).on( 'keyup', '.edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input', function(e) {
1188
 
1189
- var val = $(this).val(), container = $(this).closest( '.edd-select-chosen' );
 
1190
  var menu_id = container.attr('id').replace( '_chosen', '' );
1191
  var no_bundles = container.hasClass( 'no-bundles' );
 
1192
  var lastKey = e.which;
1193
  var search_type = 'edd_download_search';
1194
 
1195
  // Detect if we have a defined search type, otherwise default to downloads
1196
  if ( container.prev().data('search-type') ) {
 
 
 
 
 
 
1197
  search_type = 'edd_' + container.prev().data('search-type') + '_search';
1198
  }
1199
 
@@ -1222,14 +1264,14 @@ jQuery(document).ready(function ($) {
1222
  data: {
1223
  action: search_type,
1224
  s: val,
1225
- no_bundles: no_bundles
 
1226
  },
1227
  dataType: "json",
1228
  beforeSend: function(){
1229
  $('ul.chosen-results').empty();
1230
  },
1231
  success: function( data ) {
1232
-
1233
  // Remove all options but those that are selected
1234
  $('#' + menu_id + ' option:not(:selected)').remove();
1235
  $.each( data, function( key, item ) {
400
  };
401
  $.post(ajaxurl, data, function (response) {
402
  var state_wrapper = $( '#edd-order-address-state-wrap select, #edd-order-address-state-wrap input' );
403
+ // Remove any chosen containers here too
404
+ $( '#edd-order-address-state-wrap .chosen-container' ).remove();
405
  if( 'nostates' == response ) {
406
  state_wrapper.replaceWith( '<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>' );
407
  } else {
434
  var price_id = $('input[name="edd-payment-details-downloads['+key+'][price_id]"]').val();
435
  var quantity = $('input[name="edd-payment-details-downloads['+key+'][quantity]"]').val();
436
  var amount = $('input[name="edd-payment-details-downloads['+key+'][amount]"]').val();
437
+ if ( $('input[name="edd-payment-details-downloads['+key+'][fees]"]') ) {
438
+ var fees = $.parseJSON( $('input[name="edd-payment-details-downloads['+key+'][fees]"]').val() );
439
+ }
440
 
441
  var currently_removed = $('input[name="edd-payment-removed"]').val();
442
  currently_removed = $.parseJSON(currently_removed);
450
  $('input[name="edd-payment-removed"]').val(JSON.stringify(currently_removed));
451
 
452
  $(this).parent().parent().parent().remove();
453
+ if (fees.length) {
454
+ $.each( fees, function( key, value ) {
455
+ $('*li[data-fee-id="' + value + '"]').remove();
456
+ });
457
+ }
458
 
459
  // Flag the Downloads section as changed
460
  $('#edd-payment-downloads-changed').val(1);
704
  },
705
 
706
  resend_receipt : function() {
707
+
708
+ var emails_wrap = $('.edd-order-resend-receipt-addresses');
709
+
710
+ $( document.body ).on( 'click', '#edd-select-receipt-email', function( e ) {
711
+
712
+ e.preventDefault();
713
+ emails_wrap.slideDown();
714
+
715
+ } );
716
+
717
+ $( document.body ).on( 'change', '.edd-order-resend-receipt-email', function() {
718
+
719
+ var href = $('#edd-select-receipt-email').prop( 'href' ) + '&email=' + $(this).val();
720
+
721
+ if( confirm( edd_vars.resend_receipt ) ) {
722
+ window.location = href;
723
+ }
724
+
725
+ } );
726
+
727
+
728
  $( document.body ).on( 'click', '#edd-resend-receipt', function( e ) {
729
+
730
  return confirm( edd_vars.resend_receipt );
731
+
732
  } );
733
+
734
  },
735
 
736
  copy_download_link : function() {
1220
  // Replace options with search results
1221
  $( document.body ).on( 'keyup', '.edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input', function(e) {
1222
 
1223
+ var val = $(this).val()
1224
+ var container = $(this).closest( '.edd-select-chosen' );
1225
  var menu_id = container.attr('id').replace( '_chosen', '' );
1226
  var no_bundles = container.hasClass( 'no-bundles' );
1227
+ var variations = container.hasClass( 'variations' );
1228
  var lastKey = e.which;
1229
  var search_type = 'edd_download_search';
1230
 
1231
  // Detect if we have a defined search type, otherwise default to downloads
1232
  if ( container.prev().data('search-type') ) {
1233
+
1234
+ // Don't trigger AJAX if this select has all options loaded
1235
+ if ( 'no_ajax' == container.prev().data('search-type') ) {
1236
+ return;
1237
+ }
1238
+
1239
  search_type = 'edd_' + container.prev().data('search-type') + '_search';
1240
  }
1241
 
1264
  data: {
1265
  action: search_type,
1266
  s: val,
1267
+ no_bundles: no_bundles,
1268
+ variations: variations,
1269
  },
1270
  dataType: "json",
1271
  beforeSend: function(){
1272
  $('ul.chosen-results').empty();
1273
  },
1274
  success: function( data ) {
 
1275
  // Remove all options but those that are selected
1276
  $('#' + menu_id + ' option:not(:selected)').remove();
1277
  $.each( data, function( key, item ) {
assets/js/admin-scripts.min.js CHANGED
@@ -1,2 +1,2 @@
1
- jQuery(document).ready(function(a){a(".edd-help-tip").tooltip({content:function(){return a(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}});var b={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(b){var c=highest=1;return b.parent().find("tr.edd_repeatable_row").each(function(){var b=a(this).data("key");parseInt(b)>highest&&(highest=b)}),c=highest+=1,clone=b.clone(),clone.find("select").each(function(){a(this).val(b.find('select[name="'+a(this).attr("name")+'"]').val())}),clone.removeClass("edd_add_blank"),clone.attr("data-key",c),clone.find("td input, td select, textarea").val(""),clone.find("input, select, textarea").each(function(){var b=a(this).attr("name"),d=a(this).attr("id");b&&(b=b.replace(/\[(\d+)\]/,"["+parseInt(c)+"]"),a(this).attr("name",b)),a(this).attr("data-key",c),"undefined"!=typeof d&&(d=d.replace(/(\d+)/,parseInt(c)),a(this).attr("id",d))}),clone.find("span.edd_price_id").each(function(){a(this).text(parseInt(c))}),clone.find("span.edd_file_id").each(function(){a(this).text(parseInt(c))}),clone.find(".edd_repeatable_default_input").each(function(){a(this).val(parseInt(c)).removeAttr("checked")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),clone},add:function(){a(document.body).on("click",".submit .edd_add_repeatable",function(c){c.preventDefault();var d=a(this),e=d.parent().parent().prev("tr"),f=b.clone_repeatable(e);f.insertAfter(e).find("input, textarea, select").filter(":visible").eq(0).focus(),f.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),f.find(".edd-select-chosen").css("width","100%"),f.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){a(".edd_repeatable_table tbody").sortable({handle:".edd_draghandle",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var b=0;a(this).find("tr").each(function(){a(this).find("input.edd_repeatable_index").each(function(){a(this).val(b)}),b++})}})},remove:function(){a(document.body).on("click",".edd_remove_repeatable",function(b){b.preventDefault();var g,h,i,c=a(this).parent().parent("tr"),d=c.parent().find("tr").length-1,e=a(this).data("type"),f="tr.edd_repeatable_"+e+"s";if(g=a(this).is(".ui-sortable tr:first-child .edd_remove_repeatable:first-child")?c.next("tr"):c.prev("tr"),h=g.find("select, input, textarea, button").filter(":visible"),i=h.eq(0),"price"===e){var j=c.data("key");a('.edd_repeatable_condition_field option[value="'+j+'"]').remove()}if(d>1)a("input, select",c).val(""),c.fadeOut("fast").remove(),i.focus();else switch(e){case"price":alert(edd_vars.one_price_min);break;case"file":a("input, select",c).val("");break;default:alert(edd_vars.one_field_min)}a(f).each(function(b){a(this).find("input, select").each(function(){var c=a(this).attr("name");c=c.replace(/\[(\d+)\]/,"["+b+"]"),a(this).attr("name",c).attr("id",c)})})})},type:function(){a(document.body).on("change","#_edd_product_type",function(b){var c=a("#edd_products"),d=a("#edd_download_files"),e=a("#edd_download_limit_wrap");"bundle"===a(this).val()?(c.show(),d.hide(),e.hide()):(c.hide(),d.show(),e.show())})},prices:function(){a(document.body).on("change","#edd_variable_pricing",function(b){a(".edd_pricing_fields,.edd_repeatable_table .pricing").toggle()})},files:function(){if("undefined"==typeof wp||"1"!==edd_vars.new_media_ui)a(".edd_upload_file_button").length>0&&(window.formfield="",a(document.body).on("click",".edd_upload_file_button",function(b){if(b.preventDefault(),window.formfield=a(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),null!=edd_vars.post_id)var c="post_id="+edd_vars.post_id+"&";tb_show(edd_vars.add_new_download,"media-upload.php?"+c+"TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(b){window.formfield?(imgurl=a("a","<div>"+b+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(b),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1});else{var c;window.formfield="",a(document.body).on("click",".edd_upload_file_button",function(d){d.preventDefault();var e=a(this);return window.formfield=a(this).closest(".edd_repeatable_upload_wrapper"),c?void c.open():(c=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:e.data("uploader-title"),button:{text:e.data("uploader-button-text")},multiple:"0"!=a(this).data("multiple")}),c.on("menu:render:default",function(a){var b={};a.unset("library-separator"),a.unset("gallery"),a.unset("featured-image"),a.unset("embed"),a.set(b)}),c.on("insert",function(){var a=c.state().get("selection");a.each(function(a,c){if(a=a.toJSON(),0===c)window.formfield.find(".edd_repeatable_attachment_id_field").val(a.id),window.formfield.find(".edd_repeatable_upload_field").val(a.url),window.formfield.find(".edd_repeatable_name_field").val(a.title);else{var d=window.formfield,e=b.clone_repeatable(d);e.find(".edd_repeatable_attachment_id_field").val(a.id),e.find(".edd_repeatable_upload_field").val(a.url),a.title.length>0?e.find(".edd_repeatable_name_field").val(a.title):e.find(".edd_repeatable_name_field").val(a.filename),e.insertAfter(d)}})}),void c.open())});var c;window.formfield=""}},updatePrices:function(){a("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var b=a(this).parents("tr").data("key"),c=a(this).val(),d=a(".edd_repeatable_condition_field option[value="+b+"]");d.length>0?d.text(c):a(".edd_repeatable_condition_field").append(a("<option></option>").attr("value",b).text(c))})}};b.init();var c=a(".edd_datepicker");if(c.length>0){var d="mm/dd/yy";c.datepicker({dateFormat:d})}var e={init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.new_customer(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){a('select[name="edd-payment-address[0][country]"]').change(function(){var b=a(this);return data={action:"edd_get_shop_states",country:b.val(),field_name:"edd-payment-address[0][state]"},a.post(ajaxurl,data,function(b){var c=a("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");"nostates"==b?c.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):c.replaceWith(b)}),!1})},remove_download:function(){a("#edd-purchased-files").on("click",".edd-order-remove-download",function(){var b=a(document.body).find("#edd-purchased-files > .row").length;if(1===b)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var c=a(this).data("key"),e=(a(".edd-payment-id").val(),a('input[name="edd-payment-details-downloads['+c+'][id]"]').val()),f=a('input[name="edd-payment-details-downloads['+c+'][price_id]"]').val(),g=a('input[name="edd-payment-details-downloads['+c+'][quantity]"]').val(),h=a('input[name="edd-payment-details-downloads['+c+'][amount]"]').val(),i=a('input[name="edd-payment-removed"]').val();i=a.parseJSON(i),i.length<1&&(i={});var j=[{id:e,price_id:f,quantity:g,amount:h,cart_index:c}];i[c]=j,a('input[name="edd-payment-removed"]').val(JSON.stringify(i)),a(this).parent().parent().parent().remove(),a("#edd-payment-downloads-changed").val(1),a(".edd-order-payment-recalc-totals").show()}return!1})},new_customer:function(){a("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(b){b.preventDefault(),a(".customer-info").toggle(),a(".new-customer").toggle();var c=a("#edd-new-customer");a(".new-customer").is(":visible")?c.val(1):c.val(0)})},add_download:function(){a("#edd-purchased-files").on("click","#edd-order-add-download",function(b){b.preventDefault();var c=a("#edd_order_download_select"),d=a("#edd-order-download-quantity"),e=a("#edd-order-download-amount"),f=a(".edd_price_options_select option:selected"),g=c.val(),h=c.find(":selected").text(),i=d.val(),j=e.val(),k=f.val(),l=f.text();if(g<1)return!1;if(j||(j=0),j=parseFloat(j),isNaN(j))return alert(edd_vars.numeric_item_price),!1;var m=j;if("1"===edd_vars.quantities_enabled){if(isNaN(parseInt(i)))return alert(edd_vars.numeric_quantity),!1;j*=i}j=j.toFixed(edd_vars.currency_decimals);var n=j+edd_vars.currency_sign;"before"===edd_vars.currency_pos&&(n=edd_vars.currency_sign+j),l&&(h=h+" - "+l);var o=a("#edd-purchased-files div.row").length,p=a("#edd-purchased-files div.row:last").clone();p.find(".download span").html('<a href="post.php?post='+g+'&action=edit"></a>'),p.find(".download span a").text(h),p.find(".price-text").text(n),p.find(".item-quantity").text(i),p.find(".item-price").text(edd_vars.currency_sign+(j/i).toFixed(edd_vars.currency_decimals)),p.find("input.edd-payment-details-download-id").val(g),p.find("input.edd-payment-details-download-price-id").val(k),p.find("input.edd-payment-details-download-item-price").val(m),p.find("input.edd-payment-details-download-amount").val(j),p.find("input.edd-payment-details-download-quantity").val(i),p.find("input.edd-payment-details-download-has-log").val(0),p.find("input").each(function(){var b=a(this).attr("name");b=b.replace(/\[(\d+)\]/,"["+parseInt(o)+"]"),a(this).attr("name",b).attr("id",b)}),a("#edd-payment-downloads-changed").val(1),a(p).insertAfter("#edd-purchased-files div.row:last"),a(".edd-order-payment-recalc-totals").show()})},recalculate_total:function(){a("#edd-order-recalc-total").on("click",function(b){b.preventDefault();var c=0,d=a("#edd-purchased-files .row .edd-payment-details-download-amount");d.length&&d.each(function(){c+=parseFloat(a(this).val())}),a(".edd-payment-fees").length&&a(".edd-payment-fees span.fee-amount").each(function(){c+=parseFloat(a(this).data("fee"))}),a("input[name=edd-payment-total]").val(c.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){a("#edd-purchased-files").on("change","select#edd_order_download_select",function(){var b=a(this),c=b.val();if(parseInt(c)>0){var d={action:"edd_check_for_download_price_variations",download_id:c};a.ajax({type:"POST",data:d,url:ajaxurl,success:function(c){a(".edd_price_options_select").remove(),a(c).insertAfter(b.next())}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}})},add_note:function(){a("#edd-add-payment-note").on("click",function(b){b.preventDefault();var c={action:"edd_insert_payment_note",payment_id:a(this).data("payment-id"),note:a("#edd-payment-note").val()};if(c.note)a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){a("#edd-payment-notes-inner").append(b),a(".edd-no-payment-notes").hide(),a("#edd-payment-note").val("")}}).fail(function(a){window.console&&window.console.log&&console.log(a)});else{var d=a("#edd-payment-note").css("border-color");a("#edd-payment-note").css("border-color","red"),setTimeout(function(){a("#edd-payment-note").css("border-color",d)},500)}})},remove_note:function(){a(document.body).on("click",".edd-delete-payment-note",function(b){if(b.preventDefault(),confirm(edd_vars.delete_payment_note)){var c={action:"edd_delete_payment_note",payment_id:a(this).data("payment-id"),note_id:a(this).data("note-id")};return a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){return a("#edd-payment-note-"+c.note_id).remove(),a(".edd-payment-note").length||a(".edd-no-payment-notes").show(),!1}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),!0}})},resend_receipt:function(){a(document.body).on("click","#edd-resend-receipt",function(a){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){a(document.body).on("click",".edd-copy-download-link",function(b){b.preventDefault();var c=a(this),d={action:"edd_get_file_download_link",payment_id:a('input[name="edd_payment_id"]').val(),download_id:c.data("download-id"),price_id:c.data("price-id")};a.ajax({type:"POST",data:d,url:ajaxurl,success:function(b){return a("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+b+"</textarea>"),a("#edd-download-link-textarea").focus().select(),!1}}).fail(function(a){window.console&&window.console.log&&console.log(a)})})}};e.init();var f={init:function(){this.type_select(),this.product_requirements()},type_select:function(){a("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){a(".edd-amount-description").toggle()})},product_requirements:function(){a("#products").change(function(){var b=a("#edd-discount-product-conditions");a(this).val()?b.show():b.hide()})}};f.init();var g={init:function(){this.date_options(),this.customers_export()},date_options:function(){a("#edd-graphs-date-options").change(function(){var b=a(this),c=a("#edd-date-range-options");"other"===b.val()?c.show():c.hide()})},customers_export:function(){a("#edd_customer_export_download").change(function(){var b=a(this),c=a("option:selected",b).val(),d=a("#edd_customer_export_option");if("0"===b.val()?d.show():d.hide(),0!=parseInt(c)){var e={action:"edd_check_for_download_price_variations",download_id:c,all_prices:!0},f=a(".edd_price_options_select");a.post(ajaxurl,e,function(b){f.remove(),a("#edd_customer_export_download_chosen").after(b)})}else f.remove()})}};g.init();var h={init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var b=a(".edd-color-picker");if(b.length&&b.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var c=a(".edd_settings_upload_button");c.length>0&&(window.formfield="",a(document.body).on("click",c,function(b){b.preventDefault(),window.formfield=a(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(b){window.formfield?(imgurl=a("a","<div>"+b+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(b),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var d;window.formfield="",a(document.body).on("click",".edd_settings_upload_button",function(b){b.preventDefault();var c=a(this);return window.formfield=a(this).parent().prev(),d?void d.open():(d=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:c.data("uploader_title"),button:{text:c.data("uploader_button_text")},multiple:!1}),d.on("menu:render:default",function(a){var b={};a.unset("library-separator"),a.unset("gallery"),a.unset("featured-image"),a.unset("embed"),a.set(b)}),d.on("insert",function(){var a=d.state().get("selection");a.each(function(a,b){a=a.toJSON(),window.formfield.val(a.url)})}),void d.open())});var d;window.formfield=""}},taxes:function(){var b=a("select.edd-no-states");b.length&&b.closest("tr").hide(),a('select[name="edd_settings[base_country]"]').change(function(){var b=a(this),c=b.closest("tr");return data={action:"edd_get_shop_states",country:a(this).val(),field_name:"edd_settings[base_state]"},a.post(ajaxurl,data,function(a){"nostates"==a?c.next().hide():(c.next().show(),c.next().find("select").replaceWith(a))}),!1}),a(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var b=a(this);return data={action:"edd_get_shop_states",country:a(this).val(),field_name:b.attr("name").replace("country","state")},a.post(ajaxurl,data,function(a){if("nostates"==a){var c='<input type="text" name="'+data.field_name+'" value=""/>';b.parent().next().find("select").replaceWith(c)}else b.parent().next().find("input,select").show(),b.parent().next().find("input,select").replaceWith(a)}),!1}),a("#edd_add_tax_rate").on("click",function(){var b=a("#edd_tax_rates tr:last"),c=b.clone(),d=b.parent().find("tr").length;return c.find("td input").not(":input[type=checkbox]").val(""),c.find('td [type="checkbox"]').attr("checked",!1),c.find("input, select").each(function(){var b=a(this).attr("name");b=b.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),a(this).attr("name",b).attr("id",b)}),c.find("label").each(function(){var b=a(this).attr("for");b=b.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),a(this).attr("for",b)}),c.insertAfter(b),!1}),a(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){if(confirm(edd_vars.delete_tax_rate)){var b=a("#edd_tax_rates tr:visible"),c=b.length;2===c?(a("#edd_tax_rates select").val(""),a('#edd_tax_rates input[type="text"]').val(""),a('#edd_tax_rates input[type="number"]').val(""),a('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):a(this).closest("tr").remove(),a("#edd_tax_rates tr").each(function(b){a(this).children().find("input, select").each(function(){var c=a(this).attr("name");c=c.replace(/\[(\d+)\]/,"["+(b-1)+"]"),a(this).attr("name",c).attr("id",c)})})}return!1})},emails:function(){var b=a("#email-preview-wrap");if(b.length){var c=a("#email-preview");b.colorbox({inline:!0,href:c,width:"80%",height:"auto"})}},misc:function(){var b=a('select[name="edd_settings[download_method]"]'),c=b.parent().parent().next();"direct"==b.val()&&(c.hide(),c.find("input").prop("checked",!1)),b.on("change",function(){"direct"==a(this).val()?(c.hide(),c.find("input").prop("checked",!1)):c.show()})}};h.init(),a(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return!!confirm(edd_vars.delete_payment)}),a("#the-list").on("click",".editinline",function(){var b=a(this).closest("tr").attr("id");b=b.replace("post-","");var c=a("#post-"+b),d=c.find(".column-price .downloadprice-"+b).val();d!=a("#post-"+b+".column-price .downloadprice-"+b).val()?a(".regprice","#edd-download-data").val(d).attr("disabled",!1):a(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),a(document.body).on("click","#bulk_edit",function(){var b=a("#bulk-edit"),c=new Array;b.find("#bulk-titles").children().each(function(){c.push(a(this).attr("id").replace(/^(ttle)/i,""))});var d=a('#edd-download-data input[name="_edd_regprice"]').val(),e={action:"edd_save_bulk_edit",edd_bulk_nonce:c,post_ids:c,price:d};a.post(ajaxurl,e)}),a(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),a(".edd-select-chosen .chosen-search input").each(function(){var b=a(this).parent().parent().parent().prev("select.edd-select-chosen").data("search-type"),c="";if("download"===b)c=edd_vars.search_placeholder;else{var b="search_placeholder_"+b;edd_vars[b]&&(c=edd_vars[b])}a(this).attr("placeholder",c)}),a(".chosen-choices").on("click",function(){a(this).children("li").children("input").attr("placeholder",edd_vars.type_to_search)});var i,j=342;a(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(b){var c=a(this).val(),d=a(this).closest(".edd-select-chosen"),e=d.attr("id").replace("_chosen",""),f=d.hasClass("no-bundles"),g=b.which,h="edd_download_search";d.prev().data("search-type")&&(h="edd_"+d.prev().data("search-type")+"_search"),c.length<=3&&"edd_download_search"==h||16==g||13==g||91==g||17==g||37==g||38==g||39==g||40==g||(clearTimeout(i),i=setTimeout(function(){a.ajax({type:"GET",url:ajaxurl,data:{action:h,s:c,no_bundles:f},dataType:"json",beforeSend:function(){a("ul.chosen-results").empty()},success:function(b){a("#"+e+" option:not(:selected)").remove(),a.each(b,function(b,c){a("#"+e+' option[value="'+c.id+'"]').length||a("#"+e).prepend('<option value="'+c.id+'">'+c.name+"</option>")}),a(".edd-select-chosen").trigger("chosen:updated"),a("#"+e).next().find("input").val(c)}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){})},j))}),a("#post").on("click",".edd-thickbox",function(){a(".edd-select-chosen","#choose-download").css("width","100%")});var k={init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){a(document.body).on("click",".edd-revoke-api-key",function(a){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){a(document.body).on("click",".edd-regenerate-api-key",function(a){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){a(document.body).on("submit","#api-key-generate-form",function(b){var c=a('input[type="text"][name="user_id"]');c.css("border-color","#ddd");var d=c.val();if(d.length<1||0==d)return c.css("border-color","#ff0000"),!1})},recount_stats:function(){a("body").on("change","#recount-stats-type",function(){var b=a("#edd-tools-recount-form"),c=a("option:selected",this).data("type"),d=a("#recount-stats-submit"),e=a("#tools-product-dropdown");if(b.find(".notice-wrap").remove(),d.removeClass("button-disabled").attr("disabled",!1),e.hide(),a(".edd-recount-stats-descriptions span").hide(),"recount-download"===c)e.show(),e.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===c){b.append('<div class="notice-wrap"></div>');var f=b.find(".notice-wrap");f.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),a("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else e.hide(),e.val(0);a("#"+c).show()}),a("body").on("change","#confirm-reset",function(){var b=a(this).is(":checked");b?a("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):a("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),a("#edd-tools-recount-form").submit(function(b){var c=a("#recount-stats-type").val(),d=a(this),e=a("option:selected",this).data("type");if("reset-stats"===e){var f=a("#confirm-reset").is(":checked");if(f)return!0;h=!0}d.find(".notice-wrap").remove(),d.append('<div class="notice-wrap"></div>');var g=d.find(".notice-wrap"),h=!1;if(null!==c&&0!==c||(g.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),h=!0),"recount-download"===e){var i=a('select[name="download_id"]').val();0==i&&(g.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),h=!0)}if(h)return d.find(".button-disabled").removeClass("button-disabled"),!1})}};k.init();var l={init:function(){this.submit(),this.dismiss_message()},submit:function(){var b=this;a(document.body).on("submit",".edd-export-form",function(c){c.preventDefault();var d=a(this).find('input[type="submit"]');if(!d.hasClass("button-disabled")){var e=a(this).serialize();d.addClass("button-disabled"),a(this).find(".notice-wrap").remove(),a(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),b.process_step(1,e,b)}})},process_step:function(b,c,d){a.ajax({type:"POST",url:ajaxurl,data:{form:c,action:"edd_do_ajax_export",step:b},dataType:"json",success:function(b){if("done"==b.step||b.error||b.success){var e=a(".edd-export-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");if(e.find(".button-disabled").removeClass("button-disabled"),b.error){var g=b.message;f.html('<div class="updated error"><p>'+g+"</p></div>")}else if(b.success){var h=b.message;f.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+h+'<span class="notice-dismiss"></span></p></div>')}else f.remove(),window.location=b.url}else a(".edd-progress div").animate({width:b.percentage+"%"},50,function(){}),d.process_step(parseInt(b.step),c,d)}}).fail(function(a){window.console&&window.console.log&&console.log(a)})},dismiss_message:function(){a("body").on("click","#edd-batch-success .notice-dismiss",function(){a("#edd-batch-success").parent().slideUp("fast")})}};l.init();var m={init:function(){this.submit()},submit:function(){var b=this;a(".edd-import-form").ajaxForm({beforeSubmit:b.before_submit,success:b.success,complete:b.complete,dataType:"json",error:b.error})},before_submit:function(b,c,d){if(c.find(".notice-wrap").remove(),c.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var e=a(".edd-import-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");return e.find(".button-disabled").removeClass("button-disabled"),f.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(a,b,c,d){},complete:function(b){var c=jQuery.parseJSON(b.responseText);if(c.success){var d=a(".edd-import-form .notice-wrap").parent();d.find(".edd-import-file-wrap,.notice-wrap").remove(),d.find(".edd-import-options").slideDown();var e=d.find("select.edd-import-csv-column"),g=(e.parent().parent(),""),h=c.data.columns.sort(function(a,b){return a<b?-1:a>b?1:0});a.each(h,function(a,b){g+='<option value="'+b+'">'+b+"</option>"}),e.append(g),e.on("change",function(){var b=a(this).val();b&&0!=c.data.first_row[b]?a(this).parent().next().html(c.data.first_row[b]):a(this).parent().next().html("")}),a("body").on("click",".edd-import-proceed",function(a){a.preventDefault(),d.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),c.data.mapping=d.serialize(),m.process_step(1,c.data,self)})}else m.error(b)},error:function(b){var c=jQuery.parseJSON(b.responseText),d=a(".edd-import-form").find(".edd-progress").parent().parent(),e=d.find(".notice-wrap");d.find(".button-disabled").removeClass("button-disabled"),c.data.error?e.html('<div class="update error"><p>'+c.data.error+"</p></div>"):e.remove()},process_step:function(b,c,d){a.ajax({type:"POST",url:ajaxurl,data:{form:c.form,nonce:c.nonce,class:c.class,upload:c.upload,mapping:c.mapping,action:"edd_do_ajax_import",step:b},dataType:"json",success:function(b){if("done"==b.data.step||b.data.error){var e=a(".edd-import-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");e.find(".button-disabled").removeClass("button-disabled"),b.data.error?f.html('<div class="update error"><p>'+b.data.error+"</p></div>"):(e.find(".edd-import-options").hide(),a("html, body").animate({scrollTop:e.parent().offset().top},500),f.html('<div class="updated"><p>'+b.data.message+"</p></div>"))}else a(".edd-progress div").animate({width:b.data.percentage+"%"},50,function(){}),m.process_step(parseInt(b.data.step),c,d)}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}};m.init();var n={vars:{customer_card_wrap_editable:a(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:a(".edd-customer-card-wrapper .edit-item"),user_id:a('input[name="customerinfo[user_id]"]'),state_input:a(':input[name="customerinfo[state]"]'),note:a("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){a(document.body).on("click","#edit-customer",function(a){a.preventDefault(),n.vars.customer_card_wrap_editable.hide(),n.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){a(document.body).on("click","#add-customer-email",function(b){b.preventDefault();var c=a(this),d=c.parent();d.parent().find(".notice-wrap").remove(),d.find(".spinner").css("visibility","visible"),c.attr("disabled",!0);var e=d.find('input[name="customer-id"]').val(),f=d.find('input[name="additional-email"]').val(),g=d.find('input[name="make-additional-primary"]').is(":checked"),h=d.find('input[name="add_email_nonce"]').val(),i={edd_action:"customer-add-email",customer_id:e,email:f,primary:g,_wpnonce:h};a.post(ajaxurl,i,function(a){!0===a.success?window.location.href=a.redirect:(c.attr("disabled",!1),d.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+a.message+"</p></div></div>"),d.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){a(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(b){b.preventDefault();var c=a(this).data("userid");n.vars.user_id.val(c)})},remove_user:function(){a(document.body).on("click","#disconnect-customer",function(b){b.preventDefault();var c=a('input[name="customerinfo[id]"]').val(),d={edd_action:"disconnect-userid",customer_id:c,_wpnonce:a("#edit-customer-info #_wpnonce").val()};a.post(ajaxurl,d,function(a){window.location.href=window.location.href},"json")})},cancel_edit:function(){a(document.body).on("click","#edd-edit-customer-cancel",function(b){b.preventDefault(),n.vars.customer_card_wrap_edit_item.hide(),n.vars.customer_card_wrap_editable.show(),a(".edd_user_search_results").html("")})},change_country:function(){a('select[name="customerinfo[country]"]').change(function(){var b=a(this);return data={action:"edd_get_shop_states",country:b.val(),field_name:"customerinfo[state]"},a.post(ajaxurl,data,function(a){"nostates"==a?n.vars.state_input.replaceWith('<input type="text" name="'+data.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):n.vars.state_input.replaceWith(a)}),!1})},add_note:function(){a(document.body).on("click","#add-customer-note",function(b){b.preventDefault();var c={edd_action:"add-customer-note",customer_id:a("#customer-id").val(),customer_note:n.vars.note.val(),add_customer_note_nonce:a("#add_customer_note_nonce").val()};if(c.customer_note)a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){a("#edd-customer-notes").prepend(b),a(".edd-no-customer-notes").hide(),n.vars.note.val("")}}).fail(function(a){window.console&&window.console.log&&console.log(a)});else{var d=n.vars.note.css("border-color");n.vars.note.css("border-color","red"),setTimeout(function(){n.vars.note.css("border-color",d)},500)}})},delete_checked:function(){a("#edd-customer-delete-confirm").change(function(){var b=a("#edd-customer-delete-records"),c=a("#edd-delete-customer");a(this).prop("checked")?(b.attr("disabled",!1),c.attr("disabled",!1)):(b.attr("disabled",!0),b.prop("checked",!1),c.attr("disabled",!0))})}};n.init(),a(".edd-ajax-user-search").keyup(function(){var b=a(this).val(),c="";a(this).data("exclude")&&(c=a(this).data("exclude")),a(".edd-ajax").show(),data={action:"edd_search_users",user_name:b,exclude:c},document.body.style.cursor="wait",a.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(b){a(".edd-ajax").hide(),a(".edd_user_search_results").removeClass("hidden"),a(".edd_user_search_results span").html(""),a(b.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),a(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(b){b.preventDefault();var c=a(this).data("login");a(".edd-ajax-user-search").val(c),a(".edd_user_search_results").addClass("hidden"),a(".edd_user_search_results span").html("")}),a(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(b){b.preventDefault(),a(".edd-ajax-user-search").val(""),a(".edd_user_search_results").addClass("hidden"),a(".edd_user_search_results span").html("")}),a("#edd_dashboard_sales").length&&a.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(b){a("#edd_dashboard_sales .inside").html(b)}}),a(document).on("keydown",".customer-note-input",function(b){
2
- 13==b.keyCode&&(b.metaKey||b.ctrlKey)&&a("#add-customer-note").click()})});var eddFormatCurrency=function(a){var b=parseFloat(a),c=edd_vars.currency,d=edd_vars.currency_decimals;return b.toLocaleString(c,{style:"currency",currency:c,minimumFractionDigits:d,maximumFractionDigits:d})},eddFormatNumber=function(a){var b=parseFloat(a),c=edd_vars.currency;edd_vars.currency_decimals;return b.toLocaleString(c,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(a,b){return'<div style="font-size:12px; text-align:center; padding:2px">'+a+"</div>"},eddLegendFormatterSales=function(a,b){var c=a.toLowerCase().replace(/\s/g,"-"),d='<div class="edd-legend-color" style="background-color: '+b.color+'"></div>',e='<div class="edd-pie-legend-item">'+a+": "+Math.round(b.percent)+"% ("+eddFormatNumber(b.data[0][1])+")</div>",f='<div id="'+b.edd_vars.id+c+'" class="edd-legend-item-wrapper">'+d+e+"</div>";return jQuery("#edd-pie-legend-"+b.edd_vars.id).append(f),f},eddLegendFormatterEarnings=function(a,b){var c=a.toLowerCase().replace(/\s/g,"-"),d='<div class="edd-legend-color" style="background-color: '+b.color+'"></div>',e='<div class="edd-pie-legend-item">'+a+": "+Math.round(b.percent)+"% ("+eddFormatCurrency(b.data[0][1])+")</div>",f='<div id="'+b.edd_vars.id+c+'" class="edd-legend-item-wrapper">'+d+e+"</div>";return jQuery("#edd-pie-legend-"+b.edd_vars.id).append(f),f};
1
+ jQuery(document).ready(function(a){a(".edd-help-tip").tooltip({content:function(){return a(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}});var b={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(b){var c=highest=1;return b.parent().find("tr.edd_repeatable_row").each(function(){var b=a(this).data("key");parseInt(b)>highest&&(highest=b)}),c=highest+=1,clone=b.clone(),clone.find("select").each(function(){a(this).val(b.find('select[name="'+a(this).attr("name")+'"]').val())}),clone.removeClass("edd_add_blank"),clone.attr("data-key",c),clone.find("td input, td select, textarea").val(""),clone.find("input, select, textarea").each(function(){var b=a(this).attr("name"),d=a(this).attr("id");b&&(b=b.replace(/\[(\d+)\]/,"["+parseInt(c)+"]"),a(this).attr("name",b)),a(this).attr("data-key",c),"undefined"!=typeof d&&(d=d.replace(/(\d+)/,parseInt(c)),a(this).attr("id",d))}),clone.find("span.edd_price_id").each(function(){a(this).text(parseInt(c))}),clone.find("span.edd_file_id").each(function(){a(this).text(parseInt(c))}),clone.find(".edd_repeatable_default_input").each(function(){a(this).val(parseInt(c)).removeAttr("checked")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),clone},add:function(){a(document.body).on("click",".submit .edd_add_repeatable",function(c){c.preventDefault();var d=a(this),e=d.parent().parent().prev("tr"),f=b.clone_repeatable(e);f.insertAfter(e).find("input, textarea, select").filter(":visible").eq(0).focus(),f.find(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),f.find(".edd-select-chosen").css("width","100%"),f.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){a(".edd_repeatable_table tbody").sortable({handle:".edd_draghandle",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var b=0;a(this).find("tr").each(function(){a(this).find("input.edd_repeatable_index").each(function(){a(this).val(b)}),b++})}})},remove:function(){a(document.body).on("click",".edd_remove_repeatable",function(b){b.preventDefault();var g,h,i,c=a(this).parent().parent("tr"),d=c.parent().find("tr").length-1,e=a(this).data("type"),f="tr.edd_repeatable_"+e+"s";if(g=a(this).is(".ui-sortable tr:first-child .edd_remove_repeatable:first-child")?c.next("tr"):c.prev("tr"),h=g.find("select, input, textarea, button").filter(":visible"),i=h.eq(0),"price"===e){var j=c.data("key");a('.edd_repeatable_condition_field option[value="'+j+'"]').remove()}if(d>1)a("input, select",c).val(""),c.fadeOut("fast").remove(),i.focus();else switch(e){case"price":alert(edd_vars.one_price_min);break;case"file":a("input, select",c).val("");break;default:alert(edd_vars.one_field_min)}a(f).each(function(b){a(this).find("input, select").each(function(){var c=a(this).attr("name");c=c.replace(/\[(\d+)\]/,"["+b+"]"),a(this).attr("name",c).attr("id",c)})})})},type:function(){a(document.body).on("change","#_edd_product_type",function(b){var c=a("#edd_products"),d=a("#edd_download_files"),e=a("#edd_download_limit_wrap");"bundle"===a(this).val()?(c.show(),d.hide(),e.hide()):(c.hide(),d.show(),e.show())})},prices:function(){a(document.body).on("change","#edd_variable_pricing",function(b){a(".edd_pricing_fields,.edd_repeatable_table .pricing").toggle()})},files:function(){if("undefined"==typeof wp||"1"!==edd_vars.new_media_ui)a(".edd_upload_file_button").length>0&&(window.formfield="",a(document.body).on("click",".edd_upload_file_button",function(b){if(b.preventDefault(),window.formfield=a(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),null!=edd_vars.post_id)var c="post_id="+edd_vars.post_id+"&";tb_show(edd_vars.add_new_download,"media-upload.php?"+c+"TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(b){window.formfield?(imgurl=a("a","<div>"+b+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(b),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1});else{var c;window.formfield="",a(document.body).on("click",".edd_upload_file_button",function(d){d.preventDefault();var e=a(this);return window.formfield=a(this).closest(".edd_repeatable_upload_wrapper"),c?void c.open():(c=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:e.data("uploader-title"),button:{text:e.data("uploader-button-text")},multiple:"0"==a(this).data("multiple")?!1:!0}),c.on("menu:render:default",function(a){var b={};a.unset("library-separator"),a.unset("gallery"),a.unset("featured-image"),a.unset("embed"),a.set(b)}),c.on("insert",function(){var a=c.state().get("selection");a.each(function(a,c){if(a=a.toJSON(),0===c)window.formfield.find(".edd_repeatable_attachment_id_field").val(a.id),window.formfield.find(".edd_repeatable_upload_field").val(a.url),window.formfield.find(".edd_repeatable_name_field").val(a.title);else{var d=window.formfield,e=b.clone_repeatable(d);e.find(".edd_repeatable_attachment_id_field").val(a.id),e.find(".edd_repeatable_upload_field").val(a.url),a.title.length>0?e.find(".edd_repeatable_name_field").val(a.title):e.find(".edd_repeatable_name_field").val(a.filename),e.insertAfter(d)}})}),void c.open())});var c;window.formfield=""}},updatePrices:function(){a("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var b=a(this).parents("tr").data("key"),c=a(this).val(),d=a(".edd_repeatable_condition_field option[value="+b+"]");d.length>0?d.text(c):a(".edd_repeatable_condition_field").append(a("<option></option>").attr("value",b).text(c))})}};b.init();var c=a(".edd_datepicker");if(c.length>0){var d="mm/dd/yy";c.datepicker({dateFormat:d})}var e={init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.new_customer(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){a('select[name="edd-payment-address[0][country]"]').change(function(){var b=a(this);return data={action:"edd_get_shop_states",country:b.val(),field_name:"edd-payment-address[0][state]"},a.post(ajaxurl,data,function(b){var c=a("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");a("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==b?c.replaceWith('<input type="text" name="edd-payment-address[0][state]" value="" class="edd-edit-toggles medium-text"/>'):c.replaceWith(b)}),!1})},remove_download:function(){a("#edd-purchased-files").on("click",".edd-order-remove-download",function(){var b=a(document.body).find("#edd-purchased-files > .row").length;if(1===b)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var c=a(this).data("key"),e=(a(".edd-payment-id").val(),a('input[name="edd-payment-details-downloads['+c+'][id]"]').val()),f=a('input[name="edd-payment-details-downloads['+c+'][price_id]"]').val(),g=a('input[name="edd-payment-details-downloads['+c+'][quantity]"]').val(),h=a('input[name="edd-payment-details-downloads['+c+'][amount]"]').val();if(a('input[name="edd-payment-details-downloads['+c+'][fees]"]'))var i=a.parseJSON(a('input[name="edd-payment-details-downloads['+c+'][fees]"]').val());var j=a('input[name="edd-payment-removed"]').val();j=a.parseJSON(j),j.length<1&&(j={});var k=[{id:e,price_id:f,quantity:g,amount:h,cart_index:c}];j[c]=k,a('input[name="edd-payment-removed"]').val(JSON.stringify(j)),a(this).parent().parent().parent().remove(),i.length&&a.each(i,function(b,c){a('*li[data-fee-id="'+c+'"]').remove()}),a("#edd-payment-downloads-changed").val(1),a(".edd-order-payment-recalc-totals").show()}return!1})},new_customer:function(){a("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(b){b.preventDefault(),a(".customer-info").toggle(),a(".new-customer").toggle();var c=a("#edd-new-customer");a(".new-customer").is(":visible")?c.val(1):c.val(0)})},add_download:function(){a("#edd-purchased-files").on("click","#edd-order-add-download",function(b){b.preventDefault();var c=a("#edd_order_download_select"),d=a("#edd-order-download-quantity"),e=a("#edd-order-download-amount"),f=a(".edd_price_options_select option:selected"),g=c.val(),h=c.find(":selected").text(),i=d.val(),j=e.val(),k=f.val(),l=f.text();if(1>g)return!1;if(j||(j=0),j=parseFloat(j),isNaN(j))return alert(edd_vars.numeric_item_price),!1;var m=j;if("1"===edd_vars.quantities_enabled){if(isNaN(parseInt(i)))return alert(edd_vars.numeric_quantity),!1;j*=i}j=j.toFixed(edd_vars.currency_decimals);var n=j+edd_vars.currency_sign;"before"===edd_vars.currency_pos&&(n=edd_vars.currency_sign+j),l&&(h=h+" - "+l);var o=a("#edd-purchased-files div.row").length,p=a("#edd-purchased-files div.row:last").clone();p.find(".download span").html('<a href="post.php?post='+g+'&action=edit"></a>'),p.find(".download span a").text(h),p.find(".price-text").text(n),p.find(".item-quantity").text(i),p.find(".item-price").text(edd_vars.currency_sign+(j/i).toFixed(edd_vars.currency_decimals)),p.find("input.edd-payment-details-download-id").val(g),p.find("input.edd-payment-details-download-price-id").val(k),p.find("input.edd-payment-details-download-item-price").val(m),p.find("input.edd-payment-details-download-amount").val(j),p.find("input.edd-payment-details-download-quantity").val(i),p.find("input.edd-payment-details-download-has-log").val(0),p.find("input").each(function(){var b=a(this).attr("name");b=b.replace(/\[(\d+)\]/,"["+parseInt(o)+"]"),a(this).attr("name",b).attr("id",b)}),a("#edd-payment-downloads-changed").val(1),a(p).insertAfter("#edd-purchased-files div.row:last"),a(".edd-order-payment-recalc-totals").show()})},recalculate_total:function(){a("#edd-order-recalc-total").on("click",function(b){b.preventDefault();var c=0,d=a("#edd-purchased-files .row .edd-payment-details-download-amount");d.length&&d.each(function(){c+=parseFloat(a(this).val())}),a(".edd-payment-fees").length&&a(".edd-payment-fees span.fee-amount").each(function(){c+=parseFloat(a(this).data("fee"))}),a("input[name=edd-payment-total]").val(c.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){a("#edd-purchased-files").on("change","select#edd_order_download_select",function(){var b=a(this),c=b.val();if(parseInt(c)>0){var d={action:"edd_check_for_download_price_variations",download_id:c};a.ajax({type:"POST",data:d,url:ajaxurl,success:function(c){a(".edd_price_options_select").remove(),a(c).insertAfter(b.next())}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}})},add_note:function(){a("#edd-add-payment-note").on("click",function(b){b.preventDefault();var c={action:"edd_insert_payment_note",payment_id:a(this).data("payment-id"),note:a("#edd-payment-note").val()};if(c.note)a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){a("#edd-payment-notes-inner").append(b),a(".edd-no-payment-notes").hide(),a("#edd-payment-note").val("")}}).fail(function(a){window.console&&window.console.log&&console.log(a)});else{var d=a("#edd-payment-note").css("border-color");a("#edd-payment-note").css("border-color","red"),setTimeout(function(){a("#edd-payment-note").css("border-color",d)},500)}})},remove_note:function(){a(document.body).on("click",".edd-delete-payment-note",function(b){if(b.preventDefault(),confirm(edd_vars.delete_payment_note)){var c={action:"edd_delete_payment_note",payment_id:a(this).data("payment-id"),note_id:a(this).data("note-id")};return a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){return a("#edd-payment-note-"+c.note_id).remove(),a(".edd-payment-note").length||a(".edd-no-payment-notes").show(),!1}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),!0}})},resend_receipt:function(){var b=a(".edd-order-resend-receipt-addresses");a(document.body).on("click","#edd-select-receipt-email",function(a){a.preventDefault(),b.slideDown()}),a(document.body).on("change",".edd-order-resend-receipt-email",function(){var b=a("#edd-select-receipt-email").prop("href")+"&email="+a(this).val();confirm(edd_vars.resend_receipt)&&(window.location=b)}),a(document.body).on("click","#edd-resend-receipt",function(a){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){a(document.body).on("click",".edd-copy-download-link",function(b){b.preventDefault();var c=a(this),d={action:"edd_get_file_download_link",payment_id:a('input[name="edd_payment_id"]').val(),download_id:c.data("download-id"),price_id:c.data("price-id")};a.ajax({type:"POST",data:d,url:ajaxurl,success:function(b){return a("#edd-download-link").dialog({width:400}).html('<textarea rows="10" cols="40" id="edd-download-link-textarea">'+b+"</textarea>"),a("#edd-download-link-textarea").focus().select(),!1}}).fail(function(a){window.console&&window.console.log&&console.log(a)})})}};e.init();var f={init:function(){this.type_select(),this.product_requirements()},type_select:function(){a("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){a(".edd-amount-description").toggle()})},product_requirements:function(){a("#products").change(function(){var b=a("#edd-discount-product-conditions");a(this).val()?b.show():b.hide()})}};f.init();var g={init:function(){this.date_options(),this.customers_export()},date_options:function(){a("#edd-graphs-date-options").change(function(){var b=a(this),c=a("#edd-date-range-options");"other"===b.val()?c.show():c.hide()})},customers_export:function(){a("#edd_customer_export_download").change(function(){var b=a(this),c=a("option:selected",b).val(),d=a("#edd_customer_export_option");if("0"===b.val()?d.show():d.hide(),0!=parseInt(c)){var e={action:"edd_check_for_download_price_variations",download_id:c,all_prices:!0},f=a(".edd_price_options_select");a.post(ajaxurl,e,function(b){f.remove(),a("#edd_customer_export_download_chosen").after(b)})}else f.remove()})}};g.init();var h={init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var b=a(".edd-color-picker");if(b.length&&b.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var c=a(".edd_settings_upload_button");c.length>0&&(window.formfield="",a(document.body).on("click",c,function(b){b.preventDefault(),window.formfield=a(this).parent().prev(),window.tbframe_interval=setInterval(function(){jQuery("#TB_iframeContent").contents().find(".savesend .button").val(edd_vars.use_this_file).end().find("#insert-gallery, .wp-post-thumbnail").hide()},2e3),tb_show(edd_vars.add_new_download,"media-upload.php?TB_iframe=true")}),window.edd_send_to_editor=window.send_to_editor,window.send_to_editor=function(b){window.formfield?(imgurl=a("a","<div>"+b+"</div>").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(b),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var d;window.formfield="",a(document.body).on("click",".edd_settings_upload_button",function(b){b.preventDefault();var c=a(this);return window.formfield=a(this).parent().prev(),d?void d.open():(d=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:c.data("uploader_title"),button:{text:c.data("uploader_button_text")},multiple:!1}),d.on("menu:render:default",function(a){var b={};a.unset("library-separator"),a.unset("gallery"),a.unset("featured-image"),a.unset("embed"),a.set(b)}),d.on("insert",function(){var a=d.state().get("selection");a.each(function(a,b){a=a.toJSON(),window.formfield.val(a.url)})}),void d.open())});var d;window.formfield=""}},taxes:function(){var b=a("select.edd-no-states");b.length&&b.closest("tr").hide(),a('select[name="edd_settings[base_country]"]').change(function(){var b=a(this),c=b.closest("tr");return data={action:"edd_get_shop_states",country:a(this).val(),field_name:"edd_settings[base_state]"},a.post(ajaxurl,data,function(a){"nostates"==a?c.next().hide():(c.next().show(),c.next().find("select").replaceWith(a))}),!1}),a(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var b=a(this);return data={action:"edd_get_shop_states",country:a(this).val(),field_name:b.attr("name").replace("country","state")},a.post(ajaxurl,data,function(a){if("nostates"==a){var c='<input type="text" name="'+data.field_name+'" value=""/>';b.parent().next().find("select").replaceWith(c)}else b.parent().next().find("input,select").show(),b.parent().next().find("input,select").replaceWith(a)}),!1}),a("#edd_add_tax_rate").on("click",function(){var b=a("#edd_tax_rates tr:last"),c=b.clone(),d=b.parent().find("tr").length;return c.find("td input").not(":input[type=checkbox]").val(""),c.find('td [type="checkbox"]').attr("checked",!1),c.find("input, select").each(function(){var b=a(this).attr("name");b=b.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),a(this).attr("name",b).attr("id",b)}),c.find("label").each(function(){var b=a(this).attr("for");b=b.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),a(this).attr("for",b)}),c.insertAfter(b),!1}),a(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){if(confirm(edd_vars.delete_tax_rate)){var b=a("#edd_tax_rates tr:visible"),c=b.length;2===c?(a("#edd_tax_rates select").val(""),a('#edd_tax_rates input[type="text"]').val(""),a('#edd_tax_rates input[type="number"]').val(""),a('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):a(this).closest("tr").remove(),a("#edd_tax_rates tr").each(function(b){a(this).children().find("input, select").each(function(){var c=a(this).attr("name");c=c.replace(/\[(\d+)\]/,"["+(b-1)+"]"),a(this).attr("name",c).attr("id",c)})})}return!1})},emails:function(){var b=a("#email-preview-wrap");if(b.length){var c=a("#email-preview");b.colorbox({inline:!0,href:c,width:"80%",height:"auto"})}},misc:function(){var b=a('select[name="edd_settings[download_method]"]'),c=b.parent().parent().next();"direct"==b.val()&&(c.hide(),c.find("input").prop("checked",!1)),b.on("change",function(){"direct"==a(this).val()?(c.hide(),c.find("input").prop("checked",!1)):c.show()})}};h.init(),a(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return confirm(edd_vars.delete_payment)?!0:!1}),a("#the-list").on("click",".editinline",function(){var b=a(this).closest("tr").attr("id");b=b.replace("post-","");var c=a("#post-"+b),d=c.find(".column-price .downloadprice-"+b).val();d!=a("#post-"+b+".column-price .downloadprice-"+b).val()?a(".regprice","#edd-download-data").val(d).attr("disabled",!1):a(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),a(document.body).on("click","#bulk_edit",function(){var b=a("#bulk-edit"),c=new Array;b.find("#bulk-titles").children().each(function(){c.push(a(this).attr("id").replace(/^(ttle)/i,""))});var d=a('#edd-download-data input[name="_edd_regprice"]').val(),e={action:"edd_save_bulk_edit",edd_bulk_nonce:c,post_ids:c,price:d};a.post(ajaxurl,e)}),a(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),a(".edd-select-chosen .chosen-search input").each(function(){var b=a(this).parent().parent().parent().prev("select.edd-select-chosen").data("search-type"),c="";if("download"===b)c=edd_vars.search_placeholder;else{var b="search_placeholder_"+b;edd_vars[b]&&(c=edd_vars[b])}a(this).attr("placeholder",c)}),a(".chosen-choices").on("click",function(){a(this).children("li").children("input").attr("placeholder",edd_vars.type_to_search)});var i,j=342;a(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(b){var c=a(this).val(),d=a(this).closest(".edd-select-chosen"),e=d.attr("id").replace("_chosen",""),f=d.hasClass("no-bundles"),g=d.hasClass("variations"),h=b.which,k="edd_download_search";if(d.prev().data("search-type")){if("no_ajax"==d.prev().data("search-type"))return;k="edd_"+d.prev().data("search-type")+"_search"}c.length<=3&&"edd_download_search"==k||16==h||13==h||91==h||17==h||37==h||38==h||39==h||40==h||(clearTimeout(i),i=setTimeout(function(){a.ajax({type:"GET",url:ajaxurl,data:{action:k,s:c,no_bundles:f,variations:g},dataType:"json",beforeSend:function(){a("ul.chosen-results").empty()},success:function(b){a("#"+e+" option:not(:selected)").remove(),a.each(b,function(b,c){a("#"+e+' option[value="'+c.id+'"]').length||a("#"+e).prepend('<option value="'+c.id+'">'+c.name+"</option>")}),a(".edd-select-chosen").trigger("chosen:updated"),a("#"+e).next().find("input").val(c)}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){})},j))}),a("#post").on("click",".edd-thickbox",function(){a(".edd-select-chosen","#choose-download").css("width","100%")});var k={init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){a(document.body).on("click",".edd-revoke-api-key",function(a){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){a(document.body).on("click",".edd-regenerate-api-key",function(a){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){a(document.body).on("submit","#api-key-generate-form",function(b){var c=a('input[type="text"][name="user_id"]');c.css("border-color","#ddd");var d=c.val();return d.length<1||0==d?(c.css("border-color","#ff0000"),!1):void 0})},recount_stats:function(){a("body").on("change","#recount-stats-type",function(){var b=a("#edd-tools-recount-form"),c=a("option:selected",this).data("type"),d=a("#recount-stats-submit"),e=a("#tools-product-dropdown");if(b.find(".notice-wrap").remove(),d.removeClass("button-disabled").attr("disabled",!1),e.hide(),a(".edd-recount-stats-descriptions span").hide(),"recount-download"===c)e.show(),e.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===c){b.append('<div class="notice-wrap"></div>');var f=b.find(".notice-wrap");f.html('<div class="notice notice-warning"><p><input type="checkbox" id="confirm-reset" name="confirm_reset_store" value="1" /> <label for="confirm-reset">'+edd_vars.reset_stats_warn+"</label></p></div>"),a("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else e.hide(),e.val(0);a("#"+c).show()}),a("body").on("change","#confirm-reset",function(){var b=a(this).is(":checked");b?a("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):a("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),a("#edd-tools-recount-form").submit(function(b){var c=a("#recount-stats-type").val(),d=a(this),e=a("option:selected",this).data("type");if("reset-stats"===e){var f=a("#confirm-reset").is(":checked");if(f)return!0;h=!0}d.find(".notice-wrap").remove(),d.append('<div class="notice-wrap"></div>');var g=d.find(".notice-wrap"),h=!1;if((null===c||0===c)&&(g.html('<div class="updated error"><p>'+edd_vars.batch_export_no_class+"</p></div>"),h=!0),"recount-download"===e){var i=a('select[name="download_id"]').val();0==i&&(g.html('<div class="updated error"><p>'+edd_vars.batch_export_no_reqs+"</p></div>"),h=!0)}return h?(d.find(".button-disabled").removeClass("button-disabled"),!1):void 0})}};k.init();var l={init:function(){this.submit(),this.dismiss_message()},submit:function(){var b=this;a(document.body).on("submit",".edd-export-form",function(c){c.preventDefault();var d=a(this).find('input[type="submit"]');if(!d.hasClass("button-disabled")){var e=a(this).serialize();d.addClass("button-disabled"),a(this).find(".notice-wrap").remove(),a(this).append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),b.process_step(1,e,b)}})},process_step:function(b,c,d){a.ajax({type:"POST",url:ajaxurl,data:{form:c,action:"edd_do_ajax_export",step:b},dataType:"json",success:function(b){if("done"==b.step||b.error||b.success){var e=a(".edd-export-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");if(e.find(".button-disabled").removeClass("button-disabled"),b.error){var g=b.message;f.html('<div class="updated error"><p>'+g+"</p></div>")}else if(b.success){var h=b.message;f.html('<div id="edd-batch-success" class="updated notice is-dismissible"><p>'+h+'<span class="notice-dismiss"></span></p></div>')}else f.remove(),window.location=b.url}else a(".edd-progress div").animate({width:b.percentage+"%"},50,function(){}),d.process_step(parseInt(b.step),c,d)}}).fail(function(a){window.console&&window.console.log&&console.log(a)})},dismiss_message:function(){a("body").on("click","#edd-batch-success .notice-dismiss",function(){a("#edd-batch-success").parent().slideUp("fast")})}};l.init();var m={init:function(){this.submit()},submit:function(){var b=this;a(".edd-import-form").ajaxForm({beforeSubmit:b.before_submit,success:b.success,complete:b.complete,dataType:"json",error:b.error})},before_submit:function(b,c,d){if(c.find(".notice-wrap").remove(),c.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var e=a(".edd-import-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");return e.find(".button-disabled").removeClass("button-disabled"),f.html('<div class="update error"><p>'+edd_vars.unsupported_browser+"</p></div>"),!1}},success:function(a,b,c,d){},complete:function(b){var c=jQuery.parseJSON(b.responseText);if(c.success){var d=a(".edd-import-form .notice-wrap").parent();d.find(".edd-import-file-wrap,.notice-wrap").remove(),d.find(".edd-import-options").slideDown();var e=d.find("select.edd-import-csv-column"),g=(e.parent().parent(),""),h=c.data.columns.sort(function(a,b){return b>a?-1:a>b?1:0});a.each(h,function(a,b){g+='<option value="'+b+'">'+b+"</option>"}),e.append(g),e.on("change",function(){var b=a(this).val();b&&0!=c.data.first_row[b]?a(this).parent().next().html(c.data.first_row[b]):a(this).parent().next().html("")}),a("body").on("click",".edd-import-proceed",function(a){a.preventDefault(),d.append('<div class="notice-wrap"><span class="spinner is-active"></span><div class="edd-progress"><div></div></div></div>'),c.data.mapping=d.serialize(),m.process_step(1,c.data,self)})}else m.error(b)},error:function(b){var c=jQuery.parseJSON(b.responseText),d=a(".edd-import-form").find(".edd-progress").parent().parent(),e=d.find(".notice-wrap");d.find(".button-disabled").removeClass("button-disabled"),c.data.error?e.html('<div class="update error"><p>'+c.data.error+"</p></div>"):e.remove()},process_step:function(b,c,d){a.ajax({type:"POST",url:ajaxurl,data:{form:c.form,nonce:c.nonce,"class":c["class"],upload:c.upload,mapping:c.mapping,action:"edd_do_ajax_import",step:b},dataType:"json",success:function(b){if("done"==b.data.step||b.data.error){var e=a(".edd-import-form").find(".edd-progress").parent().parent(),f=e.find(".notice-wrap");e.find(".button-disabled").removeClass("button-disabled"),b.data.error?f.html('<div class="update error"><p>'+b.data.error+"</p></div>"):(e.find(".edd-import-options").hide(),a("html, body").animate({scrollTop:e.parent().offset().top},500),f.html('<div class="updated"><p>'+b.data.message+"</p></div>"))}else a(".edd-progress div").animate({width:b.data.percentage+"%"},50,function(){}),m.process_step(parseInt(b.data.step),c,d)}}).fail(function(a){window.console&&window.console.log&&console.log(a)})}};m.init();var n={vars:{customer_card_wrap_editable:a(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:a(".edd-customer-card-wrapper .edit-item"),user_id:a('input[name="customerinfo[user_id]"]'),state_input:a(':input[name="customerinfo[state]"]'),note:a("#customer-note")},init:function(){this.edit_customer(),this.add_email(),this.user_search(),this.remove_user(),this.cancel_edit(),this.change_country(),this.add_note(),this.delete_checked()},edit_customer:function(){a(document.body).on("click","#edit-customer",function(a){a.preventDefault(),n.vars.customer_card_wrap_editable.hide(),n.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){a(document.body).on("click","#add-customer-email",function(b){b.preventDefault();var c=a(this),d=c.parent();d.parent().find(".notice-wrap").remove(),d.find(".spinner").css("visibility","visible"),c.attr("disabled",!0);var e=d.find('input[name="customer-id"]').val(),f=d.find('input[name="additional-email"]').val(),g=d.find('input[name="make-additional-primary"]').is(":checked"),h=d.find('input[name="add_email_nonce"]').val(),i={edd_action:"customer-add-email",customer_id:e,email:f,primary:g,_wpnonce:h};a.post(ajaxurl,i,function(a){!0===a.success?window.location.href=a.redirect:(c.attr("disabled",!1),d.after('<div class="notice-wrap"><div class="notice notice-error inline"><p>'+a.message+"</p></div></div>"),d.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){a(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(b){b.preventDefault();var c=a(this).data("userid");n.vars.user_id.val(c)})},remove_user:function(){a(document.body).on("click","#disconnect-customer",function(b){b.preventDefault();var c=a('input[name="customerinfo[id]"]').val(),d={edd_action:"disconnect-userid",customer_id:c,_wpnonce:a("#edit-customer-info #_wpnonce").val()};a.post(ajaxurl,d,function(a){window.location.href=window.location.href},"json")})},cancel_edit:function(){a(document.body).on("click","#edd-edit-customer-cancel",function(b){b.preventDefault(),n.vars.customer_card_wrap_edit_item.hide(),n.vars.customer_card_wrap_editable.show(),a(".edd_user_search_results").html("")})},change_country:function(){a('select[name="customerinfo[country]"]').change(function(){var b=a(this);return data={action:"edd_get_shop_states",country:b.val(),field_name:"customerinfo[state]"},a.post(ajaxurl,data,function(a){"nostates"==a?n.vars.state_input.replaceWith('<input type="text" name="'+data.field_name+'" value="" class="edd-edit-toggles medium-text"/>'):n.vars.state_input.replaceWith(a)}),!1})},add_note:function(){a(document.body).on("click","#add-customer-note",function(b){b.preventDefault();var c={edd_action:"add-customer-note",customer_id:a("#customer-id").val(),customer_note:n.vars.note.val(),add_customer_note_nonce:a("#add_customer_note_nonce").val()};if(c.customer_note)a.ajax({type:"POST",data:c,url:ajaxurl,success:function(b){a("#edd-customer-notes").prepend(b),a(".edd-no-customer-notes").hide(),n.vars.note.val("")}}).fail(function(a){window.console&&window.console.log&&console.log(a)});else{var d=n.vars.note.css("border-color");n.vars.note.css("border-color","red"),setTimeout(function(){n.vars.note.css("border-color",d)},500)}})},delete_checked:function(){a("#edd-customer-delete-confirm").change(function(){var b=a("#edd-customer-delete-records"),c=a("#edd-delete-customer");a(this).prop("checked")?(b.attr("disabled",!1),c.attr("disabled",!1)):(b.attr("disabled",!0),b.prop("checked",!1),c.attr("disabled",!0))})}};n.init(),a(".edd-ajax-user-search").keyup(function(){var b=a(this).val(),c="";a(this).data("exclude")&&(c=a(this).data("exclude")),a(".edd-ajax").show(),data={action:"edd_search_users",user_name:b,exclude:c},document.body.style.cursor="wait",a.ajax({type:"POST",data:data,dataType:"json",url:ajaxurl,success:function(b){a(".edd-ajax").hide(),a(".edd_user_search_results").removeClass("hidden"),a(".edd_user_search_results span").html(""),a(b.results).appendTo(".edd_user_search_results span"),
2
+ document.body.style.cursor="default"}})}),a(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(b){b.preventDefault();var c=a(this).data("login");a(".edd-ajax-user-search").val(c),a(".edd_user_search_results").addClass("hidden"),a(".edd_user_search_results span").html("")}),a(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(b){b.preventDefault(),a(".edd-ajax-user-search").val(""),a(".edd_user_search_results").addClass("hidden"),a(".edd_user_search_results span").html("")}),a("#edd_dashboard_sales").length&&a.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(b){a("#edd_dashboard_sales .inside").html(b)}}),a(document).on("keydown",".customer-note-input",function(b){13==b.keyCode&&(b.metaKey||b.ctrlKey)&&a("#add-customer-note").click()})});var eddFormatCurrency=function(a){var b=parseFloat(a),c=edd_vars.currency,d=edd_vars.currency_decimals;return b.toLocaleString(c,{style:"currency",currency:c,minimumFractionDigits:d,maximumFractionDigits:d})},eddFormatNumber=function(a){var b=parseFloat(a),c=edd_vars.currency;edd_vars.currency_decimals;return b.toLocaleString(c,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(a,b){return'<div style="font-size:12px; text-align:center; padding:2px">'+a+"</div>"},eddLegendFormatterSales=function(a,b){var c=a.toLowerCase().replace(/\s/g,"-"),d='<div class="edd-legend-color" style="background-color: '+b.color+'"></div>',e='<div class="edd-pie-legend-item">'+a+": "+Math.round(b.percent)+"% ("+eddFormatNumber(b.data[0][1])+")</div>",f='<div id="'+b.edd_vars.id+c+'" class="edd-legend-item-wrapper">'+d+e+"</div>";return jQuery("#edd-pie-legend-"+b.edd_vars.id).append(f),f},eddLegendFormatterEarnings=function(a,b){var c=a.toLowerCase().replace(/\s/g,"-"),d='<div class="edd-legend-color" style="background-color: '+b.color+'"></div>',e='<div class="edd-pie-legend-item">'+a+": "+Math.round(b.percent)+"% ("+eddFormatCurrency(b.data[0][1])+")</div>",f='<div id="'+b.edd_vars.id+c+'" class="edd-legend-item-wrapper">'+d+e+"</div>";return jQuery("#edd-pie-legend-"+b.edd_vars.id).append(f),f};
assets/js/edd-ajax.min.js CHANGED
@@ -1 +1 @@
1
- function edd_load_gateway(a){jQuery(".edd-cart-ajax").show(),jQuery("#edd_purchase_form_wrap").html('<img src="'+edd_scripts.ajax_loader+'"/>');var b=edd_scripts.ajaxurl;b+=b.indexOf("?")>0?"&":"?",b=b+"payment-mode="+a,jQuery.post(b,{action:"edd_load_gateway",edd_payment_mode:a},function(b){jQuery("#edd_purchase_form_wrap").html(b),jQuery(".edd-no-js").hide(),jQuery("body").trigger("edd_gateway_loaded",[a])})}var edd_scripts;jQuery(document).ready(function(a){function b(){var c,b=a(this),d="undefined"!=typeof edd_global_vars;if("card_state"!=b.attr("id")){var e={action:"edd_get_shop_states",country:b.val(),field_name:"card_state"};a.ajax({type:"POST",data:e,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){c=d?a("#edd_purchase_form"):b.closest("form");var f='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"==a.trim(e)){var g='<input type="text" name="card_state" class="cart-state edd-input required" value=""/>';c.find(f).replaceWith(g)}else c.find(f).replaceWith(e);d&&a("body").trigger("edd_cart_billing_address_updated",[e])}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){d&&recalculate_taxes()})}else d&&recalculate_taxes();return!1}a(".edd-no-js").hide(),a("a.edd-add-to-cart").addClass("edd-has-js"),a("body").on("click.eddRemoveFromCart",".edd-remove-from-cart",function(b){var c=a(this),d=c.data("cart-item"),e=c.data("action"),f=c.data("download-id"),g={action:e,cart_item:d};return a.ajax({type:"POST",data:g,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(b){if(b.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(d,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;a(".edd-cart").find("[data-cart-item='"+d+"']").parent().remove();var c=0;a(".edd-cart").find("[data-cart-item]").each(function(){a(this).attr("data-cart-item",c),c+=1}),a("[id^=edd_purchase_"+f+"]").length&&(a("[id^=edd_purchase_"+f+"] .edd_go_to_checkout").hide(),a("[id^=edd_purchase_"+f+"] a.edd-add-to-cart").show().removeAttr("data-edd-loading"),"1"==edd_scripts.quantities_enabled&&a("[id^=edd_purchase_"+f+"] .edd_download_quantity_wrapper").show()),a("span.edd-cart-quantity").text(b.cart_quantity),a("body").trigger("edd_quantity_updated",[b.cart_quantity]),edd_scripts.taxes_enabled&&(a(".cart_item.edd_subtotal span").html(b.subtotal),a(".cart_item.edd_cart_tax span").html(b.tax)),a(".cart_item.edd_total span").html(b.total),0==b.cart_quantity&&(a(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),a(".edd-cart").append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")),a("body").trigger("edd_cart_item_removed",[b])}}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){}),!1}),a("body").on("click.eddAddToCart",".edd-add-to-cart",function(b){b.preventDefault();var c=a(this),d=c.closest("form");c.prop("disabled",!0);var e=c.find(".edd-loading"),f=c.closest("div"),g=e.width(),h=e.height();c.attr("data-edd-loading",""),e.css({"margin-left":g/-2,"margin-top":h/-2});var d=c.parents("form").last(),i=c.data("download-id"),j=c.data("variable-price"),k=c.data("price-mode"),l=[],m=!0;if("yes"==j)if(d.find(".edd_price_option_"+i+'[type="hidden"]').length>0)l[0]=a(".edd_price_option_"+i,d).val(),d.find(".edd-submit").data("price")&&d.find(".edd-submit").data("price")>0&&(m=!1);else{if(!d.find(".edd_price_option_"+i+":checked",d).length)return c.removeAttr("data-edd-loading"),void alert(edd_scripts.select_option);d.find(".edd_price_option_"+i+":checked",d).each(function(b){if(l[b]=a(this).val(),!0===m){var c=a(this).data("price");c&&c>0&&(m=!1)}})}else l[0]=i,c.data("price")&&c.data("price")>0&&(m=!1);if(m&&d.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"==d.find(".edd_action_input").val())return d.submit(),!0;var n=c.data("action"),o={action:n,download_id:i,price_ids:l,post_data:a(d).serialize()};return a.ajax({type:"POST",data:o,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(b){if("1"==edd_scripts.redirect_to_checkout&&"1"==d.find("#edd_redirect_to_checkout").val())window.location=edd_scripts.checkout_page;else{"1"===edd_scripts.taxes_enabled&&(a(".cart_item.edd_subtotal").show(),a(".cart_item.edd_cart_tax").show()),a(".cart_item.edd_total").show(),a(".cart_item.edd_checkout").show(),a(".cart_item.empty").length?(a(b.cart_item).insertBefore(".edd-cart-meta:first"),a(".cart_item.empty").hide()):a(b.cart_item).insertBefore(".edd-cart-meta:first"),"1"===edd_scripts.taxes_enabled&&(a(".edd-cart-meta.edd_subtotal span").html(b.subtotal),a(".edd-cart-meta.edd_cart_tax span").html(b.tax)),a(".edd-cart-meta.edd_total span").html(b.total);a(".edd-cart-item-title",b.cart_item).length;if(a("span.edd-cart-quantity").each(function(){a(this).text(b.cart_quantity),a("body").trigger("edd_quantity_updated",[b.cart_quantity])}),"none"==a(".edd-cart-number-of-items").css("display")&&a(".edd-cart-number-of-items").show("slow"),("no"==j||"multi"!=k)&&(a("a.edd-add-to-cart",f).toggle(),a(".edd_go_to_checkout",f).css("display","inline-block")),"multi"==k&&c.removeAttr("data-edd-loading"),a(".edd_download_purchase_form").length&&("no"==j||!d.find(".edd_price_option_"+i).is("input:hidden"))){var g=a('.edd_download_purchase_form *[data-download-id="'+i+'"]').parents("form");a("a.edd-add-to-cart",g).hide(),"multi"!=k&&g.find(".edd_download_quantity_wrapper").slideUp(),a(".edd_go_to_checkout",g).show().removeAttr("data-edd-loading")}"incart"!=b&&(a(".edd-cart-added-alert",f).fadeIn(),setTimeout(function(){a(".edd-cart-added-alert",f).fadeOut()},3e3)),c.prop("disabled",!1),a("body").trigger("edd_cart_item_added",[b])}}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){}),!1}),a("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",function(){var b=a(this),c={action:b.data("action")};return a(".edd-cart-ajax").show(),a.post(edd_scripts.ajaxurl,c,function(b){a("#edd_checkout_login_register").html(edd_scripts.loading),a("#edd_checkout_login_register").html(b),a(".edd-cart-ajax").hide()}),!1}),a(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",function(b){b.preventDefault();var c=a(this).val();a(this).val(edd_global_vars.purchase_loading),a(this).after('<span class="edd-cart-ajax"><i class="edd-icon-spinner edd-icon-spin"></i></span>');var d={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:a("#edd_login_fields #edd_user_login").val(),edd_user_pass:a("#edd_login_fields #edd_user_pass").val()};a.post(edd_global_vars.ajaxurl,d,function(b){"success"==a.trim(b)?(a(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(a("#edd_login_fields input[type=submit]").val(c),a(".edd-cart-ajax").remove(),a(".edd_errors").remove(),a("#edd-user-login-submit").before(b))})}),a("select#edd-gateway, input.edd-gateway").change(function(b){var c=a("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"==c?!1:(edd_load_gateway(c),!1)}),"1"==edd_scripts.is_checkout&&a("select#edd-gateway, input.edd-gateway").length&&setTimeout(function(){edd_load_gateway(edd_scripts.default_gateway)},200),a(document).on("click","#edd_purchase_form #edd_purchase_submit input[type=submit]",function(b){var c=document.getElementById("edd_purchase_form");if("function"!=typeof c.checkValidity||!1!==c.checkValidity()){b.preventDefault();var d=a(this).val();a(this).val(edd_global_vars.purchase_loading),a(this).prop("disabled",!0),a(this).after('<span class="edd-cart-ajax"><i class="edd-icon-spinner edd-icon-spin"></i></span>'),a.post(edd_global_vars.ajaxurl,a("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",function(b){"success"==a.trim(b)?(a(".edd_errors").remove(),a(".edd-error").hide(),a(c).submit()):(a("#edd-purchase-button").val(d),a(".edd-cart-ajax").remove(),a(".edd_errors").remove(),a(".edd-error").hide(),a("#edd_purchase_submit").before(b),a("#edd-purchase-button").prop("disabled",!1))})}}),a("body").on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",b)});
1
+ function edd_load_gateway(a){jQuery(".edd-cart-ajax").show(),jQuery("#edd_purchase_form_wrap").html('<img src="'+edd_scripts.ajax_loader+'"/>');var b=edd_scripts.ajaxurl;b+=b.indexOf("?")>0?"&":"?",b=b+"payment-mode="+a,jQuery.post(b,{action:"edd_load_gateway",edd_payment_mode:a},function(b){jQuery("#edd_purchase_form_wrap").html(b),jQuery(".edd-no-js").hide(),jQuery("body").trigger("edd_gateway_loaded",[a])})}var edd_scripts;jQuery(document).ready(function(a){function b(){var c,b=a(this),d="undefined"!=typeof edd_global_vars;if("card_state"!=b.attr("id")){var e={action:"edd_get_shop_states",country:b.val(),field_name:"card_state"};a.ajax({type:"POST",data:e,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){c=d?a("#edd_purchase_form"):b.closest("form");var f='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"==a.trim(e)){var g='<input type="text" name="card_state" class="cart-state edd-input required" value=""/>';c.find(f).replaceWith(g)}else c.find(f).replaceWith(e);d&&a("body").trigger("edd_cart_billing_address_updated",[e])}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){d&&recalculate_taxes()})}else d&&recalculate_taxes();return!1}a(".edd-no-js").hide(),a("a.edd-add-to-cart").addClass("edd-has-js"),a("body").on("click.eddRemoveFromCart",".edd-remove-from-cart",function(b){var c=a(this),d=c.data("cart-item"),e=c.data("action"),f=c.data("download-id"),g={action:e,cart_item:d};return a.ajax({type:"POST",data:g,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(b){if(b.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(d,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;a(".edd-cart").find("[data-cart-item='"+d+"']").parent().remove();var c=0;a(".edd-cart").find("[data-cart-item]").each(function(){a(this).attr("data-cart-item",c),c+=1}),a("[id^=edd_purchase_"+f+"]").length&&(a("[id^=edd_purchase_"+f+"] .edd_go_to_checkout").hide(),a("[id^=edd_purchase_"+f+"] a.edd-add-to-cart").show().removeAttr("data-edd-loading"),"1"==edd_scripts.quantities_enabled&&a("[id^=edd_purchase_"+f+"] .edd_download_quantity_wrapper").show()),a("span.edd-cart-quantity").text(b.cart_quantity),a("body").trigger("edd_quantity_updated",[b.cart_quantity]),edd_scripts.taxes_enabled&&(a(".cart_item.edd_subtotal span").html(b.subtotal),a(".cart_item.edd_cart_tax span").html(b.tax)),a(".cart_item.edd_total span").html(b.total),0==b.cart_quantity&&(a(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),a(".edd-cart").append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")),a("body").trigger("edd_cart_item_removed",[b])}}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){}),!1}),a("body").on("click.eddAddToCart",".edd-add-to-cart",function(b){b.preventDefault();var c=a(this),d=c.closest("form");c.prop("disabled",!0);var e=c.find(".edd-loading"),f=c.closest("div"),g=e.width(),h=e.height();c.attr("data-edd-loading",""),e.css({"margin-left":g/-2,"margin-top":h/-2});var d=c.parents("form").last(),i=c.data("download-id"),j=c.data("variable-price"),k=c.data("price-mode"),l=[],m=!0;if("yes"==j)if(d.find(".edd_price_option_"+i+'[type="hidden"]').length>0)l[0]=a(".edd_price_option_"+i,d).val(),d.find(".edd-submit").data("price")&&d.find(".edd-submit").data("price")>0&&(m=!1);else{if(!d.find(".edd_price_option_"+i+":checked",d).length)return c.removeAttr("data-edd-loading"),void alert(edd_scripts.select_option);d.find(".edd_price_option_"+i+":checked",d).each(function(b){if(l[b]=a(this).val(),!0===m){var c=a(this).data("price");c&&c>0&&(m=!1)}})}else l[0]=i,c.data("price")&&c.data("price")>0&&(m=!1);if(m&&d.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"==d.find(".edd_action_input").val())return d.submit(),!0;var n=c.data("action"),o={action:n,download_id:i,price_ids:l,post_data:a(d).serialize()};return a.ajax({type:"POST",data:o,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(b){if("1"==edd_scripts.redirect_to_checkout&&"1"==d.find("#edd_redirect_to_checkout").val())window.location=edd_scripts.checkout_page;else{"1"===edd_scripts.taxes_enabled&&(a(".cart_item.edd_subtotal").show(),a(".cart_item.edd_cart_tax").show()),a(".cart_item.edd_total").show(),a(".cart_item.edd_checkout").show(),a(".cart_item.empty").length?(a(b.cart_item).insertBefore(".edd-cart-meta:first"),a(".cart_item.empty").hide()):a(b.cart_item).insertBefore(".edd-cart-meta:first"),"1"===edd_scripts.taxes_enabled&&(a(".edd-cart-meta.edd_subtotal span").html(b.subtotal),a(".edd-cart-meta.edd_cart_tax span").html(b.tax)),a(".edd-cart-meta.edd_total span").html(b.total);a(".edd-cart-item-title",b.cart_item).length;if(a("span.edd-cart-quantity").each(function(){a(this).text(b.cart_quantity),a("body").trigger("edd_quantity_updated",[b.cart_quantity])}),"none"==a(".edd-cart-number-of-items").css("display")&&a(".edd-cart-number-of-items").show("slow"),"no"!=j&&"multi"==k||(a("a.edd-add-to-cart",f).toggle(),a(".edd_go_to_checkout",f).css("display","inline-block")),"multi"==k&&c.removeAttr("data-edd-loading"),a(".edd_download_purchase_form").length&&("no"==j||!d.find(".edd_price_option_"+i).is("input:hidden"))){var g=a('.edd_download_purchase_form *[data-download-id="'+i+'"]').parents("form");a("a.edd-add-to-cart",g).hide(),"multi"!=k&&g.find(".edd_download_quantity_wrapper").slideUp(),a(".edd_go_to_checkout",g).show().removeAttr("data-edd-loading")}"incart"!=b&&(a(".edd-cart-added-alert",f).fadeIn(),setTimeout(function(){a(".edd-cart-added-alert",f).fadeOut()},3e3)),c.prop("disabled",!1),a("body").trigger("edd_cart_item_added",[b])}}}).fail(function(a){window.console&&window.console.log&&console.log(a)}).done(function(a){}),!1}),a("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",function(){var b=a(this),c={action:b.data("action")};return a(".edd-cart-ajax").show(),a.post(edd_scripts.ajaxurl,c,function(b){a("#edd_checkout_login_register").html(edd_scripts.loading),a("#edd_checkout_login_register").html(b),a(".edd-cart-ajax").hide()}),!1}),a(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",function(b){b.preventDefault();var c=a(this).val();a(this).val(edd_global_vars.purchase_loading),a(this).after('<span class="edd-cart-ajax"><i class="edd-icon-spinner edd-icon-spin"></i></span>');var d={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:a("#edd_login_fields #edd_user_login").val(),edd_user_pass:a("#edd_login_fields #edd_user_pass").val()};a.post(edd_global_vars.ajaxurl,d,function(b){"success"==a.trim(b)?(a(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(a("#edd_login_fields input[type=submit]").val(c),a(".edd-cart-ajax").remove(),a(".edd_errors").remove(),a("#edd-user-login-submit").before(b))})}),a("select#edd-gateway, input.edd-gateway").change(function(b){var c=a("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"!=c&&(edd_load_gateway(c),!1)}),"1"==edd_scripts.is_checkout&&a("select#edd-gateway, input.edd-gateway").length&&setTimeout(function(){edd_load_gateway(edd_scripts.default_gateway)},200),a(document).on("click","#edd_purchase_form #edd_purchase_submit input[type=submit]",function(b){var c=document.getElementById("edd_purchase_form");if("function"!=typeof c.checkValidity||!1!==c.checkValidity()){b.preventDefault();var d=a(this).val();a(this).val(edd_global_vars.purchase_loading),a(this).prop("disabled",!0),a(this).after('<span class="edd-cart-ajax"><i class="edd-icon-spinner edd-icon-spin"></i></span>'),a.post(edd_global_vars.ajaxurl,a("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",function(b){"success"==a.trim(b)?(a(".edd_errors").remove(),a(".edd-error").hide(),a(c).submit()):(a("#edd-purchase-button").val(d),a(".edd-cart-ajax").remove(),a(".edd_errors").remove(),a(".edd-error").hide(),a("#edd_purchase_submit").before(b),a("#edd-purchase-button").prop("disabled",!1))})}}),a("body").on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",b)});
assets/js/edd-checkout-global.min.js CHANGED
@@ -1 +1 @@
1
- function recalculate_taxes(e){if("1"==edd_global_vars.taxes_enabled){var d=jQuery("#edd_cc_address");e||(e=d.find("#card_state").val());var t={action:"edd_recalculate_taxes",billing_country:d.find("#billing_country").val(),state:e};jQuery.ajax({type:"POST",data:t,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(e){jQuery("#edd_checkout_cart_form").replaceWith(e.html),jQuery(".edd_cart_amount").html(e.total);var d=new Object;d.postdata=t,d.response=e,jQuery("body").trigger("edd_taxes_recalculated",[d])}}).fail(function(e){window.console&&window.console.log&&(console.log(e),jQuery("body").trigger("edd_taxes_recalculated",[tax_data]))})}}window.EDD_Checkout=function(e){"use strict";function d(){c=e(document.body),i=e("#edd_purchase_form"),s=e(".edd_cart_amount"),r=s.text(),l=e("#edd_checkout_form_wrap"),c.on("keyup change",".edd-do-validate .card-number",function(){t(e(this))}),c.on("submit","#edd_payment_mode",function(){var d=e("#edd-gateway option:selected").val();return 0==d?(alert(edd_global_vars.no_gateway),!1):void 0}),c.on("click","#edd_payment_mode_select input",function(){e("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),e("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")}),l.on("click",".edd-apply-discount",a),l.on("keypress","#edd-discount",function(e){return"13"==e.keyCode?!1:void 0}),l.on("keyup","#edd-discount",function(e){"13"==e.keyCode&&l.find(".edd-apply-discount").trigger("click")}),c.on("click",".edd_discount_remove",o),c.on("click",".edd_discount_link",function(d){d.preventDefault(),e(".edd_discount_link").parent().hide(),e("#edd-discount-code-wrap").show().find("#edd-discount").focus()}),c.find("#edd-discount-code-wrap").hide(),c.find("#edd_show_discount").show(),c.on("change",".edd-item-quantity",n),c.on("click",".edd-amazon-logout #Logout",function(e){e.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri})}function t(d){var t=d;t.validateCreditCard(function(d){var a=e(".card-type");null==d.card_type?(a.removeClass().addClass("off card-type"),t.removeClass("valid"),t.addClass("error")):(a.removeClass("off"),a.addClass(d.card_type.name),d.length_valid&&d.luhn_valid?(t.addClass("valid"),t.removeClass("error")):(t.removeClass("valid"),t.addClass("error")))})}function a(d){d.preventDefault();var t=(e(this),e("#edd-discount").val()),a=e("#edd-discount-loader");if(""==t||t==edd_global_vars.enter_discount)return!1;var o={action:"edd_apply_discount",code:t,form:e("#edd_purchase_form").serialize()};return e("#edd-discount-error-wrap").html("").hide(),a.show(),e.ajax({type:"POST",data:o,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){if(d)if("valid"==d.msg){e(".edd_cart_discount").html(d.html),e(".edd_cart_discount_row").show(),e(".edd_cart_amount").each(function(){e(this).text(d.total)}),e("#edd-discount",l).val(""),recalculate_taxes();var t=e("#edd_cc_fields .edd-input, #edd_cc_fields .edd-select,#edd_cc_address .edd-input, #edd_cc_address .edd-select,#edd_payment_mode_select .edd-input, #edd_payment_mode_select .edd-select");"0.00"==d.total_plain?(e("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),t.removeAttr("required"),e('input[name="edd-gateway"]').val("manual")):(t.is(".card-address-2")||t.attr("required","required"),e("#edd_cc_fields,#edd_cc_address").slideDown()),c.trigger("edd_discount_applied",[d])}else e("#edd-discount-error-wrap").html('<span class="edd_error">'+d.msg+"</span>"),e("#edd-discount-error-wrap").show(),c.trigger("edd_discount_invalid",[d]);else window.console&&window.console.log&&console.log(d),c.trigger("edd_discount_failed",[d]);a.hide()}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!1}function o(d){var t=e(this),a={action:"edd_remove_discount",code:t.data("code")};return e.ajax({type:"POST",data:a,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){var t="0"+edd_global_vars.decimal_separator+"00";e(".edd_cart_amount").each(function(){(edd_global_vars.currency_sign+t==e(this).text()||t+edd_global_vars.currency_sign==e(this).text())&&window.location.reload(),e(this).text(d.total)}),e(".edd_cart_discount").html(d.html),d.discounts||e(".edd_cart_discount_row").hide(),recalculate_taxes(),e("#edd_cc_fields,#edd_cc_address").slideDown(),c.trigger("edd_discount_removed",[d])}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!1}function n(d){var t=e(this),a=t.val(),o=t.data("key"),n=t.closest(".edd_cart_item").data("download-id"),i=t.parent().find('input[name="edd-cart-download-'+o+'-options"]').val(),s={action:"edd_update_quantity",quantity:a,download_id:n,options:i};return e.ajax({type:"POST",data:s,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){e(".edd_cart_subtotal_amount").each(function(){e(this).text(d.subtotal)}),e(".edd_cart_tax_amount").each(function(){e(this).text(d.taxes)}),e(".edd_cart_amount").each(function(){e(this).text(d.total),c.trigger("edd_quantity_updated",[d])})}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!1}var c,i,s,r,l;return{init:d,recalculate_taxes:recalculate_taxes}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init);
1
+ function recalculate_taxes(a){if("1"==edd_global_vars.taxes_enabled){var b=jQuery("#edd_cc_address");a||(a=b.find("#card_state").val());var c={action:"edd_recalculate_taxes",billing_country:b.find("#billing_country").val(),state:a};jQuery.ajax({type:"POST",data:c,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(a){jQuery("#edd_checkout_cart_form").replaceWith(a.html),jQuery(".edd_cart_amount").html(a.total);var b=new Object;b.postdata=c,b.response=a,jQuery("body").trigger("edd_taxes_recalculated",[b])}}).fail(function(a){window.console&&window.console.log&&(console.log(a),jQuery("body").trigger("edd_taxes_recalculated",[tax_data]))})}}window.EDD_Checkout=function(a){"use strict";function g(){b=a(document.body),c=a("#edd_purchase_form"),d=a(".edd_cart_amount"),e=d.text(),f=a("#edd_checkout_form_wrap"),b.on("keyup change",".edd-do-validate .card-number",function(){h(a(this))}),b.on("submit","#edd_payment_mode",function(){var b=a("#edd-gateway option:selected").val();if(0==b)return alert(edd_global_vars.no_gateway),!1}),b.on("click","#edd_payment_mode_select input",function(){a("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),a("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")}),f.on("click",".edd-apply-discount",i),f.on("keypress","#edd-discount",function(a){if("13"==a.keyCode)return!1}),f.on("keyup","#edd-discount",function(a){"13"==a.keyCode&&f.find(".edd-apply-discount").trigger("click")}),b.on("click",".edd_discount_remove",j),b.on("click",".edd_discount_link",function(b){b.preventDefault(),a(".edd_discount_link").parent().hide(),a("#edd-discount-code-wrap").show().find("#edd-discount").focus()}),b.find("#edd-discount-code-wrap").hide(),b.find("#edd_show_discount").show(),b.on("change",".edd-item-quantity",k),b.on("click",".edd-amazon-logout #Logout",function(a){a.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri})}function h(b){var c=b;c.validateCreditCard(function(b){var d=a(".card-type");null==b.card_type?(d.removeClass().addClass("off card-type"),c.removeClass("valid"),c.addClass("error")):(d.removeClass("off"),d.addClass(b.card_type.name),b.length_valid&&b.luhn_valid?(c.addClass("valid"),c.removeClass("error")):(c.removeClass("valid"),c.addClass("error")))})}function i(c){c.preventDefault();var e=(a(this),a("#edd-discount").val()),g=a("#edd-discount-loader");if(""==e||e==edd_global_vars.enter_discount)return!1;var h={action:"edd_apply_discount",code:e,form:a("#edd_purchase_form").serialize()};return a("#edd-discount-error-wrap").html("").hide(),g.show(),a.ajax({type:"POST",data:h,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(c){if(c)if("valid"==c.msg){a(".edd_cart_discount").html(c.html),a(".edd_cart_discount_row").show(),a(".edd_cart_amount").each(function(){a(this).text(c.total)}),a("#edd-discount",f).val(""),recalculate_taxes();var d=a("#edd_cc_fields .edd-input, #edd_cc_fields .edd-select,#edd_cc_address .edd-input, #edd_cc_address .edd-select,#edd_payment_mode_select .edd-input, #edd_payment_mode_select .edd-select");"0.00"==c.total_plain?(a("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),d.removeAttr("required"),a('input[name="edd-gateway"]').val("manual")):(d.is(".card-address-2")||d.attr("required","required"),a("#edd_cc_fields,#edd_cc_address").slideDown()),b.trigger("edd_discount_applied",[c])}else a("#edd-discount-error-wrap").html('<span class="edd_error">'+c.msg+"</span>"),a("#edd-discount-error-wrap").show(),b.trigger("edd_discount_invalid",[c]);else window.console&&window.console.log&&console.log(c),b.trigger("edd_discount_failed",[c]);g.hide()}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),!1}function j(c){var d=a(this),e={action:"edd_remove_discount",code:d.data("code")};return a.ajax({type:"POST",data:e,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(c){var d="0"+edd_global_vars.decimal_separator+"00";a(".edd_cart_amount").each(function(){edd_global_vars.currency_sign+d!=a(this).text()&&d+edd_global_vars.currency_sign!=a(this).text()||window.location.reload(),a(this).text(c.total)}),a(".edd_cart_discount").html(c.html),c.discounts||a(".edd_cart_discount_row").hide(),recalculate_taxes(),a("#edd_cc_fields,#edd_cc_address").slideDown(),b.trigger("edd_discount_removed",[c])}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),!1}function k(c){var d=a(this),e=d.val(),f=d.data("key"),g=d.closest(".edd_cart_item").data("download-id"),h=d.parent().find('input[name="edd-cart-download-'+f+'-options"]').val(),i={action:"edd_update_quantity",quantity:e,download_id:g,options:h};return a.ajax({type:"POST",data:i,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(c){a(".edd_cart_subtotal_amount").each(function(){a(this).text(c.subtotal)}),a(".edd_cart_tax_amount").each(function(){a(this).text(c.taxes)}),a(".edd_cart_amount").each(function(){a(this).text(c.total),b.trigger("edd_quantity_updated",[c])})}}).fail(function(a){window.console&&window.console.log&&console.log(a)}),!1}var b,c,d,e,f;return{init:g,recalculate_taxes:recalculate_taxes}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init);
easy-digital-downloads.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Pippin Williamson and Company
7
  * Author URI: https://easydigitaldownloads.com
8
- * Version: 2.6.8
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
@@ -25,7 +25,7 @@
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
- * @version 2.6.8
29
  */
30
 
31
  // Exit if accessed directly.
@@ -195,7 +195,7 @@ final class Easy_Digital_Downloads {
195
 
196
  // Plugin version.
197
  if ( ! defined( 'EDD_VERSION' ) ) {
198
- define( 'EDD_VERSION', '2.6.8' );
199
  }
200
 
201
  // Plugin Folder Path.
5
  * Description: The easiest way to sell digital products with WordPress.
6
  * Author: Pippin Williamson and Company
7
  * Author URI: https://easydigitaldownloads.com
8
+ * Version: 2.6.9
9
  * Text Domain: easy-digital-downloads
10
  * Domain Path: languages
11
  *
25
  * @package EDD
26
  * @category Core
27
  * @author Pippin Williamson
28
+ * @version 2.6.9
29
  */
30
 
31
  // Exit if accessed directly.
195
 
196
  // Plugin version.
197
  if ( ! defined( 'EDD_VERSION' ) ) {
198
+ define( 'EDD_VERSION', '2.6.9' );
199
  }
200
 
201
  // Plugin Folder Path.
includes/admin/customers/customer-actions.php CHANGED
@@ -179,6 +179,7 @@ add_action( 'edd_edit-customer', 'edd_edit_customer', 10, 1 );
179
  * @return mixed If DOING_AJAX echos out JSON, otherwise returns array of success (bool) and message (string)
180
  */
181
  function edd_add_customer_email( $args ) {
 
182
  $customer_edit_role = apply_filters( 'edd_edit_customers_role', 'edit_shop_payments' );
183
 
184
  if ( ! is_admin() || ! current_user_can( $customer_edit_role ) ) {
@@ -215,7 +216,7 @@ function edd_add_customer_email( $args ) {
215
 
216
  } else {
217
 
218
- $email = sanitize_email($args['email'] );
219
  $customer_id = (int) $args['customer_id'];
220
  $primary = 'true' === $args['primary'] ? true : false;
221
  $customer = new EDD_Customer( $customer_id );
@@ -226,7 +227,7 @@ function edd_add_customer_email( $args ) {
226
 
227
  $output = array(
228
  'success' => false,
229
- 'message' => __( 'Email already assocaited with this customer.', 'easy-digital-downloads' ),
230
  );
231
 
232
  } else {
179
  * @return mixed If DOING_AJAX echos out JSON, otherwise returns array of success (bool) and message (string)
180
  */
181
  function edd_add_customer_email( $args ) {
182
+
183
  $customer_edit_role = apply_filters( 'edd_edit_customers_role', 'edit_shop_payments' );
184
 
185
  if ( ! is_admin() || ! current_user_can( $customer_edit_role ) ) {
216
 
217
  } else {
218
 
219
+ $email = sanitize_email( $args['email'] );
220
  $customer_id = (int) $args['customer_id'];
221
  $primary = 'true' === $args['primary'] ? true : false;
222
  $customer = new EDD_Customer( $customer_id );
227
 
228
  $output = array(
229
  'success' => false,
230
+ 'message' => __( 'Email already associated with this customer.', 'easy-digital-downloads' ),
231
  );
232
 
233
  } else {
includes/admin/discounts/add-discount.php CHANGED
@@ -72,8 +72,8 @@ if ( ! defined( 'ABSPATH' ) ) exit;
72
  'name' => 'products[]',
73
  'id' => 'products',
74
  'multiple' => true,
75
- 'chosen' => true,
76
- 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
77
  ) ); ?><br/>
78
  </p>
79
  <div id="edd-discount-product-conditions" style="display:none;">
@@ -104,12 +104,12 @@ if ( ! defined( 'ABSPATH' ) ) exit;
104
  </th>
105
  <td>
106
  <?php echo EDD()->html->product_dropdown( array(
107
- 'name' => 'excluded-products[]',
108
- 'id' => 'excluded-products',
109
- 'selected' => array(),
110
- 'multiple' => true,
111
- 'chosen' => true,
112
- 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
113
  ) ); ?><br/>
114
  <p class="description"><?php printf( __( '%s that this discount code cannot be applied to.', 'easy-digital-downloads' ), edd_get_label_plural() ); ?></p>
115
  </td>
72
  'name' => 'products[]',
73
  'id' => 'products',
74
  'multiple' => true,
75
+ 'chosen' => true,
76
+ 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() ),
77
  ) ); ?><br/>
78
  </p>
79
  <div id="edd-discount-product-conditions" style="display:none;">
104
  </th>
105
  <td>
106
  <?php echo EDD()->html->product_dropdown( array(
107
+ 'name' => 'excluded-products[]',
108
+ 'id' => 'excluded-products',
109
+ 'selected' => array(),
110
+ 'multiple' => true,
111
+ 'chosen' => true,
112
+ 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() ),
113
  ) ); ?><br/>
114
  <p class="description"><?php printf( __( '%s that this discount code cannot be applied to.', 'easy-digital-downloads' ), edd_get_label_plural() ); ?></p>
115
  </td>
includes/admin/discounts/discount-actions.php CHANGED
@@ -35,7 +35,15 @@ function edd_add_discount( $data ) {
35
 
36
  foreach ( $data as $key => $value ) {
37
 
38
- if ( $key != 'edd-discount-nonce' && $key != 'edd-action' && $key != 'edd-redirect' ) {
 
 
 
 
 
 
 
 
39
 
40
  if ( is_string( $value ) || is_int( $value ) ) {
41
 
@@ -97,7 +105,15 @@ function edd_edit_discount( $data ) {
97
 
98
  foreach ( $data as $key => $value ) {
99
 
100
- if ( $key != 'edd-discount-nonce' && $key != 'edd-action' && $key != 'discount-id' && $key != 'edd-redirect' ) {
 
 
 
 
 
 
 
 
101
 
102
  if ( is_string( $value ) || is_int( $value ) ) {
103
 
35
 
36
  foreach ( $data as $key => $value ) {
37
 
38
+ if ( $key === 'products' || $key === 'excluded-products' ) {
39
+
40
+ foreach ( $value as $product_key => $product_value ) {
41
+ $value[ $product_key ] = preg_replace("/[^0-9_]/", '', $product_value );
42
+ }
43
+
44
+ $discount[ $key ] = $value;
45
+
46
+ } else if ( $key != 'edd-discount-nonce' && $key != 'edd-action' && $key != 'edd-redirect' ) {
47
 
48
  if ( is_string( $value ) || is_int( $value ) ) {
49
 
105
 
106
  foreach ( $data as $key => $value ) {
107
 
108
+ if ( $key === 'products' || $key === 'excluded-products' ) {
109
+
110
+ foreach ( $value as $product_key => $product_value ) {
111
+ $value[ $product_key ] = preg_replace("/[^0-9_]/", '', $product_value );
112
+ }
113
+
114
+ $discount[ $key ] = $value;
115
+
116
+ } else if ( $key != 'edd-discount-nonce' && $key != 'edd-action' && $key != 'discount-id' && $key != 'edd-redirect' ) {
117
 
118
  if ( is_string( $value ) || is_int( $value ) ) {
119
 
includes/admin/discounts/edit-discount.php CHANGED
@@ -87,8 +87,8 @@ $condition_display = empty( $product_reqs ) ? ' style="display:none;"' : '';
87
  'id' => 'products',
88
  'selected' => $product_reqs,
89
  'multiple' => true,
90
- 'chosen' => true,
91
- 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
92
  ) ); ?><br/>
93
  </p>
94
  <div id="edd-discount-product-conditions"<?php echo $condition_display; ?>>
@@ -119,12 +119,12 @@ $condition_display = empty( $product_reqs ) ? ' style="display:none;"' : '';
119
  </th>
120
  <td>
121
  <?php echo EDD()->html->product_dropdown( array(
122
- 'name' => 'excluded-products[]',
123
- 'id' => 'excluded-products',
124
- 'selected' => $excluded_products,
125
- 'multiple' => true,
126
- 'chosen' => true,
127
- 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
128
  ) ); ?><br/>
129
  <p class="description"><?php printf( __( '%s that this discount code cannot be applied to.', 'easy-digital-downloads' ), edd_get_label_plural() ); ?></p>
130
  </td>
87
  'id' => 'products',
88
  'selected' => $product_reqs,
89
  'multiple' => true,
90
+ 'chosen' => true,
91
+ 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
92
  ) ); ?><br/>
93
  </p>
94
  <div id="edd-discount-product-conditions"<?php echo $condition_display; ?>>
119
  </th>
120
  <td>
121
  <?php echo EDD()->html->product_dropdown( array(
122
+ 'name' => 'excluded-products[]',
123
+ 'id' => 'excluded-products',
124
+ 'selected' => $excluded_products,
125
+ 'multiple' => true,
126
+ 'chosen' => true,
127
+ 'placeholder' => sprintf( __( 'Select one or more %s', 'easy-digital-downloads' ), edd_get_label_plural() )
128
  ) ); ?><br/>
129
  <p class="description"><?php printf( __( '%s that this discount code cannot be applied to.', 'easy-digital-downloads' ), edd_get_label_plural() ); ?></p>
130
  </td>
includes/admin/payments/actions.php CHANGED
@@ -139,11 +139,6 @@ function edd_update_payment_details( $data ) {
139
  do_action( 'edd_update_edited_purchase', $payment_id );
140
 
141
  $payment->date = $date;
142
- $updated = $payment->save();
143
-
144
- if ( 0 === $updated ) {
145
- wp_die( __( 'Error Updating Payment', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 400 ) );
146
- }
147
 
148
  $customer_changed = false;
149
 
@@ -266,7 +261,11 @@ function edd_update_payment_details( $data ) {
266
 
267
  }
268
 
269
- $payment->save();
 
 
 
 
270
 
271
  do_action( 'edd_updated_edited_purchase', $payment_id );
272
 
139
  do_action( 'edd_update_edited_purchase', $payment_id );
140
 
141
  $payment->date = $date;
 
 
 
 
 
142
 
143
  $customer_changed = false;
144
 
261
 
262
  }
263
 
264
+ $updated = $payment->save();
265
+
266
+ if ( 0 === $updated ) {
267
+ wp_die( __( 'Error Updating Payment', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 400 ) );
268
+ }
269
 
270
  do_action( 'edd_updated_edited_purchase', $payment_id );
271
 
includes/admin/payments/class-payments-table.php CHANGED
@@ -464,6 +464,7 @@ class EDD_Payment_History_Table extends WP_List_Table {
464
  }
465
 
466
  if( 'resend-receipt' === $this->current_action() ) {
 
467
  edd_email_purchase_receipt( $id, false );
468
  }
469
 
464
  }
465
 
466
  if( 'resend-receipt' === $this->current_action() ) {
467
+
468
  edd_email_purchase_receipt( $id, false );
469
  }
470
 
includes/admin/payments/view-order-details.php CHANGED
@@ -37,13 +37,13 @@ $payment_meta = $payment->get_meta();
37
  $transaction_id = esc_attr( $payment->transaction_id );
38
  $cart_items = $payment->cart_details;
39
  $user_id = $payment->user_id;
40
- $customer_id = $payment->customer_id;
41
  $payment_date = strtotime( $payment->date );
42
  $unlimited = $payment->has_unlimited_downloads;
43
  $user_info = edd_get_payment_meta_user_info( $payment_id );
44
  $address = $payment->address;
45
  $gateway = $payment->gateway;
46
  $currency_code = $payment->currency;
 
47
  ?>
48
  <div class="wrap edd-wrap">
49
  <h2><?php printf( __( 'Payment %s', 'easy-digital-downloads' ), $number ); ?></h2>
@@ -123,7 +123,7 @@ $currency_code = $payment->currency;
123
  <p class="strong"><?php _e( 'Fees', 'easy-digital-downloads' ); ?>:</p>
124
  <ul class="edd-payment-fees">
125
  <?php foreach( $fees as $fee ) : ?>
126
- <li><span class="fee-label"><?php echo $fee['label'] . ':</span> ' . '<span class="fee-amount" data-fee="' . esc_attr( $fee['amount'] ) . '">' . edd_currency_filter( $fee['amount'], $currency_code ); ?></span></li>
127
  <?php endforeach; ?>
128
  </ul>
129
  </div>
@@ -176,9 +176,20 @@ $currency_code = $payment->currency;
176
  <div id="edd-order-resend-receipt" class="postbox edd-order-data">
177
  <div class="inside">
178
  <div class="edd-order-resend-receipt-box edd-admin-box">
179
- <?php do_action( 'edd_view_order_details_resend_receipt_before', $payment_id ); ?>
180
- <a href="<?php echo add_query_arg( array( 'edd-action' => 'email_links', 'purchase_id' => $payment_id ) ); ?>" id="edd-resend-receipt" class="button-secondary alignleft"><?php _e( 'Resend Receipt', 'easy-digital-downloads' ); ?></a>
181
- <span alt="f223" class="edd-help-tip dashicons dashicons-editor-help" title="<?php _e( '<strong>Resend Receipt</strong>: This will send a new copy of the purchase receipt to the customer&#8217;s email address. If download URLs are included in the receipt, new file download URLs will also be included with the receipt.', 'easy-digital-downloads' ); ?>"></span>
 
 
 
 
 
 
 
 
 
 
 
182
  <div class="clear"></div>
183
  <?php do_action( 'edd_view_order_details_resend_receipt_after', $payment_id ); ?>
184
  </div><!-- /.edd-order-resend-receipt-box -->
@@ -335,6 +346,10 @@ $currency_code = $payment->currency;
335
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][item_price]" class="edd-payment-details-download-item-price" value="<?php echo esc_attr( $item_price ); ?>"/>
336
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][amount]" class="edd-payment-details-download-amount" value="<?php echo esc_attr( $price ); ?>"/>
337
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][quantity]" class="edd-payment-details-download-quantity" value="<?php echo esc_attr( $quantity ); ?>"/>
 
 
 
 
338
 
339
  </li>
340
 
@@ -421,8 +436,6 @@ $currency_code = $payment->currency;
421
  </h3>
422
  <div class="inside edd-clearfix">
423
 
424
- <?php $customer = new EDD_Customer( $customer_id ); ?>
425
-
426
  <div class="column-container customer-info">
427
  <div class="column">
428
  <?php
@@ -515,12 +528,13 @@ $currency_code = $payment->currency;
515
  echo EDD()->html->select( array(
516
  'options' => edd_get_country_list(),
517
  'name' => 'edd-payment-address[0][country]',
 
518
  'selected' => $address[ 'country' ],
519
  'show_option_all' => false,
520
  'show_option_none' => false,
521
  'chosen' => true,
522
  'placeholder' => __( 'Select a country', 'easy-digital-downloads' ),
523
- 'data' => array( 'search-type' => 'country' ),
524
  ) );
525
  ?>
526
  </p>
@@ -532,12 +546,13 @@ $currency_code = $payment->currency;
532
  echo EDD()->html->select( array(
533
  'options' => $states,
534
  'name' => 'edd-payment-address[0][state]',
 
535
  'selected' => $address[ 'state' ],
536
  'show_option_all' => false,
537
  'show_option_none' => false,
538
  'chosen' => true,
539
  'placeholder' => __( 'Select a state', 'easy-digital-downloads' ),
540
- 'data' => array( 'search-type' => 'state' ),
541
  ) );
542
  } else { ?>
543
  <input type="text" name="edd-payment-address[0][state]" value="<?php echo esc_attr( $address['state'] ); ?>" class="medium-text"/>
37
  $transaction_id = esc_attr( $payment->transaction_id );
38
  $cart_items = $payment->cart_details;
39
  $user_id = $payment->user_id;
 
40
  $payment_date = strtotime( $payment->date );
41
  $unlimited = $payment->has_unlimited_downloads;
42
  $user_info = edd_get_payment_meta_user_info( $payment_id );
43
  $address = $payment->address;
44
  $gateway = $payment->gateway;
45
  $currency_code = $payment->currency;
46
+ $customer = new EDD_Customer( $payment->customer_id );
47
  ?>
48
  <div class="wrap edd-wrap">
49
  <h2><?php printf( __( 'Payment %s', 'easy-digital-downloads' ), $number ); ?></h2>
123
  <p class="strong"><?php _e( 'Fees', 'easy-digital-downloads' ); ?>:</p>
124
  <ul class="edd-payment-fees">
125
  <?php foreach( $fees as $fee ) : ?>
126
+ <li data-fee-id="<?php echo $fee['id']; ?>"><span class="fee-label"><?php echo $fee['label'] . ':</span> ' . '<span class="fee-amount" data-fee="' . esc_attr( $fee['amount'] ) . '">' . edd_currency_filter( $fee['amount'], $currency_code ); ?></span></li>
127
  <?php endforeach; ?>
128
  </ul>
129
  </div>
176
  <div id="edd-order-resend-receipt" class="postbox edd-order-data">
177
  <div class="inside">
178
  <div class="edd-order-resend-receipt-box edd-admin-box">
179
+ <?php do_action( 'edd_view_order_details_resend_receipt_before', $payment_id ); ?>
180
+ <a href="<?php echo add_query_arg( array( 'edd-action' => 'email_links', 'purchase_id' => $payment_id ) ); ?>" id="<?php if( count( $customer->emails ) > 1 ) { echo 'edd-select-receipt-email'; } else { echo 'edd-resend-receipt'; } ?>" class="button-secondary alignleft"><?php _e( 'Resend Receipt', 'easy-digital-downloads' ); ?></a>
181
+ <span alt="f223" class="edd-help-tip dashicons dashicons-editor-help" title="<?php _e( '<strong>Resend Receipt</strong>: This will send a new copy of the purchase receipt to the customer&#8217;s email address. If download URLs are included in the receipt, new file download URLs will also be included with the receipt.', 'easy-digital-downloads' ); ?>"></span>
182
+ <?php if( count( $customer->emails ) > 1 ) : ?>
183
+ <div class="clear"></div>
184
+ <div class="edd-order-resend-receipt-addresses" style="display:none;">
185
+ <select class="edd-order-resend-receipt-email">
186
+ <option value=""><?php _e( ' -- select email --', 'easy-digital-downloads' ); ?></option>
187
+ <?php foreach( $customer->emails as $email ) : ?>
188
+ <option value="<?php echo esc_attr( $email ); ?>"><?php echo $email; ?></option>
189
+ <?php endforeach; ?>
190
+ </select>
191
+ </div>
192
+ <?php endif; ?>
193
  <div class="clear"></div>
194
  <?php do_action( 'edd_view_order_details_resend_receipt_after', $payment_id ); ?>
195
  </div><!-- /.edd-order-resend-receipt-box -->
346
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][item_price]" class="edd-payment-details-download-item-price" value="<?php echo esc_attr( $item_price ); ?>"/>
347
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][amount]" class="edd-payment-details-download-amount" value="<?php echo esc_attr( $price ); ?>"/>
348
  <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][quantity]" class="edd-payment-details-download-quantity" value="<?php echo esc_attr( $quantity ); ?>"/>
349
+ <?php if ( ! empty( $cart_items[ $key ]['fees'] ) ) : ?>
350
+ <?php $fees = array_keys( $cart_items[ $key ]['fees'] ); ?>
351
+ <input type="hidden" name="edd-payment-details-downloads[<?php echo $key; ?>][fees]" class="edd-payment-details-download-fees" value="<?php echo esc_attr( json_encode( $fees ) ); ?>"/>
352
+ <?php endif; ?>
353
 
354
  </li>
355
 
436
  </h3>
437
  <div class="inside edd-clearfix">
438
 
 
 
439
  <div class="column-container customer-info">
440
  <div class="column">
441
  <?php
528
  echo EDD()->html->select( array(
529
  'options' => edd_get_country_list(),
530
  'name' => 'edd-payment-address[0][country]',
531
+ 'id' => 'edd-payment-address-country',
532
  'selected' => $address[ 'country' ],
533
  'show_option_all' => false,
534
  'show_option_none' => false,
535
  'chosen' => true,
536
  'placeholder' => __( 'Select a country', 'easy-digital-downloads' ),
537
+ 'data' => array( 'search-type' => 'no_ajax' ),
538
  ) );
539
  ?>
540
  </p>
546
  echo EDD()->html->select( array(
547
  'options' => $states,
548
  'name' => 'edd-payment-address[0][state]',
549
+ 'id' => 'edd-payment-address-state',
550
  'selected' => $address[ 'state' ],
551
  'show_option_all' => false,
552
  'show_option_none' => false,
553
  'chosen' => true,
554
  'placeholder' => __( 'Select a state', 'easy-digital-downloads' ),
555
+ 'data' => array( 'search-type' => 'no_ajax' ),
556
  ) );
557
  } else { ?>
558
  <input type="text" name="edd-payment-address[0][state]" value="<?php echo esc_attr( $address['state'] ); ?>" class="medium-text"/>
includes/admin/reporting/export/class-batch-export-payments.php CHANGED
@@ -219,7 +219,7 @@ class EDD_Batch_Payments_Export extends EDD_Batch_Export {
219
  'gateway' => edd_get_gateway_admin_label( get_post_meta( $payment->ID, '_edd_payment_gateway', true ) ),
220
  'trans_id' => $payment->transaction_id,
221
  'key' => $payment_meta['key'],
222
- 'date' => $payment->post_date,
223
  'user' => $user ? $user->display_name : __( 'guest', 'easy-digital-downloads' ),
224
  'currency' => $payment->currency,
225
  'ip' => $payment->ip,
219
  'gateway' => edd_get_gateway_admin_label( get_post_meta( $payment->ID, '_edd_payment_gateway', true ) ),
220
  'trans_id' => $payment->transaction_id,
221
  'key' => $payment_meta['key'],
222
+ 'date' => $payment->date,
223
  'user' => $user ? $user->display_name : __( 'guest', 'easy-digital-downloads' ),
224
  'currency' => $payment->currency,
225
  'ip' => $payment->ip,
includes/admin/settings/register-settings.php CHANGED
@@ -179,7 +179,7 @@ function edd_register_settings() {
179
  if ( empty( $option['id'] ) ) {
180
  continue;
181
  }
182
-
183
  $args = wp_parse_args( $option, array(
184
  'section' => $section,
185
  'id' => null,
@@ -720,10 +720,10 @@ function edd_get_registered_settings() {
720
  ),
721
  'logged_in_only' => array(
722
  'id' => 'logged_in_only',
723
- 'name' => __( 'Disable Guest Checkout', 'easy-digital-downloads' ),
724
  'desc' => __( 'Require that users be logged-in to purchase files.', 'easy-digital-downloads' ),
725
  'type' => 'checkbox',
726
- 'tooltip_title' => __( 'Disabling Guest Checkout', 'easy-digital-downloads' ),
727
  'tooltip_desc' => __( 'You can require that customers create and login to user accounts prior to purchasing from your store by enabling this option. When unchecked, users can purchase without being logged in by using their name and email address.', 'easy-digital-downloads' ),
728
  ),
729
  'show_register_form' => array(
179
  if ( empty( $option['id'] ) ) {
180
  continue;
181
  }
182
+
183
  $args = wp_parse_args( $option, array(
184
  'section' => $section,
185
  'id' => null,
720
  ),
721
  'logged_in_only' => array(
722
  'id' => 'logged_in_only',
723
+ 'name' => __( 'Require Login', 'easy-digital-downloads' ),
724
  'desc' => __( 'Require that users be logged-in to purchase files.', 'easy-digital-downloads' ),
725
  'type' => 'checkbox',
726
+ 'tooltip_title' => __( 'Require Login', 'easy-digital-downloads' ),
727
  'tooltip_desc' => __( 'You can require that customers create and login to user accounts prior to purchasing from your store by enabling this option. When unchecked, users can purchase without being logged in by using their name and email address.', 'easy-digital-downloads' ),
728
  ),
729
  'show_register_form' => array(
includes/admin/tools/class-edd-tools-recount-all-stats.php CHANGED
@@ -121,8 +121,19 @@ class EDD_Tools_Recount_All_Stats extends EDD_Batch_Export {
121
  );
122
  }
123
 
 
 
 
 
 
 
 
 
 
 
 
124
  $totals[ $download_id ]['sales']++;
125
- $totals[ $download_id ]['earnings'] += $item['price'];
126
 
127
  }
128
 
121
  );
122
  }
123
 
124
+ $amount = $item['price'];
125
+ if ( ! empty( $item['fees'] ) ) {
126
+ foreach ( $item['fees'] as $fee ) {
127
+ // Only let negative fees affect earnings
128
+ if ( $fee['amount'] > 0 ) {
129
+ continue;
130
+ }
131
+
132
+ $amount += $fee['amount'];
133
+ }
134
+ }
135
  $totals[ $download_id ]['sales']++;
136
+ $totals[ $download_id ]['earnings'] += $amount;
137
 
138
  }
139
 
includes/admin/tools/class-edd-tools-recount-download-stats.php CHANGED
@@ -106,8 +106,21 @@ class EDD_Tools_Recount_Download_Stats extends EDD_Batch_Export {
106
 
107
  $this->_log_ids_debug[] = $payment->ID;
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  $totals['sales']++;
110
- $totals['earnings'] += $item['price'];
111
 
112
  }
113
 
106
 
107
  $this->_log_ids_debug[] = $payment->ID;
108
 
109
+ $amount = $item['price'];
110
+
111
+ if ( ! empty( $item['fees'] ) ) {
112
+ foreach( $item['fees'] as $fee ) {
113
+ // Only let negative fees affect earnings
114
+ if ( $fee['amount'] > 0 ) {
115
+ continue;
116
+ }
117
+
118
+ $amount += $fee['amount'];
119
+ }
120
+ }
121
+
122
  $totals['sales']++;
123
+ $totals['earnings'] += $amount;
124
 
125
  }
126
 
includes/ajax-functions.php CHANGED
@@ -500,6 +500,8 @@ function edd_ajax_download_search() {
500
  $excludes = array_merge( $excludes, $bundles );
501
  }
502
 
 
 
503
  $excludes = array_unique( array_map( 'absint', $excludes ) );
504
  $exclude = implode( ",", $excludes );
505
 
@@ -538,11 +540,28 @@ function edd_ajax_download_search() {
538
  'id' => $item->ID,
539
  'name' => $item->post_title
540
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  }
542
 
543
  } else {
544
 
545
- $items[] = array(
546
  'id' => 0,
547
  'name' => __( 'No results found', 'easy-digital-downloads' )
548
  );
@@ -607,6 +626,55 @@ function edd_ajax_customer_search() {
607
  }
608
  add_action( 'wp_ajax_edd_customer_search', 'edd_ajax_customer_search' );
609
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
610
  /**
611
  * Check for Download Price Variations via AJAX (this function can only be used
612
  * in WordPress Admin). This function is used for the Edit Payment screen when downloads
500
  $excludes = array_merge( $excludes, $bundles );
501
  }
502
 
503
+ $variations = isset( $_GET['variations'] ) ? filter_var( $_GET['variations'], FILTER_VALIDATE_BOOLEAN ) : false;
504
+
505
  $excludes = array_unique( array_map( 'absint', $excludes ) );
506
  $exclude = implode( ",", $excludes );
507
 
540
  'id' => $item->ID,
541
  'name' => $item->post_title
542
  );
543
+
544
+ if ( $variations && edd_has_variable_prices( $item->ID ) ) {
545
+ $prices = edd_get_variable_prices( $item->ID );
546
+
547
+ foreach ( $prices as $key => $value ) {
548
+ $name = ! empty( $value['name'] ) ? $value['name'] : '';
549
+ $amount = ! empty( $value['amount'] ) ? $value['amount'] : '';
550
+ $index = ! empty( $value['index'] ) ? $value['index'] : $key;
551
+
552
+ if ( $name && $index ) {
553
+ $results[] = array(
554
+ 'id' => $item->ID . '_' . $key,
555
+ 'name' => esc_html( $item->post_title . ': ' . $name ),
556
+ );
557
+ }
558
+ }
559
+ }
560
  }
561
 
562
  } else {
563
 
564
+ $results[] = array(
565
  'id' => 0,
566
  'name' => __( 'No results found', 'easy-digital-downloads' )
567
  );
626
  }
627
  add_action( 'wp_ajax_edd_customer_search', 'edd_ajax_customer_search' );
628
 
629
+ /**
630
+ * Search the users database via AJAX
631
+ *
632
+ * @since 2.6.9
633
+ * @return void
634
+ */
635
+ function edd_ajax_user_search() {
636
+ global $wpdb;
637
+
638
+ $search = esc_sql( sanitize_text_field( $_GET['s'] ) );
639
+ $results = array();
640
+ $user_view_role = apply_filters( 'edd_view_users_role', 'view_shop_reports' );
641
+
642
+ if ( ! current_user_can( $user_view_role ) ) {
643
+ $results = array();
644
+ } else {
645
+ $user_args = array(
646
+ 'search' => '*' . esc_attr( $search ) . '*',
647
+ 'number' => 50,
648
+ );
649
+
650
+ $users = get_users( $user_args );
651
+ }
652
+
653
+ if ( $users ) {
654
+
655
+ foreach( $users as $user ) {
656
+
657
+ $results[] = array(
658
+ 'id' => $user->ID,
659
+ 'name' => $user->display_name,
660
+ );
661
+ }
662
+
663
+ } else {
664
+
665
+ $results[] = array(
666
+ 'id' => 0,
667
+ 'name' => __( 'No users found', 'easy-digital-downloads' )
668
+ );
669
+
670
+ }
671
+
672
+ echo json_encode( $results );
673
+
674
+ edd_die();
675
+ }
676
+ add_action( 'wp_ajax_edd_user_search', 'edd_ajax_user_search' );
677
+
678
  /**
679
  * Check for Download Price Variations via AJAX (this function can only be used
680
  * in WordPress Admin). This function is used for the Edit Payment screen when downloads
includes/api/class-edd-api-v2.php CHANGED
@@ -145,7 +145,7 @@ class EDD_API_V2 extends EDD_API_V1 {
145
  }
146
  }
147
 
148
- return apply_filters( 'edd_api_products', $product );
149
  }
150
 
151
  /**
145
  }
146
  }
147
 
148
+ return apply_filters( 'edd_api_products', $products );
149
  }
150
 
151
  /**
includes/api/class-edd-api.php CHANGED
@@ -1428,6 +1428,8 @@ class EDD_API {
1428
  $sales['sales'][ $i ]['total'] = $payment->total;
1429
  $sales['sales'][ $i ]['gateway'] = $payment->gateway;
1430
  $sales['sales'][ $i ]['email'] = $payment->email;
 
 
1431
  $sales['sales'][ $i ]['date'] = $payment->date;
1432
  $sales['sales'][ $i ]['products'] = array();
1433
 
1428
  $sales['sales'][ $i ]['total'] = $payment->total;
1429
  $sales['sales'][ $i ]['gateway'] = $payment->gateway;
1430
  $sales['sales'][ $i ]['email'] = $payment->email;
1431
+ $sales['sales'][ $i ]['user_id'] = $payment->user_id;
1432
+ $sales['sales'][ $i ]['customer_id'] = $payment->customer_id;
1433
  $sales['sales'][ $i ]['date'] = $payment->date;
1434
  $sales['sales'][ $i ]['products'] = array();
1435
 
includes/checkout/template.php CHANGED
@@ -362,7 +362,7 @@ function edd_default_cc_address_fields() {
362
  <?php } ?>
363
  </label>
364
  <span class="edd-description"><?php _e( 'The zip or postal code for your billing address.', 'easy-digital-downloads' ); ?></span>
365
- <input type="text" size="4" name="card_zip" class="card-zip edd-input<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required'; } ?>" placeholder="<?php _e( 'Zip / Postal Code', 'easy-digital-downloads' ); ?>" value="<?php echo $customer['address']['zip']; ?>"<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required '; } ?>/>
366
  </p>
367
  <p id="edd-card-country-wrap">
368
  <label for="billing_country" class="edd-label">
362
  <?php } ?>
363
  </label>
364
  <span class="edd-description"><?php _e( 'The zip or postal code for your billing address.', 'easy-digital-downloads' ); ?></span>
365
+ <input type="text" size="4" id="card_zip" name="card_zip" class="card-zip edd-input<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required'; } ?>" placeholder="<?php _e( 'Zip / Postal Code', 'easy-digital-downloads' ); ?>" value="<?php echo $customer['address']['zip']; ?>"<?php if( edd_field_is_required( 'card_zip' ) ) { echo ' required '; } ?>/>
366
  </p>
367
  <p id="edd-card-country-wrap">
368
  <label for="billing_country" class="edd-label">
includes/class-edd-customer.php CHANGED
@@ -386,7 +386,21 @@ class EDD_Customer {
386
  $ret = $update && $remove && $add;
387
 
388
  if( $ret ) {
 
389
  $this->email = $new_primary_email;
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  }
391
 
392
  do_action( 'edd_customer_post_set_primary_email', $new_primary_email, $this->id, $this );
386
  $ret = $update && $remove && $add;
387
 
388
  if( $ret ) {
389
+
390
  $this->email = $new_primary_email;
391
+
392
+ $payment_ids = $this->get_payment_ids();
393
+
394
+ if( $payment_ids ) {
395
+
396
+ foreach( $payment_ids as $payment_id ) {
397
+
398
+ // Update payment emails to primary email
399
+ edd_update_payment_meta( $payment_id, 'email', $new_primary_email );
400
+
401
+ }
402
+
403
+ }
404
  }
405
 
406
  do_action( 'edd_customer_post_set_primary_email', $new_primary_email, $this->id, $this );
includes/class-edd-fees.php CHANGED
@@ -220,6 +220,10 @@ class EDD_Fees {
220
  // Remove fees that don't belong to the specified Download AND Price ID
221
  foreach( $fees as $key => $fee ) {
222
 
 
 
 
 
223
  if ( (int) $price_id !== (int) $fee['price_id'] ){
224
 
225
  unset( $fees[ $key ] );
@@ -331,9 +335,17 @@ class EDD_Fees {
331
  * @return array Return the payment meta with the fees added
332
  */
333
  public function record_fees( $payment_meta, $payment_data ) {
 
334
  if ( $this->has_fees( 'all' ) ) {
 
335
  $payment_meta['fees'] = $this->get_fees( 'all' );
336
- EDD()->session->set( 'edd_cart_fees', null );
 
 
 
 
 
 
337
  }
338
 
339
  return $payment_meta;
220
  // Remove fees that don't belong to the specified Download AND Price ID
221
  foreach( $fees as $key => $fee ) {
222
 
223
+ if( is_null( $fee['price_id'] ) ) {
224
+ continue;
225
+ }
226
+
227
  if ( (int) $price_id !== (int) $fee['price_id'] ){
228
 
229
  unset( $fees[ $key ] );
335
  * @return array Return the payment meta with the fees added
336
  */
337
  public function record_fees( $payment_meta, $payment_data ) {
338
+
339
  if ( $this->has_fees( 'all' ) ) {
340
+
341
  $payment_meta['fees'] = $this->get_fees( 'all' );
342
+
343
+ // Only clear fees from session when status is not pending
344
+ if( ! empty( $payment_data['status'] ) && 'pending' !== strtolower( $payment_data['status'] ) ) {
345
+
346
+ EDD()->session->set( 'edd_cart_fees', null );
347
+
348
+ }
349
  }
350
 
351
  return $payment_meta;
includes/class-edd-html-elements.php CHANGED
@@ -40,6 +40,7 @@ class EDD_HTML_Elements {
40
  'chosen' => false,
41
  'number' => 30,
42
  'bundles' => true,
 
43
  'placeholder' => sprintf( __( 'Choose a %s', 'easy-digital-downloads' ), edd_get_label_singular() ),
44
  'data' => array( 'search-type' => 'download' ),
45
  );
@@ -71,26 +72,93 @@ class EDD_HTML_Elements {
71
  if ( $products ) {
72
  foreach ( $products as $product ) {
73
  $options[ absint( $product->ID ) ] = esc_html( $product->post_title );
 
 
 
 
 
 
 
 
 
 
74
  }
75
  }
76
 
77
  // This ensures that any selected products are included in the drop down
78
- if( is_array( $args['selected'] ) ) {
 
79
  foreach( $args['selected'] as $item ) {
80
- if( ! in_array( $item, $options ) ) {
81
- $options[$item] = get_the_title( $item );
82
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  }
84
- } elseif ( is_numeric( $args['selected'] ) && $args['selected'] !== 0 ) {
85
- if ( ! in_array( $args['selected'], $options ) ) {
86
- $options[$args['selected']] = get_the_title( $args['selected'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
 
88
  }
89
 
90
- if( ! $args['bundles'] ) {
91
  $args['class'] .= ' no-bundles';
92
  }
93
 
 
 
 
 
94
  $output = $this->select( array(
95
  'name' => $args['name'],
96
  'selected' => $args['selected'],
@@ -182,6 +250,62 @@ class EDD_HTML_Elements {
182
  return $output;
183
  }
184
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  /**
186
  * Renders an HTML Dropdown of all the Discounts
187
  *
@@ -328,7 +452,7 @@ class EDD_HTML_Elements {
328
  'name' => null,
329
  'class' => '',
330
  'id' => '',
331
- 'selected' => 0,
332
  'chosen' => false,
333
  'placeholder' => null,
334
  'multiple' => false,
@@ -354,6 +478,9 @@ class EDD_HTML_Elements {
354
 
355
  if( $args['chosen'] ) {
356
  $args['class'] .= ' edd-select-chosen';
 
 
 
357
  }
358
 
359
  if( $args['placeholder'] ) {
@@ -397,10 +524,10 @@ class EDD_HTML_Elements {
397
  $output .= '<option value="-1"' . $selected . '>' . esc_html( $args['show_option_none'] ) . '</option>';
398
  }
399
 
400
- foreach( $args['options'] as $key => $option ) {
401
 
402
- if( $args['multiple'] && is_array( $args['selected'] ) ) {
403
- $selected = selected( true, in_array( $key, $args['selected'], true ), false );
404
  } else {
405
  $selected = selected( $args['selected'], $key, false );
406
  }
@@ -497,8 +624,9 @@ class EDD_HTML_Elements {
497
  }
498
 
499
  $output = '<span id="edd-' . edd_sanitize_key( $args['name'] ) . '-wrap">';
500
-
501
- $output .= '<label class="edd-label" for="' . edd_sanitize_key( $args['id'] ) . '">' . esc_html( $args['label'] ) . '</label>';
 
502
 
503
  if ( ! empty( $args['desc'] ) ) {
504
  $output .= '<span class="edd-description">' . esc_html( $args['desc'] ) . '</span>';
@@ -557,7 +685,9 @@ class EDD_HTML_Elements {
557
 
558
  $output = '<span id="edd-' . edd_sanitize_key( $args['name'] ) . '-wrap">';
559
 
560
- $output .= '<label class="edd-label" for="' . edd_sanitize_key( $args['name'] ) . '">' . esc_html( $args['label'] ) . '</label>';
 
 
561
 
562
  $output .= '<textarea name="' . esc_attr( $args['name'] ) . '" id="' . edd_sanitize_key( $args['name'] ) . '" class="' . $class . '"' . $disabled . '>' . esc_attr( $args['value'] ) . '</textarea>';
563
 
40
  'chosen' => false,
41
  'number' => 30,
42
  'bundles' => true,
43
+ 'variations' => false,
44
  'placeholder' => sprintf( __( 'Choose a %s', 'easy-digital-downloads' ), edd_get_label_singular() ),
45
  'data' => array( 'search-type' => 'download' ),
46
  );
72
  if ( $products ) {
73
  foreach ( $products as $product ) {
74
  $options[ absint( $product->ID ) ] = esc_html( $product->post_title );
75
+ if ( $args['variations'] && edd_has_variable_prices( $product->ID ) ) {
76
+ $prices = edd_get_variable_prices( $product->ID );
77
+ foreach ( $prices as $key => $value ) {
78
+ $name = ! empty( $value['name'] ) ? $value['name'] : '';
79
+ $index = ! empty( $value['index'] ) ? $value['index'] : $key;
80
+ if ( $name && $index ) {
81
+ $options[ absint( $product->ID ) . '_' . $index ] = esc_html( $product->post_title . ': ' . $name );
82
+ }
83
+ }
84
+ }
85
  }
86
  }
87
 
88
  // This ensures that any selected products are included in the drop down
89
+ if ( is_array( $args['selected'] ) ) {
90
+
91
  foreach( $args['selected'] as $item ) {
92
+
93
+ if ( ! array_key_exists( $item, $options ) ) {
94
+
95
+ $parsed_item = edd_parse_product_dropdown_value( $item );
96
+
97
+ if ( $parsed_item['price_id'] !== false ) {
98
+
99
+ $prices = edd_get_variable_prices( (int) $parsed_item['download_id'] );
100
+ foreach ( $prices as $key => $value ) {
101
+
102
+ $name = isset( $value['name'] ) ? $value['name'] : '';
103
+ $index = isset( $value['index'] ) ? $value['index'] : $key;
104
+
105
+ if ( $name && $index && (int) $parsed_item['price_id'] === (int) $index ) {
106
+
107
+ $options[ absint( $product->ID ) . '_' . $index ] = esc_html( get_the_title( (int) $parsed_item['download_id'] ) . ': ' . $name );
108
+
109
+ }
110
+
111
+ }
112
+
113
+ } else {
114
+
115
+ $options[ $parsed_item['download_id'] ] = get_the_title( $parsed_item['download_id'] );
116
+
117
+ }
118
+ }
119
+
120
  }
121
+
122
+ } elseif ( false !== $args['selected'] && $args['selected'] !== 0 ) {
123
+
124
+ if ( ! array_key_exists( $args['selected'], $options ) ) {
125
+
126
+ $parsed_item = edd_parse_product_dropdown_value( $args['selected'] );
127
+ if ( $parsed_item['price_id'] !== false ) {
128
+
129
+ $prices = edd_get_variable_prices( (int) $parsed_item['download_id'] );
130
+
131
+ foreach ( $prices as $key => $value ) {
132
+
133
+ $name = isset( $value['name'] ) ? $value['name'] : '';
134
+ $index = isset( $value['index'] ) ? $value['index'] : $key;
135
+
136
+ if ( $name && $index && (int) $parsed_item['price_id'] === (int) $index ) {
137
+
138
+ $options[ absint( $product->ID ) . '_' . $index ] = esc_html( get_the_title( (int) $parsed_item['download_id'] ) . ': ' . $name );
139
+
140
+ }
141
+
142
+ }
143
+
144
+ } else {
145
+
146
+ $options[ $parsed_item['download_id'] ] = get_the_title( $parsed_item['download_id'] );
147
+
148
+ }
149
+
150
  }
151
+
152
  }
153
 
154
+ if ( ! $args['bundles'] ) {
155
  $args['class'] .= ' no-bundles';
156
  }
157
 
158
+ if ( $args['variations'] ) {
159
+ $args['class'] .= ' variations';
160
+ }
161
+
162
  $output = $this->select( array(
163
  'name' => $args['name'],
164
  'selected' => $args['selected'],
250
  return $output;
251
  }
252
 
253
+ /**
254
+ * Renders an HTML Dropdown of all the Users
255
+ *
256
+ * @access public
257
+ * @since 2.6.9
258
+ * @param array $args
259
+ * @return string $output User dropdown
260
+ */
261
+ public function user_dropdown( $args = array() ) {
262
+
263
+ $defaults = array(
264
+ 'name' => 'users',
265
+ 'id' => 'users',
266
+ 'class' => '',
267
+ 'multiple' => false,
268
+ 'selected' => 0,
269
+ 'chosen' => true,
270
+ 'placeholder' => __( 'Select a User', 'easy-digital-downloads' ),
271
+ 'number' => 30,
272
+ 'data' => array( 'search-type' => 'user' ),
273
+ );
274
+
275
+ $args = wp_parse_args( $args, $defaults );
276
+
277
+
278
+ $user_args = array(
279
+ 'number' => $args['number'],
280
+ );
281
+ $users = get_users( $user_args );
282
+ $options = array();
283
+
284
+ if ( $users ) {
285
+ foreach ( $users as $user ) {
286
+ $options[ $user->ID ] = esc_html( $user->display_name );
287
+ }
288
+ } else {
289
+ $options[0] = __( 'No users found', 'easy-digital-downloads' );
290
+ }
291
+
292
+ $output = $this->select( array(
293
+ 'name' => $args['name'],
294
+ 'selected' => $args['selected'],
295
+ 'id' => $args['id'],
296
+ 'class' => $args['class'] . ' edd-user-select',
297
+ 'options' => $options,
298
+ 'multiple' => $args['multiple'],
299
+ 'placeholder' => $args['placeholder'],
300
+ 'chosen' => $args['chosen'],
301
+ 'show_option_all' => false,
302
+ 'show_option_none' => false,
303
+ 'data' => $args['data'],
304
+ ) );
305
+
306
+ return $output;
307
+ }
308
+
309
  /**
310
  * Renders an HTML Dropdown of all the Discounts
311
  *
452
  'name' => null,
453
  'class' => '',
454
  'id' => '',
455
+ 'selected' => array(),
456
  'chosen' => false,
457
  'placeholder' => null,
458
  'multiple' => false,
478
 
479
  if( $args['chosen'] ) {
480
  $args['class'] .= ' edd-select-chosen';
481
+ if ( is_rtl() ) {
482
+ $args['class'] .= ' chosen-rtl';
483
+ }
484
  }
485
 
486
  if( $args['placeholder'] ) {
524
  $output .= '<option value="-1"' . $selected . '>' . esc_html( $args['show_option_none'] ) . '</option>';
525
  }
526
 
527
+ foreach ( $args['options'] as $key => $option ) {
528
 
529
+ if ( $args['multiple'] && is_array( $args['selected'] ) ) {
530
+ $selected = selected( true, in_array( (string) $key, $args['selected'] ), false );
531
  } else {
532
  $selected = selected( $args['selected'], $key, false );
533
  }
624
  }
625
 
626
  $output = '<span id="edd-' . edd_sanitize_key( $args['name'] ) . '-wrap">';
627
+ if ( ! empty( $args['label'] ) ) {
628
+ $output .= '<label class="edd-label" for="' . edd_sanitize_key( $args['id'] ) . '">' . esc_html( $args['label'] ) . '</label>';
629
+ }
630
 
631
  if ( ! empty( $args['desc'] ) ) {
632
  $output .= '<span class="edd-description">' . esc_html( $args['desc'] ) . '</span>';
685
 
686
  $output = '<span id="edd-' . edd_sanitize_key( $args['name'] ) . '-wrap">';
687
 
688
+ if ( ! empty( $args['label'] ) ) {
689
+ $output .= '<label class="edd-label" for="' . edd_sanitize_key( $args['name'] ) . '">' . esc_html( $args['label'] ) . '</label>';
690
+ }
691
 
692
  $output .= '<textarea name="' . esc_attr( $args['name'] ) . '" id="' . edd_sanitize_key( $args['name'] ) . '" class="' . $class . '"' . $disabled . '>' . esc_attr( $args['value'] ) . '</textarea>';
693
 
includes/discount-functions.php CHANGED
@@ -236,14 +236,6 @@ function edd_store_discount( $details, $discount_id = null ) {
236
 
237
  }
238
 
239
- if( ! empty( $meta['product_reqs'] ) ) {
240
- foreach( $meta['product_reqs'] as $key => $product ) {
241
- if( 0 === intval( $product ) ) {
242
- unset( $meta['product_reqs'][ $key ] );
243
- }
244
- }
245
- }
246
-
247
  if( ! empty( $meta['excluded_products'] ) ) {
248
  foreach( $meta['excluded_products'] as $key => $product ) {
249
  if( 0 === intval( $product ) ) {
236
 
237
  }
238
 
 
 
 
 
 
 
 
 
239
  if( ! empty( $meta['excluded_products'] ) ) {
240
  foreach( $meta['excluded_products'] as $key => $product ) {
241
  if( 0 === intval( $product ) ) {
includes/download-functions.php CHANGED
@@ -961,12 +961,12 @@ function edd_get_file_price_condition( $download_id = 0, $file_key ) {
961
  *
962
  * @param string $key Payment key. Use edd_get_payment_key() to get key.
963
  * @param string $email Customer email address. Use edd_get_payment_user_email() to get user email.
964
- * @param int $filekey Index of array of files returned by edd_get_download_files() that this download link is for.
965
  * @param int $download_id Optional. ID of download this download link is for. Default is 0.
966
  * @param bool|int $price_id Optional. Price ID when using variable prices. Default is false.
967
  *
968
  * @return string A secure download URL
969
- */
970
  function edd_get_download_file_url( $key, $email, $filekey, $download_id = 0, $price_id = false ) {
971
 
972
  $hours = absint( edd_get_option( 'download_link_expiration', 24 ) );
@@ -1076,9 +1076,10 @@ function edd_get_file_download_method() {
1076
  * @since 1.7
1077
  * @author Chris Christoff
1078
  * @param bool $post_ids True for array of post ids, false if array of posts
 
1079
  */
1080
  function edd_get_random_download( $post_ids = true ) {
1081
- edd_get_random_downloads( 1, $post_ids );
1082
  }
1083
 
1084
  /**
@@ -1092,9 +1093,9 @@ function edd_get_random_download( $post_ids = true ) {
1092
  */
1093
  function edd_get_random_downloads( $num = 3, $post_ids = true ) {
1094
  if ( $post_ids ) {
1095
- $args = array( 'post_type' => 'download', 'orderby' => 'rand', 'post_count' => $num, 'fields' => 'ids' );
1096
  } else {
1097
- $args = array( 'post_type' => 'download', 'orderby' => 'rand', 'post_count' => $num );
1098
  }
1099
  $args = apply_filters( 'edd_get_random_downloads', $args );
1100
  return get_posts( $args );
@@ -1239,3 +1240,53 @@ function edd_validate_url_token( $url = '' ) {
1239
 
1240
  return apply_filters( 'edd_validate_url_token', $ret, $url, $query_args );
1241
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
961
  *
962
  * @param string $key Payment key. Use edd_get_payment_key() to get key.
963
  * @param string $email Customer email address. Use edd_get_payment_user_email() to get user email.
964
+ * @param int $filekey Index of array of files returned by edd_get_download_files() that this download link is for.
965
  * @param int $download_id Optional. ID of download this download link is for. Default is 0.
966
  * @param bool|int $price_id Optional. Price ID when using variable prices. Default is false.
967
  *
968
  * @return string A secure download URL
969
+ */
970
  function edd_get_download_file_url( $key, $email, $filekey, $download_id = 0, $price_id = false ) {
971
 
972
  $hours = absint( edd_get_option( 'download_link_expiration', 24 ) );
1076
  * @since 1.7
1077
  * @author Chris Christoff
1078
  * @param bool $post_ids True for array of post ids, false if array of posts
1079
+ * @return array Returns an array of post ids or post objects
1080
  */
1081
  function edd_get_random_download( $post_ids = true ) {
1082
+ return edd_get_random_downloads( 1, $post_ids );
1083
  }
1084
 
1085
  /**
1093
  */
1094
  function edd_get_random_downloads( $num = 3, $post_ids = true ) {
1095
  if ( $post_ids ) {
1096
+ $args = array( 'post_type' => 'download', 'orderby' => 'rand', 'numberposts' => $num, 'fields' => 'ids' );
1097
  } else {
1098
+ $args = array( 'post_type' => 'download', 'orderby' => 'rand', 'numberposts' => $num );
1099
  }
1100
  $args = apply_filters( 'edd_get_random_downloads', $args );
1101
  return get_posts( $args );
1240
 
1241
  return apply_filters( 'edd_validate_url_token', $ret, $url, $query_args );
1242
  }
1243
+
1244
+ /**
1245
+ * Allows parsing of the values saved by the product drop down.
1246
+ *
1247
+ * @since 2.6.9
1248
+ * @param array $values Parse the values from the product dropdown into a readable array
1249
+ * @return array A parsed set of values for download_id and price_id
1250
+ */
1251
+ function edd_parse_product_dropdown_values( $values = array() ) {
1252
+
1253
+ $parsed_values = array();
1254
+
1255
+ if ( is_array( $values ) ) {
1256
+
1257
+ foreach ( $values as $value ) {
1258
+ $value = edd_parse_product_dropdown_value( $value );
1259
+
1260
+ $parsed_values[] = array(
1261
+ 'download_id' => $value['download_id'],
1262
+ 'price_id' => $value['price_id'],
1263
+ );
1264
+ }
1265
+
1266
+ } else {
1267
+
1268
+ $value = edd_parse_product_dropdown_value( $values );
1269
+ $parsed_values[] = array(
1270
+ 'download_id' => $value['download_id'],
1271
+ 'price_id' => $value['price_id'],
1272
+ );
1273
+
1274
+ }
1275
+
1276
+ return $parsed_values;
1277
+ }
1278
+
1279
+ /**
1280
+ * Given a value from the product dropdown array, parse it's parts
1281
+ *
1282
+ * @since 2.6.9
1283
+ * @param string $values A value saved in a product dropdown array
1284
+ * @return array A parsed set of values for download_id and price_id
1285
+ */
1286
+ function edd_parse_product_dropdown_value( $value ) {
1287
+ $parts = explode( '_', $value );
1288
+ $download_id = $parts[0];
1289
+ $price_id = isset( $parts[1] ) ? $parts[1] : false;
1290
+
1291
+ return array( 'download_id' => $download_id, 'price_id' => $price_id );
1292
+ }
includes/emails/actions.php CHANGED
@@ -49,7 +49,14 @@ function edd_resend_purchase_receipt( $data ) {
49
  wp_die( __( 'You do not have permission to edit this payment record', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
50
  }
51
 
52
- edd_email_purchase_receipt( $purchase_id, false );
 
 
 
 
 
 
 
53
 
54
  // Grab all downloads of the purchase and update their file download limits, if needed
55
  // This allows admins to resend purchase receipts to grant additional file downloads
49
  wp_die( __( 'You do not have permission to edit this payment record', 'easy-digital-downloads' ), __( 'Error', 'easy-digital-downloads' ), array( 'response' => 403 ) );
50
  }
51
 
52
+ $email = ! empty( $_GET['email'] ) ? sanitize_text_field( $_GET['email'] ) : '';
53
+
54
+ if( empty( $email ) ) {
55
+ $customer = new EDD_Customer( edd_get_payment_customer_id( $purchase_id ) );
56
+ $email = $customer->email;
57
+ }
58
+
59
+ edd_email_purchase_receipt( $purchase_id, false, $email );
60
 
61
  // Grab all downloads of the purchase and update their file download limits, if needed
62
  // This allows admins to resend purchase receipts to grant additional file downloads
includes/emails/class-edd-emails.php CHANGED
@@ -95,6 +95,15 @@ class EDD_Emails {
95
  $this->$key = $value;
96
  }
97
 
 
 
 
 
 
 
 
 
 
98
  /**
99
  * Get the email from name
100
  *
95
  $this->$key = $value;
96
  }
97
 
98
+ /**
99
+ * Get a property
100
+ *
101
+ * @since 2.6.9
102
+ */
103
+ public function __get( $key ) {
104
+ return $this->$key;
105
+ }
106
+
107
  /**
108
  * Get the email from name
109
  *
includes/emails/functions.php CHANGED
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
21
  * @param bool $admin_notice Whether to send the admin email notification or not (default: true)
22
  * @return void
23
  */
24
- function edd_email_purchase_receipt( $payment_id, $admin_notice = true ) {
25
 
26
  $payment_data = edd_get_payment_meta( $payment_id );
27
 
@@ -31,7 +31,11 @@ function edd_email_purchase_receipt( $payment_id, $admin_notice = true ) {
31
  $from_email = edd_get_option( 'from_email', get_bloginfo( 'admin_email' ) );
32
  $from_email = apply_filters( 'edd_purchase_from_address', $from_email, $payment_id, $payment_data );
33
 
34
- $to_email = edd_get_payment_user_email( $payment_id );
 
 
 
 
35
 
36
  $subject = edd_get_option( 'purchase_subject', __( 'Purchase Receipt', 'easy-digital-downloads' ) );
37
  $subject = apply_filters( 'edd_purchase_subject', wp_strip_all_tags( $subject ), $payment_id );
21
  * @param bool $admin_notice Whether to send the admin email notification or not (default: true)
22
  * @return void
23
  */
24
+ function edd_email_purchase_receipt( $payment_id, $admin_notice = true, $to_email = '' ) {
25
 
26
  $payment_data = edd_get_payment_meta( $payment_id );
27
 
31
  $from_email = edd_get_option( 'from_email', get_bloginfo( 'admin_email' ) );
32
  $from_email = apply_filters( 'edd_purchase_from_address', $from_email, $payment_id, $payment_data );
33
 
34
+ if( empty( $to_email ) ) {
35
+
36
+ $to_email = edd_get_payment_user_email( $payment_id );
37
+
38
+ }
39
 
40
  $subject = edd_get_option( 'purchase_subject', __( 'Purchase Receipt', 'easy-digital-downloads' ) );
41
  $subject = apply_filters( 'edd_purchase_subject', wp_strip_all_tags( $subject ), $payment_id );
includes/payments/actions.php CHANGED
@@ -66,8 +66,18 @@ function edd_complete_purchase( $payment_id, $new_status, $old_status ) {
66
 
67
  }
68
 
 
 
 
 
 
 
 
 
 
 
69
  // Increase the earnings for this download ID
70
- edd_increase_earnings( $download['id'], $download['price'] );
71
  edd_increase_purchase_count( $download['id'], $download['quantity'] );
72
 
73
  }
@@ -355,4 +365,4 @@ function edd_cleanup_stats_transients() {
355
  }
356
 
357
  }
358
- add_action( 'edd_daily_scheduled_events', 'edd_cleanup_stats_transients' );
66
 
67
  }
68
 
69
+ $increase_earnings = $download['price'];
70
+ if ( ! empty( $download['fees'] ) ) {
71
+ foreach ( $download['fees'] as $fee ) {
72
+ if ( $fee['amount'] > 0 ) {
73
+ continue;
74
+ }
75
+ $increase_earnings += $fee['amount'];
76
+ }
77
+ }
78
+
79
  // Increase the earnings for this download ID
80
+ edd_increase_earnings( $download['id'], $increase_earnings );
81
  edd_increase_purchase_count( $download['id'], $download['quantity'] );
82
 
83
  }
365
  }
366
 
367
  }
368
+ add_action( 'edd_daily_scheduled_events', 'edd_cleanup_stats_transients' );
includes/payments/class-edd-payment.php CHANGED
@@ -646,9 +646,20 @@ class EDD_Payment {
646
  $y++;
647
  }
648
 
 
 
 
 
 
 
 
 
 
 
 
649
  $download = new EDD_Download( $item['id'] );
650
  $download->increase_sales( $item['quantity'] );
651
- $download->increase_earnings( $price );
652
 
653
  $total_increase += $price;
654
  }
@@ -681,7 +692,18 @@ class EDD_Payment {
681
  if ( 'publish' === $this->status || 'complete' === $this->status || 'revoked' === $this->status ) {
682
  $download = new EDD_Download( $item['id'] );
683
  $download->decrease_sales( $item['quantity'] );
684
- $download->decrease_earnings( $item['amount'] );
 
 
 
 
 
 
 
 
 
 
 
685
 
686
  $total_decrease += $item['amount'];
687
  }
@@ -846,15 +868,18 @@ class EDD_Payment {
846
  'cart_details' => $this->cart_details,
847
  'fees' => $this->fees,
848
  'currency' => $this->currency,
849
- 'user_info' => is_array( $this->user_info ) ? $this->user_info : array(),
 
850
  );
851
 
 
 
852
  // Do some merging of user_info before we merge it all, to honor the edd_payment_meta filter
853
  if ( ! empty( $this->payment_meta['user_info'] ) ) {
854
 
855
  $stored_discount = ! empty( $new_meta['user_info']['discount'] ) ? $new_meta['user_info']['discount'] : '';
856
 
857
- $new_meta[ 'user_info' ] = array_replace_recursive( $new_meta[ 'user_info' ], $this->payment_meta[ 'user_info' ] );
858
 
859
  if ( 'none' !== $stored_discount ) {
860
  $new_meta['user_info']['discount'] = $stored_discount;
@@ -1150,6 +1175,18 @@ class EDD_Payment {
1150
  $total_reduced = $this->cart_details[ $found_cart_key ]['item_price'];
1151
  $tax_reduced = $this->cart_details[ $found_cart_key ]['tax'];
1152
 
 
 
 
 
 
 
 
 
 
 
 
 
1153
  unset( $this->cart_details[ $found_cart_key ] );
1154
 
1155
  }
@@ -1160,6 +1197,7 @@ class EDD_Payment {
1160
  $pending_args['price_id'] = false !== $args['price_id'] ? $args['price_id'] : false;
1161
  $pending_args['quantity'] = $args['quantity'];
1162
  $pending_args['action'] = 'remove';
 
1163
 
1164
  $this->pending['downloads'][] = $pending_args;
1165
 
@@ -1209,11 +1247,7 @@ class EDD_Payment {
1209
  * @return bool If the fee was removed successfully
1210
  */
1211
  public function remove_fee( $key ) {
1212
- $removed = false;
1213
-
1214
- if ( is_numeric( $key ) ) {
1215
- $removed = $this->remove_fee_by( 'index', $key );
1216
- }
1217
 
1218
  return $removed;
1219
  }
646
  $y++;
647
  }
648
 
649
+ $increase_earnings = $price;
650
+ if ( ! empty( $item['fees'] ) ) {
651
+ foreach ( $item['fees'] as $fee ) {
652
+ // Only let negative fees affect the earnings
653
+ if ( $fee['amount'] > 0 ) {
654
+ continue;
655
+ }
656
+ $increase_earnings += (float) $fee['amount'];
657
+ }
658
+ }
659
+
660
  $download = new EDD_Download( $item['id'] );
661
  $download->increase_sales( $item['quantity'] );
662
+ $download->increase_earnings( $increase_earnings );
663
 
664
  $total_increase += $price;
665
  }
692
  if ( 'publish' === $this->status || 'complete' === $this->status || 'revoked' === $this->status ) {
693
  $download = new EDD_Download( $item['id'] );
694
  $download->decrease_sales( $item['quantity'] );
695
+
696
+ $decrease_amount = $item['amount'];
697
+ if ( ! empty( $item['fees'] ) ) {
698
+ foreach( $item['fees'] as $fee ) {
699
+ // Only let negative fees affect the earnings
700
+ if ( $fee['amount'] > 0 ) {
701
+ continue;
702
+ }
703
+ $decrease_amount += $fee['amount'];
704
+ }
705
+ }
706
+ $download->decrease_earnings( $decrease_amount );
707
 
708
  $total_decrease += $item['amount'];
709
  }
868
  'cart_details' => $this->cart_details,
869
  'fees' => $this->fees,
870
  'currency' => $this->currency,
871
+ 'user_info' => is_array( $this->user_info ) ? array_filter( $this->user_info ) : array(),
872
+ 'date' => $this->date
873
  );
874
 
875
+
876
+
877
  // Do some merging of user_info before we merge it all, to honor the edd_payment_meta filter
878
  if ( ! empty( $this->payment_meta['user_info'] ) ) {
879
 
880
  $stored_discount = ! empty( $new_meta['user_info']['discount'] ) ? $new_meta['user_info']['discount'] : '';
881
 
882
+ $new_meta[ 'user_info' ] = array_replace_recursive( (array) $this->payment_meta[ 'user_info' ], $new_meta[ 'user_info' ] );
883
 
884
  if ( 'none' !== $stored_discount ) {
885
  $new_meta['user_info']['discount'] = $stored_discount;
1175
  $total_reduced = $this->cart_details[ $found_cart_key ]['item_price'];
1176
  $tax_reduced = $this->cart_details[ $found_cart_key ]['tax'];
1177
 
1178
+ $found_fees = array();
1179
+
1180
+ if ( ! empty( $this->cart_details[ $found_cart_key ]['fees'] ) ) {
1181
+
1182
+ $found_fees = $this->cart_details[ $found_cart_key ]['fees'];
1183
+
1184
+ foreach ( $found_fees as $key => $fee ) {
1185
+ $this->remove_fee( $key );
1186
+ }
1187
+
1188
+ }
1189
+
1190
  unset( $this->cart_details[ $found_cart_key ] );
1191
 
1192
  }
1197
  $pending_args['price_id'] = false !== $args['price_id'] ? $args['price_id'] : false;
1198
  $pending_args['quantity'] = $args['quantity'];
1199
  $pending_args['action'] = 'remove';
1200
+ $pending_args['fees'] = isset( $found_fees ) ? $found_fees : array();
1201
 
1202
  $this->pending['downloads'][] = $pending_args;
1203
 
1247
  * @return bool If the fee was removed successfully
1248
  */
1249
  public function remove_fee( $key ) {
1250
+ $removed = $this->remove_fee_by( 'index', $key );
 
 
 
 
1251
 
1252
  return $removed;
1253
  }
includes/payments/functions.php CHANGED
@@ -152,7 +152,6 @@ function edd_insert_payment( $payment_data = array() ) {
152
  $payment->user_info = $payment_data['user_info'];
153
  $payment->gateway = $gateway;
154
  $payment->user_id = $payment_data['user_info']['id'];
155
- $payment->email = $payment_data['user_email'];
156
  $payment->first_name = $payment_data['user_info']['first_name'];
157
  $payment->last_name = $payment_data['user_info']['last_name'];
158
  $payment->email = $payment_data['user_info']['email'];
@@ -337,6 +336,17 @@ function edd_undo_purchase( $download_id = false, $payment_id ) {
337
 
338
  }
339
 
 
 
 
 
 
 
 
 
 
 
 
340
  $maybe_decrease_earnings = apply_filters( 'edd_decrease_earnings_on_undo', true, $payment, $item['id'] );
341
  if ( true === $maybe_decrease_earnings ) {
342
  // decrease earnings
152
  $payment->user_info = $payment_data['user_info'];
153
  $payment->gateway = $gateway;
154
  $payment->user_id = $payment_data['user_info']['id'];
 
155
  $payment->first_name = $payment_data['user_info']['first_name'];
156
  $payment->last_name = $payment_data['user_info']['last_name'];
157
  $payment->email = $payment_data['user_info']['email'];
336
 
337
  }
338
 
339
+ if ( ! empty( $item['fees'] ) ) {
340
+ foreach ( $item['fees'] as $fee ) {
341
+ // Only let negative fees affect the earnings
342
+ if ( $fee['amount'] > 0 ) {
343
+ continue;
344
+ }
345
+
346
+ $amount += $fee['amount'];
347
+ }
348
+ }
349
+
350
  $maybe_decrease_earnings = apply_filters( 'edd_decrease_earnings_on_undo', true, $payment, $item['id'] );
351
  if ( true === $maybe_decrease_earnings ) {
352
  // decrease earnings
includes/process-purchase.php CHANGED
@@ -144,11 +144,11 @@ function edd_checkout_check_existing_email( $valid_data, $post ) {
144
  // Verify that the email address belongs to this customer
145
  if ( is_user_logged_in() ) {
146
 
147
- $email = $valid_data['logged_in_user']['user_email'];
148
  $customer = new EDD_Customer( get_current_user_id(), true );
149
 
150
  // If this email address is not registered with this customer, see if it belongs to any other customer
151
- if ( $email != $customer->email && ( is_array( $customer->emails ) && ! in_array( $email, $customer->emails ) ) ) {
152
  $found_customer = new EDD_Customer( $email );
153
  if ( $found_customer->id > 0 ) {
154
  edd_set_error( 'edd-customer-email-exists', __( sprintf( 'The email address %s is already in use.', $email ), 'easy-digital-downloads' ) );
144
  // Verify that the email address belongs to this customer
145
  if ( is_user_logged_in() ) {
146
 
147
+ $email = strtolower( $valid_data['logged_in_user']['user_email'] );
148
  $customer = new EDD_Customer( get_current_user_id(), true );
149
 
150
  // If this email address is not registered with this customer, see if it belongs to any other customer
151
+ if ( $email != strtolower( $customer->email ) && ( is_array( $customer->emails ) && ! in_array( $email, array_map( 'strtolower', $customer->emails ) ) ) ) {
152
  $found_customer = new EDD_Customer( $email );
153
  if ( $found_customer->id > 0 ) {
154
  edd_set_error( 'edd-customer-email-exists', __( sprintf( 'The email address %s is already in use.', $email ), 'easy-digital-downloads' ) );
includes/user-functions.php CHANGED
@@ -525,7 +525,15 @@ function edd_new_user_notification( $user_id = 0, $user_data = array() ) {
525
 
526
  $user_message .= sprintf( __( 'Password: %s', 'easy-digital-downloads' ), '[' . $password_message . ']' ) . "\r\n";
527
 
528
- $user_message .= '<a href="' . wp_login_url() . '"> ' . esc_attr__( 'Click Here to Log In', 'easy-digital-downloads' ) . ' &raquo;</a>' . "\r\n";
 
 
 
 
 
 
 
 
529
 
530
  $emails->__set( 'heading', $user_heading );
531
 
525
 
526
  $user_message .= sprintf( __( 'Password: %s', 'easy-digital-downloads' ), '[' . $password_message . ']' ) . "\r\n";
527
 
528
+ if( $emails->html ) {
529
+
530
+ $user_message .= '<a href="' . wp_login_url() . '"> ' . esc_attr__( 'Click here to log in', 'easy-digital-downloads' ) . ' &raquo;</a>' . "\r\n";
531
+
532
+ } else {
533
+
534
+ $user_message .= sprintf( __( 'To log in, visit: %s', 'easy-digital-downloads' ), wp_login_url() ) . "\r\n";
535
+
536
+ }
537
 
538
  $emails->__set( 'heading', $user_heading );
539
 
languages/easy-digital-downloads.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy Digital Downloads 2.6.8\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
- "POT-Creation-Date: 2016-09-26 17:48:37+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -43,27 +43,27 @@ msgid "You do not have permission to install plugin updates"
43
  msgstr ""
44
 
45
  #: includes/EDD_SL_Plugin_Updater.php:358
46
- #: includes/admin/customers/customer-actions.php:300
47
- #: includes/admin/customers/customer-actions.php:344
48
- #: includes/admin/customers/customer-actions.php:602
49
  #: includes/admin/discounts/discount-actions.php:30
50
- #: includes/admin/discounts/discount-actions.php:92
51
- #: includes/admin/discounts/discount-actions.php:144
52
- #: includes/admin/discounts/discount-actions.php:148
53
- #: includes/admin/discounts/discount-actions.php:169
54
- #: includes/admin/discounts/discount-actions.php:173
55
- #: includes/admin/discounts/discount-actions.php:194
56
  #: includes/admin/discounts/edit-discount.php:16
57
  #: includes/admin/downloads/dashboard-columns.php:171
58
  #: includes/admin/import/class-batch-import-downloads.php:65
59
  #: includes/admin/import/class-batch-import-payments.php:76
60
  #: includes/admin/import/class-batch-import.php:159
61
  #: includes/admin/payments/actions.php:25
62
- #: includes/admin/payments/actions.php:145
63
- #: includes/admin/payments/actions.php:291
64
- #: includes/admin/payments/actions.php:307
65
- #: includes/admin/payments/actions.php:334
66
- #: includes/admin/payments/actions.php:354
67
  #: includes/admin/payments/view-order-details.php:22
68
  #: includes/admin/payments/view-order-details.php:32
69
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:146
@@ -74,9 +74,9 @@ msgstr ""
74
  #: includes/admin/reporting/pdf-reports.php:29
75
  #: includes/admin/reporting/pdf-reports.php:33
76
  #: includes/admin/reporting/reports.php:97
77
- #: includes/admin/tools/class-edd-tools-recount-all-stats.php:194
78
  #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:192
79
- #: includes/admin/tools/class-edd-tools-recount-download-stats.php:211
80
  #: includes/admin/tools/class-edd-tools-recount-single-customer-stats.php:149
81
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:154
82
  #: includes/admin/tools/class-edd-tools-reset-stats.php:180
@@ -89,18 +89,18 @@ msgstr ""
89
  #: includes/admin/upgrades/upgrade-functions.php:890
90
  #: includes/admin/upgrades/upgrade-functions.php:1018
91
  #: includes/admin/upgrades/upgrade-functions.php:1103
92
- #: includes/api/class-edd-api.php:1910 includes/api/class-edd-api.php:1915
93
- #: includes/api/class-edd-api.php:1927 includes/api/class-edd-api.php:1929
94
  #: includes/cart/functions.php:1202 includes/cart/functions.php:1219
95
  #: includes/class-edd-license-handler.php:304
96
  #: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
97
- #: includes/deprecated-functions.php:542 includes/download-functions.php:1228
98
  #: includes/emails/actions.php:49 includes/emails/template.php:245
99
  #: includes/error-tracking.php:36 includes/gateways/functions.php:221
100
  #: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:155
101
  #: includes/process-download.php:254 includes/process-download.php:787
102
- #: includes/query-filters.php:48 includes/user-functions.php:809
103
- #: includes/user-functions.php:834 includes/user-functions.php:887
104
  msgid "Error"
105
  msgstr ""
106
 
@@ -389,7 +389,7 @@ msgstr ""
389
  #: includes/admin/discounts/class-discount-codes-table.php:289
390
  #: includes/admin/payments/class-payments-table.php:323
391
  #: includes/admin/payments/class-payments-table.php:395
392
- #: includes/payments/functions.php:1596
393
  msgid "Delete"
394
  msgstr ""
395
 
@@ -427,16 +427,16 @@ msgid "Date Created"
427
  msgstr ""
428
 
429
  #: includes/admin/customers/customer-actions.php:17
430
- #: includes/admin/customers/customer-actions.php:185
431
- #: includes/admin/customers/customer-actions.php:378
432
- #: includes/admin/customers/customer-actions.php:533
433
  msgid "You do not have permission to edit this customer."
434
  msgstr ""
435
 
436
  #: includes/admin/customers/customer-actions.php:29
437
- #: includes/admin/customers/customer-actions.php:390
438
- #: includes/admin/customers/customer-actions.php:458
439
- #: includes/admin/customers/customer-actions.php:544
440
  msgid "Cheatin' eh?!"
441
  msgstr ""
442
 
@@ -456,72 +456,72 @@ msgstr ""
456
  msgid "Failed to attach user. The login or email address %s was not found."
457
  msgstr ""
458
 
459
- #: includes/admin/customers/customer-actions.php:195
460
  msgid "Email address is required."
461
  msgstr ""
462
 
463
- #: includes/admin/customers/customer-actions.php:197
464
  msgid "Customer ID is required."
465
  msgstr ""
466
 
467
- #: includes/admin/customers/customer-actions.php:199
468
  msgid "An error has occured. Please try again."
469
  msgstr ""
470
 
471
- #: includes/admin/customers/customer-actions.php:206
472
- #: includes/user-functions.php:834
473
  msgid "Nonce verification failed."
474
  msgstr ""
475
 
476
- #: includes/admin/customers/customer-actions.php:213
477
  msgid "Invalid email address."
478
  msgstr ""
479
 
480
- #: includes/admin/customers/customer-actions.php:229
481
- msgid "Email already assocaited with this customer."
482
  msgstr ""
483
 
484
- #: includes/admin/customers/customer-actions.php:236
485
  msgid "Email address is already associated with another customer."
486
  msgstr ""
487
 
488
- #: includes/admin/customers/customer-actions.php:246
489
  msgid "Email successfully added to customer."
490
  msgstr ""
491
 
492
- #: includes/admin/customers/customer-actions.php:300
493
- #: includes/admin/customers/customer-actions.php:344
494
- #: includes/admin/customers/customer-actions.php:602
495
  #: includes/admin/import/import-functions.php:31
496
  #: includes/admin/import/import-functions.php:113
497
  #: includes/admin/reporting/export/export-actions.php:23
498
  #: includes/admin/reporting/pdf-reports.php:33
499
- #: includes/api/class-edd-api.php:1910
500
  #: includes/class-edd-license-handler.php:304
501
  msgid "Nonce verification failed"
502
  msgstr ""
503
 
504
- #: includes/admin/customers/customer-actions.php:394
505
  msgid "A note is required"
506
  msgstr ""
507
 
508
- #: includes/admin/customers/customer-actions.php:445
509
  msgid "You do not have permission to delete this customer."
510
  msgstr ""
511
 
512
- #: includes/admin/customers/customer-actions.php:462
513
  msgid "Please confirm you want to delete this customer"
514
  msgstr ""
515
 
516
- #: includes/admin/customers/customer-actions.php:503
517
  msgid "Error deleting customer"
518
  msgstr ""
519
 
520
- #: includes/admin/customers/customer-actions.php:510
521
  msgid "Invalid Customer ID"
522
  msgstr ""
523
 
524
- #: includes/admin/customers/customer-actions.php:568
525
  msgid "Failed to disconnect user from customer"
526
  msgstr ""
527
 
@@ -568,7 +568,7 @@ msgid "Invalid Customer ID Provided."
568
  msgstr ""
569
 
570
  #: includes/admin/customers/customers.php:115
571
- #: includes/admin/payments/view-order-details.php:420
572
  msgid "Customer Details"
573
  msgstr ""
574
 
@@ -639,8 +639,8 @@ msgstr ""
639
 
640
  #: includes/admin/customers/customers.php:305
641
  #: includes/admin/customers/customers.php:587
642
- #: includes/admin/payments/view-order-details.php:462
643
- #: includes/admin/thickbox.php:131 includes/class-edd-html-elements.php:601
644
  msgid "Cancel"
645
  msgstr ""
646
 
@@ -687,7 +687,7 @@ msgid "Make Primary"
687
  msgstr ""
688
 
689
  #: includes/admin/customers/customers.php:378
690
- #: includes/admin/payments/view-order-details.php:360
691
  #: includes/admin/settings/register-settings.php:1871 includes/scripts.php:222
692
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
693
  #: templates/shortcode-profile-editor.php:114
@@ -772,7 +772,7 @@ msgid "No Payments Found"
772
  msgstr ""
773
 
774
  #: includes/admin/customers/customers.php:440
775
- #: includes/admin/payments/view-order-details.php:293
776
  msgid "Purchased %s"
777
  msgstr ""
778
 
@@ -1262,22 +1262,22 @@ msgid ""
1262
  msgstr ""
1263
 
1264
  #: includes/admin/discounts/discount-actions.php:30
1265
- #: includes/admin/discounts/discount-actions.php:198
1266
  msgid "You do not have permission to create discount codes"
1267
  msgstr ""
1268
 
1269
- #: includes/admin/discounts/discount-actions.php:92
1270
- #: includes/admin/discounts/discount-actions.php:173
1271
  msgid "You do not have permission to edit discount codes"
1272
  msgstr ""
1273
 
1274
- #: includes/admin/discounts/discount-actions.php:144
1275
- #: includes/admin/discounts/discount-actions.php:169
1276
- #: includes/admin/discounts/discount-actions.php:194
1277
  msgid "Trying to cheat or something?"
1278
  msgstr ""
1279
 
1280
- #: includes/admin/discounts/discount-actions.php:148
1281
  msgid "You do not have permission to delete discount codes"
1282
  msgstr ""
1283
 
@@ -1735,25 +1735,25 @@ msgid "Import complete! <a href=\"%s\">View imported %s</a>."
1735
  msgstr ""
1736
 
1737
  #: includes/admin/payments/actions.php:25
1738
- #: includes/admin/payments/actions.php:291
1739
- #: includes/admin/payments/actions.php:307
1740
- #: includes/admin/payments/actions.php:334
1741
- #: includes/admin/payments/actions.php:354 includes/emails/actions.php:49
1742
  msgid "You do not have permission to edit this payment record"
1743
  msgstr ""
1744
 
1745
- #: includes/admin/payments/actions.php:145
1746
- msgid "Error Updating Payment"
1747
- msgstr ""
1748
-
1749
- #: includes/admin/payments/actions.php:156
1750
  msgid "New Customers require a name and email address"
1751
  msgstr ""
1752
 
1753
- #: includes/admin/payments/actions.php:171
1754
  msgid "Error creating new customer"
1755
  msgstr ""
1756
 
 
 
 
 
1757
  #: includes/admin/payments/class-payments-table.php:131
1758
  msgid "Start Date:"
1759
  msgstr ""
@@ -1776,27 +1776,27 @@ msgid "Completed"
1776
  msgstr ""
1777
 
1778
  #: includes/admin/payments/class-payments-table.php:202
1779
- #: includes/payments/functions.php:639
1780
  msgid "Pending"
1781
  msgstr ""
1782
 
1783
  #: includes/admin/payments/class-payments-table.php:203
1784
- #: includes/payments/functions.php:641
1785
  msgid "Refunded"
1786
  msgstr ""
1787
 
1788
  #: includes/admin/payments/class-payments-table.php:204
1789
- #: includes/payments/functions.php:644
1790
  msgid "Revoked"
1791
  msgstr ""
1792
 
1793
  #: includes/admin/payments/class-payments-table.php:205
1794
- #: includes/payments/functions.php:642
1795
  msgid "Failed"
1796
  msgstr ""
1797
 
1798
  #: includes/admin/payments/class-payments-table.php:206
1799
- #: includes/payments/functions.php:643
1800
  msgid "Abandoned"
1801
  msgstr ""
1802
 
@@ -2084,138 +2084,142 @@ msgid ""
2084
  "the receipt."
2085
  msgstr ""
2086
 
2087
- #: includes/admin/payments/view-order-details.php:192
2088
- msgid "Payment Meta"
2089
  msgstr ""
2090
 
2091
  #: includes/admin/payments/view-order-details.php:203
 
 
 
 
2092
  msgid "Gateway:"
2093
  msgstr ""
2094
 
2095
- #: includes/admin/payments/view-order-details.php:211
2096
  msgid "Key:"
2097
  msgstr ""
2098
 
2099
- #: includes/admin/payments/view-order-details.php:218
2100
  msgid "IP:"
2101
  msgstr ""
2102
 
2103
- #: includes/admin/payments/view-order-details.php:226
2104
  msgid "Transaction ID:"
2105
  msgstr ""
2106
 
2107
- #: includes/admin/payments/view-order-details.php:236
2108
  msgid "Unlimited file downloads"
2109
  msgstr ""
2110
 
2111
- #: includes/admin/payments/view-order-details.php:237
2112
  msgid ""
2113
  "<strong>Unlimited file downloads</strong>: checking this box will override "
2114
  "all other file download limits for this purchase, granting the customer "
2115
  "unliimited downloads of all files included on the purchase."
2116
  msgstr ""
2117
 
2118
- #: includes/admin/payments/view-order-details.php:252
2119
  #: includes/admin/reporting/reports.php:33 includes/class-edd-logging.php:48
2120
  msgid "Logs"
2121
  msgstr ""
2122
 
2123
- #: includes/admin/payments/view-order-details.php:260
2124
  msgid "View file download log for purchase"
2125
  msgstr ""
2126
 
2127
- #: includes/admin/payments/view-order-details.php:264
2128
  msgid "View customer download log"
2129
  msgstr ""
2130
 
2131
- #: includes/admin/payments/view-order-details.php:268
2132
  msgid "View all purchases of customer"
2133
  msgstr ""
2134
 
2135
- #: includes/admin/payments/view-order-details.php:350
2136
  #: templates/widget-cart-checkout.php:5 templates/widget-cart-empty.php:6
2137
  msgid "Total:"
2138
  msgstr ""
2139
 
2140
- #: includes/admin/payments/view-order-details.php:358
2141
  msgid "Copy Download Link(s)"
2142
  msgstr ""
2143
 
2144
- #: includes/admin/payments/view-order-details.php:379
2145
  #: includes/emails/class-edd-email-tags.php:407
2146
  #: includes/emails/class-edd-email-tags.php:518
2147
  #: templates/shortcode-receipt.php:128
2148
  msgid "Quantity"
2149
  msgstr ""
2150
 
2151
- #: includes/admin/payments/view-order-details.php:390
2152
  msgid "Item Price: "
2153
  msgstr ""
2154
 
2155
- #: includes/admin/payments/view-order-details.php:398
2156
  msgid "Add %s to Payment"
2157
  msgstr ""
2158
 
2159
- #: includes/admin/payments/view-order-details.php:409
2160
  msgid "No %s included with this purchase"
2161
  msgstr ""
2162
 
2163
- #: includes/admin/payments/view-order-details.php:432 includes/scripts.php:229
2164
  msgid "Type to search all Customers"
2165
  msgstr ""
2166
 
2167
- #: includes/admin/payments/view-order-details.php:444
2168
  msgid "View Customer Details"
2169
  msgstr ""
2170
 
2171
- #: includes/admin/payments/view-order-details.php:447
2172
  msgid "New Customer"
2173
  msgstr ""
2174
 
2175
- #: includes/admin/payments/view-order-details.php:453
2176
  msgid "Name:"
2177
  msgstr ""
2178
 
2179
- #: includes/admin/payments/view-order-details.php:457
2180
  msgid "Email:"
2181
  msgstr ""
2182
 
2183
- #: includes/admin/payments/view-order-details.php:465
2184
  msgid "Click \"Save Payment\" to create new customer"
2185
  msgstr ""
2186
 
2187
- #: includes/admin/payments/view-order-details.php:480
2188
  #: includes/checkout/template.php:329
2189
  msgid "Billing Address"
2190
  msgstr ""
2191
 
2192
- #: includes/admin/payments/view-order-details.php:490
2193
  msgid "Street Address Line 1:"
2194
  msgstr ""
2195
 
2196
- #: includes/admin/payments/view-order-details.php:494
2197
  msgid "Street Address Line 2:"
2198
  msgstr ""
2199
 
2200
- #: includes/admin/payments/view-order-details.php:522
2201
  #: includes/admin/settings/register-settings.php:307
2202
  msgid "Select a country"
2203
  msgstr ""
2204
 
2205
- #: includes/admin/payments/view-order-details.php:539
2206
  #: includes/admin/settings/register-settings.php:315
2207
  msgid "Select a state"
2208
  msgstr ""
2209
 
2210
- #: includes/admin/payments/view-order-details.php:560
2211
  msgid "Payment Notes"
2212
  msgstr ""
2213
 
2214
- #: includes/admin/payments/view-order-details.php:575
2215
  msgid "No payment notes"
2216
  msgstr ""
2217
 
2218
- #: includes/admin/payments/view-order-details.php:581
2219
  msgid "Add Note"
2220
  msgstr ""
2221
 
@@ -2437,9 +2441,9 @@ msgstr ""
2437
 
2438
  #: includes/admin/reporting/class-export.php:172
2439
  #: includes/admin/reporting/export/class-batch-export.php:131
2440
- #: includes/admin/tools/class-edd-tools-recount-all-stats.php:194
2441
  #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:192
2442
- #: includes/admin/tools/class-edd-tools-recount-download-stats.php:211
2443
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:154
2444
  #: includes/admin/tools/class-edd-tools-reset-stats.php:180
2445
  msgid "You do not have permission to export data."
@@ -3417,8 +3421,8 @@ msgstr ""
3417
  #: includes/admin/settings/register-settings.php:499
3418
  #: includes/admin/settings/register-settings.php:506
3419
  #: includes/admin/settings/register-settings.php:510
3420
- #: includes/emails/functions.php:36 includes/emails/functions.php:40
3421
- #: includes/emails/functions.php:77 includes/emails/functions.php:81
3422
  #: includes/emails/template.php:141
3423
  msgid "Purchase Receipt"
3424
  msgstr ""
@@ -3726,17 +3730,14 @@ msgid ""
3726
  msgstr ""
3727
 
3728
  #: includes/admin/settings/register-settings.php:723
3729
- msgid "Disable Guest Checkout"
 
3730
  msgstr ""
3731
 
3732
  #: includes/admin/settings/register-settings.php:724
3733
  msgid "Require that users be logged-in to purchase files."
3734
  msgstr ""
3735
 
3736
- #: includes/admin/settings/register-settings.php:726
3737
- msgid "Disabling Guest Checkout"
3738
- msgstr ""
3739
-
3740
  #: includes/admin/settings/register-settings.php:727
3741
  msgid ""
3742
  "You can require that customers create and login to user accounts prior to "
@@ -4161,7 +4162,7 @@ msgstr ""
4161
  msgid "Link text . . ."
4162
  msgstr ""
4163
 
4164
- #: includes/admin/tools/class-edd-tools-recount-all-stats.php:209
4165
  msgid "Earnings and sales stats successfully recounted."
4166
  msgstr ""
4167
 
@@ -4170,7 +4171,7 @@ msgstr ""
4170
  msgid "Customer stats successfully recounted."
4171
  msgstr ""
4172
 
4173
- #: includes/admin/tools/class-edd-tools-recount-download-stats.php:223
4174
  msgid "Earnings and sales stats successfully recounted for %s."
4175
  msgstr ""
4176
 
@@ -5039,16 +5040,17 @@ msgstr ""
5039
  msgid "No valid changelog was found."
5040
  msgstr ""
5041
 
5042
- #: includes/ajax-functions.php:547 includes/ajax-functions.php:599
5043
  msgid "No results found"
5044
  msgstr ""
5045
 
5046
- #: includes/ajax-functions.php:641
5047
- msgid "All Prices"
 
5048
  msgstr ""
5049
 
5050
- #: includes/ajax-functions.php:691
5051
- msgid "No users found"
5052
  msgstr ""
5053
 
5054
  #: includes/api/class-edd-api-v2.php:143 includes/api/class-edd-api.php:1051
@@ -5093,47 +5095,47 @@ msgstr ""
5093
  msgid "Invalid or no date range specified!"
5094
  msgstr ""
5095
 
5096
- #: includes/api/class-edd-api.php:1499
5097
  msgid "No discounts found!"
5098
  msgstr ""
5099
 
5100
- #: includes/api/class-edd-api.php:1546
5101
  msgid "Discount %s not found!"
5102
  msgstr ""
5103
 
5104
- #: includes/api/class-edd-api.php:1619
5105
  msgid "No download logs found!"
5106
  msgstr ""
5107
 
5108
- #: includes/api/class-edd-api.php:1874 includes/user-functions.php:961
5109
  msgid "Easy Digital Downloads API Keys"
5110
  msgstr ""
5111
 
5112
- #: includes/api/class-edd-api.php:1883 includes/user-functions.php:970
5113
  msgid "Generate API Key"
5114
  msgstr ""
5115
 
5116
- #: includes/api/class-edd-api.php:1885 includes/user-functions.php:972
5117
  msgid "Public key:"
5118
  msgstr ""
5119
 
5120
- #: includes/api/class-edd-api.php:1886 includes/user-functions.php:973
5121
  msgid "Secret key:"
5122
  msgstr ""
5123
 
5124
- #: includes/api/class-edd-api.php:1887 includes/user-functions.php:974
5125
  msgid "Token:"
5126
  msgstr ""
5127
 
5128
- #: includes/api/class-edd-api.php:1889 includes/user-functions.php:976
5129
  msgid "Revoke API Keys"
5130
  msgstr ""
5131
 
5132
- #: includes/api/class-edd-api.php:1915
5133
  msgid "User ID Required"
5134
  msgstr ""
5135
 
5136
- #: includes/api/class-edd-api.php:1927 includes/api/class-edd-api.php:1929
5137
  msgid "You do not have permission to %s API keys for this user"
5138
  msgstr ""
5139
 
@@ -5593,7 +5595,7 @@ msgstr ""
5593
  msgid "%d customers created in %d seconds"
5594
  msgstr ""
5595
 
5596
- #: includes/class-edd-cli.php:311 includes/class-edd-html-elements.php:147
5597
  msgid "No customers found"
5598
  msgstr ""
5599
 
@@ -5678,7 +5680,7 @@ msgstr ""
5678
  msgid " Product: %s - %s"
5679
  msgstr ""
5680
 
5681
- #: includes/class-edd-cli.php:419 includes/class-edd-html-elements.php:209
5682
  #: includes/shortcodes.php:270
5683
  msgid "No discounts found"
5684
  msgstr ""
@@ -5771,23 +5773,27 @@ msgstr ""
5771
  msgid "New Download Product"
5772
  msgstr ""
5773
 
5774
- #: includes/class-edd-html-elements.php:43 includes/scripts.php:213
5775
  msgid "Choose a %s"
5776
  msgstr ""
5777
 
5778
- #: includes/class-edd-html-elements.php:128
5779
  msgid "Select a Customer"
5780
  msgstr ""
5781
 
5782
- #: includes/class-edd-html-elements.php:142
5783
  msgid "No customer attached"
5784
  msgstr ""
5785
 
5786
- #: includes/class-edd-html-elements.php:217
 
 
 
 
5787
  msgid "Select a discount"
5788
  msgstr ""
5789
 
5790
- #: includes/class-edd-html-elements.php:586
5791
  msgid "Enter username"
5792
  msgstr ""
5793
 
@@ -6224,7 +6230,7 @@ msgstr ""
6224
  msgid "Sorry but you have hit your download limit for this file."
6225
  msgstr ""
6226
 
6227
- #: includes/deprecated-functions.php:532 includes/download-functions.php:1228
6228
  msgid "Sorry but your download link has expired."
6229
  msgstr ""
6230
 
@@ -6232,39 +6238,39 @@ msgstr ""
6232
  msgid "No payments matching your request were found."
6233
  msgstr ""
6234
 
6235
- #: includes/discount-functions.php:395
6236
  msgid "This discount is expired."
6237
  msgstr ""
6238
 
6239
- #: includes/discount-functions.php:401
6240
  msgid "This discount is not active."
6241
  msgstr ""
6242
 
6243
- #: includes/discount-functions.php:629
6244
  msgid "This discount is not active yet."
6245
  msgstr ""
6246
 
6247
- #: includes/discount-functions.php:660
6248
  msgid "This discount has reached its maximum usage."
6249
  msgstr ""
6250
 
6251
- #: includes/discount-functions.php:689
6252
  msgid "Minimum order of %s not met."
6253
  msgstr ""
6254
 
6255
- #: includes/discount-functions.php:751 includes/discount-functions.php:771
6256
  msgid "The product requirements for this discount are not met."
6257
  msgstr ""
6258
 
6259
- #: includes/discount-functions.php:787
6260
  msgid "This discount is not valid for the cart contents."
6261
  msgstr ""
6262
 
6263
- #: includes/discount-functions.php:891
6264
  msgid "This discount has already been redeemed."
6265
  msgstr ""
6266
 
6267
- #: includes/discount-functions.php:937
6268
  msgid "This discount is invalid."
6269
  msgstr ""
6270
 
@@ -6284,19 +6290,19 @@ msgstr ""
6284
  msgid "%1$sView it in your browser %2$s"
6285
  msgstr ""
6286
 
6287
- #: includes/emails/class-edd-emails.php:161
6288
  msgid "Default Template"
6289
  msgstr ""
6290
 
6291
- #: includes/emails/class-edd-emails.php:162
6292
  msgid "No template, plain text only"
6293
  msgstr ""
6294
 
6295
- #: includes/emails/class-edd-emails.php:278
6296
  msgid "You cannot send email with EDD_Emails until init/admin_init has been reached"
6297
  msgstr ""
6298
 
6299
- #: includes/emails/class-edd-emails.php:305
6300
  msgid ""
6301
  "Email from Easy Digital Downloads failed to send.\n"
6302
  "Send time: %s\n"
@@ -6305,39 +6311,39 @@ msgid ""
6305
  "\n"
6306
  msgstr ""
6307
 
6308
- #: includes/emails/functions.php:126
6309
  msgid "New download purchase - Order #%1$s"
6310
  msgstr ""
6311
 
6312
- #: includes/emails/functions.php:144
6313
  msgid "New Sale!"
6314
  msgstr ""
6315
 
6316
- #: includes/emails/functions.php:189 includes/emails/template.php:214
6317
  msgid "Hello"
6318
  msgstr ""
6319
 
6320
- #: includes/emails/functions.php:189 includes/emails/template.php:214
6321
  msgid "A %s purchase has been made"
6322
  msgstr ""
6323
 
6324
- #: includes/emails/functions.php:190 includes/emails/template.php:215
6325
  msgid "%s sold:"
6326
  msgstr ""
6327
 
6328
- #: includes/emails/functions.php:192 includes/emails/template.php:217
6329
  msgid "Purchased by: "
6330
  msgstr ""
6331
 
6332
- #: includes/emails/functions.php:193 includes/emails/template.php:218
6333
  msgid "Amount: "
6334
  msgstr ""
6335
 
6336
- #: includes/emails/functions.php:194 includes/emails/template.php:219
6337
  msgid "Payment Method: "
6338
  msgstr ""
6339
 
6340
- #: includes/emails/functions.php:195 includes/emails/template.php:220
6341
  msgid "Thank you"
6342
  msgstr ""
6343
 
@@ -6941,15 +6947,15 @@ msgid ""
6941
  "Downloads version %3$s with no alternative available."
6942
  msgstr ""
6943
 
6944
- #: includes/payments/actions.php:140
6945
  msgid "Status changed from %s to %s"
6946
  msgstr ""
6947
 
6948
- #: includes/payments/functions.php:640
6949
  msgid "Complete"
6950
  msgstr ""
6951
 
6952
- #: includes/payments/functions.php:1581
6953
  msgid "EDD Bot"
6954
  msgstr ""
6955
 
@@ -7601,15 +7607,19 @@ msgstr ""
7601
  msgid "Password: %s"
7602
  msgstr ""
7603
 
7604
- #: includes/user-functions.php:528
7605
- msgid "Click Here to Log In"
7606
  msgstr ""
7607
 
7608
- #: includes/user-functions.php:682 includes/user-functions.php:683
 
 
 
 
7609
  msgid "Verify your account"
7610
  msgstr ""
7611
 
7612
- #: includes/user-functions.php:685
7613
  msgid ""
7614
  "Hello %s,\n"
7615
  "\n"
@@ -7619,25 +7629,25 @@ msgid ""
7619
  "Link missing? Visit the following URL: %s"
7620
  msgstr ""
7621
 
7622
- #: includes/user-functions.php:809
7623
  msgid ""
7624
  "Sorry but your account verification link has expired. <a href=\"#\">Click "
7625
  "here</a> to request a new verification URL."
7626
  msgstr ""
7627
 
7628
- #: includes/user-functions.php:838
7629
  msgid "You must be logged in to verify your account."
7630
  msgstr ""
7631
 
7632
- #: includes/user-functions.php:838 includes/user-functions.php:842
7633
  msgid "Notice"
7634
  msgstr ""
7635
 
7636
- #: includes/user-functions.php:842
7637
  msgid "Your account has already been verified."
7638
  msgstr ""
7639
 
7640
- #: includes/user-functions.php:887
7641
  msgid "Invalid verification token provided."
7642
  msgstr ""
7643
 
@@ -7899,22 +7909,22 @@ msgstr ""
7899
  msgid "The easiest way to sell digital products with WordPress."
7900
  msgstr ""
7901
 
7902
- #: includes/admin/payments/view-order-details.php:501
7903
  msgctxt "Address City"
7904
  msgid "City:"
7905
  msgstr ""
7906
 
7907
- #: includes/admin/payments/view-order-details.php:506
7908
  msgctxt "Zip / Postal code of address"
7909
  msgid "Zip / Postal Code:"
7910
  msgstr ""
7911
 
7912
- #: includes/admin/payments/view-order-details.php:513
7913
  msgctxt "Address country"
7914
  msgid "Country:"
7915
  msgstr ""
7916
 
7917
- #: includes/admin/payments/view-order-details.php:528
7918
  msgctxt "State / province of address"
7919
  msgid "State / Province:"
7920
  msgstr ""
@@ -7934,17 +7944,17 @@ msgctxt "Apply discount at checkout"
7934
  msgid "Apply"
7935
  msgstr ""
7936
 
7937
- #: includes/class-edd-html-elements.php:245
7938
  msgctxt "plural: Example: \"All Categories\""
7939
  msgid "All %s"
7940
  msgstr ""
7941
 
7942
- #: includes/class-edd-html-elements.php:335
7943
  msgctxt "all dropdown items"
7944
  msgid "All"
7945
  msgstr ""
7946
 
7947
- #: includes/class-edd-html-elements.php:336
7948
  msgctxt "no dropdown items"
7949
  msgid "None"
7950
  msgstr ""
2
  # This file is distributed under the same license as the Easy Digital Downloads package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy Digital Downloads 2.6.9\n"
6
  "Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
7
+ "POT-Creation-Date: 2016-10-20 17:50:47+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
43
  msgstr ""
44
 
45
  #: includes/EDD_SL_Plugin_Updater.php:358
46
+ #: includes/admin/customers/customer-actions.php:301
47
+ #: includes/admin/customers/customer-actions.php:345
48
+ #: includes/admin/customers/customer-actions.php:603
49
  #: includes/admin/discounts/discount-actions.php:30
50
+ #: includes/admin/discounts/discount-actions.php:100
51
+ #: includes/admin/discounts/discount-actions.php:160
52
+ #: includes/admin/discounts/discount-actions.php:164
53
+ #: includes/admin/discounts/discount-actions.php:185
54
+ #: includes/admin/discounts/discount-actions.php:189
55
+ #: includes/admin/discounts/discount-actions.php:210
56
  #: includes/admin/discounts/edit-discount.php:16
57
  #: includes/admin/downloads/dashboard-columns.php:171
58
  #: includes/admin/import/class-batch-import-downloads.php:65
59
  #: includes/admin/import/class-batch-import-payments.php:76
60
  #: includes/admin/import/class-batch-import.php:159
61
  #: includes/admin/payments/actions.php:25
62
+ #: includes/admin/payments/actions.php:267
63
+ #: includes/admin/payments/actions.php:290
64
+ #: includes/admin/payments/actions.php:306
65
+ #: includes/admin/payments/actions.php:333
66
+ #: includes/admin/payments/actions.php:353
67
  #: includes/admin/payments/view-order-details.php:22
68
  #: includes/admin/payments/view-order-details.php:32
69
  #: includes/admin/reporting/class-api-requests-logs-list-table.php:146
74
  #: includes/admin/reporting/pdf-reports.php:29
75
  #: includes/admin/reporting/pdf-reports.php:33
76
  #: includes/admin/reporting/reports.php:97
77
+ #: includes/admin/tools/class-edd-tools-recount-all-stats.php:205
78
  #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:192
79
+ #: includes/admin/tools/class-edd-tools-recount-download-stats.php:224
80
  #: includes/admin/tools/class-edd-tools-recount-single-customer-stats.php:149
81
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:154
82
  #: includes/admin/tools/class-edd-tools-reset-stats.php:180
89
  #: includes/admin/upgrades/upgrade-functions.php:890
90
  #: includes/admin/upgrades/upgrade-functions.php:1018
91
  #: includes/admin/upgrades/upgrade-functions.php:1103
92
+ #: includes/api/class-edd-api.php:1912 includes/api/class-edd-api.php:1917
93
+ #: includes/api/class-edd-api.php:1929 includes/api/class-edd-api.php:1931
94
  #: includes/cart/functions.php:1202 includes/cart/functions.php:1219
95
  #: includes/class-edd-license-handler.php:304
96
  #: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
97
+ #: includes/deprecated-functions.php:542 includes/download-functions.php:1229
98
  #: includes/emails/actions.php:49 includes/emails/template.php:245
99
  #: includes/error-tracking.php:36 includes/gateways/functions.php:221
100
  #: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:155
101
  #: includes/process-download.php:254 includes/process-download.php:787
102
+ #: includes/query-filters.php:48 includes/user-functions.php:817
103
+ #: includes/user-functions.php:842 includes/user-functions.php:895
104
  msgid "Error"
105
  msgstr ""
106
 
389
  #: includes/admin/discounts/class-discount-codes-table.php:289
390
  #: includes/admin/payments/class-payments-table.php:323
391
  #: includes/admin/payments/class-payments-table.php:395
392
+ #: includes/payments/functions.php:1606
393
  msgid "Delete"
394
  msgstr ""
395
 
427
  msgstr ""
428
 
429
  #: includes/admin/customers/customer-actions.php:17
430
+ #: includes/admin/customers/customer-actions.php:186
431
+ #: includes/admin/customers/customer-actions.php:379
432
+ #: includes/admin/customers/customer-actions.php:534
433
  msgid "You do not have permission to edit this customer."
434
  msgstr ""
435
 
436
  #: includes/admin/customers/customer-actions.php:29
437
+ #: includes/admin/customers/customer-actions.php:391
438
+ #: includes/admin/customers/customer-actions.php:459
439
+ #: includes/admin/customers/customer-actions.php:545
440
  msgid "Cheatin' eh?!"
441
  msgstr ""
442
 
456
  msgid "Failed to attach user. The login or email address %s was not found."
457
  msgstr ""
458
 
459
+ #: includes/admin/customers/customer-actions.php:196
460
  msgid "Email address is required."
461
  msgstr ""
462
 
463
+ #: includes/admin/customers/customer-actions.php:198
464
  msgid "Customer ID is required."
465
  msgstr ""
466
 
467
+ #: includes/admin/customers/customer-actions.php:200
468
  msgid "An error has occured. Please try again."
469
  msgstr ""
470
 
471
+ #: includes/admin/customers/customer-actions.php:207
472
+ #: includes/user-functions.php:842
473
  msgid "Nonce verification failed."
474
  msgstr ""
475
 
476
+ #: includes/admin/customers/customer-actions.php:214
477
  msgid "Invalid email address."
478
  msgstr ""
479
 
480
+ #: includes/admin/customers/customer-actions.php:230
481
+ msgid "Email already associated with this customer."
482
  msgstr ""
483
 
484
+ #: includes/admin/customers/customer-actions.php:237
485
  msgid "Email address is already associated with another customer."
486
  msgstr ""
487
 
488
+ #: includes/admin/customers/customer-actions.php:247
489
  msgid "Email successfully added to customer."
490
  msgstr ""
491
 
492
+ #: includes/admin/customers/customer-actions.php:301
493
+ #: includes/admin/customers/customer-actions.php:345
494
+ #: includes/admin/customers/customer-actions.php:603
495
  #: includes/admin/import/import-functions.php:31
496
  #: includes/admin/import/import-functions.php:113
497
  #: includes/admin/reporting/export/export-actions.php:23
498
  #: includes/admin/reporting/pdf-reports.php:33
499
+ #: includes/api/class-edd-api.php:1912
500
  #: includes/class-edd-license-handler.php:304
501
  msgid "Nonce verification failed"
502
  msgstr ""
503
 
504
+ #: includes/admin/customers/customer-actions.php:395
505
  msgid "A note is required"
506
  msgstr ""
507
 
508
+ #: includes/admin/customers/customer-actions.php:446
509
  msgid "You do not have permission to delete this customer."
510
  msgstr ""
511
 
512
+ #: includes/admin/customers/customer-actions.php:463
513
  msgid "Please confirm you want to delete this customer"
514
  msgstr ""
515
 
516
+ #: includes/admin/customers/customer-actions.php:504
517
  msgid "Error deleting customer"
518
  msgstr ""
519
 
520
+ #: includes/admin/customers/customer-actions.php:511
521
  msgid "Invalid Customer ID"
522
  msgstr ""
523
 
524
+ #: includes/admin/customers/customer-actions.php:569
525
  msgid "Failed to disconnect user from customer"
526
  msgstr ""
527
 
568
  msgstr ""
569
 
570
  #: includes/admin/customers/customers.php:115
571
+ #: includes/admin/payments/view-order-details.php:435
572
  msgid "Customer Details"
573
  msgstr ""
574
 
639
 
640
  #: includes/admin/customers/customers.php:305
641
  #: includes/admin/customers/customers.php:587
642
+ #: includes/admin/payments/view-order-details.php:475
643
+ #: includes/admin/thickbox.php:131 includes/class-edd-html-elements.php:731
644
  msgid "Cancel"
645
  msgstr ""
646
 
687
  msgstr ""
688
 
689
  #: includes/admin/customers/customers.php:378
690
+ #: includes/admin/payments/view-order-details.php:375
691
  #: includes/admin/settings/register-settings.php:1871 includes/scripts.php:222
692
  #: templates/checkout_cart.php:57 templates/checkout_cart.php:75
693
  #: templates/shortcode-profile-editor.php:114
772
  msgstr ""
773
 
774
  #: includes/admin/customers/customers.php:440
775
+ #: includes/admin/payments/view-order-details.php:304
776
  msgid "Purchased %s"
777
  msgstr ""
778
 
1262
  msgstr ""
1263
 
1264
  #: includes/admin/discounts/discount-actions.php:30
1265
+ #: includes/admin/discounts/discount-actions.php:214
1266
  msgid "You do not have permission to create discount codes"
1267
  msgstr ""
1268
 
1269
+ #: includes/admin/discounts/discount-actions.php:100
1270
+ #: includes/admin/discounts/discount-actions.php:189
1271
  msgid "You do not have permission to edit discount codes"
1272
  msgstr ""
1273
 
1274
+ #: includes/admin/discounts/discount-actions.php:160
1275
+ #: includes/admin/discounts/discount-actions.php:185
1276
+ #: includes/admin/discounts/discount-actions.php:210
1277
  msgid "Trying to cheat or something?"
1278
  msgstr ""
1279
 
1280
+ #: includes/admin/discounts/discount-actions.php:164
1281
  msgid "You do not have permission to delete discount codes"
1282
  msgstr ""
1283
 
1735
  msgstr ""
1736
 
1737
  #: includes/admin/payments/actions.php:25
1738
+ #: includes/admin/payments/actions.php:290
1739
+ #: includes/admin/payments/actions.php:306
1740
+ #: includes/admin/payments/actions.php:333
1741
+ #: includes/admin/payments/actions.php:353 includes/emails/actions.php:49
1742
  msgid "You do not have permission to edit this payment record"
1743
  msgstr ""
1744
 
1745
+ #: includes/admin/payments/actions.php:151
 
 
 
 
1746
  msgid "New Customers require a name and email address"
1747
  msgstr ""
1748
 
1749
+ #: includes/admin/payments/actions.php:166
1750
  msgid "Error creating new customer"
1751
  msgstr ""
1752
 
1753
+ #: includes/admin/payments/actions.php:267
1754
+ msgid "Error Updating Payment"
1755
+ msgstr ""
1756
+
1757
  #: includes/admin/payments/class-payments-table.php:131
1758
  msgid "Start Date:"
1759
  msgstr ""
1776
  msgstr ""
1777
 
1778
  #: includes/admin/payments/class-payments-table.php:202
1779
+ #: includes/payments/functions.php:649
1780
  msgid "Pending"
1781
  msgstr ""
1782
 
1783
  #: includes/admin/payments/class-payments-table.php:203
1784
+ #: includes/payments/functions.php:651
1785
  msgid "Refunded"
1786
  msgstr ""
1787
 
1788
  #: includes/admin/payments/class-payments-table.php:204
1789
+ #: includes/payments/functions.php:654
1790
  msgid "Revoked"
1791
  msgstr ""
1792
 
1793
  #: includes/admin/payments/class-payments-table.php:205
1794
+ #: includes/payments/functions.php:652
1795
  msgid "Failed"
1796
  msgstr ""
1797
 
1798
  #: includes/admin/payments/class-payments-table.php:206
1799
+ #: includes/payments/functions.php:653
1800
  msgid "Abandoned"
1801
  msgstr ""
1802
 
2084
  "the receipt."
2085
  msgstr ""
2086
 
2087
+ #: includes/admin/payments/view-order-details.php:186
2088
+ msgid " -- select email --"
2089
  msgstr ""
2090
 
2091
  #: includes/admin/payments/view-order-details.php:203
2092
+ msgid "Payment Meta"
2093
+ msgstr ""
2094
+
2095
+ #: includes/admin/payments/view-order-details.php:214
2096
  msgid "Gateway:"
2097
  msgstr ""
2098
 
2099
+ #: includes/admin/payments/view-order-details.php:222
2100
  msgid "Key:"
2101
  msgstr ""
2102
 
2103
+ #: includes/admin/payments/view-order-details.php:229
2104
  msgid "IP:"
2105
  msgstr ""
2106
 
2107
+ #: includes/admin/payments/view-order-details.php:237
2108
  msgid "Transaction ID:"
2109
  msgstr ""
2110
 
2111
+ #: includes/admin/payments/view-order-details.php:247
2112
  msgid "Unlimited file downloads"
2113
  msgstr ""
2114
 
2115
+ #: includes/admin/payments/view-order-details.php:248
2116
  msgid ""
2117
  "<strong>Unlimited file downloads</strong>: checking this box will override "
2118
  "all other file download limits for this purchase, granting the customer "
2119
  "unliimited downloads of all files included on the purchase."
2120
  msgstr ""
2121
 
2122
+ #: includes/admin/payments/view-order-details.php:263
2123
  #: includes/admin/reporting/reports.php:33 includes/class-edd-logging.php:48
2124
  msgid "Logs"
2125
  msgstr ""
2126
 
2127
+ #: includes/admin/payments/view-order-details.php:271
2128
  msgid "View file download log for purchase"
2129
  msgstr ""
2130
 
2131
+ #: includes/admin/payments/view-order-details.php:275
2132
  msgid "View customer download log"
2133
  msgstr ""
2134
 
2135
+ #: includes/admin/payments/view-order-details.php:279
2136
  msgid "View all purchases of customer"
2137
  msgstr ""
2138
 
2139
+ #: includes/admin/payments/view-order-details.php:365
2140
  #: templates/widget-cart-checkout.php:5 templates/widget-cart-empty.php:6
2141
  msgid "Total:"
2142
  msgstr ""
2143
 
2144
+ #: includes/admin/payments/view-order-details.php:373
2145
  msgid "Copy Download Link(s)"
2146
  msgstr ""
2147
 
2148
+ #: includes/admin/payments/view-order-details.php:394
2149
  #: includes/emails/class-edd-email-tags.php:407
2150
  #: includes/emails/class-edd-email-tags.php:518
2151
  #: templates/shortcode-receipt.php:128
2152
  msgid "Quantity"
2153
  msgstr ""
2154
 
2155
+ #: includes/admin/payments/view-order-details.php:405
2156
  msgid "Item Price: "
2157
  msgstr ""
2158
 
2159
+ #: includes/admin/payments/view-order-details.php:413
2160
  msgid "Add %s to Payment"
2161
  msgstr ""
2162
 
2163
+ #: includes/admin/payments/view-order-details.php:424
2164
  msgid "No %s included with this purchase"
2165
  msgstr ""
2166
 
2167
+ #: includes/admin/payments/view-order-details.php:445 includes/scripts.php:229
2168
  msgid "Type to search all Customers"
2169
  msgstr ""
2170
 
2171
+ #: includes/admin/payments/view-order-details.php:457
2172
  msgid "View Customer Details"
2173
  msgstr ""
2174
 
2175
+ #: includes/admin/payments/view-order-details.php:460
2176
  msgid "New Customer"
2177
  msgstr ""
2178
 
2179
+ #: includes/admin/payments/view-order-details.php:466
2180
  msgid "Name:"
2181
  msgstr ""
2182
 
2183
+ #: includes/admin/payments/view-order-details.php:470
2184
  msgid "Email:"
2185
  msgstr ""
2186
 
2187
+ #: includes/admin/payments/view-order-details.php:478
2188
  msgid "Click \"Save Payment\" to create new customer"
2189
  msgstr ""
2190
 
2191
+ #: includes/admin/payments/view-order-details.php:493
2192
  #: includes/checkout/template.php:329
2193
  msgid "Billing Address"
2194
  msgstr ""
2195
 
2196
+ #: includes/admin/payments/view-order-details.php:503
2197
  msgid "Street Address Line 1:"
2198
  msgstr ""
2199
 
2200
+ #: includes/admin/payments/view-order-details.php:507
2201
  msgid "Street Address Line 2:"
2202
  msgstr ""
2203
 
2204
+ #: includes/admin/payments/view-order-details.php:536
2205
  #: includes/admin/settings/register-settings.php:307
2206
  msgid "Select a country"
2207
  msgstr ""
2208
 
2209
+ #: includes/admin/payments/view-order-details.php:554
2210
  #: includes/admin/settings/register-settings.php:315
2211
  msgid "Select a state"
2212
  msgstr ""
2213
 
2214
+ #: includes/admin/payments/view-order-details.php:575
2215
  msgid "Payment Notes"
2216
  msgstr ""
2217
 
2218
+ #: includes/admin/payments/view-order-details.php:590
2219
  msgid "No payment notes"
2220
  msgstr ""
2221
 
2222
+ #: includes/admin/payments/view-order-details.php:596
2223
  msgid "Add Note"
2224
  msgstr ""
2225
 
2441
 
2442
  #: includes/admin/reporting/class-export.php:172
2443
  #: includes/admin/reporting/export/class-batch-export.php:131
2444
+ #: includes/admin/tools/class-edd-tools-recount-all-stats.php:205
2445
  #: includes/admin/tools/class-edd-tools-recount-customer-stats.php:192
2446
+ #: includes/admin/tools/class-edd-tools-recount-download-stats.php:224
2447
  #: includes/admin/tools/class-edd-tools-recount-store-earnings.php:154
2448
  #: includes/admin/tools/class-edd-tools-reset-stats.php:180
2449
  msgid "You do not have permission to export data."
3421
  #: includes/admin/settings/register-settings.php:499
3422
  #: includes/admin/settings/register-settings.php:506
3423
  #: includes/admin/settings/register-settings.php:510
3424
+ #: includes/emails/functions.php:40 includes/emails/functions.php:44
3425
+ #: includes/emails/functions.php:81 includes/emails/functions.php:85
3426
  #: includes/emails/template.php:141
3427
  msgid "Purchase Receipt"
3428
  msgstr ""
3730
  msgstr ""
3731
 
3732
  #: includes/admin/settings/register-settings.php:723
3733
+ #: includes/admin/settings/register-settings.php:726
3734
+ msgid "Require Login"
3735
  msgstr ""
3736
 
3737
  #: includes/admin/settings/register-settings.php:724
3738
  msgid "Require that users be logged-in to purchase files."
3739
  msgstr ""
3740
 
 
 
 
 
3741
  #: includes/admin/settings/register-settings.php:727
3742
  msgid ""
3743
  "You can require that customers create and login to user accounts prior to "
4162
  msgid "Link text . . ."
4163
  msgstr ""
4164
 
4165
+ #: includes/admin/tools/class-edd-tools-recount-all-stats.php:220
4166
  msgid "Earnings and sales stats successfully recounted."
4167
  msgstr ""
4168
 
4171
  msgid "Customer stats successfully recounted."
4172
  msgstr ""
4173
 
4174
+ #: includes/admin/tools/class-edd-tools-recount-download-stats.php:236
4175
  msgid "Earnings and sales stats successfully recounted for %s."
4176
  msgstr ""
4177
 
5040
  msgid "No valid changelog was found."
5041
  msgstr ""
5042
 
5043
+ #: includes/ajax-functions.php:566 includes/ajax-functions.php:618
5044
  msgid "No results found"
5045
  msgstr ""
5046
 
5047
+ #: includes/ajax-functions.php:667 includes/ajax-functions.php:759
5048
+ #: includes/class-edd-html-elements.php:289
5049
+ msgid "No users found"
5050
  msgstr ""
5051
 
5052
+ #: includes/ajax-functions.php:709
5053
+ msgid "All Prices"
5054
  msgstr ""
5055
 
5056
  #: includes/api/class-edd-api-v2.php:143 includes/api/class-edd-api.php:1051
5095
  msgid "Invalid or no date range specified!"
5096
  msgstr ""
5097
 
5098
+ #: includes/api/class-edd-api.php:1501
5099
  msgid "No discounts found!"
5100
  msgstr ""
5101
 
5102
+ #: includes/api/class-edd-api.php:1548
5103
  msgid "Discount %s not found!"
5104
  msgstr ""
5105
 
5106
+ #: includes/api/class-edd-api.php:1621
5107
  msgid "No download logs found!"
5108
  msgstr ""
5109
 
5110
+ #: includes/api/class-edd-api.php:1876 includes/user-functions.php:969
5111
  msgid "Easy Digital Downloads API Keys"
5112
  msgstr ""
5113
 
5114
+ #: includes/api/class-edd-api.php:1885 includes/user-functions.php:978
5115
  msgid "Generate API Key"
5116
  msgstr ""
5117
 
5118
+ #: includes/api/class-edd-api.php:1887 includes/user-functions.php:980
5119
  msgid "Public key:"
5120
  msgstr ""
5121
 
5122
+ #: includes/api/class-edd-api.php:1888 includes/user-functions.php:981
5123
  msgid "Secret key:"
5124
  msgstr ""
5125
 
5126
+ #: includes/api/class-edd-api.php:1889 includes/user-functions.php:982
5127
  msgid "Token:"
5128
  msgstr ""
5129
 
5130
+ #: includes/api/class-edd-api.php:1891 includes/user-functions.php:984
5131
  msgid "Revoke API Keys"
5132
  msgstr ""
5133
 
5134
+ #: includes/api/class-edd-api.php:1917
5135
  msgid "User ID Required"
5136
  msgstr ""
5137
 
5138
+ #: includes/api/class-edd-api.php:1929 includes/api/class-edd-api.php:1931
5139
  msgid "You do not have permission to %s API keys for this user"
5140
  msgstr ""
5141
 
5595
  msgid "%d customers created in %d seconds"
5596
  msgstr ""
5597
 
5598
+ #: includes/class-edd-cli.php:311 includes/class-edd-html-elements.php:215
5599
  msgid "No customers found"
5600
  msgstr ""
5601
 
5680
  msgid " Product: %s - %s"
5681
  msgstr ""
5682
 
5683
+ #: includes/class-edd-cli.php:419 includes/class-edd-html-elements.php:333
5684
  #: includes/shortcodes.php:270
5685
  msgid "No discounts found"
5686
  msgstr ""
5773
  msgid "New Download Product"
5774
  msgstr ""
5775
 
5776
+ #: includes/class-edd-html-elements.php:44 includes/scripts.php:213
5777
  msgid "Choose a %s"
5778
  msgstr ""
5779
 
5780
+ #: includes/class-edd-html-elements.php:196
5781
  msgid "Select a Customer"
5782
  msgstr ""
5783
 
5784
+ #: includes/class-edd-html-elements.php:210
5785
  msgid "No customer attached"
5786
  msgstr ""
5787
 
5788
+ #: includes/class-edd-html-elements.php:270
5789
+ msgid "Select a User"
5790
+ msgstr ""
5791
+
5792
+ #: includes/class-edd-html-elements.php:341
5793
  msgid "Select a discount"
5794
  msgstr ""
5795
 
5796
+ #: includes/class-edd-html-elements.php:716
5797
  msgid "Enter username"
5798
  msgstr ""
5799
 
6230
  msgid "Sorry but you have hit your download limit for this file."
6231
  msgstr ""
6232
 
6233
+ #: includes/deprecated-functions.php:532 includes/download-functions.php:1229
6234
  msgid "Sorry but your download link has expired."
6235
  msgstr ""
6236
 
6238
  msgid "No payments matching your request were found."
6239
  msgstr ""
6240
 
6241
+ #: includes/discount-functions.php:387
6242
  msgid "This discount is expired."
6243
  msgstr ""
6244
 
6245
+ #: includes/discount-functions.php:393
6246
  msgid "This discount is not active."
6247
  msgstr ""
6248
 
6249
+ #: includes/discount-functions.php:621
6250
  msgid "This discount is not active yet."
6251
  msgstr ""
6252
 
6253
+ #: includes/discount-functions.php:652
6254
  msgid "This discount has reached its maximum usage."
6255
  msgstr ""
6256
 
6257
+ #: includes/discount-functions.php:681
6258
  msgid "Minimum order of %s not met."
6259
  msgstr ""
6260
 
6261
+ #: includes/discount-functions.php:743 includes/discount-functions.php:763
6262
  msgid "The product requirements for this discount are not met."
6263
  msgstr ""
6264
 
6265
+ #: includes/discount-functions.php:779
6266
  msgid "This discount is not valid for the cart contents."
6267
  msgstr ""
6268
 
6269
+ #: includes/discount-functions.php:883
6270
  msgid "This discount has already been redeemed."
6271
  msgstr ""
6272
 
6273
+ #: includes/discount-functions.php:929
6274
  msgid "This discount is invalid."
6275
  msgstr ""
6276
 
6290
  msgid "%1$sView it in your browser %2$s"
6291
  msgstr ""
6292
 
6293
+ #: includes/emails/class-edd-emails.php:170
6294
  msgid "Default Template"
6295
  msgstr ""
6296
 
6297
+ #: includes/emails/class-edd-emails.php:171
6298
  msgid "No template, plain text only"
6299
  msgstr ""
6300
 
6301
+ #: includes/emails/class-edd-emails.php:287
6302
  msgid "You cannot send email with EDD_Emails until init/admin_init has been reached"
6303
  msgstr ""
6304
 
6305
+ #: includes/emails/class-edd-emails.php:314
6306
  msgid ""
6307
  "Email from Easy Digital Downloads failed to send.\n"
6308
  "Send time: %s\n"
6311
  "\n"
6312
  msgstr ""
6313
 
6314
+ #: includes/emails/functions.php:130
6315
  msgid "New download purchase - Order #%1$s"
6316
  msgstr ""
6317
 
6318
+ #: includes/emails/functions.php:148
6319
  msgid "New Sale!"
6320
  msgstr ""
6321
 
6322
+ #: includes/emails/functions.php:193 includes/emails/template.php:214
6323
  msgid "Hello"
6324
  msgstr ""
6325
 
6326
+ #: includes/emails/functions.php:193 includes/emails/template.php:214
6327
  msgid "A %s purchase has been made"
6328
  msgstr ""
6329
 
6330
+ #: includes/emails/functions.php:194 includes/emails/template.php:215
6331
  msgid "%s sold:"
6332
  msgstr ""
6333
 
6334
+ #: includes/emails/functions.php:196 includes/emails/template.php:217
6335
  msgid "Purchased by: "
6336
  msgstr ""
6337
 
6338
+ #: includes/emails/functions.php:197 includes/emails/template.php:218
6339
  msgid "Amount: "
6340
  msgstr ""
6341
 
6342
+ #: includes/emails/functions.php:198 includes/emails/template.php:219
6343
  msgid "Payment Method: "
6344
  msgstr ""
6345
 
6346
+ #: includes/emails/functions.php:199 includes/emails/template.php:220
6347
  msgid "Thank you"
6348
  msgstr ""
6349
 
6947
  "Downloads version %3$s with no alternative available."
6948
  msgstr ""
6949
 
6950
+ #: includes/payments/actions.php:150
6951
  msgid "Status changed from %s to %s"
6952
  msgstr ""
6953
 
6954
+ #: includes/payments/functions.php:650
6955
  msgid "Complete"
6956
  msgstr ""
6957
 
6958
+ #: includes/payments/functions.php:1591
6959
  msgid "EDD Bot"
6960
  msgstr ""
6961
 
7607
  msgid "Password: %s"
7608
  msgstr ""
7609
 
7610
+ #: includes/user-functions.php:530
7611
+ msgid "Click here to log in"
7612
  msgstr ""
7613
 
7614
+ #: includes/user-functions.php:534
7615
+ msgid "To log in, visit: %s"
7616
+ msgstr ""
7617
+
7618
+ #: includes/user-functions.php:690 includes/user-functions.php:691
7619
  msgid "Verify your account"
7620
  msgstr ""
7621
 
7622
+ #: includes/user-functions.php:693
7623
  msgid ""
7624
  "Hello %s,\n"
7625
  "\n"
7629
  "Link missing? Visit the following URL: %s"
7630
  msgstr ""
7631
 
7632
+ #: includes/user-functions.php:817
7633
  msgid ""
7634
  "Sorry but your account verification link has expired. <a href=\"#\">Click "
7635
  "here</a> to request a new verification URL."
7636
  msgstr ""
7637
 
7638
+ #: includes/user-functions.php:846
7639
  msgid "You must be logged in to verify your account."
7640
  msgstr ""
7641
 
7642
+ #: includes/user-functions.php:846 includes/user-functions.php:850
7643
  msgid "Notice"
7644
  msgstr ""
7645
 
7646
+ #: includes/user-functions.php:850
7647
  msgid "Your account has already been verified."
7648
  msgstr ""
7649
 
7650
+ #: includes/user-functions.php:895
7651
  msgid "Invalid verification token provided."
7652
  msgstr ""
7653
 
7909
  msgid "The easiest way to sell digital products with WordPress."
7910
  msgstr ""
7911
 
7912
+ #: includes/admin/payments/view-order-details.php:514
7913
  msgctxt "Address City"
7914
  msgid "City:"
7915
  msgstr ""
7916
 
7917
+ #: includes/admin/payments/view-order-details.php:519
7918
  msgctxt "Zip / Postal code of address"
7919
  msgid "Zip / Postal Code:"
7920
  msgstr ""
7921
 
7922
+ #: includes/admin/payments/view-order-details.php:526
7923
  msgctxt "Address country"
7924
  msgid "Country:"
7925
  msgstr ""
7926
 
7927
+ #: includes/admin/payments/view-order-details.php:542
7928
  msgctxt "State / province of address"
7929
  msgid "State / Province:"
7930
  msgstr ""
7944
  msgid "Apply"
7945
  msgstr ""
7946
 
7947
+ #: includes/class-edd-html-elements.php:369
7948
  msgctxt "plural: Example: \"All Categories\""
7949
  msgid "All %s"
7950
  msgstr ""
7951
 
7952
+ #: includes/class-edd-html-elements.php:459
7953
  msgctxt "all dropdown items"
7954
  msgid "All"
7955
  msgstr ""
7956
 
7957
+ #: includes/class-edd-html-elements.php:460
7958
  msgctxt "no dropdown items"
7959
  msgid "None"
7960
  msgstr ""
readme.txt CHANGED
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce
7
  Requires at least: 4.0
8
  Tested up to: 4.7
9
- Stable Tag: 2.6.8
10
 
11
  License: GNU Version 2 or Any Later Version
12
 
@@ -187,6 +187,30 @@ Yes, through the addition of one or more of the add-on payment gateways, you can
187
 
188
  == Changelog ==
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  = 2.6.8, September 26, 2016 =
191
  * Fix: Category earnings report does not recover when the site has no download categories.
192
  * Fix: PHP notice caused by localized script loader.
6
  Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce
7
  Requires at least: 4.0
8
  Tested up to: 4.7
9
+ Stable Tag: 2.6.9
10
 
11
  License: GNU Version 2 or Any Later Version
12
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.6.9, October 20, 2016 =
191
+ * Fix: Negative fees associated with cart item do not affect cart item earnings.
192
+ * Fix: Z-index of tooltips needs to be increased.
193
+ * Fix: Products endpoint returns empty response on v2 of the API.
194
+ * Fix: Email property set twice in edd_insert_payment().
195
+ * Fix: "Email already in use" error if capitalization does not match.
196
+ * Fix: Chosen dropdowns cause a horizontal scroll bug in RTL.
197
+ * Fix: record_fees() clears fees in the session before purchases are completed.
198
+ * Fix: New user email strips login link on plain text email.
199
+ * Fix: Country and state chosen fields on view order details broken.
200
+ * Fix: Billing address fields are not saving in the payment details page when edited.
201
+ * Fix: Not all settings and data removed when uninstall is run.
202
+ * Fix: Don't output a label if one isn't set for text and select HTML elements.
203
+ * Fix: Date in payment_meta should match the payment date when modified.
204
+ * Fix: The edd_get_random_download() should return an item.
205
+ * Fix: Potential PHP warning when using EDD_Payment->save().
206
+ * Fix: Payment date is not included in the payment history export.
207
+ * New: API sales endpoints now include both user_id and customer_id.
208
+ * New: Add user_dropdown to HTML elements that support chosen.
209
+ * New: Add support for product variations in the HTML elements product_dropdown.
210
+ * Tweak: Change "Disable Guest Checkout" to "Require Login".
211
+ * Tweak: Typo "assocaited" in error messages when adding emails to a customer.
212
+ * Tweak: Resend Receipt button allows selecting which associated customer email address to send receipt to.
213
+
214
  = 2.6.8, September 26, 2016 =
215
  * Fix: Category earnings report does not recover when the site has no download categories.
216
  * Fix: PHP notice caused by localized script loader.
templates/edd.min.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";@font-face{font-family:EDD-Icons;src:url(fonts/EDD-Icons.eot);src:url(fonts/EDD-Icons.eot?#iefix) format('embedded-opentype'),url(fonts/EDD-Icons.woff) format('woff'),url(fonts/EDD-Icons.ttf) format('truetype'),url(fonts/EDD-Icons.svg#EDD-Icons) format('svg');font-weight:400;font-style:normal}[class*=edd-icon-],[class*=" edd-icon-"]{font-family:EDD-Icons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;width:auto;height:auto;line-height:1;-webkit-font-smoothing:antialiased}[class*=edd-icon-]:before,[class*=" edd-icon-"]:before{text-decoration:inherit;display:inline-block;cursor:default;speak:none}.edd-icon-spinner:before{content:"\71"}.edd-icon-ok:before{content:"\77"}.edd-icon-remove:before{content:"\65"}.edd-icon-remove-circle:before{content:"\72"}.edd-icon-ok-circle:before{content:"\74"}#edd_checkout_form_wrap label:after,.edd_clearfix:after{visibility:hidden;float:none;text-indent:-9999px;content:".";clear:both}.edd-icon-spin{display:inline-block;-moz-animation:edd-icon-spin 2s infinite linear;-o-animation:edd-icon-spin 2s infinite linear;-webkit-animation:edd-icon-spin 2s infinite linear;animation:edd-icon-spin 2s infinite linear}@-moz-keyframes edd-icon-spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes edd-icon-spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes edd-icon-spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes edd-icon-spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes edd-icon-spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.edd_clearfix:after{display:block}#edd_checkout_cart{text-align:left;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:left;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:0 0}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:right}#edd_checkout_cart td img{float:left;margin:0 8px 0 0;background:0 0;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-left:5px}.edd_discount_remove{display:inline-block;width:10px;height:11px;background:url(images/xit.gif) no-repeat;position:relative;top:3px}.edd_discount_remove:hover{background-position:-10px 0}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 21px;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap label:after{display:block;height:0}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-right:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 5px 0 0}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{height:32px;display:block;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px;width:auto;margin:0 3px 0 0;float:left;background:0 0;padding:0;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 20px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd_purchase_final_total p,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-left:none;border-right:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_cc_fields{border:1px solid #f0f0f0;background:#f9f9f9;position:relative}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_secure_site_wrapper{padding:4px 4px 4px 0;font-weight:700}#edd_secure_site_wrapper span.padlock:before{content:'\f160';display:inline-block;-webkit-font-smoothing:antialiased;font:400 20px/1 dashicons;vertical-align:top}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(images/tick.png);background-repeat:no-repeat;background-position:98% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:-2px;right:0;width:43px;height:32px;background-size:43px 32px!important}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap span.card-type.visa{background:url(images/icons/visa.gif) no-repeat}#edd_checkout_form_wrap span.card-type.mastercard{background:url(images/icons/mastercard.gif) no-repeat}#edd_checkout_form_wrap span.card-type.discover{background:url(images/icons/discover.gif) no-repeat}#edd_checkout_form_wrap span.card-type.amex{background:url(images/icons/americanexpress.gif) no-repeat}#edd_checkeout_form_wrap .edd-cart-ajax,#edd_checkout_form_wrap #edd-discount-loader{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper a.edd-add-to-cart.edd-has-js{display:inline-block}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;left:-35px}.edd-submit.button.edd-ajax-loading{padding-right:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label,a.edd-add-to-cart .edd-loading{opacity:0;filter:alpha(opacity=0)}a.edd-add-to-cart .edd-loading{position:absolute;left:50%;top:50%}a.edd-add-to-cart .edd-add-to-cart-label,a.edd-add-to-cart .edd-loading{-webkit-transition:.1s opacity!important;-moz-transition:.1s opacity!important;-ms-transition:.1s opacity!important;-o-transition:.1s opacity!important;transition:.1s opacity!important}.edd-add-to-cart[data-edd-loading] .edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd-cart-ajax,body.edd_receipt_page:before{position:relative}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked,table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:left;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}#edd_login_form .edd-input,#edd_login_form label,#edd_profile_editor_form label,#edd_register_form .edd-input,#edd_register_form label{display:inline-block;width:200px}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt td,table#edd_purchase_receipt th,table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th{text-align:left}table#edd_purchase_receipt_products li{list-style:none;margin:0 0 8px 10px}table#edd_purchase_receipt ul,table#edd_purchase_receipt_products ul.edd_purchase_receipt_files{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:left;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:left;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-left:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:0 0!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-left:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,input[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.edd-submit.button:focus,input[type=submit].edd-submit:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.edd-submit.button:focus,.edd-submit.button:hover,input[type=submit].edd-submit:focus,input[type=submit].edd-submit:hover{color:#333;text-decoration:none}.edd-submit.button:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_download{float:left}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}.edd-cart-ajax{margin:0 8px 0 4px;top:2px;background:0 0;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax::before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:1px solid #E6DB55;margin:0 0 21px;background:#FFFFE0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.edd-alert{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}
1
+ @charset "UTF-8";@font-face{font-family:EDD-Icons;src:url(fonts/EDD-Icons.eot);src:url(fonts/EDD-Icons.eot?#iefix) format('embedded-opentype'),url(fonts/EDD-Icons.woff) format('woff'),url(fonts/EDD-Icons.ttf) format('truetype'),url(fonts/EDD-Icons.svg#EDD-Icons) format('svg');font-weight:400;font-style:normal}[class*=edd-icon-],[class*=" edd-icon-"]{font-family:EDD-Icons;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;width:auto;height:auto;line-height:1;-webkit-font-smoothing:antialiased}[class*=edd-icon-]:before,[class*=" edd-icon-"]:before{text-decoration:inherit;display:inline-block;cursor:default;speak:none}.edd-icon-spinner:before{content:"\71"}.edd-icon-ok:before{content:"\77"}.edd-icon-remove:before{content:"\65"}.edd-icon-remove-circle:before{content:"\72"}.edd-icon-ok-circle:before{content:"\74"}#edd_checkout_form_wrap label:after,.edd_clearfix:after{visibility:hidden;float:none;text-indent:-9999px;content:".";clear:both}.edd-icon-spin{display:inline-block;-moz-animation:edd-icon-spin 2s infinite linear;-o-animation:edd-icon-spin 2s infinite linear;-webkit-animation:edd-icon-spin 2s infinite linear;animation:edd-icon-spin 2s infinite linear}@-moz-keyframes edd-icon-spin{0%{-moz-transform:rotate(0)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes edd-icon-spin{0%{-webkit-transform:rotate(0)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes edd-icon-spin{0%{-o-transform:rotate(0)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes edd-icon-spin{0%{-ms-transform:rotate(0)}100%{-ms-transform:rotate(359deg)}}@keyframes edd-icon-spin{0%{transform:rotate(0)}100%{transform:rotate(359deg)}}.edd_clearfix:after{display:block}#edd_checkout_cart{text-align:left;width:100%;border:none;margin:0 0 21px;table-layout:auto}#edd_checkout_cart td,#edd_checkout_cart th{text-align:left;border:1px solid #eee;color:#666;padding:.5em 1.387em}#edd_checkout_cart .edd_cart_header_row th{background:#fafafa;padding:1.387em}#edd_checkout_cart .edd_cart_discount_row th,#edd_checkout_cart .edd_cart_tax_row th{background:0 0}#edd_checkout_cart th{font-weight:700}#edd_checkout_cart td{line-height:25px;vertical-align:middle;background:#fff}#edd_checkout_cart td.edd_cart_actions,#edd_checkout_cart td:last-child,#edd_checkout_cart th.edd_cart_actions,#edd_checkout_cart th.edd_cart_total,#edd_checkout_cart th:last-child{text-align:right}#edd_checkout_cart td img{float:left;margin:0 8px 0 0;background:0 0;padding:0;border:none}#edd_checkout_cart input.edd-item-quantity{width:3em;padding:2px}#edd_checkout_cart .edd_discount{display:inline-block;margin-left:5px}.edd_discount_remove{display:inline-block;width:10px;height:11px;background:url(images/xit.gif) no-repeat;position:relative;top:3px}.edd_discount_remove:hover{background-position:-10px 0}#edd_checkout_cart br{display:none}#edd_checkout_cart a.edd-cart-saving-button{font-weight:400;text-decoration:none}#edd_checkout_form_wrap legend{display:block;font-size:120%;line-height:1;font-weight:700;width:100%;margin:0 0 21px;padding:0}#edd_checkout_form_wrap label{font-weight:700;display:block;position:relative;line-height:100%;font-size:95%;margin:0 0 5px}#edd_checkout_form_wrap label:after{display:block;height:0}#edd_checkout_form_wrap span.edd-description{color:#666;font-size:80%;display:block;margin:0 0 5px}#edd_checkout_form_wrap input.edd-input,#edd_checkout_form_wrap textarea.edd-input{display:inline-block;width:70%}#edd_checkout_form_wrap select.edd-select{display:block;width:60%}#edd_checkout_form_wrap select.edd-select.edd-select-small{display:inline;width:auto}#edd_checkout_form_wrap input.edd-input.error,#edd_checkout_form_wrap textarea.edd-input.error{border-color:#c4554e}#edd_checkout_form_wrap>p{margin:0 0 21px}#edd_checkout_form_wrap span.edd-required-indicator{color:#b94a48;display:inline}#edd_checkout_form_wrap input[type=text],#edd_checkout_form_wrap input[type=email],#edd_checkout_form_wrap input[type=password],#edd_checkout_form_wrap input[type=tel],#edd_checkout_form_wrap textarea{padding:4px 6px}#edd_checkout_form_wrap input[type=radio]{border:none;margin-right:5px}#edd_checkout_form_wrap input[type=checkbox]{display:inline-block;margin:0 5px 0 0}#edd_checkout_form_wrap input[type=checkbox]+label,#edd_checkout_form_wrap input[type=checkbox]+label:after{display:inline}#edd_checkout_form_wrap .edd-payment-icons{height:32px;display:block;margin:0 0 8px}#edd_checkout_form_wrap .edd-payment-icons img.payment-icon{max-height:32px;width:auto;margin:0 3px 0 0;float:left;background:0 0;padding:0;border:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#edd_checkout_form_wrap #edd-payment-mode-wrap label{display:inline-block;margin:0 20px 0 0}#edd_checkout_form_wrap #edd-payment-mode-wrap .edd-payment-mode-label{font-weight:700;display:inline-block;position:relative;margin-bottom:5px}#edd_checkout_form_wrap fieldset{border:1px solid #eee;padding:1.387em;margin:0 0 21px}#edd_checkout_form_wrap #edd_discount_code,#edd_checkout_form_wrap #edd_purchase_submit,#edd_checkout_form_wrap #edd_register_account_fields{padding:0;border:none}#edd_checkout_form_wrap fieldset fieldset{margin:0;border:none;padding:0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount,#edd_checkout_form_wrap .edd-cart-adjustment{background:#fafafa;color:#666;padding:.5em 1.387em}#edd_checkout_form_wrap #edd-discount-code-wrap,#edd_checkout_form_wrap #edd_final_total_wrap,#edd_checkout_form_wrap #edd_show_discount{border:1px solid #eee}#edd_checkout_form_wrap .edd-cart-adjustment{padding:1.387em}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-input,#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{display:inline-block}#edd_checkout_form_wrap .edd-cart-adjustment input.edd-submit{padding:3px 12px;margin-bottom:2px}#edd_checkout_form_wrap #edd_purchase_final_total p,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_login_password,#edd_checkout_form_wrap fieldset#edd_register_account_fields p.edd_register_password{margin:0}#edd_checkout_form_wrap #edd-discount-error-wrap{width:100%;display:inline-block;margin:1em 0 0}#edd_checkout_form_wrap #edd-login-account-wrap,#edd_checkout_form_wrap #edd-new-account-wrap{margin:-1.387em -1.387em 21px;border-left:none;border-right:none;border-top:none}#edd_checkout_form_wrap #edd_payment_mode_select,#edd_checkout_form_wrap fieldset#edd_register_fields #edd_checkout_user_info{margin-bottom:21px}#edd_checkout_form_wrap fieldset#edd_register_account_fields legend{padding-top:11px}#edd_checkout_form_wrap fieldset#edd_cc_fields{border:1px solid #f0f0f0;background:#f9f9f9;position:relative}#edd_checkout_form_wrap fieldset#edd_cc_fields legend{border:none;padding:0}#edd_checkout_form_wrap fieldset p:last-child{margin-bottom:0}#edd_checkout_form_wrap fieldset#edd_cc_fields #edd-card-number-wrap{margin-top:5px}#edd_checkout_form_wrap #edd_purchase_final_total{margin:21px 0}#edd_secure_site_wrapper{padding:4px 4px 4px 0;font-weight:700}#edd_secure_site_wrapper span.padlock:before{content:'\f160';display:inline-block;-webkit-font-smoothing:antialiased;font:400 20px/1 dashicons;vertical-align:top}#edd_checkout_form_wrap input.edd-input.card-number.valid{background-image:url(images/tick.png);background-repeat:no-repeat;background-position:98% 50%}#edd_checkout_form_wrap span.exp-divider{display:inline}#edd_checkout_form_wrap span.card-type{position:absolute;top:-2px;right:0;width:43px;height:32px;background-size:43px 32px!important}#edd_checkout_form_wrap span.card-type.off{display:none}#edd_checkout_form_wrap span.card-type.visa{background:url(images/icons/visa.png) no-repeat}#edd_checkout_form_wrap span.card-type.mastercard{background:url(images/icons/mastercard.png) no-repeat}#edd_checkout_form_wrap span.card-type.discover{background:url(images/icons/discover.png) no-repeat}#edd_checkout_form_wrap span.card-type.amex{background:url(images/icons/americanexpress.png) no-repeat}#edd_checkeout_form_wrap .edd-cart-ajax,#edd_checkout_form_wrap #edd-discount-loader{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.edd-amazon-profile-wrapper{font-size:12px}.edd-amazon-profile-name{font-weight:600}.edd-amazon-logout{font-size:10px;line-height:12px}.edd-amazon-logout a{cursor:pointer}#edd-amazon-address-box,#edd-amazon-wallet-box{height:228px;width:350px}#edd-amazon-address-box{margin-bottom:15px}@media only screen and (min-width:768px){#edd-amazon-address-box,#edd-amazon-wallet-box{width:100%;height:228px}}.edd_purchase_submit_wrapper{position:relative}.edd_purchase_submit_wrapper a.edd-add-to-cart{text-decoration:none;display:none;position:relative;overflow:hidden}.edd_purchase_submit_wrapper a.edd-add-to-cart.edd-has-js{display:inline-block}.edd_purchase_submit_wrapper .edd-cart-ajax{display:none;position:relative;left:-35px}.edd-submit.button.edd-ajax-loading{padding-right:30px}.edd-add-to-cart .edd-add-to-cart-label{opacity:1;filter:alpha(opacity=100)}.edd-add-to-cart[data-edd-loading] .edd-add-to-cart-label,a.edd-add-to-cart .edd-loading{opacity:0;filter:alpha(opacity=0)}a.edd-add-to-cart .edd-loading{position:absolute;left:50%;top:50%}a.edd-add-to-cart .edd-add-to-cart-label,a.edd-add-to-cart .edd-loading{-webkit-transition:.1s opacity!important;-moz-transition:.1s opacity!important;-ms-transition:.1s opacity!important;-o-transition:.1s opacity!important;transition:.1s opacity!important}.edd-add-to-cart[data-edd-loading] .edd-loading{opacity:1;filter:alpha(opacity=100)}.edd-cart-added-alert{color:#567622;display:block;position:absolute}.edd-cart-ajax,body.edd_receipt_page:before{position:relative}.edd_form input.edd-input.required,.edd_form select.edd-select.required{color:#000}body.edd_receipt_page{background-color:#fff;color:#141412;margin:0;font-family:Helvetica,sans-serif;font-size:12px}#edd_user_history .edd_purchase_status.cancelled,#edd_user_history .edd_purchase_status.failed,#edd_user_history .edd_purchase_status.pending,#edd_user_history .edd_purchase_status.revoked,table#edd_purchase_receipt .edd_receipt_payment_status.cancelled,table#edd_purchase_receipt .edd_receipt_payment_status.failed,table#edd_purchase_receipt .edd_receipt_payment_status.pending,table#edd_purchase_receipt .edd_receipt_payment_status.revoked{color:#f73f2e}body.edd_receipt_page #edd_receipt_wrapper{width:660px;margin:0 auto;padding:50px 0}body.edd_receipt_page table{display:table;width:100%;border-bottom:1px solid #ededed;border-collapse:collapse;border-spacing:0;font-size:14px;line-height:2;margin:0 0 20px}body.edd_receipt_page td,body.edd_receipt_page th{display:table-cell;text-align:left;border-top:1px solid #ededed;padding:6px 10px;font-weight:400}body.edd_receipt_page th{font-weight:700;text-transform:uppercase}body.edd_receipt_page h3{font-size:22px;margin:40px 0 5px;clear:both;display:block;font-weight:700}#edd_login_form .edd-input,#edd_login_form label,#edd_profile_editor_form label,#edd_register_form .edd-input,#edd_register_form label{display:inline-block;width:200px}body.edd_receipt_page li{list-style:none}table#edd_purchase_receipt,table#edd_purchase_receipt_products{width:100%}table#edd_purchase_receipt td,table#edd_purchase_receipt th,table#edd_purchase_receipt_products td,table#edd_purchase_receipt_products th{text-align:left}table#edd_purchase_receipt_products li{list-style:none;margin:0 0 8px 10px}table#edd_purchase_receipt ul,table#edd_purchase_receipt_products ul.edd_purchase_receipt_files{margin:0;padding:0}table#edd_purchase_receipt li.edd_download_file{list-style:none;margin:0 0 8px}table#edd_purchase_receipt_products .edd_purchase_receipt_product_notes{font-style:italic}table#edd_purchase_receipt_products .edd_purchase_receipt_product_name{font-weight:700}table#edd_purchase_receipt_products .edd_bundled_product_name{font-style:italic;font-weight:700}#edd_user_history{text-align:left;width:100%;border-top:1px solid #f0f0f0;border-bottom:none}#edd_user_history td,#edd_user_history th{text-align:left;padding:3px 5px;border-bottom:1px solid #f0f0f0;border-top:none}#edd_user_history th{font-weight:700;background:#f5f5f5}#edd_user_history td{line-height:25px;vertical-align:middle}#edd_profile_editor_form p{margin-bottom:8px}#edd_profile_editor_form .edd-profile-emails{list-style-type:none;display:inline-table;margin-left:0}#edd_profile_editor_form .edd-profile-email{width:auto}#edd_profile_editor_form .edd-profile-email .actions{display:none}#edd_profile_editor_form .edd-profile-email:hover>span{display:inline-block}.edd_added_to_cart_alert{padding:5px;font-size:14px;border:1px solid #046a9e;background:#9ecce2;color:#333;margin:8px 0}.edd_added_to_cart_alert a.edd_alert_checkout_link{color:#000!important}input.edd_submit_plain{background:0 0!important;border:none!important;padding:0!important;display:inline;cursor:pointer}.single-download .edd_download_purchase_form{margin-bottom:1.387em}.edd_download_purchase_form .edd_download_quantity_wrapper{margin:0 0 .5em}.edd_download_purchase_form .edd_download_quantity_wrapper .edd-item-quantity{width:75px}.edd_download_purchase_form .edd_price_options{margin:0 0 15px}.edd_download_purchase_form .edd_price_options ul{margin:0;padding:0;list-style:none}.edd_download_purchase_form .edd_price_options li{display:block;padding:0;margin:0}.edd_download_purchase_form .edd_price_options span{display:inline;padding:0;margin:0}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper{padding-left:18px}.edd_download_purchase_form .edd_price_options .edd_download_quantity_wrapper *{font-size:80%}.edd_download_purchase_form .edd_price_options input.edd-item-quantity{display:inline;width:50px;max-width:90%}#edd-purchase-button,.edd-submit,input[type=submit].edd-submit{display:inline-block;padding:6px 12px;margin:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.edd-submit.button:focus,input[type=submit].edd-submit:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.edd-submit.button:focus,.edd-submit.button:hover,input[type=submit].edd-submit:focus,input[type=submit].edd-submit:hover{color:#333;text-decoration:none}.edd-submit.button:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.edd-submit.plain{padding:0}.edd-submit.button,.edd-submit.button.gray,.edd-submit.button:visited{color:#333;background:#f0f0f0;border-color:#ccc}.edd-submit.button.gray:active,.edd-submit.button.gray:focus,.edd-submit.button.gray:hover,.edd-submit.button:active,.edd-submit.button:focus,.edd-submit.button:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.gray:active{background-image:none}.edd-submit.button.white{color:#333;background:#fff;border-color:#ccc}.edd-submit.button.white:active,.edd-submit.button.white:focus,.edd-submit.button.white:hover{color:#333;background:#ebebeb;border-color:#adadad}.edd-submit.button.white:active{background-image:none}.edd-submit.button.blue{color:#fff;background:#428bca;border-color:#357ebd}.edd-submit.button.blue.active,.edd-submit.button.blue:focus,.edd-submit.button.blue:hover{color:#fff;background:#3276b1;border-color:#285e8e}.edd-submit.button.blue.active{background-image:none}.edd-submit.button.red{color:#fff;background:#d9534f;border-color:#d43f3a}.edd-submit.button.red:active,.edd-submit.button.red:focus,.edd-submit.button.red:hover{color:#fff;background:#d2322d;border-color:#ac2925}.edd-submit.button.red:active{background-image:none}.edd-submit.button.green{color:#fff;background:#5cb85c;border-color:#4cae4c}.edd-submit.button.green:active,.edd-submit.button.green:focus,.edd-submit.button.green:hover{color:#fff;background:#47a447;border-color:#398439}.edd-submit.button.green:active{background-image:none}.edd-submit.button.yellow{color:#fff;background:#f0ad4e;border-color:#eea236}.edd-submit.button.yellow:active,.edd-submit.button.yellow:focus,.edd-submit.button.yellow:hover{color:#fff;background:#ed9c28;border-color:#d58512}.edd-submit.button.yellow:active{background-image:none}.edd-submit.button.orange{color:#fff;background:#ed9c28;border-color:#e3921e}.edd-submit.button.orange:active,.edd-submit.button.orange:focus,.edd-submit.button.orange:hover{color:#fff;background:#e59016;border-color:#d58512}.edd-submit.button.orange:active{background-image:none}.edd-submit.button.dark-gray{color:#fff;background:#363636;border-color:#222}.edd-submit.button.dark-gray:active,.edd-submit.button.dark-gray:focus,.edd-submit.button.dark-gray:hover{color:#fff;background:#333;border-color:#adadad}.edd-submit.button.dark-gray:active{background-image:none}.edd_download{float:left}.edd_download_columns_1 .edd_download{width:100%}.edd_download_columns_2 .edd_download{width:50%}.edd_download_columns_0 .edd_download,.edd_download_columns_3 .edd_download{width:33%}.edd_download_columns_4 .edd_download{width:25%}.edd_download_columns_5 .edd_download{width:20%}.edd_download_columns_6 .edd_download{width:16.6%}.edd_download_inner{padding:0 8px 8px;margin:0 0 10px}.edd_download_image{max-width:100%}.edd_download .edd_price{margin-bottom:10px}.edd-cart-ajax{margin:0 8px 0 4px;top:2px;background:0 0;border:none;padding:0}.edd-cart-number-of-items{font-style:italic;color:grey}.edd-cart-meta.edd_subtotal{font-weight:700;font-style:italic}.edd-cart-meta.edd_cart_tax{font-size:1em;font-style:italic}.edd-cart-meta.edd_cart_tax::before{font-style:normal}.edd-cart-meta.edd_total{font-weight:700}.edd-cart-meta{padding:2px 5px}.edd-cart-meta.edd_subtotal,.edd-cart-meta.edd_total{background-color:#f9f9f9}.edd_errors:not(.edd-alert){-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:1px solid #E6DB55;margin:0 0 21px;background:#FFFFE0;color:#333}.edd_error{padding:10px}p.edd_error{margin:0!important}.edd_success:not(.edd-alert){-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;border:1px solid #b3ce89;margin:20px 0;background:#d5eab3;color:#567622;padding:6px 8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.edd-alert{-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;margin-bottom:20px;padding:10px;border:1px solid transparent;vertical-align:middle}.edd-alert p{padding:0}.edd-alert p:not(:last-child){margin-bottom:5px}.edd-alert p:last-child{margin-bottom:0}.edd-alert-error{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.edd-alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.edd-alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.edd-alert-warn{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}
uninstall.php CHANGED
@@ -52,6 +52,7 @@ if( edd_get_option( 'uninstall_on_delete' ) ) {
52
  // Delete Terms.
53
  if ( $terms ) {
54
  foreach ( $terms as $term ) {
 
55
  $wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $term->term_taxonomy_id ) );
56
  $wpdb->delete( $wpdb->terms, array( 'term_id' => $term->term_id ) );
57
  }
@@ -73,6 +74,19 @@ if( edd_get_option( 'uninstall_on_delete' ) ) {
73
  /** Delete all the Plugin Options */
74
  delete_option( 'edd_settings' );
75
  delete_option( 'edd_version' );
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  /** Delete Capabilities */
78
  EDD()->roles->remove_caps();
@@ -94,5 +108,7 @@ if( edd_get_option( 'uninstall_on_delete' ) ) {
94
 
95
  // Remove any transients we've left behind
96
  $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_edd\_%'" );
 
97
  $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_timeout\_edd\_%'" );
 
98
  }
52
  // Delete Terms.
53
  if ( $terms ) {
54
  foreach ( $terms as $term ) {
55
+ $wpdb->delete( $wpdb->term_relationships, array( 'term_taxonomy_id' => $term->term_taxonomy_id ) );
56
  $wpdb->delete( $wpdb->term_taxonomy, array( 'term_taxonomy_id' => $term->term_taxonomy_id ) );
57
  $wpdb->delete( $wpdb->terms, array( 'term_id' => $term->term_id ) );
58
  }
74
  /** Delete all the Plugin Options */
75
  delete_option( 'edd_settings' );
76
  delete_option( 'edd_version' );
77
+ delete_option( 'edd_use_php_sessions' );
78
+ delete_option( 'edd_default_api_version' );
79
+ delete_option( 'wp_edd_customers_db_version' );
80
+ delete_option( 'wp_edd_customermeta_db_version' );
81
+ delete_option( 'edd_completed_upgrades' );
82
+ delete_option( 'widget_edd_cart_widget' );
83
+ delete_option( 'widget_edd_categories_tags_widget' );
84
+ delete_option( 'widget_edd_product_details' );
85
+ delete_option( '_edd_table_check' );
86
+ delete_option( 'edd_tracking_notice' );
87
+ delete_option( 'edd_earnings_total' );
88
+ delete_option( 'edd_tax_rates' );
89
+ delete_option( 'edd_version_upgraded_from' );
90
 
91
  /** Delete Capabilities */
92
  EDD()->roles->remove_caps();
108
 
109
  // Remove any transients we've left behind
110
  $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_edd\_%'" );
111
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_site\_transient\_edd\_%'" );
112
  $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_transient\_timeout\_edd\_%'" );
113
+ $wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE '\_site\_transient\_timeout\_edd\_%'" );
114
  }