diff --git a/assets/js/admin-scripts.min.js b/assets/js/admin-scripts.min.js
index 557ac5675dc..317c262235c 100755
--- a/assets/js/admin-scripts.min.js
+++ b/assets/js/admin-scripts.min.js
@@ -1,2 +1 @@
-function edd_attach_tooltips(e){e.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}jQuery(document).ready(function(e){var t=e(".edd-help-tip");edd_attach_tooltips(t);var d={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(t){var d=highest=1;return t.parent().find(".edd_repeatable_row").each(function(){var t=e(this).data("key");parseInt(t)>highest&&(highest=t)}),d=highest+=1,clone=t.clone(),clone.find("select").each(function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())}),clone.removeClass("edd_add_blank"),clone.attr("data-key",d),clone.find("input, select, textarea").val("").each(function(){var t=e(this).attr("name"),a=e(this).attr("id");t&&(t=t.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),e(this).attr("name",t)),e(this).attr("data-key",d),"undefined"!=typeof a&&(a=a.replace(/(\d+)/,parseInt(d)),e(this).attr("id",a))}),clone.find("span.edd_price_id").each(function(){e(this).text(parseInt(d))}),clone.find("span.edd_file_id").each(function(){e(this).text(parseInt(d))}),clone.find(".edd_repeatable_default_input").each(function(){e(this).val(parseInt(d)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){e(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){e(document.body).on("click",".submit .edd_add_repeatable",function(t){t.preventDefault();var a=e(this),n=a.parent().parent().prev(".edd_repeatable_row"),i=d.clone_repeatable(n);i.insertAfter(n).find("input, textarea, select").filter(":visible").eq(0).focus(),i.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}),i.find(".edd-select-chosen").css("width","100%"),i.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var t=0;e(this).find(".edd_repeatable_row").each(function(){e(this).find("input.edd_repeatable_index").each(function(){e(this).val(t)}),t++})}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(t){t.preventDefault();var d,a,n,i=e(this).parents(".edd_repeatable_row"),o=i.parent().find(".edd_repeatable_row").length,r=e(this).data("type"),s="div.edd_repeatable_"+r+"s";if(d=e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?i.next(".edd_repeatable_row"):i.prev(".edd_repeatable_row"),a=d.find("select, input, textarea, button").filter(":visible"),n=a.eq(0),"price"===r){var c=i.data("key");e('.edd_repeatable_condition_field option[value="'+c+'"]').remove()}if(o>1)e("input, select",i).val(""),i.fadeOut("fast").remove(),n.focus();else switch(r){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",i).val("");break;default:alert(edd_vars.one_field_min)}e(s).each(function(t){e(this).find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",d).attr("id",d)})})})},type:function(){e(document.body).on("change","#_edd_product_type",function(t){var d=e("#edd_products"),a=e("#edd_download_files"),n=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(d.show(),a.hide(),n.hide()):(d.hide(),a.show(),n.show())})},prices:function(){e(document.body).on("change","#edd_variable_pricing",function(t){var d=e(this).is(":checked"),a=e("#edd_regular_price_field"),n=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),i=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");d?(a.hide(),n.show(),i.addClass("has-variable-pricing")):(a.show(),n.hide(),i.removeClass("has-variable-pricing"))})},files:function(){var t;window.formfield="",e(document.body).on("click",".edd_upload_file_button",function(a){a.preventDefault();var n=e(this);return window.formfield=e(this).closest(".edd_repeatable_upload_wrapper"),t?void t.open():(t=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:"0"==e(this).data("multiple")?!1:!0}),t.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),t.on("insert",function(){var a=t.state().get("selection");a.each(function(t,a){t=t.toJSON();var n="image"===t.type?e(".attachment-display-settings .size option:selected").val():!1,i=t.url,o=t.title.length>0?t.title:t.filename;if(n&&"undefined"!=typeof t.sizes[n]&&(i=t.sizes[n].url),"image"===t.type&&(o=n&&"undefined"!=typeof t.sizes[n]?o+"-"+t.sizes[n].width+"x"+t.sizes[n].height:o+"-"+t.width+"x"+t.height),0===a)window.formfield.find(".edd_repeatable_attachment_id_field").val(t.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(i),window.formfield.find(".edd_repeatable_name_field").val(o);else{var r=window.formfield,s=d.clone_repeatable(r);s.find(".edd_repeatable_attachment_id_field").val(t.id),s.find(".edd_repeatable_thumbnail_size_field").val(n),s.find(".edd_repeatable_upload_field").val(i),s.find(".edd_repeatable_name_field").val(o),s.insertAfter(r)}})}),void t.open())});var t;window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var t=e(this).parents(".edd_repeatable_row").data("key"),d=e(this).val(),a=e(".edd_repeatable_condition_field option[value="+t+"]");a.length>0?a.text(d):e(".edd_repeatable_condition_field").append(e("").attr("value",t).text(d))})}};e(document.body).on("click",".toggle-custom-price-option-section",function(t){t.preventDefault();var d=e(this).html()==edd_vars.show_advanced_settings?!0:!1;d?e(this).html(edd_vars.hide_advanced_settings):e(this).html(edd_vars.show_advanced_settings);var a=e(this).parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle();var n;n=d?e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-custom-price-option-sections-wrap")):e(":input:not(input[type=button],input[type=submit],button):visible:first",a.siblings(".edd-repeatable-row-standard-fields")),n.focus()}),d.init();var a=e(".edd_datepicker");if(a.length>0){var n="mm/dd/yy";a.datepicker({dateFormat:n})}var i={init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){e('select[name="edd-payment-address[0][country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"edd-payment-address[0][state]"};return e.post(ajaxurl,d,function(t){var d=e("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");e("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==t?d.replaceWith(''):d.replaceWith(t)}),!1})},remove_download:function(){e("#edd-purchased-files").on("click",".edd-order-remove-download",function(){var t=e(document.body).find("#edd-purchased-files > .row:not(.header)").length;if(1===t)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var d=e(this).data("key"),a=(e(".edd-payment-id").val(),e('input[name="edd-payment-details-downloads['+d+'][id]"]').val()),n=e('input[name="edd-payment-details-downloads['+d+'][price_id]"]').val(),i=e('input[name="edd-payment-details-downloads['+d+'][quantity]"]').val(),o=e('input[name="edd-payment-details-downloads['+d+'][amount]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][tax]"]'))var r=e('input[name="edd-payment-details-downloads['+d+'][tax]"]').val();if(e('input[name="edd-payment-details-downloads['+d+'][fees]"]'))var r=e.parseJSON(e('input[name="edd-payment-details-downloads['+d+'][fees]"]').val());var s=e('input[name="edd-payment-removed"]').val();s=e.parseJSON(s),s.length<1&&(s={});var c=[{id:a,price_id:n,quantity:i,amount:o,cart_index:d}];s[d]=c,e('input[name="edd-payment-removed"]').val(JSON.stringify(s)),e(this).parent().parent().remove(),r&&r.length&&e.each(r,function(t,d){e('*li[data-fee-id="'+d+'"]').remove()}),e("#edd-payment-downloads-changed").val(1),e(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){e("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-change-customer"),a=e(this).hasClass("edd-payment-change-customer-cancel");d?(e(".customer-info").hide(),e(".change-customer").show(),e(".edd-payment-change-customer-input").css("width","auto")):a&&(e(".customer-info").show(),e(".change-customer").hide())})},new_customer:function(){e("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-new-customer"),a=e(this).hasClass("edd-payment-new-customer-cancel");d?(e(".customer-info").hide(),e(".new-customer").show()):a&&(e(".customer-info").show(),e(".new-customer").hide());var d=e("#edd-new-customer");e(".new-customer").is(":visible")?d.val(1):d.val(0)})},add_download:function(){e(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(t){t.preventDefault();var d=e("#edd_order_download_select"),a=e("#edd-order-download-quantity"),n=e("#edd-order-download-price"),i=e("#edd-order-download-tax"),o=e(".edd_price_options_select option:selected"),r=d.val(),s=d.find(":selected").text(),c=a.val(),l=n.val(),p=i.val(),u=o.val(),_=o.text();if(1>r)return!1;if(l||(l=0),l=parseFloat(l),isNaN(l))return alert(edd_vars.numeric_item_price),!1;if(p=parseFloat(p),isNaN(p))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(c)))return alert(edd_vars.numeric_quantity),!1;_&&(s=s+" - "+_);var m=e("#edd-purchased-files div.row").length,f=e("#edd-purchased-files div.row:last").clone();f.find(".download span").html(''),f.find(".download span a").text(s),f.find(".edd-payment-details-download-item-price").val(l.toFixed(edd_vars.currency_decimals)),f.find(".edd-payment-details-download-item-tax").val(p.toFixed(edd_vars.currency_decimals)),f.find("input.edd-payment-details-download-id").val(r),f.find("input.edd-payment-details-download-price-id").val(u);var h=l*c+p;h=h.toFixed(edd_vars.currency_decimals),f.find("span.edd-payment-details-download-amount").text(h),f.find("input.edd-payment-details-download-amount").val(h),f.find("input.edd-payment-details-download-quantity").val(c),f.find("input.edd-payment-details-download-has-log").val(0),f.find(".edd-copy-download-link-wrapper").remove(),f.find("input").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(m)+"]"),e(this).attr("name",t).attr("id",t)}),f.find("a.edd-order-remove-download").attr("data-key",parseInt(m)),e("#edd-payment-downloads-changed").val(1),e(f).insertAfter("#edd-purchased-files div.row:last"),e(".edd-order-payment-recalc-totals").show(),e(".edd-add-download-field").val("")})},edit_price:function(){e(document.body).on("change keyup",".edd-payment-item-input",function(){var t=e(this).parents("ul.edd-purchased-files-list-wrapper");e(".edd-order-payment-recalc-totals").show();var d=t.find("input.edd-payment-details-download-quantity").val().replace(edd_vars.thousands_separator,""),a=t.find("input.edd-payment-details-download-item-price").val().replace(edd_vars.thousands_separator,""),n=t.find("input.edd-payment-details-download-item-tax").val().replace(edd_vars.thousands_separator,"");if(a=parseFloat(a),isNaN(a))return alert(edd_vars.numeric_item_price),!1;n=parseFloat(n),isNaN(n)&&(n=0),isNaN(parseInt(d))&&(d=1);var i=a*d+n;i=i.toFixed(edd_vars.currency_decimals),t.find("input.edd-payment-details-download-amount").val(i),t.find("span.edd-payment-details-download-amount").text(i)})},recalculate_total:function(){e("#edd-order-recalc-total").on("click",function(t){t.preventDefault();var d=0,a=0,n=e("#edd-purchased-files .row input.edd-payment-details-download-amount"),i=e("#edd-purchased-files .row input.edd-payment-details-download-item-tax");n.length&&n.each(function(){d+=parseFloat(e(this).val())}),i.length&&i.each(function(){a+=parseFloat(e(this).val())}),e(".edd-payment-fees").length&&e(".edd-payment-fees span.fee-amount").each(function(){d+=parseFloat(e(this).data("fee"))}),e("input[name=edd-payment-total]").val(d.toFixed(edd_vars.currency_decimals)),e("input[name=edd-payment-tax]").val(a.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){e(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var t=e(this),d=t.val();if(parseInt(d)>0){var a={action:"edd_check_for_download_price_variations",download_id:d};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(d){e(".edd_price_options_select").remove(),e(d).insertAfter(t.next())}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}})},add_note:function(){e("#edd-add-payment-note").on("click",function(t){t.preventDefault();var d={action:"edd_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#edd-payment-note").val()};if(d.note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-payment-notes-inner").append(t),e(".edd-no-payment-notes").hide(),e("#edd-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=e("#edd-payment-note").css("border-color");e("#edd-payment-note").css("border-color","red"),setTimeout(function(){e("#edd-payment-note").css("border-color",a)},500)}})},remove_note:function(){e(document.body).on("click",".edd-delete-payment-note",function(t){if(t.preventDefault(),confirm(edd_vars.delete_payment_note)){var d={action:"edd_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){return e("#edd-payment-note-"+d.note_id).remove(),e(".edd-payment-note").length||e(".edd-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},resend_receipt:function(){var t=e(".edd-order-resend-receipt-addresses");e(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),t.slideDown()}),e(document.body).on("change",".edd-order-resend-receipt-email",function(){var t=e("#edd-select-receipt-email").prop("href")+"&email="+e(this).val();confirm(edd_vars.resend_receipt)&&(window.location=t)}),e(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){e(document.body).on("click",".edd-copy-download-link",function(t){t.preventDefault();var d=e(this),a={action:"edd_get_file_download_link",payment_id:e('input[name="edd_payment_id"]').val(),download_id:d.data("download-id"),price_id:d.data("price-id")};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(t){return e("#edd-download-link").dialog({width:400}).html('"),e("#edd-download-link-textarea").focus().select(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})})}};i.init();var o={init:function(){this.type_select(),this.product_requirements()},type_select:function(){e("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var t=e(this).val();e(".edd-amount-description").hide(),e(".edd-amount-description."+t+"-discount").show()})},product_requirements:function(){e("#products").change(function(){var t=e("#edd-discount-product-conditions");e(this).val()?t.show():t.hide()})}};o.init();var r={init:function(){this.date_options(),this.customers_export()},date_options:function(){e("#edd-graphs-date-options").change(function(){var t=e(this),d=e("#edd-date-range-options");"other"===t.val()?d.show():d.hide()})},customers_export:function(){e("#edd_customer_export_download").change(function(){var t=e(this),d=e("option:selected",t).val(),a=e("#edd_customer_export_option");if("0"===t.val()?a.show():a.hide(),0!=parseInt(d)){var n={action:"edd_check_for_download_price_variations",download_id:d,all_prices:!0},i=e(".edd_price_options_select");e.post(ajaxurl,n,function(t){i.remove(),e("#edd_customer_export_download_chosen").after(t)})}else i.remove()})}};r.init();var s={init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var t=e(".edd-color-picker");if(t.length&&t.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var d=e(".edd_settings_upload_button");d.length>0&&(window.formfield="",e(document.body).on("click",d,function(t){t.preventDefault(),window.formfield=e(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(t){window.formfield?(imgurl=e("a","
"+t+"
").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(t),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var a;window.formfield="",e(document.body).on("click",".edd_settings_upload_button",function(t){t.preventDefault();var d=e(this);return window.formfield=e(this).parent().prev(),a?void a.open():(a=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:d.data("uploader_title"),button:{text:d.data("uploader_button_text")},multiple:!1}),a.on("menu:render:default",function(e){var t={};e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set(t)}),a.on("insert",function(){var e=a.state().get("selection");e.each(function(e,t){e=e.toJSON(),window.formfield.val(e.url)})}),void a.open())});var a;window.formfield=""}},taxes:function(){var t=e("select.edd-no-states");t.length&&t.closest("tr").addClass("hidden"),e('select[name="edd_settings[base_country]"]').change(function(){var t=e(this),d=t.closest("tr"),a={action:"edd_get_shop_states",country:e(this).val(),field_name:"edd_settings[base_state]"};return e.post(ajaxurl,a,function(e){"nostates"==e?d.next().addClass("hidden"):(d.next().removeClass("hidden"),d.next().find("select").replaceWith(e))}),!1}),e(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var t=e(this),d={action:"edd_get_shop_states",country:e(this).val(),field_name:t.attr("name").replace("country","state")};return e.post(ajaxurl,d,function(e){if("nostates"==e){var a='';t.parent().next().find("select").replaceWith(a)}else t.parent().next().find("input,select").show(),t.parent().next().find("input,select").replaceWith(e)}),!1}),e("#edd_add_tax_rate").on("click",function(){var t=e("#edd_tax_rates tr:last"),d=t.clone(),a=t.parent().find("tr").length;return d.find("td input").not(":input[type=checkbox]").val(""),d.find('td [type="checkbox"]').attr("checked",!1),d.find("input, select").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("name",t).attr("id",t)}),d.find("label").each(function(){var t=e(this).attr("for");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("for",t)}),d.insertAfter(t),!1}),e(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){if(confirm(edd_vars.delete_tax_rate)){var t=e("#edd_tax_rates tr:visible"),d=t.length;2===d?(e("#edd_tax_rates select").val(""),e('#edd_tax_rates input[type="text"]').val(""),e('#edd_tax_rates input[type="number"]').val(""),e('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):e(this).closest("tr").remove(),e("#edd_tax_rates tr").each(function(t){e(this).children().find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+(t-1)+"]"),e(this).attr("name",d).attr("id",d)})})}return!1})},emails:function(){var t=e("#email-preview-wrap");if(t.length){var d=e("#email-preview");t.colorbox({inline:!0,href:d,width:"80%",height:"auto"})}},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),d=t.parent().parent().next();"direct"==t.val()&&(d.hide(),d.find("input").prop("checked",!1)),t.on("change",function(){"direct"==e(this).val()?(d.hide(),d.find("input").prop("checked",!1)):d.show()})}};s.init(),e(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return confirm(edd_vars.delete_payment)?!0:!1}),e("#the-list").on("click",".editinline",function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var d=e("#post-"+t),a=d.find(".column-price .downloadprice-"+t).val();a!=e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(a).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),e(document.body).on("click","#bulk_edit",function(){var t=e("#bulk-edit"),d=new Array;t.find("#bulk-titles").children().each(function(){d.push(e(this).attr("id").replace(/^(ttle)/i,""))});var a=e('#edd-download-data input[name="_edd_regprice"]').val(),n={action:"edd_save_bulk_edit",edd_bulk_nonce:d,post_ids:d,price:a};e.post(ajaxurl,n)}),e(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),e(".edd-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen"),d=(t.data("search-type"),t.data("search-placeholder"));e(this).attr("placeholder",d)}),e(".chosen-choices").on("click",function(){var t=e(this).parent().prev().data("search-placeholder");"undefined"==typeof t&&(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)});var c,l=342;e(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(t){var d=e(this).val(),a=e(this).closest(".edd-select-chosen"),n=(a.attr("id").replace("_chosen",""),a.prev()),i=a.hasClass("no-bundles"),o=a.hasClass("variations"),r=t.which,s="edd_download_search";if(a.prev().data("search-type")){if("no_ajax"==n.data("search-type"))return;s="edd_"+n.data("search-type")+"_search"}d.length<=3&&"edd_download_search"==s||16==r||13==r||91==r||17==r||37==r||38==r||39==r||40==r||(clearTimeout(c),c=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:s,s:d,no_bundles:i,variations:o},dataType:"json",beforeSend:function(){n.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",n).remove(),e.each(t,function(t,d){e('option[value="'+d.id+'"]',n).length||n.prepend('")}),e(".edd-select-chosen").trigger("chosen:updated"),n.next().find("input").val(d)}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){})},l))}),e("#post").on("click",".edd-thickbox",function(){e(".edd-select-chosen","#choose-download").css("width","100%")});var p={init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){e(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){e(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){e(document.body).on("submit","#api-key-generate-form",function(t){var d=e('input[type="text"][name="user_id"]');d.css("border-color","#ddd");var a=d.val();return a.length<1||0==a?(d.css("border-color","#ff0000"),!1):void 0})},recount_stats:function(){e(document.body).on("change","#recount-stats-type",function(){var t=e("#edd-tools-recount-form"),d=e("option:selected",this).data("type"),a=e("#recount-stats-submit"),n=e("#tools-product-dropdown");if(t.find(".notice-wrap").remove(),a.removeClass("button-disabled").attr("disabled",!1),n.hide(),e(".edd-recount-stats-descriptions span").hide(),"recount-download"===d)n.show(),n.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===d){t.append('');var i=t.find(".notice-wrap");i.html('"),e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else n.hide(),n.val(0);e("#"+d).show()}),e(document.body).on("change","#confirm-reset",function(){var t=e(this).is(":checked");t?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#edd-tools-recount-form").submit(function(t){var d=e("#recount-stats-type").val(),a=e(this),n=e("option:selected",this).data("type");if("reset-stats"===n){var i=e("#confirm-reset").is(":checked");if(i)return!0;r=!0}a.find(".notice-wrap").remove(),a.append('');var o=a.find(".notice-wrap"),r=!1;if((null===d||0===d)&&(o.html(''+edd_vars.batch_export_no_class+"
"),r=!0),"recount-download"===n){var s=e('select[name="download_id"]').val();0==s&&(o.html(''+edd_vars.batch_export_no_reqs+"
"),r=!0)}return r?(a.find(".button-disabled").removeClass("button-disabled"),!1):void 0})}};p.init();var u={init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".edd-export-form",function(d){d.preventDefault();var a=e(this).find('input[type="submit"]');if(!a.hasClass("button-disabled")){var n=e(this).serialize();a.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append(''),t.process_step(1,n,t)}})},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d,action:"edd_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var n=e(".edd-export-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");if(n.find(".button-disabled").removeClass("button-disabled"),t.error){var o=t.message;i.html('")}else if(t.success){var r=t.message;i.html('')}else i.remove(),window.location=t.url}else e(".edd-progress div").animate({width:t.percentage+"%"},50,function(){}),a.process_step(parseInt(t.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})},dismiss_message:function(){e(document.body).on("click","#edd-batch-success .notice-dismiss",function(){e("#edd-batch-success").parent().slideUp("fast")})}};u.init();var _={init:function(){this.submit()},submit:function(){var t=this;e(".edd-import-form").ajaxForm({beforeSubmit:t.before_submit,success:t.success,complete:t.complete,dataType:"json",error:t.error})},before_submit:function(t,d,a){if(d.find(".notice-wrap").remove(),d.append(''),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");return n.find(".button-disabled").removeClass("button-disabled"),i.html(''+edd_vars.unsupported_browser+"
"),!1}},success:function(e,t,d,a){},complete:function(t){var d=jQuery.parseJSON(t.responseText);if(d.success){var a=e(".edd-import-form .notice-wrap").parent();a.find(".edd-import-file-wrap,.notice-wrap").remove(),a.find(".edd-import-options").slideDown();var n=a.find("select.edd-import-csv-column"),i=(n.parent().parent(),""),o=d.data.columns.sort(function(e,t){return t>e?-1:e>t?1:0});e.each(o,function(e,t){i+='"}),n.append(i),n.on("change",function(){var t=e(this).val();t&&0!=d.data.first_row[t]?e(this).parent().next().html(d.data.first_row[t]):e(this).parent().next().html("")}),e(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),a.append(''),d.data.mapping=a.serialize(),_.process_step(1,d.data,self)})}else _.error(t)},error:function(t){var d=jQuery.parseJSON(t.responseText),a=e(".edd-import-form").find(".edd-progress").parent().parent(),n=a.find(".notice-wrap");a.find(".button-disabled").removeClass("button-disabled"),d.data.error?n.html('"):n.remove()},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d.form,nonce:d.nonce,"class":d["class"],upload:d.upload,mapping:d.mapping,action:"edd_do_ajax_import",step:t},dataType:"json",success:function(t){if("done"==t.data.step||t.data.error){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");n.find(".button-disabled").removeClass("button-disabled"),t.data.error?i.html('"):(n.find(".edd-import-options").hide(),e("html, body").animate({scrollTop:n.parent().offset().top},500),i.html('"))}else e(".edd-progress div").animate({width:t.data.percentage+"%"},50,function(){}),_.process_step(parseInt(t.data.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}};_.init();var m={vars:{customer_card_wrap_editable:e(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:e(".edd-customer-card-wrapper .edit-item"),user_id:e('input[name="customerinfo[user_id]"]'),state_input:e(':input[name="customerinfo[state]"]'),note:e("#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(){e(document.body).on("click","#edit-customer",function(e){e.preventDefault(),m.vars.customer_card_wrap_editable.hide(),m.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var d=e(this),a=d.parent();a.parent().find(".notice-wrap").remove(),a.find(".spinner").css("visibility","visible"),d.attr("disabled",!0);var n=a.find('input[name="customer-id"]').val(),i=a.find('input[name="additional-email"]').val(),o=a.find('input[name="make-additional-primary"]').is(":checked"),r=a.find('input[name="add_email_nonce"]').val(),s={edd_action:"customer-add-email",customer_id:n,email:i,primary:o,_wpnonce:r};e.post(ajaxurl,s,function(e){!0===e.success?window.location.href=e.redirect:(d.attr("disabled",!1),
-a.after('"),a.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){e(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(t){t.preventDefault();var d=e(this).data("userid");m.vars.user_id.val(d)})},remove_user:function(){e(document.body).on("click","#disconnect-customer",function(t){t.preventDefault();var d=e('input[name="customerinfo[id]"]').val(),a={edd_action:"disconnect-userid",customer_id:d,_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,a,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e(document.body).on("click","#edd-edit-customer-cancel",function(t){t.preventDefault(),m.vars.customer_card_wrap_edit_item.hide(),m.vars.customer_card_wrap_editable.show(),e(".edd_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t=e(this),d={action:"edd_get_shop_states",country:t.val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,d,function(e){"nostates"==e?m.vars.state_input.replaceWith(''):m.vars.state_input.replaceWith(e)}),!1})},add_note:function(){e(document.body).on("click","#add-customer-note",function(t){t.preventDefault();var d={edd_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:m.vars.note.val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(d.customer_note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-customer-notes").prepend(t),e(".edd-no-customer-notes").hide(),m.vars.note.val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=m.vars.note.css("border-color");m.vars.note.css("border-color","red"),setTimeout(function(){m.vars.note.css("border-color",a)},500)}})},delete_checked:function(){e("#edd-customer-delete-confirm").change(function(){var t=e("#edd-customer-delete-records"),d=e("#edd-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),d.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),d.attr("disabled",!0))})}};m.init(),e(".edd-ajax-user-search").keyup(function(){var t=e(this).val(),d="";e(this).data("exclude")&&(d=e(this).data("exclude")),e(".edd-ajax").show();var a={action:"edd_search_users",user_name:t,exclude:d};document.body.style.cursor="wait",e.ajax({type:"POST",data:a,dataType:"json",url:ajaxurl,success:function(t){e(".edd-ajax").hide(),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),e(t.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(t){t.preventDefault();var d=e(this).data("login");e(".edd-ajax-user-search").val(d),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e("#edd_dashboard_sales").length&&e.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(t){e("#edd_dashboard_sales .inside").html(t)}}),e(document.body).on("keydown",".customer-note-input",function(t){13==t.keyCode&&(t.metaKey||t.ctrlKey)&&e("#add-customer-note").click()})});var eddFormatCurrency=function(e){var t=parseFloat(e),d=edd_vars.currency,a=edd_vars.currency_decimals;return t.toLocaleString(d,{style:"currency",currency:d,minimumFractionDigits:a,maximumFractionDigits:a})},eddFormatNumber=function(e){var t=parseFloat(e),d=edd_vars.currency;edd_vars.currency_decimals;return t.toLocaleString(d,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(e,t){return''+e+"
"},eddLegendFormatterSales=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='',n=''+e+": "+Math.round(t.percent)+"% ("+eddFormatNumber(t.data[0][1])+")
",i=''+a+n+"
";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i},eddLegendFormatterEarnings=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='',n=''+e+": "+Math.round(t.percent)+"% ("+eddFormatCurrency(t.data[0][1])+")
",i=''+a+n+"
";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i};
\ No newline at end of file
+jQuery(document).ready(function(e){edd_attach_tooltips(e(".edd-help-tip"));var t={init:function(){this.add(),this.move(),this.remove(),this.type(),this.prices(),this.files(),this.updatePrices()},clone_repeatable:function(t){var d=highest=1;return t.parent().find(".edd_repeatable_row").each(function(){var t=e(this).data("key");parseInt(t)>highest&&(highest=t)}),d=highest+=1,clone=t.clone(),clone.removeClass("edd_add_blank"),clone.attr("data-key",d),clone.find("input, select, textarea").val("").each(function(){var t=e(this).attr("name"),a=e(this).attr("id");t&&(t=t.replace(/\[(\d+)\]/,"["+parseInt(d)+"]"),e(this).attr("name",t)),e(this).attr("data-key",d),void 0!==a&&(a=a.replace(/(\d+)/,parseInt(d)),e(this).attr("id",a))}),clone.find("select").each(function(){e(this).val(t.find('select[name="'+e(this).attr("name")+'"]').val())}),clone.find('input[type="checkbox"]').each(function(){e(this).is(":checked")&&e(this).prop("checked",!1),e(this).val(1)}),clone.find("span.edd_price_id").each(function(){e(this).text(parseInt(d))}),clone.find("span.edd_file_id").each(function(){e(this).text(parseInt(d))}),clone.find(".edd_repeatable_default_input").each(function(){e(this).val(parseInt(d)).removeAttr("checked")}),clone.find(".edd_repeatable_condition_field").each(function(){e(this).find("option:eq(0)").prop("selected","selected")}),clone.find(".search-choice").remove(),clone.find(".chosen-container").remove(),edd_attach_tooltips(clone.find(".edd-help-tip")),clone},add:function(){e(document.body).on("click",".submit .edd_add_repeatable",function(d){d.preventDefault();var a=e(this).parent().parent().prev(".edd_repeatable_row"),n=t.clone_repeatable(a);n.insertAfter(a).find("input, textarea, select").filter(":visible").eq(0).focus(),n.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}),n.find(".edd-select-chosen").css("width","100%"),n.find(".edd-select-chosen .chosen-search input").attr("placeholder",edd_vars.search_placeholder)})},move:function(){e(".edd_repeatable_table .edd-repeatables-wrap").sortable({handle:".edd-draghandle-anchor",items:".edd_repeatable_row",opacity:.6,cursor:"move",axis:"y",update:function(){var t=0;e(this).find(".edd_repeatable_row").each(function(){e(this).find("input.edd_repeatable_index").each(function(){e(this).val(t)}),t++})}})},remove:function(){e(document.body).on("click",".edd-remove-row, .edd_remove_repeatable",function(t){t.preventDefault();var d,a=e(this).parents(".edd_repeatable_row"),n=a.parent().find(".edd_repeatable_row").length,i=e(this).data("type"),o="div.edd_repeatable_"+i+"s";if(d=(e(this).is(".ui-sortable .edd_repeatable_row:first-child .edd-remove-row, .ui-sortable .edd_repeatable_row:first-child .edd_remove_repeatable")?a.next(".edd_repeatable_row"):a.prev(".edd_repeatable_row")).find("select, input, textarea, button").filter(":visible").eq(0),"price"===i){var r=a.data("key");e('.edd_repeatable_condition_field option[value="'+r+'"]').remove()}if(n>1)e("input, select",a).val(""),a.fadeOut("fast").remove(),d.focus();else switch(i){case"price":alert(edd_vars.one_price_min);break;case"file":e("input, select",a).val("");break;default:alert(edd_vars.one_field_min)}e(o).each(function(t){e(this).find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+t+"]"),e(this).attr("name",d).attr("id",d)})})})},type:function(){e(document.body).on("change","#_edd_product_type",function(t){var d=e("#edd_products"),a=e("#edd_download_files"),n=e("#edd_download_limit_wrap");"bundle"===e(this).val()?(d.show(),a.hide(),n.hide()):(d.hide(),a.show(),n.show())})},prices:function(){e(document.body).on("change","#edd_variable_pricing",function(t){var d=e(this).is(":checked"),a=e("#edd_regular_price_field"),n=e("#edd_variable_price_fields, .edd_repeatable_table .pricing"),i=e(".edd-bundled-product-row, .edd-repeatable-row-standard-fields");d?(a.hide(),n.show(),i.addClass("has-variable-pricing")):(a.show(),n.hide(),i.removeClass("has-variable-pricing"))})},files:function(){var d;window.formfield="",e(document.body).on("click",".edd_upload_file_button",function(a){a.preventDefault();var n=e(this);window.formfield=e(this).closest(".edd_repeatable_upload_wrapper"),d?d.open():((d=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:n.data("uploader-title"),button:{text:n.data("uploader-button-text")},multiple:"0"!=e(this).data("multiple")})).on("menu:render:default",function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set({})}),d.on("insert",function(){d.state().get("selection").each(function(d,a){var n="image"===(d=d.toJSON()).type&&e(".attachment-display-settings .size option:selected").val(),i=d.url,o=d.title.length>0?d.title:d.filename;if(n&&void 0!==d.sizes[n]&&(i=d.sizes[n].url),"image"===d.type&&(o=n&&void 0!==d.sizes[n]?o+"-"+d.sizes[n].width+"x"+d.sizes[n].height:o+"-"+d.width+"x"+d.height),0===a)window.formfield.find(".edd_repeatable_attachment_id_field").val(d.id),window.formfield.find(".edd_repeatable_thumbnail_size_field").val(n),window.formfield.find(".edd_repeatable_upload_field").val(i),window.formfield.find(".edd_repeatable_name_field").val(o);else{var r=window.formfield,s=t.clone_repeatable(r);s.find(".edd_repeatable_attachment_id_field").val(d.id),s.find(".edd_repeatable_thumbnail_size_field").val(n),s.find(".edd_repeatable_upload_field").val(i),s.find(".edd_repeatable_name_field").val(o),s.insertAfter(r)}})}),d.open())}),window.formfield=""},updatePrices:function(){e("#edd_price_fields").on("keyup",".edd_variable_prices_name",function(){var t=e(this).parents(".edd_repeatable_row").data("key"),d=e(this).val(),a=e(".edd_repeatable_condition_field option[value="+t+"]");a.length>0?a.text(d):e(".edd_repeatable_condition_field").append(e("").attr("value",t).text(d))})}};e(document.body).on("click",".toggle-custom-price-option-section",function(t){t.preventDefault();var d=e(this).html()==edd_vars.show_advanced_settings;d?e(this).html(edd_vars.hide_advanced_settings):e(this).html(edd_vars.show_advanced_settings);var a=e(this).parents(".edd-repeatable-row-header");a.siblings(".edd-custom-price-option-sections-wrap").slideToggle(),e(":input:not(input[type=button],input[type=submit],button):visible:first",d?a.siblings(".edd-custom-price-option-sections-wrap"):a.siblings(".edd-repeatable-row-standard-fields")).focus()}),t.init();var d,a=e(".edd_datepicker");if(a.length>0){a.datepicker({dateFormat:"mm/dd/yy"})}({init:function(){this.edit_address(),this.remove_download(),this.add_download(),this.change_customer(),this.new_customer(),this.edit_price(),this.recalculate_total(),this.variable_prices_check(),this.add_note(),this.remove_note(),this.resend_receipt(),this.copy_download_link()},edit_address:function(){e('select[name="edd-payment-address[0][country]"]').change(function(){var t={action:"edd_get_shop_states",country:e(this).val(),field_name:"edd-payment-address[0][state]"};return e.post(ajaxurl,t,function(t){var d=e("#edd-order-address-state-wrap select, #edd-order-address-state-wrap input");e("#edd-order-address-state-wrap .chosen-container").remove(),"nostates"==t?d.replaceWith(''):d.replaceWith(t)}),!1})},remove_download:function(){e("#edd-purchased-files").on("click",".edd-order-remove-download",function(){if(1===e(document.body).find("#edd-purchased-files > .row:not(.header)").length)return alert(edd_vars.one_download_min),!1;if(confirm(edd_vars.delete_payment_download)){var t=e(this).data("key"),d=(e(".edd-payment-id").val(),e('input[name="edd-payment-details-downloads['+t+'][id]"]').val()),a=e('input[name="edd-payment-details-downloads['+t+'][price_id]"]').val(),n=e('input[name="edd-payment-details-downloads['+t+'][quantity]"]').val(),i=e('input[name="edd-payment-details-downloads['+t+'][amount]"]').val();if(e('input[name="edd-payment-details-downloads['+t+'][tax]"]'))var o=e('input[name="edd-payment-details-downloads['+t+'][tax]"]').val();if(e('input[name="edd-payment-details-downloads['+t+'][fees]"]'))o=e.parseJSON(e('input[name="edd-payment-details-downloads['+t+'][fees]"]').val());var r=e('input[name="edd-payment-removed"]').val();(r=e.parseJSON(r)).length<1&&(r={});var s=[{id:d,price_id:a,quantity:n,amount:i,cart_index:t}];r[t]=s,e('input[name="edd-payment-removed"]').val(JSON.stringify(r)),e(this).parent().parent().remove(),o&&o.length&&e.each(o,function(t,d){e('*li[data-fee-id="'+d+'"]').remove()}),e("#edd-payment-downloads-changed").val(1),e(".edd-order-payment-recalc-totals").show()}return!1})},change_customer:function(){e("#edd-customer-details").on("click",".edd-payment-change-customer, .edd-payment-change-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-change-customer"),a=e(this).hasClass("edd-payment-change-customer-cancel");d?(e(".customer-info").hide(),e(".change-customer").show(),e(".edd-payment-change-customer-input").css("width","auto")):a&&(e(".customer-info").show(),e(".change-customer").hide())})},new_customer:function(){e("#edd-customer-details").on("click",".edd-payment-new-customer, .edd-payment-new-customer-cancel",function(t){t.preventDefault();var d=e(this).hasClass("edd-payment-new-customer"),a=e(this).hasClass("edd-payment-new-customer-cancel");d?(e(".customer-info").hide(),e(".new-customer").show()):a&&(e(".customer-info").show(),e(".new-customer").hide());d=e("#edd-new-customer");e(".new-customer").is(":visible")?d.val(1):d.val(0)})},add_download:function(){e(".edd-edit-purchase-element").on("click","#edd-order-add-download",function(t){t.preventDefault();var d=e("#edd_order_download_select"),a=e("#edd-order-download-quantity"),n=e("#edd-order-download-price"),i=e("#edd-order-download-tax"),o=e(".edd_price_options_select option:selected"),r=d.val(),s=d.find(":selected").text(),c=a.val(),l=n.val(),p=i.val(),u=o.val(),_=o.text();if(r<1)return!1;if(l||(l=0),l=parseFloat(l),isNaN(l))return alert(edd_vars.numeric_item_price),!1;if(p=parseFloat(p),isNaN(p))return alert(edd_vars.numeric_item_tax),!1;if(isNaN(parseInt(c)))return alert(edd_vars.numeric_quantity),!1;_&&(s=s+" - "+_);var m=e("#edd-purchased-files div.row").length,f=e("#edd-purchased-files div.row:last").clone();f.find(".download span").html(''),f.find(".download span a").text(s),f.find(".edd-payment-details-download-item-price").val(l.toFixed(edd_vars.currency_decimals)),f.find(".edd-payment-details-download-item-tax").val(p.toFixed(edd_vars.currency_decimals)),f.find("input.edd-payment-details-download-id").val(r),f.find("input.edd-payment-details-download-price-id").val(u);var h=l*c+p;h=h.toFixed(edd_vars.currency_decimals),f.find("span.edd-payment-details-download-amount").text(h),f.find("input.edd-payment-details-download-amount").val(h),f.find("input.edd-payment-details-download-quantity").val(c),f.find("input.edd-payment-details-download-has-log").val(0),f.find(".edd-copy-download-link-wrapper").remove(),f.find("input").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(m)+"]"),e(this).attr("name",t).attr("id",t)}),f.find("a.edd-order-remove-download").attr("data-key",parseInt(m)),e("#edd-payment-downloads-changed").val(1),e(f).insertAfter("#edd-purchased-files div.row:last"),e(".edd-order-payment-recalc-totals").show(),e(".edd-add-download-field").val("")})},edit_price:function(){e(document.body).on("change keyup",".edd-payment-item-input",function(){var t=e(this).parents("ul.edd-purchased-files-list-wrapper");e(".edd-order-payment-recalc-totals").show();var d=t.find("input.edd-payment-details-download-quantity").val().replace(edd_vars.thousands_separator,""),a=t.find("input.edd-payment-details-download-item-price").val().replace(edd_vars.thousands_separator,""),n=t.find("input.edd-payment-details-download-item-tax").val().replace(edd_vars.thousands_separator,"");if(a=parseFloat(a),isNaN(a))return alert(edd_vars.numeric_item_price),!1;n=parseFloat(n),isNaN(n)&&(n=0),isNaN(parseInt(d))&&(d=1);var i=a*d+n;i=i.toFixed(edd_vars.currency_decimals),t.find("input.edd-payment-details-download-amount").val(i),t.find("span.edd-payment-details-download-amount").text(i)})},recalculate_total:function(){e("#edd-order-recalc-total").on("click",function(t){t.preventDefault();var d=0,a=0,n=e("#edd-purchased-files .row input.edd-payment-details-download-amount"),i=e("#edd-purchased-files .row input.edd-payment-details-download-item-tax");n.length&&n.each(function(){d+=parseFloat(e(this).val())}),i.length&&i.each(function(){a+=parseFloat(e(this).val())}),e(".edd-payment-fees").length&&e(".edd-payment-fees span.fee-amount").each(function(){d+=parseFloat(e(this).data("fee"))}),e("input[name=edd-payment-total]").val(d.toFixed(edd_vars.currency_decimals)),e("input[name=edd-payment-tax]").val(a.toFixed(edd_vars.currency_decimals))})},variable_prices_check:function(){e(".edd-edit-purchase-element").on("change","select#edd_order_download_select",function(){var t=e(this),d=t.val();if(parseInt(d)>0){var a={action:"edd_check_for_download_price_variations",download_id:d};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(d){e(".edd_price_options_select").remove(),e(d).insertAfter(t.next())}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}})},add_note:function(){e("#edd-add-payment-note").on("click",function(t){t.preventDefault();var d={action:"edd_insert_payment_note",payment_id:e(this).data("payment-id"),note:e("#edd-payment-note").val()};if(d.note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-payment-notes-inner").append(t),e(".edd-no-payment-notes").hide(),e("#edd-payment-note").val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=e("#edd-payment-note").css("border-color");e("#edd-payment-note").css("border-color","red"),setTimeout(function(){e("#edd-payment-note").css("border-color",a)},500)}})},remove_note:function(){e(document.body).on("click",".edd-delete-payment-note",function(t){if(t.preventDefault(),confirm(edd_vars.delete_payment_note)){var d={action:"edd_delete_payment_note",payment_id:e(this).data("payment-id"),note_id:e(this).data("note-id")};return e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){return e("#edd-payment-note-"+d.note_id).remove(),e(".edd-payment-note").length||e(".edd-no-payment-notes").show(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)}),!0}})},resend_receipt:function(){var t=e(".edd-order-resend-receipt-addresses");e(document.body).on("click","#edd-select-receipt-email",function(e){e.preventDefault(),t.slideDown()}),e(document.body).on("change",".edd-order-resend-receipt-email",function(){var t=e("#edd-select-receipt-email").prop("href")+"&email="+e(this).val();confirm(edd_vars.resend_receipt)&&(window.location=t)}),e(document.body).on("click","#edd-resend-receipt",function(e){return confirm(edd_vars.resend_receipt)})},copy_download_link:function(){e(document.body).on("click",".edd-copy-download-link",function(t){t.preventDefault();var d=e(this),a={action:"edd_get_file_download_link",payment_id:e('input[name="edd_payment_id"]').val(),download_id:d.data("download-id"),price_id:d.data("price-id")};e.ajax({type:"POST",data:a,url:ajaxurl,success:function(t){return e("#edd-download-link").dialog({width:400}).html('"),e("#edd-download-link-textarea").focus().select(),!1}}).fail(function(e){window.console&&window.console.log&&console.log(e)})})}}).init(),{init:function(){this.type_select(),this.product_requirements()},type_select:function(){e("#edd-edit-discount #edd-type, #edd-add-discount #edd-type").change(function(){var t=e(this).val();e(".edd-amount-description").hide(),e(".edd-amount-description."+t+"-discount").show()})},product_requirements:function(){e("#products").change(function(){var t=e("#edd-discount-product-conditions");e(this).val()?t.show():t.hide()})}}.init(),{init:function(){this.date_options(),this.customers_export()},date_options:function(){e("#edd-graphs-date-options").change(function(){var t=e(this),d=e("#edd-date-range-options");"other"===t.val()?d.show():d.hide()})},customers_export:function(){e("#edd_customer_export_download").change(function(){var t=e(this),d=e("option:selected",t).val(),a=e("#edd_customer_export_option");if("0"===t.val()?a.show():a.hide(),0!=parseInt(d)){var n={action:"edd_check_for_download_price_variations",download_id:d,all_prices:!0},i=e(".edd_price_options_select");e.post(ajaxurl,n,function(t){i.remove(),e("#edd_customer_export_download_chosen").after(t)})}else i.remove()})}}.init(),{init:function(){this.general(),this.taxes(),this.emails(),this.misc()},general:function(){var t=e(".edd-color-picker");if(t.length&&t.wpColorPicker(),"undefined"==typeof wp||"1"!==edd_vars.new_media_ui){var d=e(".edd_settings_upload_button");d.length>0&&(window.formfield="",e(document.body).on("click",d,function(t){t.preventDefault(),window.formfield=e(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(t){window.formfield?(imgurl=e("a",""+t+"
").attr("href"),window.formfield.val(imgurl),window.clearInterval(window.tbframe_interval),tb_remove()):window.edd_send_to_editor(t),window.send_to_editor=window.edd_send_to_editor,window.formfield="",window.imagefield=!1})}else{var a;window.formfield="",e(document.body).on("click",".edd_settings_upload_button",function(t){t.preventDefault();var d=e(this);window.formfield=e(this).parent().prev(),a?a.open():((a=wp.media.frames.file_frame=wp.media({frame:"post",state:"insert",title:d.data("uploader_title"),button:{text:d.data("uploader_button_text")},multiple:!1})).on("menu:render:default",function(e){e.unset("library-separator"),e.unset("gallery"),e.unset("featured-image"),e.unset("embed"),e.set({})}),a.on("insert",function(){a.state().get("selection").each(function(e,t){e=e.toJSON(),window.formfield.val(e.url)})}),a.open())}),window.formfield=""}},taxes:function(){var t=e("select.edd-no-states");t.length&&t.closest("tr").addClass("hidden"),e('select[name="edd_settings[base_country]"]').change(function(){var t=e(this).closest("tr"),d={action:"edd_get_shop_states",country:e(this).val(),field_name:"edd_settings[base_state]"};return e.post(ajaxurl,d,function(e){"nostates"==e?t.next().addClass("hidden"):(t.next().removeClass("hidden"),t.next().find("select").replaceWith(e))}),!1}),e(document.body).on("change","#edd_tax_rates select.edd-tax-country",function(){var t=e(this),d={action:"edd_get_shop_states",country:e(this).val(),field_name:t.attr("name").replace("country","state")};return e.post(ajaxurl,d,function(e){if("nostates"==e){var a='';t.parent().next().find("select").replaceWith(a)}else t.parent().next().find("input,select").show(),t.parent().next().find("input,select").replaceWith(e)}),!1}),e("#edd_add_tax_rate").on("click",function(){var t=e("#edd_tax_rates tr:last"),d=t.clone(),a=t.parent().find("tr").length;return d.find("td input").not(":input[type=checkbox]").val(""),d.find('td [type="checkbox"]').attr("checked",!1),d.find("input, select").each(function(){var t=e(this).attr("name");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("name",t).attr("id",t)}),d.find("label").each(function(){var t=e(this).attr("for");t=t.replace(/\[(\d+)\]/,"["+parseInt(a)+"]"),e(this).attr("for",t)}),d.insertAfter(t),!1}),e(document.body).on("click","#edd_tax_rates .edd_remove_tax_rate",function(){confirm(edd_vars.delete_tax_rate)&&(2===e("#edd_tax_rates tr:visible").length?(e("#edd_tax_rates select").val(""),e('#edd_tax_rates input[type="text"]').val(""),e('#edd_tax_rates input[type="number"]').val(""),e('#edd_tax_rates input[type="checkbox"]').attr("checked",!1)):e(this).closest("tr").remove(),e("#edd_tax_rates tr").each(function(t){e(this).children().find("input, select").each(function(){var d=e(this).attr("name");d=d.replace(/\[(\d+)\]/,"["+(t-1)+"]"),e(this).attr("name",d).attr("id",d)})}));return!1})},emails:function(){var t=e("#email-preview-wrap");if(t.length){var d=e("#email-preview");t.colorbox({inline:!0,href:d,width:"80%",height:"auto"})}},misc:function(){var t=e('select[name="edd_settings[download_method]"]'),d=t.parent().parent().next();"direct"==t.val()&&(d.hide(),d.find("input").prop("checked",!1)),t.on("change",function(){"direct"==e(this).val()?(d.hide(),d.find("input").prop("checked",!1)):d.show()})}}.init(),e(".download_page_edd-payment-history .row-actions .delete a, a.edd-delete-payment").on("click",function(){return!!confirm(edd_vars.delete_payment)}),e("body").on("click","#the-list .editinline",function(){var t=e(this).closest("tr").attr("id");t=t.replace("post-","");var d=e("#post-"+t).find(".column-price .downloadprice-"+t).val();d!=e("#post-"+t+".column-price .downloadprice-"+t).val()?e(".regprice","#edd-download-data").val(d).attr("disabled",!1):e(".regprice","#edd-download-data").val(edd_vars.quick_edit_warning).attr("disabled","disabled")}),e(document.body).on("click","#bulk_edit",function(){var t=e("#bulk-edit"),d=new Array;t.find("#bulk-titles").children().each(function(){d.push(e(this).attr("id").replace(/^(ttle)/i,""))});var a=e('#edd-download-data input[name="_edd_regprice"]').val(),n={action:"edd_save_bulk_edit",edd_bulk_nonce:d,post_ids:d,price:a};e.post(ajaxurl,n)}),e(".edd-select-chosen").chosen({inherit_select_classes:!0,placeholder_text_single:edd_vars.one_option,placeholder_text_multiple:edd_vars.one_or_more_option}),e(".edd-select-chosen .chosen-search input").each(function(){var t=e(this).parent().parent().parent().prev("select.edd-select-chosen"),d=(t.data("search-type"),t.data("search-placeholder"));e(this).attr("placeholder",d)}),e(".chosen-choices").on("click",function(){var t=e(this).parent().prev().data("search-placeholder");void 0===t&&(t=edd_vars.type_to_search),e(this).children("li").children("input").attr("placeholder",t)});e(document.body).on("keyup",".edd-select.chosen-container .chosen-search input, .edd-select.chosen-container .search-field input",function(t){var a=e(this).val(),n=e(this).closest(".edd-select-chosen"),i=(n.attr("id").replace("_chosen",""),n.prev()),o=n.hasClass("no-bundles"),r=n.hasClass("variations"),s=t.which,c="edd_download_search";if(n.prev().data("search-type")){if("no_ajax"==i.data("search-type"))return;c="edd_"+i.data("search-type")+"_search"}a.length<=3&&"edd_download_search"==c||16==s||13==s||91==s||17==s||37==s||38==s||39==s||40==s||(clearTimeout(d),d=setTimeout(function(){e.ajax({type:"GET",url:ajaxurl,data:{action:c,s:a,no_bundles:o,variations:r},dataType:"json",beforeSend:function(){i.closest("ul.chosen-results").empty()},success:function(t){e("option:not(:selected)",i).remove(),e.each(t,function(t,d){e('option[value="'+d.id+'"]',i).length||i.prepend('")}),e(".edd-select-chosen").trigger("chosen:updated"),i.next().find("input").val(a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)}).done(function(e){})},342))}),e("#post").on("click",".edd-thickbox",function(){e(".edd-select-chosen","#choose-download").css("width","100%")}),{init:function(){this.revoke_api_key(),this.regenerate_api_key(),this.create_api_key(),this.recount_stats()},revoke_api_key:function(){e(document.body).on("click",".edd-revoke-api-key",function(e){return confirm(edd_vars.revoke_api_key)})},regenerate_api_key:function(){e(document.body).on("click",".edd-regenerate-api-key",function(e){return confirm(edd_vars.regenerate_api_key)})},create_api_key:function(){e(document.body).on("submit","#api-key-generate-form",function(t){var d=e('input[type="text"][name="user_id"]');d.css("border-color","#ddd");var a=d.val();if(a.length<1||0==a)return d.css("border-color","#ff0000"),!1})},recount_stats:function(){e(document.body).on("change","#recount-stats-type",function(){var t=e("#edd-tools-recount-form"),d=e("option:selected",this).data("type"),a=e("#recount-stats-submit"),n=e("#tools-product-dropdown");if(t.find(".notice-wrap").remove(),a.removeClass("button-disabled").attr("disabled",!1),n.hide(),e(".edd-recount-stats-descriptions span").hide(),"recount-download"===d)n.show(),n.find(".edd-select-chosen").css("width","auto");else if("reset-stats"===d){t.append(''),t.find(".notice-wrap").html('"),e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}else n.hide(),n.val(0);e("#"+d).show()}),e(document.body).on("change","#confirm-reset",function(){e(this).is(":checked")?e("#recount-stats-submit").removeClass("button-disabled").removeAttr("disabled"):e("#recount-stats-submit").addClass("button-disabled").attr("disabled","disabled")}),e("#edd-tools-recount-form").submit(function(t){var d=e("#recount-stats-type").val(),a=e(this),n=e("option:selected",this).data("type");if("reset-stats"===n){if(e("#confirm-reset").is(":checked"))return!0;o=!0}a.find(".notice-wrap").remove(),a.append('');var i=a.find(".notice-wrap"),o=!1;(null!==d&&0!==d||(i.html(''+edd_vars.batch_export_no_class+"
"),o=!0),"recount-download"===n)&&(0==e('select[name="download_id"]').val()&&(i.html(''+edd_vars.batch_export_no_reqs+"
"),o=!0));if(o)return a.find(".button-disabled").removeClass("button-disabled"),!1})}}.init(),{init:function(){this.submit(),this.dismiss_message()},submit:function(){var t=this;e(document.body).on("submit",".edd-export-form",function(d){d.preventDefault();var a=e(this).find('input[type="submit"]');if(!a.hasClass("button-disabled")){var n=e(this).serialize();a.addClass("button-disabled"),e(this).find(".notice-wrap").remove(),e(this).append(''),t.process_step(1,n,t)}})},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d,action:"edd_do_ajax_export",step:t},dataType:"json",success:function(t){if("done"==t.step||t.error||t.success){var n=e(".edd-export-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");if(n.find(".button-disabled").removeClass("button-disabled"),t.error){var o=t.message;i.html('")}else if(t.success){var r=t.message;i.html('')}else i.remove(),window.location=t.url}else e(".edd-progress div").animate({width:t.percentage+"%"},50,function(){}),a.process_step(parseInt(t.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})},dismiss_message:function(){e(document.body).on("click","#edd-batch-success .notice-dismiss",function(){e("#edd-batch-success").parent().slideUp("fast")})}}.init();var n={init:function(){this.submit()},submit:function(){e(".edd-import-form").ajaxForm({beforeSubmit:this.before_submit,success:this.success,complete:this.complete,dataType:"json",error:this.error})},before_submit:function(t,d,a){if(d.find(".notice-wrap").remove(),d.append(''),!(window.File&&window.FileReader&&window.FileList&&window.Blob)){var n=e(".edd-import-form").find(".edd-progress").parent().parent(),i=n.find(".notice-wrap");return n.find(".button-disabled").removeClass("button-disabled"),i.html(''+edd_vars.unsupported_browser+"
"),!1}},success:function(e,t,d,a){},complete:function(t){var d=jQuery.parseJSON(t.responseText);if(d.success){var a=e(".edd-import-form .notice-wrap").parent();a.find(".edd-import-file-wrap,.notice-wrap").remove(),a.find(".edd-import-options").slideDown();var i=a.find("select.edd-import-csv-column"),o=(i.parent().parent(),""),r=d.data.columns.sort(function(e,t){return et?1:0});e.each(r,function(e,t){o+='"}),i.append(o),i.on("change",function(){var t=e(this).val();t&&0!=d.data.first_row[t]?e(this).parent().next().html(d.data.first_row[t]):e(this).parent().next().html("")}),e(document.body).on("click",".edd-import-proceed",function(e){e.preventDefault(),a.append(''),d.data.mapping=a.serialize(),n.process_step(1,d.data,self)})}else n.error(t)},error:function(t){var d=jQuery.parseJSON(t.responseText),a=e(".edd-import-form").find(".edd-progress").parent().parent(),n=a.find(".notice-wrap");a.find(".button-disabled").removeClass("button-disabled"),d.data.error?n.html('"):n.remove()},process_step:function(t,d,a){e.ajax({type:"POST",url:ajaxurl,data:{form:d.form,nonce:d.nonce,class:d.class,upload:d.upload,mapping:d.mapping,action:"edd_do_ajax_import",step:t},dataType:"json",success:function(t){if("done"==t.data.step||t.data.error){var i=e(".edd-import-form").find(".edd-progress").parent().parent(),o=i.find(".notice-wrap");i.find(".button-disabled").removeClass("button-disabled"),t.data.error?o.html('"):(i.find(".edd-import-options").hide(),e("html, body").animate({scrollTop:i.parent().offset().top},500),o.html('"))}else e(".edd-progress div").animate({width:t.data.percentage+"%"},50,function(){}),n.process_step(parseInt(t.data.step),d,a)}}).fail(function(e){window.console&&window.console.log&&console.log(e)})}};n.init();var i={vars:{customer_card_wrap_editable:e(".edd-customer-card-wrapper .editable"),customer_card_wrap_edit_item:e(".edd-customer-card-wrapper .edit-item"),user_id:e('input[name="customerinfo[user_id]"]'),state_input:e(':input[name="customerinfo[state]"]'),note:e("#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(){e(document.body).on("click","#edit-customer",function(e){e.preventDefault(),i.vars.customer_card_wrap_editable.hide(),i.vars.customer_card_wrap_edit_item.fadeIn().css("display","block")})},add_email:function(){e(document.body).on("click","#add-customer-email",function(t){t.preventDefault();var d=e(this),a=d.parent();a.parent().find(".notice-wrap").remove(),a.find(".spinner").css("visibility","visible"),d.attr("disabled",!0);var n={edd_action:"customer-add-email",customer_id:a.find('input[name="customer-id"]').val(),email:a.find('input[name="additional-email"]').val(),primary:a.find('input[name="make-additional-primary"]').is(":checked"),_wpnonce:a.find('input[name="add_email_nonce"]').val()};e.post(ajaxurl,n,function(e){!0===e.success?window.location.href=e.redirect:(d.attr("disabled",!1),a.after('"),a.find(".spinner").css("visibility","hidden"))},"json")})},user_search:function(){e(document.body).on("click.eddSelectUser",".edd_user_search_results a",function(t){t.preventDefault();var d=e(this).data("userid");i.vars.user_id.val(d)})},remove_user:function(){e(document.body).on("click","#disconnect-customer",function(t){t.preventDefault();var d={edd_action:"disconnect-userid",customer_id:e('input[name="customerinfo[id]"]').val(),_wpnonce:e("#edit-customer-info #_wpnonce").val()};e.post(ajaxurl,d,function(e){window.location.href=window.location.href},"json")})},cancel_edit:function(){e(document.body).on("click","#edd-edit-customer-cancel",function(t){t.preventDefault(),i.vars.customer_card_wrap_edit_item.hide(),i.vars.customer_card_wrap_editable.show(),e(".edd_user_search_results").html("")})},change_country:function(){e('select[name="customerinfo[country]"]').change(function(){var t={action:"edd_get_shop_states",country:e(this).val(),field_name:"customerinfo[state]"};return e.post(ajaxurl,t,function(e){"nostates"==e?i.vars.state_input.replaceWith(''):i.vars.state_input.replaceWith(e)}),!1})},add_note:function(){e(document.body).on("click","#add-customer-note",function(t){t.preventDefault();var d={edd_action:"add-customer-note",customer_id:e("#customer-id").val(),customer_note:i.vars.note.val(),add_customer_note_nonce:e("#add_customer_note_nonce").val()};if(d.customer_note)e.ajax({type:"POST",data:d,url:ajaxurl,success:function(t){e("#edd-customer-notes").prepend(t),e(".edd-no-customer-notes").hide(),i.vars.note.val("")}}).fail(function(e){window.console&&window.console.log&&console.log(e)});else{var a=i.vars.note.css("border-color");i.vars.note.css("border-color","red"),setTimeout(function(){i.vars.note.css("border-color",a)},500)}})},delete_checked:function(){e("#edd-customer-delete-confirm").change(function(){var t=e("#edd-customer-delete-records"),d=e("#edd-delete-customer");e(this).prop("checked")?(t.attr("disabled",!1),d.attr("disabled",!1)):(t.attr("disabled",!0),t.prop("checked",!1),d.attr("disabled",!0))})}};i.init(),e(".edd-ajax-user-search").keyup(function(){var t=e(this).val(),d="";e(this).data("exclude")&&(d=e(this).data("exclude")),e(".edd-ajax").show();var a={action:"edd_search_users",user_name:t,exclude:d};document.body.style.cursor="wait",e.ajax({type:"POST",data:a,dataType:"json",url:ajaxurl,success:function(t){e(".edd-ajax").hide(),e(".edd_user_search_results").removeClass("hidden"),e(".edd_user_search_results span").html(""),e(t.results).appendTo(".edd_user_search_results span"),document.body.style.cursor="default"}})}),e(document.body).on("click.eddSelectUser",".edd_user_search_results span a",function(t){t.preventDefault();var d=e(this).data("login");e(".edd-ajax-user-search").val(d),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e(document.body).on("click.eddCancelUserSearch",".edd_user_search_results a.edd-ajax-user-cancel",function(t){t.preventDefault(),e(".edd-ajax-user-search").val(""),e(".edd_user_search_results").addClass("hidden"),e(".edd_user_search_results span").html("")}),e("#edd_dashboard_sales").length&&e.ajax({type:"GET",data:{action:"edd_load_dashboard_widget"},url:ajaxurl,success:function(t){e("#edd_dashboard_sales .inside").html(t)}}),e(document.body).on("keydown",".customer-note-input",function(t){13==t.keyCode&&(t.metaKey||t.ctrlKey)&&e("#add-customer-note").click()})});var eddFormatCurrency=function(e){var t=parseFloat(e),d=edd_vars.currency,a=edd_vars.currency_decimals;return t.toLocaleString(d,{style:"currency",currency:d,minimumFractionDigits:a,maximumFractionDigits:a})},eddFormatNumber=function(e){var t=parseFloat(e),d=edd_vars.currency;edd_vars.currency_decimals;return t.toLocaleString(d,{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:0})},eddLabelFormatter=function(e,t){return''+e+"
"},eddLegendFormatterSales=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='',n=''+e+": "+Math.round(t.percent)+"% ("+eddFormatNumber(t.data[0][1])+")
",i=''+a+n+"
";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i},eddLegendFormatterEarnings=function(e,t){var d=e.toLowerCase().replace(/\s/g,"-"),a='',n=''+e+": "+Math.round(t.percent)+"% ("+eddFormatCurrency(t.data[0][1])+")
",i=''+a+n+"
";return jQuery("#edd-pie-legend-"+t.edd_vars.id).append(i),i};function edd_attach_tooltips(e){e.tooltip({content:function(){return jQuery(this).prop("title")},tooltipClass:"edd-ui-tooltip",position:{my:"center top",at:"center bottom+10",collision:"flipfit"},hide:{duration:200},show:{duration:200}})}
diff --git a/easy-digital-downloads.php b/easy-digital-downloads.php
index a65eb6a258a..822a82cc00f 100755
--- a/easy-digital-downloads.php
+++ b/easy-digital-downloads.php
@@ -5,7 +5,7 @@
* Description: The easiest way to sell digital products with WordPress.
* Author: Easy Digital Downloads
* Author URI: https://easydigitaldownloads.com
- * Version: 2.8.18
+ * Version: 2.9
* Text Domain: easy-digital-downloads
* Domain Path: languages
*
@@ -25,7 +25,7 @@
* @package EDD
* @category Core
* @author Pippin Williamson
- * @version 2.8.18
+ * @version 2.9
*/
// Exit if accessed directly.
@@ -206,7 +206,7 @@ private function setup_constants() {
// Plugin version.
if ( ! defined( 'EDD_VERSION' ) ) {
- define( 'EDD_VERSION', '2.8.18' );
+ define( 'EDD_VERSION', '2.9' );
}
// Plugin Folder Path.
diff --git a/languages/easy-digital-downloads.pot b/languages/easy-digital-downloads.pot
index 2679bf0aa30..adf063c83f3 100644
--- a/languages/easy-digital-downloads.pot
+++ b/languages/easy-digital-downloads.pot
@@ -2,9 +2,9 @@
# This file is distributed under the same license as the Easy Digital Downloads package.
msgid ""
msgstr ""
-"Project-Id-Version: Easy Digital Downloads 2.8.17\n"
+"Project-Id-Version: Easy Digital Downloads 2.9\n"
"Report-Msgid-Bugs-To: https://easydigitaldownloads.com/\n"
-"POT-Creation-Date: 2018-02-06 18:16:29+00:00\n"
+"POT-Creation-Date: 2018-03-15 20:37:36+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
@@ -22,7 +22,7 @@ msgstr ""
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-Bookmarks: \n"
"X-Textdomain-Support: yes\n"
-"X-Generator: grunt-wp-i18n1.0.0\n"
+"X-Generator: grunt-wp-i18n1.0.2\n"
#: easy-digital-downloads.php:183 easy-digital-downloads.php:195
msgid "Cheatin’ huh?"
@@ -92,13 +92,13 @@ msgstr ""
#: includes/cart/class-edd-cart.php:1470 includes/cart/class-edd-cart.php:1484
#: includes/class-edd-license-handler.php:309
#: includes/deprecated-functions.php:517 includes/deprecated-functions.php:532
-#: includes/deprecated-functions.php:542 includes/download-functions.php:1248
+#: includes/deprecated-functions.php:542 includes/download-functions.php:1260
#: includes/emails/actions.php:53 includes/emails/template.php:243
#: includes/error-tracking.php:40 includes/gateways/functions.php:221
#: includes/gateways/manual.php:33 includes/gateways/paypal-standard.php:168
-#: includes/process-download.php:293 includes/process-download.php:826
-#: includes/query-filters.php:48 includes/user-functions.php:880
-#: includes/user-functions.php:905 includes/user-functions.php:958
+#: includes/process-download.php:293 includes/process-download.php:885
+#: includes/query-filters.php:48 includes/user-functions.php:888
+#: includes/user-functions.php:913 includes/user-functions.php:966
msgid "Error"
msgstr ""
@@ -195,7 +195,7 @@ msgstr ""
#: includes/admin/admin-pages.php:43 includes/admin/plugins.php:57
#: includes/admin/settings/contextual-help.php:87
-#: includes/admin/settings/register-settings.php:1220
+#: includes/admin/settings/register-settings.php:1234
msgid "Extensions"
msgstr ""
@@ -314,6 +314,7 @@ msgid "A discount with that code already exists, please use a different code."
msgstr ""
#: includes/admin/class-edd-notices.php:127
+#: includes/admin/discounts/edit-discount.php:33
msgid "Discount code updated."
msgstr ""
@@ -407,7 +408,7 @@ msgstr ""
#: includes/admin/customers/class-customer-table.php:72
#: includes/admin/payments/class-payments-table.php:277
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:148
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:155
#: includes/admin/reporting/class-sales-logs-list-table.php:131
msgid "Customer"
msgstr ""
@@ -426,7 +427,7 @@ msgstr ""
#: includes/admin/customers/class-customer-table.php:161
#: includes/admin/discounts/class-discount-codes-table.php:221
-#: includes/admin/discounts/class-discount-codes-table.php:289
+#: includes/admin/discounts/class-discount-codes-table.php:277
#: includes/admin/payments/class-payments-table.php:373
#: includes/admin/payments/class-payments-table.php:445
#: includes/payments/functions.php:1597
@@ -438,9 +439,9 @@ msgid "(Pending Verification)"
msgstr ""
#: includes/admin/customers/class-customer-table.php:179
-#: includes/admin/discounts/add-discount.php:23
+#: includes/admin/discounts/add-discount.php:32
#: includes/admin/discounts/class-discount-codes-table.php:145
-#: includes/admin/discounts/edit-discount.php:37
+#: includes/admin/discounts/edit-discount.php:46
#: includes/admin/downloads/dashboard-columns.php:31
#: includes/admin/payments/view-order-details.php:660
#: includes/admin/reporting/class-export-customers.php:76
@@ -510,7 +511,7 @@ msgid "An error has occured. Please try again."
msgstr ""
#: includes/admin/customers/customer-actions.php:207
-#: includes/user-functions.php:905
+#: includes/user-functions.php:913
msgid "Nonce verification failed."
msgstr ""
@@ -551,7 +552,7 @@ msgid "Nonce verification failed"
msgstr ""
#: includes/admin/customers/customer-actions.php:311
-#: includes/shortcodes.php:935
+#: includes/shortcodes.php:952
msgid "Email address %s removed by %s"
msgstr ""
@@ -634,7 +635,7 @@ msgid "City"
msgstr ""
#: includes/admin/customers/customers.php:269
-#: includes/admin/settings/register-settings.php:2018
+#: includes/admin/settings/register-settings.php:2032
#: includes/admin/tools.php:695 includes/checkout/template.php:435
#: templates/shortcode-profile-editor.php:171
msgid "State / Province"
@@ -710,6 +711,7 @@ msgstr ""
#: includes/admin/reporting/class-export-payments.php:63
#: includes/admin/reporting/export/class-batch-export-customers.php:44
#: includes/admin/reporting/export/class-batch-export-payments.php:42
+#: includes/admin/reporting/export/class-batch-export-sales.php:43
#: includes/admin/tools.php:497 templates/shortcode-register.php:25
msgid "Email"
msgstr ""
@@ -736,7 +738,7 @@ msgstr ""
#: includes/admin/downloads/metabox.php:698
#: includes/admin/downloads/metabox.php:823
#: includes/admin/payments/view-order-details.php:490
-#: includes/admin/settings/register-settings.php:2021 includes/scripts.php:226
+#: includes/admin/settings/register-settings.php:2035 includes/scripts.php:226
#: templates/checkout_cart.php:57 templates/checkout_cart.php:75
#: templates/shortcode-profile-editor.php:123
msgid "Remove"
@@ -770,9 +772,9 @@ msgid "ID"
msgstr ""
#: includes/admin/customers/customers.php:435
-#: includes/admin/discounts/add-discount.php:56
+#: includes/admin/discounts/add-discount.php:65
#: includes/admin/discounts/class-discount-codes-table.php:147
-#: includes/admin/discounts/edit-discount.php:70
+#: includes/admin/discounts/edit-discount.php:79
#: includes/admin/payments/class-payments-table.php:275
#: includes/admin/reporting/class-export-payments.php:74
#: includes/admin/reporting/export/class-batch-export-payments.php:55
@@ -787,13 +789,13 @@ msgstr ""
#: includes/admin/reporting/class-export-download-history.php:64
#: includes/admin/reporting/class-export-payments.php:80
#: includes/admin/reporting/class-export.php:70
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:152
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:159
#: includes/admin/reporting/class-gateway-error-logs-list-table.php:134
#: includes/admin/reporting/class-sales-logs-list-table.php:135
#: includes/admin/reporting/export/class-batch-export-api-requests.php:47
#: includes/admin/reporting/export/class-batch-export-file-downloads.php:42
#: includes/admin/reporting/export/class-batch-export-payments.php:61
-#: includes/admin/reporting/export/class-batch-export-sales.php:46
+#: includes/admin/reporting/export/class-batch-export-sales.php:50
#: includes/admin/tools.php:587 templates/history-purchases.php:19
#: templates/shortcode-receipt.php:59
msgid "Date"
@@ -801,7 +803,7 @@ msgstr ""
#: includes/admin/customers/customers.php:437
#: includes/admin/discounts/class-discount-codes-table.php:151
-#: includes/admin/discounts/edit-discount.php:175
+#: includes/admin/discounts/edit-discount.php:184
#: includes/admin/payments/class-payments-table.php:278
#: includes/admin/reporting/class-export-payments.php:82
#: includes/admin/reporting/export/class-batch-export-downloads.php:49
@@ -949,185 +951,188 @@ msgstr ""
msgid "Add New Discount"
msgstr ""
-#: includes/admin/discounts/add-discount.php:15
-#: includes/admin/discounts/edit-discount.php:29
-#: includes/admin/reporting/reports.php:190
-msgid "Go Back"
+#: includes/admin/discounts/add-discount.php:19
+msgid "Discount code created."
+msgstr ""
+
+#: includes/admin/discounts/add-discount.php:21
+#: includes/admin/discounts/edit-discount.php:35
+msgid "← Back to Discounts"
msgstr ""
-#: includes/admin/discounts/add-discount.php:27
+#: includes/admin/discounts/add-discount.php:36
msgid "The name of this discount."
msgstr ""
-#: includes/admin/discounts/add-discount.php:33
+#: includes/admin/discounts/add-discount.php:42
#: includes/admin/discounts/class-discount-codes-table.php:146
-#: includes/admin/discounts/edit-discount.php:47
+#: includes/admin/discounts/edit-discount.php:56
msgid "Code"
msgstr ""
-#: includes/admin/discounts/add-discount.php:37
-#: includes/admin/discounts/edit-discount.php:51
+#: includes/admin/discounts/add-discount.php:46
+#: includes/admin/discounts/edit-discount.php:60
msgid ""
"Enter a code for this discount, such as 10PERCENT. Only alphanumeric "
"characters are allowed."
msgstr ""
-#: includes/admin/discounts/add-discount.php:43
-#: includes/admin/discounts/edit-discount.php:57
+#: includes/admin/discounts/add-discount.php:52
+#: includes/admin/discounts/edit-discount.php:66
msgid "Type"
msgstr ""
-#: includes/admin/discounts/add-discount.php:47
-#: includes/admin/discounts/edit-discount.php:61
+#: includes/admin/discounts/add-discount.php:56
+#: includes/admin/discounts/edit-discount.php:70
msgid "Percentage"
msgstr ""
-#: includes/admin/discounts/add-discount.php:48
-#: includes/admin/discounts/edit-discount.php:62
+#: includes/admin/discounts/add-discount.php:57
+#: includes/admin/discounts/edit-discount.php:71
msgid "Flat amount"
msgstr ""
-#: includes/admin/discounts/add-discount.php:50
-#: includes/admin/discounts/edit-discount.php:64
+#: includes/admin/discounts/add-discount.php:59
+#: includes/admin/discounts/edit-discount.php:73
msgid "The kind of discount to apply for this discount."
msgstr ""
-#: includes/admin/discounts/add-discount.php:60
-#: includes/admin/discounts/edit-discount.php:74
+#: includes/admin/discounts/add-discount.php:69
+#: includes/admin/discounts/edit-discount.php:83
msgid "Enter the discount amount in %s"
msgstr ""
-#: includes/admin/discounts/add-discount.php:61
-#: includes/admin/discounts/edit-discount.php:75
+#: includes/admin/discounts/add-discount.php:70
+#: includes/admin/discounts/edit-discount.php:84
msgid "Enter the discount percentage. 10 = 10%"
msgstr ""
-#: includes/admin/discounts/add-discount.php:67
-#: includes/admin/discounts/edit-discount.php:81
+#: includes/admin/discounts/add-discount.php:76
+#: includes/admin/discounts/edit-discount.php:90
msgid "%s Requirements"
msgstr ""
-#: includes/admin/discounts/add-discount.php:76
-#: includes/admin/discounts/add-discount.php:112
-#: includes/admin/discounts/edit-discount.php:91
-#: includes/admin/discounts/edit-discount.php:127
+#: includes/admin/discounts/add-discount.php:85
+#: includes/admin/discounts/add-discount.php:121
+#: includes/admin/discounts/edit-discount.php:100
+#: includes/admin/discounts/edit-discount.php:136
msgid "Select one or more %s"
msgstr ""
-#: includes/admin/discounts/add-discount.php:82
-#: includes/admin/discounts/edit-discount.php:97
+#: includes/admin/discounts/add-discount.php:91
+#: includes/admin/discounts/edit-discount.php:106
msgid "Cart must contain all selected %s"
msgstr ""
-#: includes/admin/discounts/add-discount.php:83
-#: includes/admin/discounts/edit-discount.php:98
+#: includes/admin/discounts/add-discount.php:92
+#: includes/admin/discounts/edit-discount.php:107
msgid "Cart needs one or more of the selected %s"
msgstr ""
-#: includes/admin/discounts/add-discount.php:89
-#: includes/admin/discounts/edit-discount.php:104
+#: includes/admin/discounts/add-discount.php:98
+#: includes/admin/discounts/edit-discount.php:113
msgid "Apply discount to entire purchase."
msgstr ""
-#: includes/admin/discounts/add-discount.php:93
-#: includes/admin/discounts/edit-discount.php:108
+#: includes/admin/discounts/add-discount.php:102
+#: includes/admin/discounts/edit-discount.php:117
msgid "Apply discount only to selected %s."
msgstr ""
-#: includes/admin/discounts/add-discount.php:97
-#: includes/admin/discounts/edit-discount.php:112
+#: includes/admin/discounts/add-discount.php:106
+#: includes/admin/discounts/edit-discount.php:121
msgid ""
"Select %s relevant to this discount. If left blank, this discount can be "
"used on any product."
msgstr ""
-#: includes/admin/discounts/add-discount.php:103
-#: includes/admin/discounts/edit-discount.php:118
+#: includes/admin/discounts/add-discount.php:112
+#: includes/admin/discounts/edit-discount.php:127
msgid "Excluded %s"
msgstr ""
-#: includes/admin/discounts/add-discount.php:114
-#: includes/admin/discounts/edit-discount.php:129
+#: includes/admin/discounts/add-discount.php:123
+#: includes/admin/discounts/edit-discount.php:138
msgid "%s that this discount code cannot be applied to."
msgstr ""
-#: includes/admin/discounts/add-discount.php:120
-#: includes/admin/discounts/edit-discount.php:135
+#: includes/admin/discounts/add-discount.php:129
+#: includes/admin/discounts/edit-discount.php:144
msgid "Start date"
msgstr ""
-#: includes/admin/discounts/add-discount.php:124
-#: includes/admin/discounts/edit-discount.php:139
+#: includes/admin/discounts/add-discount.php:133
+#: includes/admin/discounts/edit-discount.php:148
msgid ""
"Enter the start date for this discount code in the format of mm/dd/yyyy. "
"For no start date, leave blank. If entered, the discount can only be used "
"after or on this date."
msgstr ""
-#: includes/admin/discounts/add-discount.php:130
-#: includes/admin/discounts/edit-discount.php:145
+#: includes/admin/discounts/add-discount.php:139
+#: includes/admin/discounts/edit-discount.php:154
msgid "Expiration date"
msgstr ""
-#: includes/admin/discounts/add-discount.php:134
+#: includes/admin/discounts/add-discount.php:143
msgid ""
"Enter the expiration date for this discount code in the format of "
"mm/dd/yyyy. For no expiration, leave blank."
msgstr ""
-#: includes/admin/discounts/add-discount.php:140
-#: includes/admin/discounts/edit-discount.php:165
+#: includes/admin/discounts/add-discount.php:149
+#: includes/admin/discounts/edit-discount.php:174
msgid "Minimum Amount"
msgstr ""
-#: includes/admin/discounts/add-discount.php:144
+#: includes/admin/discounts/add-discount.php:153
msgid ""
"The minimum dollar amount that must be in the cart before this discount can "
"be used. Leave blank for no minimum."
msgstr ""
-#: includes/admin/discounts/add-discount.php:150
-#: includes/admin/discounts/edit-discount.php:155
+#: includes/admin/discounts/add-discount.php:159
+#: includes/admin/discounts/edit-discount.php:164
msgid "Max Uses"
msgstr ""
-#: includes/admin/discounts/add-discount.php:154
-#: includes/admin/discounts/edit-discount.php:159
+#: includes/admin/discounts/add-discount.php:163
+#: includes/admin/discounts/edit-discount.php:168
msgid ""
"The maximum number of times this discount can be used. Leave blank for "
"unlimited."
msgstr ""
-#: includes/admin/discounts/add-discount.php:160
-#: includes/admin/discounts/edit-discount.php:188
+#: includes/admin/discounts/add-discount.php:169
+#: includes/admin/discounts/edit-discount.php:197
msgid "Use Once Per Customer"
msgstr ""
-#: includes/admin/discounts/add-discount.php:164
-#: includes/admin/discounts/edit-discount.php:192
+#: includes/admin/discounts/add-discount.php:173
+#: includes/admin/discounts/edit-discount.php:201
msgid "Limit this discount to a single-use per customer?"
msgstr ""
-#: includes/admin/discounts/add-discount.php:174
+#: includes/admin/discounts/add-discount.php:183
msgid "Add Discount Code"
msgstr ""
#: includes/admin/discounts/class-discount-codes-table.php:127
#: includes/admin/payments/class-payments-table.php:249
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:350
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:357
#: includes/admin/reporting/class-sales-logs-list-table.php:290
msgid "All"
msgstr ""
#: includes/admin/discounts/class-discount-codes-table.php:128
-#: includes/admin/discounts/class-discount-codes-table.php:262
-#: includes/admin/discounts/edit-discount.php:179
+#: includes/admin/discounts/edit-discount.php:188
+#: includes/class-edd-discount.php:787
msgid "Active"
msgstr ""
#: includes/admin/discounts/class-discount-codes-table.php:129
-#: includes/admin/discounts/class-discount-codes-table.php:258
-#: includes/admin/discounts/edit-discount.php:180
+#: includes/admin/discounts/edit-discount.php:189
+#: includes/class-edd-discount.php:783
msgid "Inactive"
msgstr ""
@@ -1148,28 +1153,24 @@ msgid "Edit"
msgstr ""
#: includes/admin/discounts/class-discount-codes-table.php:216
-#: includes/admin/discounts/class-discount-codes-table.php:288
+#: includes/admin/discounts/class-discount-codes-table.php:276
msgid "Deactivate"
msgstr ""
#: includes/admin/discounts/class-discount-codes-table.php:218
-#: includes/admin/discounts/class-discount-codes-table.php:287
+#: includes/admin/discounts/class-discount-codes-table.php:275
msgid "Activate"
msgstr ""
-#: includes/admin/discounts/class-discount-codes-table.php:255
-msgid "Expired"
-msgstr ""
-
-#: includes/admin/discounts/class-discount-codes-table.php:275
+#: includes/admin/discounts/class-discount-codes-table.php:263
msgid "No discounts found."
msgstr ""
-#: includes/admin/discounts/class-discount-codes-table.php:395
+#: includes/admin/discounts/class-discount-codes-table.php:383
msgid "No start date"
msgstr ""
-#: includes/admin/discounts/class-discount-codes-table.php:401
+#: includes/admin/discounts/class-discount-codes-table.php:389
msgid "No expiration"
msgstr ""
@@ -1203,12 +1204,12 @@ msgstr ""
#: includes/admin/discounts/contextual-help.php:38
#: includes/admin/settings/contextual-help.php:42
-#: includes/admin/settings/register-settings.php:1213
-#: includes/admin/settings/register-settings.php:1268
-#: includes/admin/settings/register-settings.php:1273
-#: includes/admin/settings/register-settings.php:1277
+#: includes/admin/settings/register-settings.php:1227
#: includes/admin/settings/register-settings.php:1282
-#: includes/admin/settings/register-settings.php:1285
+#: includes/admin/settings/register-settings.php:1287
+#: includes/admin/settings/register-settings.php:1291
+#: includes/admin/settings/register-settings.php:1296
+#: includes/admin/settings/register-settings.php:1299
#: includes/admin/tools.php:68
msgid "General"
msgstr ""
@@ -1346,27 +1347,27 @@ msgstr ""
msgid "Edit Discount"
msgstr ""
-#: includes/admin/discounts/edit-discount.php:41
+#: includes/admin/discounts/edit-discount.php:50
msgid "The name of this discount"
msgstr ""
-#: includes/admin/discounts/edit-discount.php:149
+#: includes/admin/discounts/edit-discount.php:158
msgid ""
"Enter the expiration date for this discount code in the format of "
"mm/dd/yyyy. For no expiration, leave blank"
msgstr ""
-#: includes/admin/discounts/edit-discount.php:169
+#: includes/admin/discounts/edit-discount.php:178
msgid ""
"The minimum amount that must be purchased before this discount can be used. "
"Leave blank for no minimum."
msgstr ""
-#: includes/admin/discounts/edit-discount.php:182
+#: includes/admin/discounts/edit-discount.php:191
msgid "The status of this discount code."
msgstr ""
-#: includes/admin/discounts/edit-discount.php:203
+#: includes/admin/discounts/edit-discount.php:212
msgid "Update Discount Code"
msgstr ""
@@ -1566,7 +1567,7 @@ msgstr ""
msgid "Option Name"
msgstr ""
-#: includes/admin/downloads/metabox.php:478 includes/download-functions.php:511
+#: includes/admin/downloads/metabox.php:478 includes/download-functions.php:523
msgid "Default"
msgstr ""
@@ -1713,7 +1714,7 @@ msgid ""
msgstr ""
#: includes/admin/downloads/metabox.php:1031
-#: includes/admin/settings/register-settings.php:737
+#: includes/admin/settings/register-settings.php:744
#: includes/admin/thickbox.php:59 includes/checkout/template.php:893
#: includes/shortcodes.php:49 includes/template-functions.php:78
msgid "Purchase"
@@ -1754,13 +1755,13 @@ msgid ""
msgstr ""
#: includes/admin/downloads/metabox.php:1105
-#: includes/admin/settings/register-settings.php:751
+#: includes/admin/settings/register-settings.php:758
#: includes/admin/thickbox.php:97
msgid "Add to Cart"
msgstr ""
#: includes/admin/downloads/metabox.php:1106
-#: includes/admin/settings/register-settings.php:758 includes/shortcodes.php:47
+#: includes/admin/settings/register-settings.php:772 includes/shortcodes.php:47
#: includes/template-functions.php:78
msgid "Buy Now"
msgstr ""
@@ -2188,7 +2189,7 @@ msgstr[0] ""
msgstr[1] ""
#: includes/admin/payments/view-order-details.php:152
-#: includes/admin/settings/register-settings.php:713
+#: includes/admin/settings/register-settings.php:720
msgid "None"
msgstr ""
@@ -2389,7 +2390,7 @@ msgid "General Settings"
msgstr ""
#: includes/admin/reporting/class-api-requests-logs-list-table.php:89
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:146
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:153
#: includes/admin/reporting/class-gateway-error-logs-list-table.php:129
#: includes/admin/reporting/class-sales-logs-list-table.php:130
#: includes/admin/reporting/export/class-batch-export-api-requests.php:40
@@ -2478,6 +2479,7 @@ msgstr ""
#: includes/admin/reporting/class-export-customers.php:66
#: includes/admin/reporting/class-export-payments.php:64
#: includes/admin/reporting/export/class-batch-export-payments.php:44
+#: includes/admin/reporting/export/class-batch-export-sales.php:44
#: includes/admin/tools.php:506 includes/checkout/template.php:193
#: includes/checkout/template.php:199 templates/shortcode-profile-editor.php:38
msgid "First Name"
@@ -2486,6 +2488,7 @@ msgstr ""
#: includes/admin/reporting/class-export-customers.php:67
#: includes/admin/reporting/class-export-payments.php:65
#: includes/admin/reporting/export/class-batch-export-payments.php:45
+#: includes/admin/reporting/export/class-batch-export-sales.php:45
#: includes/admin/tools.php:515 includes/checkout/template.php:203
#: includes/checkout/template.php:209 templates/shortcode-profile-editor.php:43
msgid "Last Name"
@@ -2509,7 +2512,7 @@ msgid "Downloaded by"
msgstr ""
#: includes/admin/reporting/class-export-download-history.php:66
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:151
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:158
#: includes/admin/reporting/export/class-batch-export-api-requests.php:42
#: includes/admin/reporting/export/class-batch-export-file-downloads.php:44
#: includes/admin/reporting/export/class-batch-export-payments.php:64
@@ -2523,7 +2526,7 @@ msgid "Product"
msgstr ""
#: includes/admin/reporting/class-export-download-history.php:68
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:150
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:157
#: includes/admin/reporting/export/class-batch-export-file-downloads.php:46
msgid "File"
msgstr ""
@@ -2551,7 +2554,7 @@ msgstr ""
#: includes/admin/reporting/class-export-payments.php:70
#: includes/admin/reporting/export/class-batch-export-payments.php:50
-#: includes/admin/settings/register-settings.php:2017
+#: includes/admin/settings/register-settings.php:2031
#: includes/admin/tools.php:713 templates/shortcode-profile-editor.php:162
msgid "Country"
msgstr ""
@@ -2613,11 +2616,11 @@ msgstr ""
msgid "You do not have permission to export data."
msgstr ""
-#: includes/admin/reporting/class-file-downloads-logs-list-table.php:149
+#: includes/admin/reporting/class-file-downloads-logs-list-table.php:156
#: includes/admin/reporting/class-gateway-error-logs-list-table.php:130
#: includes/admin/reporting/class-sales-logs-list-table.php:134
#: includes/admin/reporting/export/class-batch-export-payments.php:40
-#: includes/admin/reporting/export/class-batch-export-sales.php:45
+#: includes/admin/reporting/export/class-batch-export-sales.php:48
msgid "Payment ID"
msgstr ""
@@ -2652,7 +2655,7 @@ msgid "Pending / Failed Sales"
msgstr ""
#: includes/admin/reporting/class-sales-logs-list-table.php:133
-#: includes/admin/reporting/export/class-batch-export-sales.php:44
+#: includes/admin/reporting/export/class-batch-export-sales.php:47
msgid "Item Amount"
msgstr ""
@@ -2767,7 +2770,7 @@ msgid "Files"
msgstr ""
#: includes/admin/reporting/export/class-batch-export-downloads.php:54
-#: includes/admin/settings/register-settings.php:782
+#: includes/admin/settings/register-settings.php:796
#: includes/admin/tools.php:896
msgid "File Download Limit"
msgstr ""
@@ -2815,7 +2818,7 @@ msgstr ""
#: includes/admin/reporting/export/class-batch-export-payments.php:63
#: includes/admin/settings/register-settings.php:352
-#: includes/admin/settings/register-settings.php:1269
+#: includes/admin/settings/register-settings.php:1283
msgid "Currency"
msgstr ""
@@ -2828,6 +2831,10 @@ msgstr ""
msgid "Country Name"
msgstr ""
+#: includes/admin/reporting/export/class-batch-export-sales.php:49
+msgid "Price ID"
+msgstr ""
+
#: includes/admin/reporting/export/export-functions.php:49
msgid "Export location or file not writable"
msgstr ""
@@ -2943,7 +2950,7 @@ msgid "Refresh Reports"
msgstr ""
#: includes/admin/reporting/logs.php:144
-#: includes/admin/settings/register-settings.php:1295
+#: includes/admin/settings/register-settings.php:1309
msgid "File Downloads"
msgstr ""
@@ -2973,7 +2980,7 @@ msgstr ""
#: includes/admin/reporting/reports.php:59
#: includes/admin/settings/contextual-help.php:71
-#: includes/admin/settings/register-settings.php:1217
+#: includes/admin/settings/register-settings.php:1231
msgid "Taxes"
msgstr ""
@@ -2989,6 +2996,10 @@ msgstr ""
msgid "Show"
msgstr ""
+#: includes/admin/reporting/reports.php:190
+msgid "Go Back"
+msgstr ""
+
#: includes/admin/reporting/reports.php:267
msgid "Category Sales Mix: "
msgstr ""
@@ -3116,7 +3127,7 @@ msgstr ""
#: includes/admin/settings/contextual-help.php:48
#: includes/admin/settings/register-settings.php:420
-#: includes/admin/settings/register-settings.php:1214
+#: includes/admin/settings/register-settings.php:1228
msgid "Payment Gateways"
msgstr ""
@@ -3145,7 +3156,7 @@ msgid ""
msgstr ""
#: includes/admin/settings/contextual-help.php:57
-#: includes/admin/settings/register-settings.php:1215
+#: includes/admin/settings/register-settings.php:1229
msgid "Emails"
msgstr ""
@@ -3165,7 +3176,7 @@ msgid ""
msgstr ""
#: includes/admin/settings/contextual-help.php:65
-#: includes/admin/settings/register-settings.php:1216
+#: includes/admin/settings/register-settings.php:1230
msgid "Styles"
msgstr ""
@@ -3248,7 +3259,7 @@ msgid ""
msgstr ""
#: includes/admin/settings/contextual-help.php:93
-#: includes/admin/settings/register-settings.php:1292
+#: includes/admin/settings/register-settings.php:1306
msgid "Miscellaneous"
msgstr ""
@@ -3280,7 +3291,7 @@ msgid ""
msgstr ""
#: includes/admin/settings/register-settings.php:262
-msgid "Checkout Page"
+msgid "Primary Checkout Page"
msgstr ""
#: includes/admin/settings/register-settings.php:263
@@ -3425,7 +3436,7 @@ msgid "The symbol (usually , or .) to separate decimal points."
msgstr ""
#: includes/admin/settings/register-settings.php:388
-#: includes/admin/settings/register-settings.php:1270
+#: includes/admin/settings/register-settings.php:1284
msgid "API"
msgstr ""
@@ -3586,157 +3597,170 @@ msgid "Enter the subject line for the sale notification email."
msgstr ""
#: includes/admin/settings/register-settings.php:526
-msgid "Sale Notification"
+msgid "Sale Notification Heading"
msgstr ""
#: includes/admin/settings/register-settings.php:527
+msgid "Enter the heading for the sale notification email."
+msgstr ""
+
+#: includes/admin/settings/register-settings.php:529
+#: includes/emails/functions.php:140
+msgid "New Sale!"
+msgstr ""
+
+#: includes/admin/settings/register-settings.php:533
+msgid "Sale Notification"
+msgstr ""
+
+#: includes/admin/settings/register-settings.php:534
msgid ""
"Enter the text that is sent as sale notification email after completion of "
"a purchase. HTML is accepted. Available template tags:"
msgstr ""
-#: includes/admin/settings/register-settings.php:533
+#: includes/admin/settings/register-settings.php:540
msgid "Sale Notification Emails"
msgstr ""
-#: includes/admin/settings/register-settings.php:534
+#: includes/admin/settings/register-settings.php:541
msgid ""
"Enter the email address(es) that should receive a notification anytime a "
"sale is made, one per line."
msgstr ""
-#: includes/admin/settings/register-settings.php:540
+#: includes/admin/settings/register-settings.php:547
msgid "Disable Admin Notifications"
msgstr ""
-#: includes/admin/settings/register-settings.php:541
+#: includes/admin/settings/register-settings.php:548
msgid "Check this box if you do not want to receive sales notification emails."
msgstr ""
-#: includes/admin/settings/register-settings.php:553
+#: includes/admin/settings/register-settings.php:560
msgid "Disable Styles"
msgstr ""
-#: includes/admin/settings/register-settings.php:554
+#: includes/admin/settings/register-settings.php:561
msgid ""
"Check this to disable all included styling of buttons, checkout fields, and "
"all other elements."
msgstr ""
-#: includes/admin/settings/register-settings.php:556
+#: includes/admin/settings/register-settings.php:563
msgid "Disabling Styles"
msgstr ""
-#: includes/admin/settings/register-settings.php:557
+#: includes/admin/settings/register-settings.php:564
msgid ""
"If your theme has a complete custom CSS file for Easy Digital Downloads, "
"you may wish to disable our default styles. This is not recommended unless "
"you're sure your theme has a complete custom CSS."
msgstr ""
-#: includes/admin/settings/register-settings.php:561
+#: includes/admin/settings/register-settings.php:568
msgid "Buttons"
msgstr ""
-#: includes/admin/settings/register-settings.php:562
+#: includes/admin/settings/register-settings.php:569
msgid "Options for add to cart and purchase buttons"
msgstr ""
-#: includes/admin/settings/register-settings.php:567
+#: includes/admin/settings/register-settings.php:574
msgid "Default Button Style"
msgstr ""
-#: includes/admin/settings/register-settings.php:568
+#: includes/admin/settings/register-settings.php:575
msgid "Choose the style you want to use for the buttons."
msgstr ""
-#: includes/admin/settings/register-settings.php:574
+#: includes/admin/settings/register-settings.php:581
msgid "Default Button Color"
msgstr ""
-#: includes/admin/settings/register-settings.php:575
+#: includes/admin/settings/register-settings.php:582
msgid "Choose the color you want to use for the buttons."
msgstr ""
-#: includes/admin/settings/register-settings.php:588
+#: includes/admin/settings/register-settings.php:595
msgid "Need help?"
msgstr ""
-#: includes/admin/settings/register-settings.php:589
+#: includes/admin/settings/register-settings.php:596
msgid ""
"Visit the Tax setup documentation for "
"further information. If you need VAT support, there are options listed on "
"the documentation page."
msgstr ""
-#: includes/admin/settings/register-settings.php:594
+#: includes/admin/settings/register-settings.php:601
msgid "Enable Taxes"
msgstr ""
-#: includes/admin/settings/register-settings.php:595
+#: includes/admin/settings/register-settings.php:602
msgid "Check this to enable taxes on purchases."
msgstr ""
-#: includes/admin/settings/register-settings.php:597
+#: includes/admin/settings/register-settings.php:604
msgid "Enabling Taxes"
msgstr ""
-#: includes/admin/settings/register-settings.php:598
+#: includes/admin/settings/register-settings.php:605
msgid ""
"With taxes enabled, Easy Digital Downloads will use the rules below to "
"charge tax to customers. With taxes enabled, customers are required to "
"input their address on checkout so that taxes can be properly calculated."
msgstr ""
-#: includes/admin/settings/register-settings.php:602
+#: includes/admin/settings/register-settings.php:609
msgid "Tax Rates"
msgstr ""
-#: includes/admin/settings/register-settings.php:603
+#: includes/admin/settings/register-settings.php:610
msgid ""
"Add tax rates for specific regions. Enter a percentage, such as 6.5 for "
"6.5%."
msgstr ""
-#: includes/admin/settings/register-settings.php:608
-#: includes/admin/settings/register-settings.php:612
+#: includes/admin/settings/register-settings.php:615
+#: includes/admin/settings/register-settings.php:619
msgid "Fallback Tax Rate"
msgstr ""
-#: includes/admin/settings/register-settings.php:609
+#: includes/admin/settings/register-settings.php:616
msgid ""
"Customers not in a specific rate will be charged this tax rate. Enter a "
"percentage, such as 6.5 for 6.5%. "
msgstr ""
-#: includes/admin/settings/register-settings.php:613
+#: includes/admin/settings/register-settings.php:620
msgid ""
"If the customer's address fails to meet the above tax rules, you can define "
"a `default` tax rate to be applied to all other customers. Enter a "
"percentage, such as 6.5 for 6.5%."
msgstr ""
-#: includes/admin/settings/register-settings.php:617
+#: includes/admin/settings/register-settings.php:624
msgid "Prices entered with tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:618
+#: includes/admin/settings/register-settings.php:625
msgid "This option affects how you enter prices."
msgstr ""
-#: includes/admin/settings/register-settings.php:622
+#: includes/admin/settings/register-settings.php:629
msgid "Yes, I will enter prices inclusive of tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:623
+#: includes/admin/settings/register-settings.php:630
msgid "No, I will enter prices exclusive of tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:625
+#: includes/admin/settings/register-settings.php:632
msgid "Prices Inclusive of Tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:626
+#: includes/admin/settings/register-settings.php:633
msgid ""
"When using prices inclusive of tax, you will be entering your prices as the "
"total amount you want a customer to pay for the download, including tax. "
@@ -3744,207 +3768,217 @@ msgid ""
"for the defined total price."
msgstr ""
-#: includes/admin/settings/register-settings.php:630
+#: includes/admin/settings/register-settings.php:637
msgid "Display Tax Rate on Prices"
msgstr ""
-#: includes/admin/settings/register-settings.php:631
+#: includes/admin/settings/register-settings.php:638
msgid "Some countries require a notice when product prices include tax."
msgstr ""
-#: includes/admin/settings/register-settings.php:636
+#: includes/admin/settings/register-settings.php:643
msgid "Display during checkout"
msgstr ""
-#: includes/admin/settings/register-settings.php:637
+#: includes/admin/settings/register-settings.php:644
msgid "Should prices on the checkout page be shown with or without tax?"
msgstr ""
-#: includes/admin/settings/register-settings.php:641
+#: includes/admin/settings/register-settings.php:648
msgid "Including tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:642
+#: includes/admin/settings/register-settings.php:649
msgid "Excluding tax"
msgstr ""
-#: includes/admin/settings/register-settings.php:644
+#: includes/admin/settings/register-settings.php:651
msgid "Taxes Displayed for Products on Checkout"
msgstr ""
-#: includes/admin/settings/register-settings.php:645
+#: includes/admin/settings/register-settings.php:652
msgid ""
"This option will determine whether the product price displays with or "
"without tax on checkout."
msgstr ""
-#: includes/admin/settings/register-settings.php:663
-#: includes/admin/settings/register-settings.php:666
+#: includes/admin/settings/register-settings.php:670
+#: includes/admin/settings/register-settings.php:673
msgid "Redirect to Checkout"
msgstr ""
-#: includes/admin/settings/register-settings.php:664
+#: includes/admin/settings/register-settings.php:671
msgid "Immediately redirect to checkout after adding an item to the cart?"
msgstr ""
-#: includes/admin/settings/register-settings.php:667
+#: includes/admin/settings/register-settings.php:674
msgid ""
"When enabled, once an item has been added to the cart, the customer will be "
"redirected directly to your checkout page. This is useful for stores that "
"sell single items."
msgstr ""
-#: includes/admin/settings/register-settings.php:671
+#: includes/admin/settings/register-settings.php:678
msgid "Cart Item Quantities"
msgstr ""
-#: includes/admin/settings/register-settings.php:672
+#: includes/admin/settings/register-settings.php:679
msgid ""
"Allow quantities to be adjusted when adding %s to the cart, and while "
"viewing the checkout cart."
msgstr ""
-#: includes/admin/settings/register-settings.php:677
+#: includes/admin/settings/register-settings.php:684
msgid "Debug Mode"
msgstr ""
-#: includes/admin/settings/register-settings.php:678
+#: includes/admin/settings/register-settings.php:685
msgid ""
"Check this box to enable debug mode. When enabled, debug messages will be "
"logged and shown in Downloads → Tools → Debug Log."
msgstr ""
-#: includes/admin/settings/register-settings.php:683
+#: includes/admin/settings/register-settings.php:690
msgid "Remove Data on Uninstall?"
msgstr ""
-#: includes/admin/settings/register-settings.php:684
+#: includes/admin/settings/register-settings.php:691
msgid ""
"Check this box if you would like EDD to completely remove all of its data "
"when the plugin is deleted."
msgstr ""
-#: includes/admin/settings/register-settings.php:691
+#: includes/admin/settings/register-settings.php:698
msgid "Enforce SSL on Checkout"
msgstr ""
-#: includes/admin/settings/register-settings.php:692
+#: includes/admin/settings/register-settings.php:699
msgid ""
"Check this to force users to be redirected to the secure checkout page. You "
"must have an SSL certificate installed to use this option."
msgstr ""
-#: includes/admin/settings/register-settings.php:697
-#: includes/admin/settings/register-settings.php:700
+#: includes/admin/settings/register-settings.php:704
+#: includes/admin/settings/register-settings.php:707
msgid "Require Login"
msgstr ""
-#: includes/admin/settings/register-settings.php:698
+#: includes/admin/settings/register-settings.php:705
msgid "Require that users be logged-in to purchase files."
msgstr ""
-#: includes/admin/settings/register-settings.php:701
+#: includes/admin/settings/register-settings.php:708
msgid ""
"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."
msgstr ""
-#: includes/admin/settings/register-settings.php:705
+#: includes/admin/settings/register-settings.php:712
msgid "Show Register / Login Form?"
msgstr ""
-#: includes/admin/settings/register-settings.php:706
+#: includes/admin/settings/register-settings.php:713
msgid ""
"Display the registration and login forms on the checkout page for "
"non-logged-in users."
msgstr ""
-#: includes/admin/settings/register-settings.php:710
+#: includes/admin/settings/register-settings.php:717
msgid "Registration and Login Forms"
msgstr ""
-#: includes/admin/settings/register-settings.php:711
+#: includes/admin/settings/register-settings.php:718
msgid "Registration Form Only"
msgstr ""
-#: includes/admin/settings/register-settings.php:712
+#: includes/admin/settings/register-settings.php:719
msgid "Login Form Only"
msgstr ""
-#: includes/admin/settings/register-settings.php:718
+#: includes/admin/settings/register-settings.php:725
msgid "Multiple Discounts"
msgstr ""
-#: includes/admin/settings/register-settings.php:719
+#: includes/admin/settings/register-settings.php:726
msgid "Allow customers to use multiple discounts on the same purchase?"
msgstr ""
-#: includes/admin/settings/register-settings.php:724
+#: includes/admin/settings/register-settings.php:731
msgid "Enable Cart Saving"
msgstr ""
-#: includes/admin/settings/register-settings.php:725
+#: includes/admin/settings/register-settings.php:732
msgid "Check this to enable cart saving on the checkout."
msgstr ""
-#: includes/admin/settings/register-settings.php:727
+#: includes/admin/settings/register-settings.php:734
msgid "Cart Saving"
msgstr ""
-#: includes/admin/settings/register-settings.php:728
+#: includes/admin/settings/register-settings.php:735
msgid ""
"Cart saving allows shoppers to create a temporary link to their current "
"shopping cart so they can come back to it later, or share it with someone."
msgstr ""
-#: includes/admin/settings/register-settings.php:734
+#: includes/admin/settings/register-settings.php:741
msgid "Complete Purchase Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:735
+#: includes/admin/settings/register-settings.php:742
msgid "The button label for completing a purchase."
msgstr ""
-#: includes/admin/settings/register-settings.php:741
+#: includes/admin/settings/register-settings.php:748
msgid "Register Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:742
+#: includes/admin/settings/register-settings.php:749
msgid "The button label for completing a free purchase."
msgstr ""
-#: includes/admin/settings/register-settings.php:744
+#: includes/admin/settings/register-settings.php:751
#: includes/checkout/template.php:896
msgid "Free Download"
msgstr ""
-#: includes/admin/settings/register-settings.php:748
+#: includes/admin/settings/register-settings.php:755
msgid "Add to Cart Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:749
+#: includes/admin/settings/register-settings.php:756
msgid "Text shown on the Add to Cart Buttons."
msgstr ""
-#: includes/admin/settings/register-settings.php:755
+#: includes/admin/settings/register-settings.php:762
+msgid "Checkout Button Text"
+msgstr ""
+
+#: includes/admin/settings/register-settings.php:763
+msgid ""
+"Text shown on the Add to Cart Button when the product is already in the "
+"cart."
+msgstr ""
+
+#: includes/admin/settings/register-settings.php:769
msgid "Buy Now Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:756
+#: includes/admin/settings/register-settings.php:770
msgid "Text shown on the Buy Now Buttons."
msgstr ""
-#: includes/admin/settings/register-settings.php:764
-#: includes/admin/settings/register-settings.php:767
+#: includes/admin/settings/register-settings.php:778
+#: includes/admin/settings/register-settings.php:781
msgid "Download Method"
msgstr ""
-#: includes/admin/settings/register-settings.php:765
+#: includes/admin/settings/register-settings.php:779
msgid "Select the file download method. Note, not all methods work on all servers."
msgstr ""
-#: includes/admin/settings/register-settings.php:768
+#: includes/admin/settings/register-settings.php:782
msgid ""
"Due to its consistency in multiple platforms and better file protection, "
"'forced' is the default method. Because Easy Digital Downloads uses PHP to "
@@ -3955,35 +3989,35 @@ msgid ""
"method can help resolve this."
msgstr ""
-#: includes/admin/settings/register-settings.php:770
+#: includes/admin/settings/register-settings.php:784
msgid "Forced"
msgstr ""
-#: includes/admin/settings/register-settings.php:771
+#: includes/admin/settings/register-settings.php:785
msgid "Redirect"
msgstr ""
-#: includes/admin/settings/register-settings.php:776
+#: includes/admin/settings/register-settings.php:790
msgid "Symlink File Downloads?"
msgstr ""
-#: includes/admin/settings/register-settings.php:777
+#: includes/admin/settings/register-settings.php:791
msgid ""
"Check this if you are delivering really large files or having problems with "
"file downloads completing."
msgstr ""
-#: includes/admin/settings/register-settings.php:783
+#: includes/admin/settings/register-settings.php:797
msgid ""
"The maximum number of times files can be downloaded for purchases. Can be "
"overwritten for each %s."
msgstr ""
-#: includes/admin/settings/register-settings.php:786
+#: includes/admin/settings/register-settings.php:800
msgid "File Download Limits"
msgstr ""
-#: includes/admin/settings/register-settings.php:787
+#: includes/admin/settings/register-settings.php:801
msgid ""
"Set the global default for the number of times a customer can download "
"items they purchase. Using a value of 0 is unlimited. This can be defined "
@@ -3991,18 +4025,18 @@ msgid ""
"individual purchase."
msgstr ""
-#: includes/admin/settings/register-settings.php:791
-#: includes/admin/settings/register-settings.php:793
+#: includes/admin/settings/register-settings.php:805
+#: includes/admin/settings/register-settings.php:807
msgid "Download Link Expiration"
msgstr ""
-#: includes/admin/settings/register-settings.php:792
+#: includes/admin/settings/register-settings.php:806
msgid ""
"How long should download links be valid for? Default is 24 hours from the "
"time they are generated. Enter a time in hours."
msgstr ""
-#: includes/admin/settings/register-settings.php:794
+#: includes/admin/settings/register-settings.php:808
msgid ""
"When a customer receives a link to their downloads via email, in their "
"receipt, or in their purchase history, the link will only be valid for the "
@@ -4011,271 +4045,270 @@ msgid ""
"customer."
msgstr ""
-#: includes/admin/settings/register-settings.php:802
+#: includes/admin/settings/register-settings.php:816
msgid "Disable Redownload?"
msgstr ""
-#: includes/admin/settings/register-settings.php:803
+#: includes/admin/settings/register-settings.php:817
msgid ""
"Check this if you do not want to allow users to redownload items from their "
"purchase history."
msgstr ""
-#: includes/admin/settings/register-settings.php:810
+#: includes/admin/settings/register-settings.php:824
msgid "Enable SKU Entry"
msgstr ""
-#: includes/admin/settings/register-settings.php:811
+#: includes/admin/settings/register-settings.php:825
msgid ""
"Check this box to allow entry of product SKUs. SKUs will be shown on "
"purchase receipt and exported purchase histories."
msgstr ""
-#: includes/admin/settings/register-settings.php:816
+#: includes/admin/settings/register-settings.php:830
msgid "Sequential Order Numbers"
msgstr ""
-#: includes/admin/settings/register-settings.php:817
+#: includes/admin/settings/register-settings.php:831
msgid "Check this box to enable sequential order numbers."
msgstr ""
-#: includes/admin/settings/register-settings.php:822
+#: includes/admin/settings/register-settings.php:836
msgid "Sequential Starting Number"
msgstr ""
-#: includes/admin/settings/register-settings.php:823
+#: includes/admin/settings/register-settings.php:837
msgid "The number at which the sequence should begin."
msgstr ""
-#: includes/admin/settings/register-settings.php:830
+#: includes/admin/settings/register-settings.php:844
msgid "Sequential Number Prefix"
msgstr ""
-#: includes/admin/settings/register-settings.php:831
+#: includes/admin/settings/register-settings.php:845
msgid "A prefix to prepend to all sequential order numbers."
msgstr ""
-#: includes/admin/settings/register-settings.php:836
+#: includes/admin/settings/register-settings.php:850
msgid "Sequential Number Postfix"
msgstr ""
-#: includes/admin/settings/register-settings.php:837
+#: includes/admin/settings/register-settings.php:851
msgid "A postfix to append to all sequential order numbers."
msgstr ""
-#: includes/admin/settings/register-settings.php:844
+#: includes/admin/settings/register-settings.php:858
msgid "Agree to Terms"
msgstr ""
-#: includes/admin/settings/register-settings.php:845
+#: includes/admin/settings/register-settings.php:859
msgid ""
"Check this to show an agree to terms on the checkout that users must agree "
"to before purchasing."
msgstr ""
-#: includes/admin/settings/register-settings.php:850
+#: includes/admin/settings/register-settings.php:864
msgid "Agree to Terms Label"
msgstr ""
-#: includes/admin/settings/register-settings.php:851
+#: includes/admin/settings/register-settings.php:865
msgid "Label shown next to the agree to terms check box."
msgstr ""
-#: includes/admin/settings/register-settings.php:857
+#: includes/admin/settings/register-settings.php:871
msgid "Agreement Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:858
+#: includes/admin/settings/register-settings.php:872
msgid "If Agree to Terms is checked, enter the agreement terms here."
msgstr ""
-#: includes/admin/settings/register-settings.php:868
+#: includes/admin/settings/register-settings.php:882
msgid "Buy Now Disabled"
msgstr ""
-#: includes/admin/settings/register-settings.php:869
+#: includes/admin/settings/register-settings.php:883
msgid ""
"Buy Now buttons are only available for stores that have a single supported "
"gateway active and that do not use taxes."
msgstr ""
-#: includes/admin/settings/register-settings.php:967
+#: includes/admin/settings/register-settings.php:981
msgid "Settings updated."
msgstr ""
-#: includes/admin/settings/register-settings.php:1107
+#: includes/admin/settings/register-settings.php:1121
msgid "Error setting default gateway. No gateways are enabled."
msgstr ""
-#: includes/admin/settings/register-settings.php:1120
+#: includes/admin/settings/register-settings.php:1134
msgid "%s could not be set as the default gateway. It must first be enabled."
msgstr ""
-#: includes/admin/settings/register-settings.php:1223
+#: includes/admin/settings/register-settings.php:1237
msgid "Licenses"
msgstr ""
-#: includes/admin/settings/register-settings.php:1226
+#: includes/admin/settings/register-settings.php:1240
msgid "Misc"
msgstr ""
-#: includes/admin/settings/register-settings.php:1274
+#: includes/admin/settings/register-settings.php:1288
#: includes/gateways/functions.php:25 includes/gateways/paypal-standard.php:33
msgid "PayPal Standard"
msgstr ""
-#: includes/admin/settings/register-settings.php:1278
+#: includes/admin/settings/register-settings.php:1292
msgid "Purchase Receipts"
msgstr ""
-#: includes/admin/settings/register-settings.php:1279
+#: includes/admin/settings/register-settings.php:1293
msgid "New Sale Notifications"
msgstr ""
-#: includes/admin/settings/register-settings.php:1288
+#: includes/admin/settings/register-settings.php:1302
msgid "Main"
msgstr ""
-#: includes/admin/settings/register-settings.php:1293 includes/install.php:92
-#: includes/template-functions.php:191 templates/widget-cart-checkout.php:6
-#: templates/widget-cart-empty.php:7
+#: includes/admin/settings/register-settings.php:1307 includes/install.php:92
+#: templates/widget-cart-checkout.php:6 templates/widget-cart-empty.php:7
msgid "Checkout"
msgstr ""
-#: includes/admin/settings/register-settings.php:1294
+#: includes/admin/settings/register-settings.php:1308
msgid "Button Text"
msgstr ""
-#: includes/admin/settings/register-settings.php:1296
+#: includes/admin/settings/register-settings.php:1310
msgid "Accounting"
msgstr ""
-#: includes/admin/settings/register-settings.php:1297
+#: includes/admin/settings/register-settings.php:1311
msgid "Terms of Agreement"
msgstr ""
-#: includes/admin/settings/register-settings.php:1539
+#: includes/admin/settings/register-settings.php:1553
msgid ""
"Don't see what you need? More Payment Gateway options are available here."
msgstr ""
-#: includes/admin/settings/register-settings.php:1760
+#: includes/admin/settings/register-settings.php:1774
msgid "The callback function used for the %s setting is missing."
msgstr ""
-#: includes/admin/settings/register-settings.php:1918
+#: includes/admin/settings/register-settings.php:1932
msgid "Upload File"
msgstr ""
-#: includes/admin/settings/register-settings.php:2019
+#: includes/admin/settings/register-settings.php:2033
msgid "Country Wide"
msgstr ""
-#: includes/admin/settings/register-settings.php:2020
+#: includes/admin/settings/register-settings.php:2034
msgid "Rate"
msgstr ""
-#: includes/admin/settings/register-settings.php:2020
+#: includes/admin/settings/register-settings.php:2034
msgid ""
"Regional tax rates: When a customer enters an address on "
"checkout that matches the specified region for this tax rate, the cart tax "
"will adjust automatically. Enter a percentage, such as 6.5 for 6.5%."
msgstr ""
-#: includes/admin/settings/register-settings.php:2037
-#: includes/admin/settings/register-settings.php:2082
+#: includes/admin/settings/register-settings.php:2051
+#: includes/admin/settings/register-settings.php:2096
msgid "Choose a country"
msgstr ""
-#: includes/admin/settings/register-settings.php:2052
+#: includes/admin/settings/register-settings.php:2066
msgid "Choose a state"
msgstr ""
-#: includes/admin/settings/register-settings.php:2064
-#: includes/admin/settings/register-settings.php:2092
+#: includes/admin/settings/register-settings.php:2078
+#: includes/admin/settings/register-settings.php:2106
msgid "Apply to whole country"
msgstr ""
-#: includes/admin/settings/register-settings.php:2067
-#: includes/admin/settings/register-settings.php:2095
+#: includes/admin/settings/register-settings.php:2081
+#: includes/admin/settings/register-settings.php:2109
msgid "Remove Rate"
msgstr ""
-#: includes/admin/settings/register-settings.php:2100
+#: includes/admin/settings/register-settings.php:2114
msgid "Add Tax Rate"
msgstr ""
-#: includes/admin/settings/register-settings.php:2153
+#: includes/admin/settings/register-settings.php:2167
msgid ""
"Your license key expired on %s. Please renew your license key."
msgstr ""
-#: includes/admin/settings/register-settings.php:2166
+#: includes/admin/settings/register-settings.php:2180
msgid ""
"Your license key has been disabled. Please contact support for more information."
msgstr ""
-#: includes/admin/settings/register-settings.php:2178
+#: includes/admin/settings/register-settings.php:2192
msgid ""
"Invalid license. Please visit your account "
"page and verify it."
msgstr ""
-#: includes/admin/settings/register-settings.php:2191
+#: includes/admin/settings/register-settings.php:2205
msgid ""
"Your %s is not active for this URL. Please visit your account page to manage your license key "
"URLs."
msgstr ""
-#: includes/admin/settings/register-settings.php:2203
+#: includes/admin/settings/register-settings.php:2217
msgid "This appears to be an invalid license key for %s."
msgstr ""
-#: includes/admin/settings/register-settings.php:2212
+#: includes/admin/settings/register-settings.php:2226
msgid ""
"Your license key has reached its activation limit. View "
"possible upgrades now."
msgstr ""
-#: includes/admin/settings/register-settings.php:2221
+#: includes/admin/settings/register-settings.php:2235
msgid ""
"The key you entered belongs to a bundle, please use the product specific "
"license key."
msgstr ""
-#: includes/admin/settings/register-settings.php:2229
+#: includes/admin/settings/register-settings.php:2243
msgid "unknown_error"
msgstr ""
-#: includes/admin/settings/register-settings.php:2230
+#: includes/admin/settings/register-settings.php:2244
msgid ""
"There was an error with this license key: %s. Please contact "
"our support team."
msgstr ""
-#: includes/admin/settings/register-settings.php:2250
+#: includes/admin/settings/register-settings.php:2264
msgid "License key never expires."
msgstr ""
-#: includes/admin/settings/register-settings.php:2257
+#: includes/admin/settings/register-settings.php:2271
msgid ""
"Your license key expires soon! It expires on %s. Renew your license key."
msgstr ""
-#: includes/admin/settings/register-settings.php:2267
+#: includes/admin/settings/register-settings.php:2281
msgid "Your license key expires on %s."
msgstr ""
-#: includes/admin/settings/register-settings.php:2285
+#: includes/admin/settings/register-settings.php:2299
msgid "To receive updates, please enter your valid %s license key."
msgstr ""
-#: includes/admin/settings/register-settings.php:2298
+#: includes/admin/settings/register-settings.php:2312
msgid "Deactivate License"
msgstr ""
@@ -4907,27 +4940,27 @@ msgstr ""
msgid "No download logs found!"
msgstr ""
-#: includes/api/class-edd-api.php:1954 includes/user-functions.php:1040
+#: includes/api/class-edd-api.php:1954 includes/user-functions.php:1048
msgid "Easy Digital Downloads API Keys"
msgstr ""
-#: includes/api/class-edd-api.php:1963 includes/user-functions.php:1045
+#: includes/api/class-edd-api.php:1963 includes/user-functions.php:1053
msgid "Generate API Key"
msgstr ""
-#: includes/api/class-edd-api.php:1965 includes/user-functions.php:1047
+#: includes/api/class-edd-api.php:1965 includes/user-functions.php:1055
msgid "Public key:"
msgstr ""
-#: includes/api/class-edd-api.php:1966 includes/user-functions.php:1048
+#: includes/api/class-edd-api.php:1966 includes/user-functions.php:1056
msgid "Secret key:"
msgstr ""
-#: includes/api/class-edd-api.php:1967 includes/user-functions.php:1049
+#: includes/api/class-edd-api.php:1967 includes/user-functions.php:1057
msgid "Token:"
msgstr ""
-#: includes/api/class-edd-api.php:1969 includes/user-functions.php:1051
+#: includes/api/class-edd-api.php:1969 includes/user-functions.php:1059
msgid "Revoke API Keys"
msgstr ""
@@ -5395,8 +5428,8 @@ msgstr ""
msgid "Customer User ID: %s"
msgstr ""
-#: includes/class-edd-cli.php:335 includes/user-functions.php:567
-#: includes/user-functions.php:576
+#: includes/class-edd-cli.php:335 includes/user-functions.php:569
+#: includes/user-functions.php:581
msgid "Username: %s"
msgstr ""
@@ -5562,31 +5595,35 @@ msgstr ""
msgid "Can't get property %s"
msgstr ""
-#: includes/class-edd-discount.php:1511
-msgid "This discount has reached its maximum usage."
+#: includes/class-edd-discount.php:780
+msgid "Expired"
msgstr ""
#: includes/class-edd-discount.php:1545
+msgid "This discount has reached its maximum usage."
+msgstr ""
+
+#: includes/class-edd-discount.php:1579
msgid "Minimum order of %s not met."
msgstr ""
-#: includes/class-edd-discount.php:1633 includes/class-edd-discount.php:1662
+#: includes/class-edd-discount.php:1667 includes/class-edd-discount.php:1696
msgid "The product requirements for this discount are not met."
msgstr ""
-#: includes/class-edd-discount.php:1680
+#: includes/class-edd-discount.php:1714
msgid "This discount is not valid for the cart contents."
msgstr ""
-#: includes/class-edd-discount.php:1770
+#: includes/class-edd-discount.php:1804
msgid "This discount has already been redeemed."
msgstr ""
-#: includes/class-edd-discount.php:1851
+#: includes/class-edd-discount.php:1885
msgid "This discount is expired."
msgstr ""
-#: includes/class-edd-discount.php:1856
+#: includes/class-edd-discount.php:1890
msgid "This discount is not active."
msgstr ""
@@ -5749,211 +5786,211 @@ msgstr ""
msgid "Improper date provided."
msgstr ""
-#: includes/country-functions.php:1604
+#: includes/country-functions.php:1838
msgid "A Coruña"
msgstr ""
-#: includes/country-functions.php:1605
+#: includes/country-functions.php:1839
msgid "Araba"
msgstr ""
-#: includes/country-functions.php:1606
+#: includes/country-functions.php:1840
msgid "Albacete"
msgstr ""
-#: includes/country-functions.php:1607
+#: includes/country-functions.php:1841
msgid "Alicante"
msgstr ""
-#: includes/country-functions.php:1608
+#: includes/country-functions.php:1842
msgid "Almería"
msgstr ""
-#: includes/country-functions.php:1609
+#: includes/country-functions.php:1843
msgid "Asturias"
msgstr ""
-#: includes/country-functions.php:1610
+#: includes/country-functions.php:1844
msgid "Ávila"
msgstr ""
-#: includes/country-functions.php:1611
+#: includes/country-functions.php:1845
msgid "Badajoz"
msgstr ""
-#: includes/country-functions.php:1612
+#: includes/country-functions.php:1846
msgid "Baleares"
msgstr ""
-#: includes/country-functions.php:1613
+#: includes/country-functions.php:1847
msgid "Barcelona"
msgstr ""
-#: includes/country-functions.php:1614
+#: includes/country-functions.php:1848
msgid "Burgos"
msgstr ""
-#: includes/country-functions.php:1615
+#: includes/country-functions.php:1849
msgid "Cáceres"
msgstr ""
-#: includes/country-functions.php:1616
+#: includes/country-functions.php:1850
msgid "Cádiz"
msgstr ""
-#: includes/country-functions.php:1617
+#: includes/country-functions.php:1851
msgid "Cantabria"
msgstr ""
-#: includes/country-functions.php:1618
+#: includes/country-functions.php:1852
msgid "Castellón"
msgstr ""
-#: includes/country-functions.php:1619
+#: includes/country-functions.php:1853
msgid "Ceuta"
msgstr ""
-#: includes/country-functions.php:1620
+#: includes/country-functions.php:1854
msgid "Ciudad Real"
msgstr ""
-#: includes/country-functions.php:1621
+#: includes/country-functions.php:1855
msgid "Córdoba"
msgstr ""
-#: includes/country-functions.php:1622
+#: includes/country-functions.php:1856
msgid "Cuenca"
msgstr ""
-#: includes/country-functions.php:1623
+#: includes/country-functions.php:1857
msgid "Girona"
msgstr ""
-#: includes/country-functions.php:1624
+#: includes/country-functions.php:1858
msgid "Granada"
msgstr ""
-#: includes/country-functions.php:1625
+#: includes/country-functions.php:1859
msgid "Guadalajara"
msgstr ""
-#: includes/country-functions.php:1626
+#: includes/country-functions.php:1860
msgid "Gipuzkoa"
msgstr ""
-#: includes/country-functions.php:1627
+#: includes/country-functions.php:1861
msgid "Huelva"
msgstr ""
-#: includes/country-functions.php:1628
+#: includes/country-functions.php:1862
msgid "Huesca"
msgstr ""
-#: includes/country-functions.php:1629
+#: includes/country-functions.php:1863
msgid "Jaén"
msgstr ""
-#: includes/country-functions.php:1630
+#: includes/country-functions.php:1864
msgid "La Rioja"
msgstr ""
-#: includes/country-functions.php:1631
+#: includes/country-functions.php:1865
msgid "Las Palmas"
msgstr ""
-#: includes/country-functions.php:1632
+#: includes/country-functions.php:1866
msgid "León"
msgstr ""
-#: includes/country-functions.php:1633
+#: includes/country-functions.php:1867
msgid "Lleida"
msgstr ""
-#: includes/country-functions.php:1634
+#: includes/country-functions.php:1868
msgid "Lugo"
msgstr ""
-#: includes/country-functions.php:1635
+#: includes/country-functions.php:1869
msgid "Madrid"
msgstr ""
-#: includes/country-functions.php:1636
+#: includes/country-functions.php:1870
msgid "Málaga"
msgstr ""
-#: includes/country-functions.php:1637
+#: includes/country-functions.php:1871
msgid "Melilla"
msgstr ""
-#: includes/country-functions.php:1638
+#: includes/country-functions.php:1872
msgid "Murcia"
msgstr ""
-#: includes/country-functions.php:1639
+#: includes/country-functions.php:1873
msgid "Navarra"
msgstr ""
-#: includes/country-functions.php:1640
+#: includes/country-functions.php:1874
msgid "Ourense"
msgstr ""
-#: includes/country-functions.php:1641
+#: includes/country-functions.php:1875
msgid "Palencia"
msgstr ""
-#: includes/country-functions.php:1642
+#: includes/country-functions.php:1876
msgid "Pontevedra"
msgstr ""
-#: includes/country-functions.php:1643
+#: includes/country-functions.php:1877
msgid "Salamanca"
msgstr ""
-#: includes/country-functions.php:1644
+#: includes/country-functions.php:1878
msgid "Santa Cruz de Tenerife"
msgstr ""
-#: includes/country-functions.php:1645
+#: includes/country-functions.php:1879
msgid "Segovia"
msgstr ""
-#: includes/country-functions.php:1646
+#: includes/country-functions.php:1880
msgid "Sevilla"
msgstr ""
-#: includes/country-functions.php:1647
+#: includes/country-functions.php:1881
msgid "Soria"
msgstr ""
-#: includes/country-functions.php:1648
+#: includes/country-functions.php:1882
msgid "Tarragona"
msgstr ""
-#: includes/country-functions.php:1649
+#: includes/country-functions.php:1883
msgid "Teruel"
msgstr ""
-#: includes/country-functions.php:1650
+#: includes/country-functions.php:1884
msgid "Toledo"
msgstr ""
-#: includes/country-functions.php:1651
+#: includes/country-functions.php:1885
msgid "Valencia"
msgstr ""
-#: includes/country-functions.php:1652
+#: includes/country-functions.php:1886
msgid "Valladolid"
msgstr ""
-#: includes/country-functions.php:1653
+#: includes/country-functions.php:1887
msgid "Bizkaia"
msgstr ""
-#: includes/country-functions.php:1654
+#: includes/country-functions.php:1888
msgid "Zamora"
msgstr ""
-#: includes/country-functions.php:1655
+#: includes/country-functions.php:1889
msgid "Zaragoza"
msgstr ""
@@ -6055,11 +6092,11 @@ msgid ""
"of a purchase. HTML is accepted. Available template tags:"
msgstr ""
-#: includes/deprecated-functions.php:517 includes/process-download.php:826
+#: includes/deprecated-functions.php:517 includes/process-download.php:885
msgid "Sorry but you have hit your download limit for this file."
msgstr ""
-#: includes/deprecated-functions.php:532 includes/download-functions.php:1248
+#: includes/deprecated-functions.php:532 includes/download-functions.php:1260
msgid "Sorry but your download link has expired."
msgstr ""
@@ -6067,7 +6104,7 @@ msgstr ""
msgid "No payments matching your request were found."
msgstr ""
-#: includes/download-functions.php:512
+#: includes/download-functions.php:524
msgid "Bundle"
msgstr ""
@@ -6119,35 +6156,31 @@ msgstr ""
msgid "New download purchase - Order #%1$s"
msgstr ""
-#: includes/emails/functions.php:154
-msgid "New Sale!"
-msgstr ""
-
-#: includes/emails/functions.php:199 includes/emails/template.php:212
+#: includes/emails/functions.php:200 includes/emails/template.php:212
msgid "Hello"
msgstr ""
-#: includes/emails/functions.php:199 includes/emails/template.php:212
+#: includes/emails/functions.php:200 includes/emails/template.php:212
msgid "A %s purchase has been made"
msgstr ""
-#: includes/emails/functions.php:200 includes/emails/template.php:213
+#: includes/emails/functions.php:201 includes/emails/template.php:213
msgid "%s sold:"
msgstr ""
-#: includes/emails/functions.php:202 includes/emails/template.php:215
+#: includes/emails/functions.php:203 includes/emails/template.php:215
msgid "Purchased by: "
msgstr ""
-#: includes/emails/functions.php:203 includes/emails/template.php:216
+#: includes/emails/functions.php:204 includes/emails/template.php:216
msgid "Amount: "
msgstr ""
-#: includes/emails/functions.php:204 includes/emails/template.php:217
+#: includes/emails/functions.php:205 includes/emails/template.php:217
msgid "Payment Method: "
msgstr ""
-#: includes/emails/functions.php:205 includes/emails/template.php:218
+#: includes/emails/functions.php:206 includes/emails/template.php:218
msgid "Thank you"
msgstr ""
@@ -6294,12 +6327,12 @@ msgstr ""
#: includes/gateways/amazon-payments.php:1113
#: includes/gateways/amazon-payments.php:1167
-#: includes/gateways/paypal-standard.php:439
-#: includes/gateways/paypal-standard.php:446
-#: includes/gateways/paypal-standard.php:535
-#: includes/gateways/paypal-standard.php:545
-#: includes/gateways/paypal-standard.php:605
-#: includes/gateways/paypal-standard.php:614
+#: includes/gateways/paypal-standard.php:450
+#: includes/gateways/paypal-standard.php:457
+#: includes/gateways/paypal-standard.php:546
+#: includes/gateways/paypal-standard.php:556
+#: includes/gateways/paypal-standard.php:616
+#: includes/gateways/paypal-standard.php:625
msgid "IPN Error"
msgstr ""
@@ -6457,44 +6490,44 @@ msgstr ""
msgid "Payment creation failed before sending buyer to PayPal. Payment data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:439
-#: includes/gateways/paypal-standard.php:446
+#: includes/gateways/paypal-standard.php:450
+#: includes/gateways/paypal-standard.php:457
msgid "Invalid IPN verification response. IPN data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:535
+#: includes/gateways/paypal-standard.php:546
msgid "Invalid business email in IPN response. IPN data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:538
+#: includes/gateways/paypal-standard.php:549
msgid "Payment failed due to invalid PayPal business email."
msgstr ""
-#: includes/gateways/paypal-standard.php:545
+#: includes/gateways/paypal-standard.php:556
msgid "Invalid currency in IPN response. IPN data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:548
+#: includes/gateways/paypal-standard.php:559
msgid "Payment failed due to invalid currency in PayPal IPN."
msgstr ""
-#: includes/gateways/paypal-standard.php:605
+#: includes/gateways/paypal-standard.php:616
msgid "Invalid payment amount in IPN response. IPN data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:608
+#: includes/gateways/paypal-standard.php:619
msgid "Payment failed due to invalid amount in PayPal IPN."
msgstr ""
-#: includes/gateways/paypal-standard.php:614
+#: includes/gateways/paypal-standard.php:625
msgid "Invalid purchase key in IPN response. IPN data: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:616
+#: includes/gateways/paypal-standard.php:627
msgid "Payment failed due to invalid purchase key in PayPal IPN."
msgstr ""
-#: includes/gateways/paypal-standard.php:622
+#: includes/gateways/paypal-standard.php:633
#: tests/helpers/class-helper-payment.php:131
#: tests/helpers/class-helper-payment.php:234
#: tests/helpers/class-helper-payment.php:342
@@ -6505,79 +6538,79 @@ msgstr ""
msgid "PayPal Transaction ID: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:636
+#: includes/gateways/paypal-standard.php:647
msgid "Payment made via eCheck and will clear automatically in 5-8 days"
msgstr ""
-#: includes/gateways/paypal-standard.php:643
+#: includes/gateways/paypal-standard.php:654
msgid ""
"Payment requires a confirmed customer address and must be accepted manually "
"through PayPal"
msgstr ""
-#: includes/gateways/paypal-standard.php:649
+#: includes/gateways/paypal-standard.php:660
msgid ""
"Payment must be accepted manually through PayPal due to international "
"account regulations"
msgstr ""
-#: includes/gateways/paypal-standard.php:655
+#: includes/gateways/paypal-standard.php:666
msgid ""
"Payment received in non-shop currency and must be accepted manually through "
"PayPal"
msgstr ""
-#: includes/gateways/paypal-standard.php:662
+#: includes/gateways/paypal-standard.php:673
msgid ""
"Payment is being reviewed by PayPal staff as high-risk or in possible "
"violation of government regulations"
msgstr ""
-#: includes/gateways/paypal-standard.php:668
+#: includes/gateways/paypal-standard.php:679
msgid "Payment was sent to non-confirmed or non-registered email address."
msgstr ""
-#: includes/gateways/paypal-standard.php:674
+#: includes/gateways/paypal-standard.php:685
msgid "PayPal account must be upgraded before this payment can be accepted"
msgstr ""
-#: includes/gateways/paypal-standard.php:680
+#: includes/gateways/paypal-standard.php:691
msgid ""
"PayPal account is not verified. Verify account in order to accept this "
"payment"
msgstr ""
-#: includes/gateways/paypal-standard.php:686
+#: includes/gateways/paypal-standard.php:697
msgid ""
"Payment is pending for unknown reasons. Contact PayPal support for "
"assistance"
msgstr ""
-#: includes/gateways/paypal-standard.php:739
+#: includes/gateways/paypal-standard.php:750
msgid "Partial PayPal refund processed: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:744
+#: includes/gateways/paypal-standard.php:755
msgid "PayPal Payment #%s Refunded for reason: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:745
+#: includes/gateways/paypal-standard.php:756
msgid "PayPal Refund Transaction ID: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:1004
+#: includes/gateways/paypal-standard.php:1015
msgid "Refund Payment in PayPal"
msgstr ""
-#: includes/gateways/paypal-standard.php:1153
+#: includes/gateways/paypal-standard.php:1164
msgid "PayPal refund failed for unknown reason."
msgstr ""
-#: includes/gateways/paypal-standard.php:1163
+#: includes/gateways/paypal-standard.php:1174
msgid "PayPal refund transaction ID: %s"
msgstr ""
-#: includes/gateways/paypal-standard.php:1167
+#: includes/gateways/paypal-standard.php:1178
msgid "PayPal refund failed: %s"
msgstr ""
@@ -7121,15 +7154,15 @@ msgstr ""
msgid "Purchase Verification Failed"
msgstr ""
-#: includes/process-download.php:902
+#: includes/process-download.php:961
msgid "Invalid file"
msgstr ""
-#: includes/process-download.php:909
+#: includes/process-download.php:968
msgid "The requested file could not be found. Error 404."
msgstr ""
-#: includes/process-download.php:910
+#: includes/process-download.php:969
msgid "File not found"
msgstr ""
@@ -7267,7 +7300,7 @@ msgstr ""
msgid "You have already added this item to your cart"
msgstr ""
-#: includes/scripts.php:89 includes/template-functions.php:186
+#: includes/scripts.php:89 includes/template-functions.php:187
msgid "Loading"
msgstr ""
@@ -7391,31 +7424,31 @@ msgstr ""
msgid "Purchase All Items"
msgstr ""
-#: includes/shortcodes.php:672
+#: includes/shortcodes.php:689
msgid "Sorry, trouble retrieving payment receipt."
msgstr ""
-#: includes/shortcodes.php:707
+#: includes/shortcodes.php:724
msgid "You must be logged in to view this payment receipt."
msgstr ""
-#: includes/shortcodes.php:719
+#: includes/shortcodes.php:736
msgid "Receipt could not be retrieved, your purchase session has expired."
msgstr ""
-#: includes/shortcodes.php:849
+#: includes/shortcodes.php:866
msgid "The passwords you entered do not match. Please try again."
msgstr ""
-#: includes/shortcodes.php:859
+#: includes/shortcodes.php:876
msgid "The email you entered is invalid. Please enter a valid email."
msgstr ""
-#: includes/shortcodes.php:864
+#: includes/shortcodes.php:881
msgid "The email you entered belongs to another user. Please use another."
msgstr ""
-#: includes/shortcodes.php:939
+#: includes/shortcodes.php:956
msgid "Error removing email address from profile. Please try again later."
msgstr ""
@@ -7427,111 +7460,111 @@ msgstr ""
msgid "You are already logged in"
msgstr ""
-#: includes/template-functions.php:143
+#: includes/template-functions.php:144
msgid "Free"
msgstr ""
-#: includes/template-functions.php:200
+#: includes/template-functions.php:201
msgid "Added to cart"
msgstr ""
-#: includes/template-functions.php:206
+#: includes/template-functions.php:207
msgid "Includes %1$s% tax"
msgstr ""
-#: includes/template-functions.php:208
+#: includes/template-functions.php:209
msgid "Excluding %1$s% tax"
msgstr ""
-#: includes/template-functions.php:493
+#: includes/template-functions.php:494
msgid "White"
msgstr ""
-#: includes/template-functions.php:497
+#: includes/template-functions.php:498
msgid "Gray"
msgstr ""
-#: includes/template-functions.php:501
+#: includes/template-functions.php:502
msgid "Blue"
msgstr ""
-#: includes/template-functions.php:505
+#: includes/template-functions.php:506
msgid "Red"
msgstr ""
-#: includes/template-functions.php:509
+#: includes/template-functions.php:510
msgid "Green"
msgstr ""
-#: includes/template-functions.php:513
+#: includes/template-functions.php:514
msgid "Yellow"
msgstr ""
-#: includes/template-functions.php:517
+#: includes/template-functions.php:518
msgid "Orange"
msgstr ""
-#: includes/template-functions.php:521
+#: includes/template-functions.php:522
msgid "Dark Gray"
msgstr ""
-#: includes/template-functions.php:525
+#: includes/template-functions.php:526
msgid "Inherit"
msgstr ""
-#: includes/template-functions.php:543
+#: includes/template-functions.php:544
msgid "Button"
msgstr ""
-#: includes/template-functions.php:544
+#: includes/template-functions.php:545
msgid "Plain Text"
msgstr ""
-#: includes/user-functions.php:565
+#: includes/user-functions.php:567
msgid "[%s] New User Registration"
msgstr ""
-#: includes/user-functions.php:566
+#: includes/user-functions.php:568
msgid "New user registration"
msgstr ""
-#: includes/user-functions.php:568
+#: includes/user-functions.php:570
msgid "E-mail: %s"
msgstr ""
-#: includes/user-functions.php:574
+#: includes/user-functions.php:579
msgid "[%s] Your username and password"
msgstr ""
-#: includes/user-functions.php:575
+#: includes/user-functions.php:580
msgid "Your account info"
msgstr ""
-#: includes/user-functions.php:579
+#: includes/user-functions.php:584
msgid "Password entered at checkout"
msgstr ""
-#: includes/user-functions.php:581
+#: includes/user-functions.php:586
msgid "Password entered at registration"
msgstr ""
-#: includes/user-functions.php:584
+#: includes/user-functions.php:589
msgid "Password: %s"
msgstr ""
-#: includes/user-functions.php:588
+#: includes/user-functions.php:594
msgid "Click here to log in"
msgstr ""
-#: includes/user-functions.php:592
+#: includes/user-functions.php:598
msgid "To log in, visit: %s"
msgstr ""
-#: includes/user-functions.php:748 includes/user-functions.php:749
+#: includes/user-functions.php:756 includes/user-functions.php:757
msgid "Verify your account"
msgstr ""
-#: includes/user-functions.php:751
+#: includes/user-functions.php:759
msgid ""
"Hello %s,\n"
"\n"
@@ -7541,33 +7574,33 @@ msgid ""
"Link missing? Visit the following URL: %s"
msgstr ""
-#: includes/user-functions.php:876
+#: includes/user-functions.php:884
msgid ""
"Sorry but your account verification link has expired. Click "
"here to request a new verification URL."
msgstr ""
-#: includes/user-functions.php:909
+#: includes/user-functions.php:917
msgid "You must be logged in to verify your account."
msgstr ""
-#: includes/user-functions.php:909 includes/user-functions.php:913
+#: includes/user-functions.php:917 includes/user-functions.php:921
msgid "Notice"
msgstr ""
-#: includes/user-functions.php:913
+#: includes/user-functions.php:921
msgid "Your account has already been verified."
msgstr ""
-#: includes/user-functions.php:958
+#: includes/user-functions.php:966
msgid "Invalid verification token provided."
msgstr ""
-#: includes/user-functions.php:1063
+#: includes/user-functions.php:1071
msgid "Easy Digital Downloads iOS App"
msgstr ""
-#: includes/user-functions.php:1070
+#: includes/user-functions.php:1078
msgid "Add to iOS App"
msgstr ""
@@ -7579,7 +7612,7 @@ msgstr ""
msgid "Display the downloads shopping cart"
msgstr ""
-#: includes/widgets.php:91 includes/widgets.php:202 includes/widgets.php:369
+#: includes/widgets.php:91 includes/widgets.php:202 includes/widgets.php:390
msgid "Title:"
msgstr ""
@@ -7611,7 +7644,7 @@ msgstr ""
msgid "Hide Empty Categories:"
msgstr ""
-#: includes/widgets.php:243 includes/widgets.php:346
+#: includes/widgets.php:243 includes/widgets.php:367
msgid "%s Details"
msgstr ""
@@ -7619,35 +7652,35 @@ msgstr ""
msgid "Display the details of a specific %s"
msgstr ""
-#: includes/widgets.php:374
+#: includes/widgets.php:395
msgid "Display Type:"
msgstr ""
-#: includes/widgets.php:375
+#: includes/widgets.php:396
msgid "Current"
msgstr ""
-#: includes/widgets.php:376
+#: includes/widgets.php:397
msgid "Specific"
msgstr ""
-#: includes/widgets.php:382
+#: includes/widgets.php:403
msgid "%s:"
msgstr ""
-#: includes/widgets.php:400
+#: includes/widgets.php:421
msgid "%s ID"
msgstr ""
-#: includes/widgets.php:407
+#: includes/widgets.php:428
msgid "Show %s Title"
msgstr ""
-#: includes/widgets.php:413
+#: includes/widgets.php:434
msgid "Show Purchase Button"
msgstr ""
-#: includes/widgets.php:420 includes/widgets.php:427
+#: includes/widgets.php:441 includes/widgets.php:448
msgid "Show %s"
msgstr ""
@@ -7940,6 +7973,12 @@ msgctxt "Date one to date two"
msgid "to"
msgstr ""
+#: includes/admin/settings/register-settings.php:765
+#: includes/template-functions.php:79
+msgctxt "text shown on the Add to Cart Button when the product is already in the cart"
+msgid "Checkout"
+msgstr ""
+
#: includes/checkout/template.php:741
msgctxt "Entering a discount code"
msgid "Click to enter it"
@@ -7950,12 +7989,12 @@ msgctxt "Apply discount at checkout"
msgid "Apply"
msgstr ""
-#: includes/class-edd-discount.php:1442
+#: includes/class-edd-discount.php:1476
msgctxt "error shown when attempting to use a discount before its start date"
msgid "This discount is invalid."
msgstr ""
-#: includes/class-edd-discount.php:1819
+#: includes/class-edd-discount.php:1853
msgctxt "error for when a discount is invalid based on its configuration"
msgid "This discount is invalid."
msgstr ""
@@ -7980,7 +8019,7 @@ msgctxt "download post type name"
msgid "%2$s"
msgstr ""
-#: includes/shortcodes.php:625
+#: includes/shortcodes.php:642
msgctxt "download post type name"
msgid "No %s found"
msgstr ""
diff --git a/readme.txt b/readme.txt
index 82c2fe83cfd..1f78a16005b 100755
--- a/readme.txt
+++ b/readme.txt
@@ -6,7 +6,7 @@ Donate link: https://easydigitaldownloads.com/donate/
Tags: download, downloads, e-store, eshop, digital downloads, e-commerce, wp-ecommerce, wp ecommerce, ecommerce, ebook
Requires at least: 4.4
Tested up to: 4.9.4
-Stable Tag: 2.8.18
+Stable Tag: 2.9
License: GNU Version 2 or Any Later Version
The easiest way to sell digital products with WordPress.
@@ -190,6 +190,39 @@ Yes. Easy Digital Downloads also includes default support for Amazon Payments an
== Changelog ==
+= 2.9, March 15, 2018 =
+
+* New: A message is now displayed on the [edd_register] shortcode when the user is already logged in.
+* New: Support was added for resume and ranged download links.
+* New: The customer name, email, and price ID was added to sales log export.
+* New: Added ability to sort by sales/earnings in the [downloads] shortcode.
+* New: Any page containing the [download_checkout] shortcode returns true for edd_is_checkout().
+* New: Upgraded to the latest version of the Chosen library.
+* New: Added United Kingdom Counties to pre-populated "states" list.
+* New: EDD_Payment::add_note now escapes the HTML provided.
+* New: Added the variable price ID to the download log entries.
+* New: Added a helper to retrieve and filter discount status labels.
+* Fix: Prevent a possible PHP Warning when no tax rate is entered, when taxes are enabled.
+* Fix: PayPal Standard: Totals with discounts could calculate differently between EDD and PayPal, preventing completion of the purchase.
+* Fix: Links would break when using SendGrid's link tracking feature.
+* Fix: Download widget would cause PHP warnings when no tags were attached to a product.
+* Fix: Improved support for payment method icons when not using a standard WP Install directory format.
+* Fix: Prevent a possible corrupted download file by verifying no output buffers exists.
+* Fix: Opt-in telemetry data was sending the incorrect Locale.
+* Fix: Prevent a possible PHP Notice when editing a discount code.
+* Fix: Checkboxes on Advanced Settings of variable prices would not always save on the first try.
+* Fix: Hardcoded 'Checkout' text was not using the 'Add to Cart text' variable.
+* Fix: Prices were possibly incorrect when using the Quick Edit feature.
+* Tweak: The edd_get_download method now returns an `EDD_Download` object instead of a `WP_Post`.
+* Tweak: Corrected some URLs to the EDD site that were using an old URL.
+* Tweak: The customer UI now shows the country and state name, instead of their codes.
+* Tweak: Removed the hyphen and "Go Back" button from discount screens.
+* Tweak: The cart contents method returned boolean false instead of an empty array when the cart was empty.
+* Tweak: Reduced the blocking calls in the opt-in telemetry requests to help with performance.
+* Dev: Added filters for new user notification email.
+* Dev: Added filter and email heading to New Sale Notifications.
+* Dev: Added hooks before and after downloads shortcode grid.
+
= 2.8.18, February 6, 2018 =
* Fix: Earnings report was incomplete and did not allow adding additional statuses.