Version Description
Download this release
Release Info
Developer | cklosows |
Plugin | Easy Digital Downloads |
Version | 3.1.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.1.0.1
- assets/js/edd-ajax.js +1 -1
- assets/js/edd-checkout-global.js +1 -1
- easy-digital-downloads.php +1 -1
- includes/admin/dashboard-widgets.php +26 -9
- includes/admin/extensions/abstract-extension.php +1 -1
- includes/blocks/includes/checkout/checkout.php +4 -1
- includes/class-easy-digital-downloads.php +1 -1
- includes/scripts.php +2 -1
- languages/easy-digital-downloads.pot +46 -46
- readme.txt +7 -2
assets/js/edd-ajax.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=221)}({1:function(e,t){e.exports=jQuery},10:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return r}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n <svg\n width=".concat(t,"\n height=",32,'\n class="payment-icon icon-').concat(d,'"\n role="img"\n >\n <use\n href="#icon-').concat(d,'"\n xlink:href="#icon-').concat(d,'">\n </use>\n </svg>')},n=0;function r(t){if("1"==edd_global_vars.taxes_enabled){var d=e("#edd_cc_address"),a=d.find("#billing_country").val(),r=d.find("#card_address").val(),o=d.find("#card_address_2").val(),i=d.find("#card_city").val(),c=d.find("#card_state").val();t||(t=c);var s={action:"edd_recalculate_taxes",card_address:r,card_address_2:o,card_city:i,card_zip:d.find("#card_zip").val(),state:t,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val()};e("#edd_purchase_submit [type=submit]").after('<span class="edd-loading-ajax edd-recalculate-taxes-loading edd-loading"></span>');var _=++n;return e.ajax({type:"POST",data:s,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(_===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=s,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),_===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},221:function(e,t,d){"use strict";d.r(t),function(e){var t=d(10);function a(t){e(".edd-cart-ajax").show(),e("#edd_purchase_form_wrap").html('<span class="edd-loading-ajax edd-loading"></span>');var d=document.getElementById("edd-gateway-"+t).getAttribute("data-"+t+"-nonce"),a=edd_scripts.ajaxurl;a.indexOf("?")>0?a+="&":a+="?",a=a+"payment-mode="+t,e.post(a,{action:"edd_load_gateway",edd_payment_mode:t,nonce:d,current_page:edd_scripts.current_page},(function(d){e("#edd_purchase_form_wrap").html(d),e("body").trigger("edd_gateway_loaded",[t])}))}e(document).ready((function(e){if(e(".edd-add-to-cart:not(.edd-no-js)").addClass("edd-has-js"),e(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",(function(t){var d=e(this),a=d.data("cart-item"),n=d.data("action"),r=d.data("download-id"),o=d.data("nonce"),i={action:n,cart_item:a,nonce:o,timestamp:d.data("timestamp"),token:d.data("token")};return e.ajax({type:"POST",data:i,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(t.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(a,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;e(".edd-cart").each((function(){e(this).find("[data-cart-item='"+a+"']").parent().remove()})),e(".edd-cart").each((function(){var t=0;e(this).find("[data-cart-item]").each((function(){e(this).attr("data-cart-item",t),t+=1}))})),e("[id^=edd_purchase_"+r+"]").length&&(e("[id^=edd_purchase_"+r+"] .edd_go_to_checkout").hide(),e("[id^=edd_purchase_"+r+"] .edd-add-to-cart.edd-has-js").show().removeAttr("data-edd-loading"),"1"===edd_scripts.quantities_enabled&&e("[id^=edd_purchase_"+r+"] .edd_download_quantity_wrapper").show()),e("span.edd-cart-quantity").text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity]),edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal span").html(t.subtotal),e(".cart_item.edd_cart_tax span").html(t.tax)),e(".cart_item.edd_total span").html(t.total),0===t.cart_quantity&&(e(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),e(".edd-cart").each((function(){var t=e(this).parent();t.length&&(t.addClass("cart-empty"),t.removeClass("cart-not-empty")),e(this).append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")}))),e(document.body).trigger("edd_cart_item_removed",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e(document.body).on("click.eddAddToCart",".edd-add-to-cart",(function(t){t.preventDefault();var d=e(this),a=d.closest("form");d.prop("disabled",!0),d.find(".edd-loading");var n=d.closest("div");d.attr("data-edd-loading",""),a=d.parents("form").last();var r=d.data("download-id"),o=d.data("variable-price"),i=d.data("price-mode"),c=d.data("nonce"),s=[],_=!0;if("yes"===o)if(a.find(".edd_price_option_"+r+'[type="hidden"]').length>0)s[0]=e(".edd_price_option_"+r,a).val(),a.find(".edd-submit").data("price")&&a.find(".edd-submit").data("price")>0&&(_=!1);else{if(!a.find(".edd_price_option_"+r+":checked",a).length)return d.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),t.stopPropagation(),d.prop("disabled",!1),!1;a.find(".edd_price_option_"+r+":checked",a).each((function(t){if(s[t]=e(this).val(),!0===_){var d=e(this).data("price");d&&d>0&&(_=!1)}}))}else s[0]=r,d.data("price")&&d.data("price")>0&&(_=!1);if(_&&a.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"===a.find(".edd_action_input").val())return a.submit(),!0;var l={action:d.data("action"),download_id:r,price_ids:s,post_data:e(a).serialize(),nonce:c};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var c="1"===edd_scripts.redirect_to_checkout,s="1"===a.find("#edd_redirect_to_checkout").val();if(c&&s||!c&&s)window.location=edd_scripts.checkout_page;else{if("1"===edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal").show(),e(".cart_item.edd_cart_tax").show()),e(".cart_item.edd_total").show(),e(".cart_item.edd_checkout").show(),e(".cart_item.empty").length&&e(".cart_item.empty").hide(),e(".widget_edd_cart_widget .edd-cart").each((function(d){var a=e(this).find(".edd-cart-meta:first");e(t.cart_item).insertBefore(a);var n=e(this).parent();n.length&&(n.addClass("cart-not-empty"),n.removeClass("cart-empty"))})),"1"===edd_scripts.taxes_enabled&&(e(".edd-cart-meta.edd_subtotal span").html(t.subtotal),e(".edd-cart-meta.edd_cart_tax span").html(t.tax)),e(".edd-cart-meta.edd_total span").html(t.total),e(".edd-cart-item-title",t.cart_item).length,e("span.edd-cart-quantity").each((function(){e(this).text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity])})),"none"===e(".edd-cart-number-of-items").css("display")&&e(".edd-cart-number-of-items").show("slow"),"no"!==o&&"multi"===i||(e(".edd-add-to-cart",n).toggle(),e(".edd_go_to_checkout",n).show()),"multi"===i&&d.removeAttr("data-edd-loading"),e(".edd_download_purchase_form").length&&("no"===o||!a.find(".edd_price_option_"+r).is("input:hidden"))){var _=e('.edd_download_purchase_form *[data-download-id="'+r+'"]').parents("form");e(".edd-add-to-cart",_).hide(),"multi"!==i&&_.find(".edd_download_quantity_wrapper").slideUp(),e(".edd_go_to_checkout",_).show().removeAttr("data-edd-loading")}"incart"!==t&&(e(".edd-cart-added-alert",n).fadeIn(),setTimeout((function(){e(".edd-cart-added-alert",n).fadeOut()}),3e3)),d.prop("disabled",!1),e(document.body).trigger("edd_cart_item_added",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",(function(){var t=e(this),d={action:t.data("action"),nonce:t.data("nonce")};return e(".edd-cart-ajax").show(),e.post(edd_scripts.ajaxurl,d,(function(t){e("#edd_checkout_login_register").html(edd_scripts.loading),e("#edd_checkout_login_register").html(t),e(".edd-cart-ajax").hide()})),!1})),e(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",(function(t){t.preventDefault();var d=e(this).val();e(this).attr("data-original-value",d),e(this).val(edd_global_vars.purchase_loading),e(this).after('<span class="edd-loading-ajax edd-loading"></span>');var a={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:e("#edd_login_fields #edd_user_login").val(),edd_user_pass:e("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:e("#edd_login_nonce").val()};e.post(edd_global_vars.ajaxurl,a,(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(e("#edd_login_fields input[type=submit]").val(d),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e("#edd-user-login-submit").before(t))}))})),e(document).on("change","select#edd-gateway, input.edd-gateway",(function(t){var d=e("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"===d||a(d),!1})),"1"===edd_scripts.is_checkout){var d=!1,n=!1;e("select#edd-gateway, input.edd-gateway").length&&(d=e("meta[name='edd-chosen-gateway']").attr("content"),n=!0),d||(d=edd_scripts.default_gateway),n?setTimeout((function(){a(d)}),200):setTimeout((function(){e("body").trigger("edd_gateway_loaded",[d])}),300)}function r(){var d,a=e(this),n="undefined"!=typeof edd_global_vars,r="card_state";"edd_address_country"===e(this).attr("id")&&(r="edd_address_state");var o=document.getElementById(r);if("card_state"!==a.attr("id")&&null!=o){var i=e(this).data("nonce"),c={action:"edd_get_shop_states",country:a.val(),field_name:r,nonce:i};e.ajax({type:"POST",data:c,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){d=n?e("#edd_purchase_form"):a.closest("form");var o='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"===e.trim(t)){var i='<input type="text" id="'+r+'" name="card_state" class="card-state edd-input required" value=""/>';d.find(o).replaceWith(i)}else d.find(o).replaceWith(t);n&&e(document.body).trigger("edd_cart_billing_address_updated",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){n&&Object(t.b)()}))}else n&&Object(t.b)();return!1}e(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",(function(t){var d=document.getElementById("edd_purchase_form");if("function"!=typeof d.checkValidity||!1!==d.checkValidity()){t.preventDefault();var a=e(this).val();e(this).val(edd_global_vars.purchase_loading),e(this).prop("disabled",!0),e(this).after('<span class="edd-loading-ajax edd-loading"></span>'),e.post(edd_global_vars.ajaxurl,e("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),e(".edd-error").hide(),e(d).submit()):(e("#edd-purchase-button").val(a),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e(edd_global_vars.checkout_error_anchor).before(t),e("#edd-purchase-button").prop("disabled",!1),e(document.body).trigger("edd_checkout_error",[t]))}))}})),e(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",r),window.update_state_field=r,e(document.body).on("change","#edd_cc_address input[name=card_zip]",(function(){"undefined"!=typeof edd_global_vars&&Object(t.b)()}))})),window.edd_load_gateway=a}.call(this,d(1))}});
|
1 |
+
!function(e){var t={};function d(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.m=e,d.c=t,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="",d(d.s=221)}({1:function(e,t){e.exports=jQuery},10:function(e,t,d){"use strict";(function(e){d.d(t,"a",(function(){return a})),d.d(t,"b",(function(){return r}));var a=function(e){var t,d=e;switch(e){case"amex":d="americanexpress",t=32;break;default:t=50}return"\n <svg\n width=".concat(t,"\n height=",32,'\n class="payment-icon icon-').concat(d,'"\n role="img"\n >\n <use\n href="#icon-').concat(d,'"\n xlink:href="#icon-').concat(d,'">\n </use>\n </svg>')},n=0;function r(t){if("1"==edd_global_vars.taxes_enabled){var d=e("#edd_cc_address"),a=d.find("#billing_country").val(),r=d.find("#card_address").val(),o=d.find("#card_address_2").val(),i=d.find("#card_city").val(),c=d.find("#card_state").val();t||(t=c);var s={action:"edd_recalculate_taxes",card_address:r,card_address_2:o,card_city:i,card_zip:d.find("#card_zip").val(),state:t,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page};e("#edd_purchase_submit [type=submit]").after('<span class="edd-loading-ajax edd-recalculate-taxes-loading edd-loading"></span>');var _=++n;return e.ajax({type:"POST",data:s,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(_===n){t.html&&e("#edd_checkout_cart_form").replaceWith(t.html),e(".edd_cart_amount").html(t.total);var d=new Object;d.postdata=s,d.response=t,e("body").trigger("edd_taxes_recalculated",[d])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(t){window.console&&window.console.log&&(console.log(t),_===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,d(1))},221:function(e,t,d){"use strict";d.r(t),function(e){var t=d(10);function a(t){e(".edd-cart-ajax").show(),e("#edd_purchase_form_wrap").html('<span class="edd-loading-ajax edd-loading"></span>');var d=document.getElementById("edd-gateway-"+t).getAttribute("data-"+t+"-nonce"),a=edd_scripts.ajaxurl;a.indexOf("?")>0?a+="&":a+="?",a=a+"payment-mode="+t,e.post(a,{action:"edd_load_gateway",edd_payment_mode:t,nonce:d,current_page:edd_scripts.current_page},(function(d){e("#edd_purchase_form_wrap").html(d),e("body").trigger("edd_gateway_loaded",[t])}))}e(document).ready((function(e){if(e(".edd-add-to-cart:not(.edd-no-js)").addClass("edd-has-js"),e(document.body).on("click.eddRemoveFromCart",".edd-remove-from-cart",(function(t){var d=e(this),a=d.data("cart-item"),n=d.data("action"),r=d.data("download-id"),o=d.data("nonce"),i={action:n,cart_item:a,nonce:o,timestamp:d.data("timestamp"),token:d.data("token")};return e.ajax({type:"POST",data:i,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){if(t.removed){if(parseInt(edd_scripts.position_in_cart,10)===parseInt(a,10)||edd_scripts.has_purchase_links)return window.location=window.location,!1;e(".edd-cart").each((function(){e(this).find("[data-cart-item='"+a+"']").parent().remove()})),e(".edd-cart").each((function(){var t=0;e(this).find("[data-cart-item]").each((function(){e(this).attr("data-cart-item",t),t+=1}))})),e("[id^=edd_purchase_"+r+"]").length&&(e("[id^=edd_purchase_"+r+"] .edd_go_to_checkout").hide(),e("[id^=edd_purchase_"+r+"] .edd-add-to-cart.edd-has-js").show().removeAttr("data-edd-loading"),"1"===edd_scripts.quantities_enabled&&e("[id^=edd_purchase_"+r+"] .edd_download_quantity_wrapper").show()),e("span.edd-cart-quantity").text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity]),edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal span").html(t.subtotal),e(".cart_item.edd_cart_tax span").html(t.tax)),e(".cart_item.edd_total span").html(t.total),0===t.cart_quantity&&(e(".cart_item.edd_subtotal,.edd-cart-number-of-items,.cart_item.edd_checkout,.cart_item.edd_cart_tax,.cart_item.edd_total").hide(),e(".edd-cart").each((function(){var t=e(this).parent();t.length&&(t.addClass("cart-empty"),t.removeClass("cart-not-empty")),e(this).append('<li class="cart_item empty">'+edd_scripts.empty_cart_message+"</li>")}))),e(document.body).trigger("edd_cart_item_removed",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e(document.body).on("click.eddAddToCart",".edd-add-to-cart",(function(t){t.preventDefault();var d=e(this),a=d.closest("form");d.prop("disabled",!0),d.find(".edd-loading");var n=d.closest("div");d.attr("data-edd-loading",""),a=d.parents("form").last();var r=d.data("download-id"),o=d.data("variable-price"),i=d.data("price-mode"),c=d.data("nonce"),s=[],_=!0;if("yes"===o)if(a.find(".edd_price_option_"+r+'[type="hidden"]').length>0)s[0]=e(".edd_price_option_"+r,a).val(),a.find(".edd-submit").data("price")&&a.find(".edd-submit").data("price")>0&&(_=!1);else{if(!a.find(".edd_price_option_"+r+":checked",a).length)return d.removeAttr("data-edd-loading"),alert(edd_scripts.select_option),t.stopPropagation(),d.prop("disabled",!1),!1;a.find(".edd_price_option_"+r+":checked",a).each((function(t){if(s[t]=e(this).val(),!0===_){var d=e(this).data("price");d&&d>0&&(_=!1)}}))}else s[0]=r,d.data("price")&&d.data("price")>0&&(_=!1);if(_&&a.find(".edd_action_input").val("add_to_cart"),"straight_to_gateway"===a.find(".edd_action_input").val())return a.submit(),!0;var l={action:d.data("action"),download_id:r,price_ids:s,post_data:e(a).serialize(),nonce:c};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var c="1"===edd_scripts.redirect_to_checkout,s="1"===a.find("#edd_redirect_to_checkout").val();if(c&&s||!c&&s)window.location=edd_scripts.checkout_page;else{if("1"===edd_scripts.taxes_enabled&&(e(".cart_item.edd_subtotal").show(),e(".cart_item.edd_cart_tax").show()),e(".cart_item.edd_total").show(),e(".cart_item.edd_checkout").show(),e(".cart_item.empty").length&&e(".cart_item.empty").hide(),e(".widget_edd_cart_widget .edd-cart").each((function(d){var a=e(this).find(".edd-cart-meta:first");e(t.cart_item).insertBefore(a);var n=e(this).parent();n.length&&(n.addClass("cart-not-empty"),n.removeClass("cart-empty"))})),"1"===edd_scripts.taxes_enabled&&(e(".edd-cart-meta.edd_subtotal span").html(t.subtotal),e(".edd-cart-meta.edd_cart_tax span").html(t.tax)),e(".edd-cart-meta.edd_total span").html(t.total),e(".edd-cart-item-title",t.cart_item).length,e("span.edd-cart-quantity").each((function(){e(this).text(t.cart_quantity),e(document.body).trigger("edd_quantity_updated",[t.cart_quantity])})),"none"===e(".edd-cart-number-of-items").css("display")&&e(".edd-cart-number-of-items").show("slow"),"no"!==o&&"multi"===i||(e(".edd-add-to-cart.edd-has-js",n).toggle(),e(".edd_go_to_checkout",n).show()),"multi"===i&&d.removeAttr("data-edd-loading"),e(".edd_download_purchase_form").length&&("no"===o||!a.find(".edd_price_option_"+r).is("input:hidden"))){var _=e('.edd_download_purchase_form *[data-download-id="'+r+'"]').parents("form");e(".edd-add-to-cart",_).hide(),"multi"!==i&&_.find(".edd_download_quantity_wrapper").slideUp(),e(".edd_go_to_checkout",_).show().removeAttr("data-edd-loading")}"incart"!==t&&(e(".edd-cart-added-alert",n).fadeIn(),setTimeout((function(){e(".edd-cart-added-alert",n).fadeOut()}),3e3)),d.prop("disabled",!1),e(document.body).trigger("edd_cart_item_added",[t])}}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){})),!1})),e("#edd_checkout_form_wrap").on("click",".edd_checkout_register_login",(function(){var t=e(this),d={action:t.data("action"),nonce:t.data("nonce")};return e(".edd-cart-ajax").show(),e.post(edd_scripts.ajaxurl,d,(function(t){e("#edd_checkout_login_register").html(edd_scripts.loading),e("#edd_checkout_login_register").html(t),e(".edd-cart-ajax").hide()})),!1})),e(document).on("click","#edd_purchase_form #edd_login_fields input[type=submit]",(function(t){t.preventDefault();var d=e(this).val();e(this).attr("data-original-value",d),e(this).val(edd_global_vars.purchase_loading),e(this).after('<span class="edd-loading-ajax edd-loading"></span>');var a={action:"edd_process_checkout_login",edd_ajax:1,edd_user_login:e("#edd_login_fields #edd_user_login").val(),edd_user_pass:e("#edd_login_fields #edd_user_pass").val(),edd_login_nonce:e("#edd_login_nonce").val()};e.post(edd_global_vars.ajaxurl,a,(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),window.location=edd_scripts.checkout_page):(e("#edd_login_fields input[type=submit]").val(d),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e("#edd-user-login-submit").before(t))}))})),e(document).on("change","select#edd-gateway, input.edd-gateway",(function(t){var d=e("#edd-gateway option:selected, input.edd-gateway:checked").val();return"0"===d||a(d),!1})),"1"===edd_scripts.is_checkout){var d=!1,n=!1;e("select#edd-gateway, input.edd-gateway").length&&(d=e("meta[name='edd-chosen-gateway']").attr("content"),n=!0),d||(d=edd_scripts.default_gateway),n?setTimeout((function(){a(d)}),200):setTimeout((function(){e("body").trigger("edd_gateway_loaded",[d])}),300)}function r(){var d,a=e(this),n="undefined"!=typeof edd_global_vars,r="card_state";"edd_address_country"===e(this).attr("id")&&(r="edd_address_state");var o=document.getElementById(r);if("card_state"!==a.attr("id")&&null!=o){var i=e(this).data("nonce"),c={action:"edd_get_shop_states",country:a.val(),field_name:r,nonce:i};e.ajax({type:"POST",data:c,url:edd_scripts.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){d=n?e("#edd_purchase_form"):a.closest("form");var o='input[name="card_state"], select[name="card_state"], input[name="edd_address_state"], select[name="edd_address_state"]';if("nostates"===e.trim(t)){var i='<input type="text" id="'+r+'" name="card_state" class="card-state edd-input required" value=""/>';d.find(o).replaceWith(i)}else d.find(o).replaceWith(t);n&&e(document.body).trigger("edd_cart_billing_address_updated",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})).done((function(e){n&&Object(t.b)()}))}else n&&Object(t.b)();return!1}e(document).on("click","#edd_purchase_form #edd_purchase_submit [type=submit]",(function(t){var d=document.getElementById("edd_purchase_form");if("function"!=typeof d.checkValidity||!1!==d.checkValidity()){t.preventDefault();var a=e(this).val();e(this).val(edd_global_vars.purchase_loading),e(this).prop("disabled",!0),e(this).after('<span class="edd-loading-ajax edd-loading"></span>'),e.post(edd_global_vars.ajaxurl,e("#edd_purchase_form").serialize()+"&action=edd_process_checkout&edd_ajax=true",(function(t){"success"===e.trim(t)?(e(".edd_errors").remove(),e(".edd-error").hide(),e(d).submit()):(e("#edd-purchase-button").val(a),e(".edd-loading-ajax").remove(),e(".edd_errors").remove(),e(".edd-error").hide(),e(edd_global_vars.checkout_error_anchor).before(t),e("#edd-purchase-button").prop("disabled",!1),e(document.body).trigger("edd_checkout_error",[t]))}))}})),e(document.body).on("change","#edd_cc_address input.card_state, #edd_cc_address select, #edd_address_country",r),window.update_state_field=r,e(document.body).on("change","#edd_cc_address input[name=card_zip]",(function(){"undefined"!=typeof edd_global_vars&&Object(t.b)()}))})),window.edd_load_gateway=a}.call(this,d(1))}});
|
assets/js/edd-checkout-global.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){var d={};function t(a){if(d[a])return d[a].exports;var n=d[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=d,t.d=function(e,d,a){t.o(e,d)||Object.defineProperty(e,d,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,d){if(1&d&&(e=t(e)),8&d)return e;if(4&d&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&d&&"string"!=typeof e)for(var n in e)t.d(a,n,function(d){return e[d]}.bind(null,n));return a},t.n=function(e){var d=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(d,"a",d),d},t.o=function(e,d){return Object.prototype.hasOwnProperty.call(e,d)},t.p="",t(t.s=222)}({1:function(e,d){e.exports=jQuery},10:function(e,d,t){"use strict";(function(e){t.d(d,"a",(function(){return a})),t.d(d,"b",(function(){return o}));var a=function(e){var d,t=e;switch(e){case"amex":t="americanexpress",d=32;break;default:d=50}return"\n <svg\n width=".concat(d,"\n height=",32,'\n class="payment-icon icon-').concat(t,'"\n role="img"\n >\n <use\n href="#icon-').concat(t,'"\n xlink:href="#icon-').concat(t,'">\n </use>\n </svg>')},n=0;function o(d){if("1"==edd_global_vars.taxes_enabled){var t=e("#edd_cc_address"),a=t.find("#billing_country").val(),o=t.find("#card_address").val(),r=t.find("#card_address_2").val(),i=t.find("#card_city").val(),c=t.find("#card_state").val();d||(d=c);var l={action:"edd_recalculate_taxes",card_address:o,card_address_2:r,card_city:i,card_zip:t.find("#card_zip").val(),state:d,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val()};e("#edd_purchase_submit [type=submit]").after('<span class="edd-loading-ajax edd-recalculate-taxes-loading edd-loading"></span>');var s=++n;return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){if(s===n){d.html&&e("#edd_checkout_cart_form").replaceWith(d.html),e(".edd_cart_amount").html(d.total);var t=new Object;t.postdata=l,t.response=d,e("body").trigger("edd_taxes_recalculated",[t])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(d){window.console&&window.console.log&&(console.log(d),s===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,t(1))},222:function(e,d,t){"use strict";t.r(d),t(223);var a=t(10);window.recalculate_taxes=a.b,window.EDD_Checkout=function(e){var d,t,n;function o(t){t.preventDefault();var o=e("#edd-discount").val(),r=e("#edd-discount-loader"),i=e("#edd_cc_address .edd-input, #edd_cc_address .edd-select").filter("[required]");if(""==o||o==edd_global_vars.enter_discount)return!1;var c={action:"edd_apply_discount",code:o,form:e("#edd_purchase_form").serialize()};return e("#edd-discount-error-wrap").html("").hide(),r.show(),e.ajax({type:"POST",data:c,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){t?"valid"==t.msg?(e(".edd_cart_discount").html(t.html),e(".edd_cart_discount_row").show(),e(".edd_cart_amount").each((function(){e(this).text(t.total),e(this).data("total",t.total_plain)})),e("#edd-discount",n).val(""),Object(a.b)(),"0.00"==t.total_plain?(e("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),i.prop("required",!1),e('input[name="edd-gateway"]').val("manual")):(i.prop("required",!0),e("#edd_cc_fields,#edd_cc_address").slideDown()),d.trigger("edd_discount_applied",[t])):(e("#edd-discount-error-wrap").html('<span class="edd_error">'+t.msg+"</span>"),e("#edd-discount-error-wrap").show(),d.trigger("edd_discount_invalid",[t])):(window.console&&window.console.log&&console.log(t),d.trigger("edd_discount_failed",[t])),r.hide()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function r(t){var n={action:"edd_remove_discount",code:e(this).data("code")};return e.ajax({type:"POST",data:n,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var n="0"+edd_global_vars.decimal_separator+"00";e(".edd_cart_amount").each((function(){edd_global_vars.currency_sign+n!=e(this).text()&&n+edd_global_vars.currency_sign!=e(this).text()||window.location.reload(),e(this).text(t.total),e(this).data("total",t.total_plain)})),e(".edd_cart_discount").html(t.html),t.discounts&&0===t.discounts.length&&e(".edd_cart_discount_row").hide(),Object(a.b)(),e("#edd_cc_fields,#edd_cc_address").slideDown(),d.trigger("edd_discount_removed",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function i(t){var a=e(this),n=a.val(),o=a.data("key"),r=a.closest(".edd_cart_item").data("download-id"),i=a.parent().find('input[name="edd-cart-download-'+o+'-options"]').val(),c=e("#edd_cc_address"),l={action:"edd_update_quantity",quantity:n,download_id:r,options:i,billing_country:c.find("#billing_country").val(),card_state:c.find("#card_state").val()};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){e(".edd_cart_subtotal_amount").each((function(){e(this).text(t.subtotal)})),e(".edd_cart_tax_amount").each((function(){e(this).text(t.taxes)})),e(".edd_cart_amount").each((function(){e(this).text(t.total),d.trigger("edd_quantity_updated",[t])}))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}return{init:function(){d=e(document.body),t=e("#edd_purchase_form"),e(".edd_cart_amount").text(),n=e("#edd_checkout_form_wrap"),d.on("edd_gateway_loaded",(function(e){var d,a,n,o;a=(d=t).find(".card-number"),n=d.find(".card-cvc"),o=d.find(".card-expiry"),a.length&&"function"==typeof a.payment&&(a.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})),d.on("keyup change",".edd-do-validate .card-number",(function(){var d,t;d=e(this),(t=d).validateCreditCard((function(d){var n=e(".card-type");null==d.card_type?(n.removeClass().addClass("off card-type"),t.removeClass("valid"),t.addClass("error")):(n.removeClass("off"),n.html(Object(a.a)(d.card_type.name)),n.addClass(d.card_type.name),d.length_valid&&d.luhn_valid?(t.addClass("valid"),t.removeClass("error")):(t.removeClass("valid"),t.addClass("error")))}))})),d.on("blur change",".card-name",(function(){var d=e(this);d.validateCreditCard((function(t){null!=t.card_type?(d.removeClass("valid").addClass("error"),e("#edd-purchase-button").attr("disabled","disabled")):(d.removeClass("error").addClass("valid"),e("#edd-purchase-button").removeAttr("disabled"))}))})),d.on("submit","#edd_payment_mode",(function(){if(0==e("#edd-gateway option:selected").val())return alert(edd_global_vars.no_gateway),!1})),d.on("click","#edd_payment_mode_select input",(function(){e("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),e("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")})),n.on("click",".edd-apply-discount",o),n.on("keypress","#edd-discount",(function(e){if("13"==e.keyCode)return!1})),n.on("keyup","#edd-discount",(function(e){"13"==e.keyCode&&n.find(".edd-apply-discount").trigger("click")})),d.on("click",".edd_discount_remove",r),d.on("click",".edd_discount_link",(function(d){d.preventDefault(),e(".edd_discount_link").parent().hide(),e("#edd-discount-code-wrap").show().find("#edd-discount").focus()})),d.find("#edd-discount-code-wrap").hide(),d.find("#edd_show_discount").show(),d.on("change",".edd-item-quantity",i),d.on("click",".edd-amazon-logout #Logout",(function(e){e.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri}))},recalculate_taxes:a.b}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init)},223:function(e,d,t){"use strict";(function(e){var d=t(3);Object(d.a)((function(){e(document.body).on("click",".edd_terms_links",(function(d){d.preventDefault();var t=e(this).parent();t.prev(".edd-terms").slideToggle(),t.find(".edd_terms_links").toggle()}))}))}).call(this,t(1))},3:function(e,d,t){"use strict";(function(e){t.d(d,"a",(function(){return a}));var a=function(d){e(d)}}).call(this,t(1))}});
|
1 |
+
!function(e){var d={};function t(a){if(d[a])return d[a].exports;var n=d[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=d,t.d=function(e,d,a){t.o(e,d)||Object.defineProperty(e,d,{enumerable:!0,get:a})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,d){if(1&d&&(e=t(e)),8&d)return e;if(4&d&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(t.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&d&&"string"!=typeof e)for(var n in e)t.d(a,n,function(d){return e[d]}.bind(null,n));return a},t.n=function(e){var d=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(d,"a",d),d},t.o=function(e,d){return Object.prototype.hasOwnProperty.call(e,d)},t.p="",t(t.s=222)}({1:function(e,d){e.exports=jQuery},10:function(e,d,t){"use strict";(function(e){t.d(d,"a",(function(){return a})),t.d(d,"b",(function(){return o}));var a=function(e){var d,t=e;switch(e){case"amex":t="americanexpress",d=32;break;default:d=50}return"\n <svg\n width=".concat(d,"\n height=",32,'\n class="payment-icon icon-').concat(t,'"\n role="img"\n >\n <use\n href="#icon-').concat(t,'"\n xlink:href="#icon-').concat(t,'">\n </use>\n </svg>')},n=0;function o(d){if("1"==edd_global_vars.taxes_enabled){var t=e("#edd_cc_address"),a=t.find("#billing_country").val(),o=t.find("#card_address").val(),r=t.find("#card_address_2").val(),i=t.find("#card_city").val(),c=t.find("#card_state").val();d||(d=c);var l={action:"edd_recalculate_taxes",card_address:o,card_address_2:r,card_city:i,card_zip:t.find("#card_zip").val(),state:d,billing_country:a,nonce:e("#edd-checkout-address-fields-nonce").val(),current_page:edd_global_vars.current_page};e("#edd_purchase_submit [type=submit]").after('<span class="edd-loading-ajax edd-recalculate-taxes-loading edd-loading"></span>');var s=++n;return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(d){if(s===n){d.html&&e("#edd_checkout_cart_form").replaceWith(d.html),e(".edd_cart_amount").html(d.total);var t=new Object;t.postdata=l,t.response=d,e("body").trigger("edd_taxes_recalculated",[t])}e(".edd-recalculate-taxes-loading").remove()}}).fail((function(d){window.console&&window.console.log&&(console.log(d),s===n&&e("body").trigger("edd_taxes_recalculated",[tax_data]))}))}}}).call(this,t(1))},222:function(e,d,t){"use strict";t.r(d),t(223);var a=t(10);window.recalculate_taxes=a.b,window.EDD_Checkout=function(e){var d,t,n;function o(t){t.preventDefault();var o=e("#edd-discount").val(),r=e("#edd-discount-loader"),i=e("#edd_cc_address .edd-input, #edd_cc_address .edd-select").filter("[required]");if(""==o||o==edd_global_vars.enter_discount)return!1;var c={action:"edd_apply_discount",code:o,form:e("#edd_purchase_form").serialize()};return e("#edd-discount-error-wrap").html("").hide(),r.show(),e.ajax({type:"POST",data:c,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){t?"valid"==t.msg?(e(".edd_cart_discount").html(t.html),e(".edd_cart_discount_row").show(),e(".edd_cart_amount").each((function(){e(this).text(t.total),e(this).data("total",t.total_plain)})),e("#edd-discount",n).val(""),Object(a.b)(),"0.00"==t.total_plain?(e("#edd_cc_fields,#edd_cc_address,#edd_payment_mode_select").slideUp(),i.prop("required",!1),e('input[name="edd-gateway"]').val("manual")):(i.prop("required",!0),e("#edd_cc_fields,#edd_cc_address").slideDown()),d.trigger("edd_discount_applied",[t])):(e("#edd-discount-error-wrap").html('<span class="edd_error">'+t.msg+"</span>"),e("#edd-discount-error-wrap").show(),d.trigger("edd_discount_invalid",[t])):(window.console&&window.console.log&&console.log(t),d.trigger("edd_discount_failed",[t])),r.hide()}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function r(t){var n={action:"edd_remove_discount",code:e(this).data("code")};return e.ajax({type:"POST",data:n,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){var n="0"+edd_global_vars.decimal_separator+"00";e(".edd_cart_amount").each((function(){edd_global_vars.currency_sign+n!=e(this).text()&&n+edd_global_vars.currency_sign!=e(this).text()||window.location.reload(),e(this).text(t.total),e(this).data("total",t.total_plain)})),e(".edd_cart_discount").html(t.html),t.discounts&&0===t.discounts.length&&e(".edd_cart_discount_row").hide(),Object(a.b)(),e("#edd_cc_fields,#edd_cc_address").slideDown(),d.trigger("edd_discount_removed",[t])}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}function i(t){var a=e(this),n=a.val(),o=a.data("key"),r=a.closest(".edd_cart_item").data("download-id"),i=a.parent().find('input[name="edd-cart-download-'+o+'-options"]').val(),c=e("#edd_cc_address"),l={action:"edd_update_quantity",quantity:n,download_id:r,options:i,billing_country:c.find("#billing_country").val(),card_state:c.find("#card_state").val()};return e.ajax({type:"POST",data:l,dataType:"json",url:edd_global_vars.ajaxurl,xhrFields:{withCredentials:!0},success:function(t){e(".edd_cart_subtotal_amount").each((function(){e(this).text(t.subtotal)})),e(".edd_cart_tax_amount").each((function(){e(this).text(t.taxes)})),e(".edd_cart_amount").each((function(){e(this).text(t.total),d.trigger("edd_quantity_updated",[t])}))}}).fail((function(e){window.console&&window.console.log&&console.log(e)})),!1}return{init:function(){d=e(document.body),t=e("#edd_purchase_form"),e(".edd_cart_amount").text(),n=e("#edd_checkout_form_wrap"),d.on("edd_gateway_loaded",(function(e){var d,a,n,o;a=(d=t).find(".card-number"),n=d.find(".card-cvc"),o=d.find(".card-expiry"),a.length&&"function"==typeof a.payment&&(a.payment("formatCardNumber"),n.payment("formatCardCVC"),o.payment("formatCardExpiry"))})),d.on("keyup change",".edd-do-validate .card-number",(function(){var d,t;d=e(this),(t=d).validateCreditCard((function(d){var n=e(".card-type");null==d.card_type?(n.removeClass().addClass("off card-type"),t.removeClass("valid"),t.addClass("error")):(n.removeClass("off"),n.html(Object(a.a)(d.card_type.name)),n.addClass(d.card_type.name),d.length_valid&&d.luhn_valid?(t.addClass("valid"),t.removeClass("error")):(t.removeClass("valid"),t.addClass("error")))}))})),d.on("blur change",".card-name",(function(){var d=e(this);d.validateCreditCard((function(t){null!=t.card_type?(d.removeClass("valid").addClass("error"),e("#edd-purchase-button").attr("disabled","disabled")):(d.removeClass("error").addClass("valid"),e("#edd-purchase-button").removeAttr("disabled"))}))})),d.on("submit","#edd_payment_mode",(function(){if(0==e("#edd-gateway option:selected").val())return alert(edd_global_vars.no_gateway),!1})),d.on("click","#edd_payment_mode_select input",(function(){e("#edd_payment_mode_select label.edd-gateway-option-selected").removeClass("edd-gateway-option-selected"),e("#edd_payment_mode_select input:checked").parent().addClass("edd-gateway-option-selected")})),n.on("click",".edd-apply-discount",o),n.on("keypress","#edd-discount",(function(e){if("13"==e.keyCode)return!1})),n.on("keyup","#edd-discount",(function(e){"13"==e.keyCode&&n.find(".edd-apply-discount").trigger("click")})),d.on("click",".edd_discount_remove",r),d.on("click",".edd_discount_link",(function(d){d.preventDefault(),e(".edd_discount_link").parent().hide(),e("#edd-discount-code-wrap").show().find("#edd-discount").focus()})),d.find("#edd-discount-code-wrap").hide(),d.find("#edd_show_discount").show(),d.on("change",".edd-item-quantity",i),d.on("click",".edd-amazon-logout #Logout",(function(e){e.preventDefault(),amazon.Login.logout(),window.location=edd_amazon.checkoutUri}))},recalculate_taxes:a.b}}(window.jQuery),window.jQuery(document).ready(EDD_Checkout.init)},223:function(e,d,t){"use strict";(function(e){var d=t(3);Object(d.a)((function(){e(document.body).on("click",".edd_terms_links",(function(d){d.preventDefault();var t=e(this).parent();t.prev(".edd-terms").slideToggle(),t.find(".edd_terms_links").toggle()}))}))}).call(this,t(1))},3:function(e,d,t){"use strict";(function(e){t.d(d,"a",(function(){return a}));var a=function(d){e(d)}}).call(this,t(1))}});
|
easy-digital-downloads.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: The easiest way to sell digital products with WordPress.
|
6 |
* Author: Easy Digital Downloads
|
7 |
* Author URI: https://easydigitaldownloads.com
|
8 |
-
* Version: 3.1
|
9 |
* Text Domain: easy-digital-downloads
|
10 |
* Domain Path: languages
|
11 |
* Requires PHP: 5.6
|
5 |
* Description: The easiest way to sell digital products with WordPress.
|
6 |
* Author: Easy Digital Downloads
|
7 |
* Author URI: https://easydigitaldownloads.com
|
8 |
+
* Version: 3.1.0.1
|
9 |
* Text Domain: easy-digital-downloads
|
10 |
* Domain Path: languages
|
11 |
* Requires PHP: 5.6
|
includes/admin/dashboard-widgets.php
CHANGED
@@ -209,19 +209,25 @@ function edd_load_dashboard_sales_widget( ) {
|
|
209 |
<div style="clear: both"></div>
|
210 |
<?php do_action( 'edd_sales_summary_widget_after_stats', $stats ); ?>
|
211 |
<?php
|
212 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
213 |
|
214 |
-
if ( $
|
215 |
<div class="table recent_orders">
|
216 |
<h3><?php esc_html_e( 'Recent Orders', 'easy-digital-downloads' ); ?></h3>
|
217 |
<ul>
|
218 |
<?php
|
219 |
-
foreach ( $
|
220 |
$link = edd_get_admin_url(
|
221 |
array(
|
222 |
'page' => 'edd-payment-history',
|
223 |
'view' => 'view-order-details',
|
224 |
-
'id' => urlencode( $
|
225 |
),
|
226 |
admin_url( 'edit.php' )
|
227 |
);
|
@@ -229,9 +235,9 @@ function edd_load_dashboard_sales_widget( ) {
|
|
229 |
<li class="edd_order_label">
|
230 |
<a href="<?php echo esc_url( $link ); ?>">
|
231 |
<?php
|
232 |
-
$customer = edd_get_customer( $
|
233 |
$customer_name = ! empty( $customer->name ) ? $customer->name : __( 'No Name', 'easy-digital-downloads' );
|
234 |
-
$item_count = edd_count_order_items( array( 'order_id' => $
|
235 |
echo wp_kses_post(
|
236 |
sprintf(
|
237 |
/* translators: 1. customer name; 2. number of items purchased; 3. order total */
|
@@ -243,12 +249,12 @@ function edd_load_dashboard_sales_widget( ) {
|
|
243 |
),
|
244 |
$customer_name,
|
245 |
$item_count,
|
246 |
-
edd_currency_filter( edd_format_amount( edd_get_order_total( $
|
247 |
)
|
248 |
);
|
249 |
?>
|
250 |
</a>
|
251 |
-
<br /><?php echo esc_html( edd_date_i18n( $
|
252 |
</li>
|
253 |
<?php } // End foreach ?>
|
254 |
</ul>
|
@@ -262,7 +268,18 @@ function edd_load_dashboard_sales_widget( ) {
|
|
262 |
<a href="<?php echo esc_url( $all_orders_link ); ?>" class="button-secondary"><?php esc_html_e( 'View All Orders', 'easy-digital-downloads' ); ?></a>
|
263 |
</div>
|
264 |
<?php } // End if ?>
|
265 |
-
<?php do_action( '
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
</div>
|
267 |
<?php
|
268 |
die();
|
209 |
<div style="clear: both"></div>
|
210 |
<?php do_action( 'edd_sales_summary_widget_after_stats', $stats ); ?>
|
211 |
<?php
|
212 |
+
$orders = edd_get_orders(
|
213 |
+
array(
|
214 |
+
'number' => 5,
|
215 |
+
'status' => edd_get_net_order_statuses(),
|
216 |
+
'type' => 'sale',
|
217 |
+
)
|
218 |
+
);
|
219 |
|
220 |
+
if ( $orders ) { ?>
|
221 |
<div class="table recent_orders">
|
222 |
<h3><?php esc_html_e( 'Recent Orders', 'easy-digital-downloads' ); ?></h3>
|
223 |
<ul>
|
224 |
<?php
|
225 |
+
foreach ( $orders as $order ) {
|
226 |
$link = edd_get_admin_url(
|
227 |
array(
|
228 |
'page' => 'edd-payment-history',
|
229 |
'view' => 'view-order-details',
|
230 |
+
'id' => urlencode( $order->id ),
|
231 |
),
|
232 |
admin_url( 'edit.php' )
|
233 |
);
|
235 |
<li class="edd_order_label">
|
236 |
<a href="<?php echo esc_url( $link ); ?>">
|
237 |
<?php
|
238 |
+
$customer = edd_get_customer( $order->customer_id );
|
239 |
$customer_name = ! empty( $customer->name ) ? $customer->name : __( 'No Name', 'easy-digital-downloads' );
|
240 |
+
$item_count = edd_count_order_items( array( 'order_id' => $order->id ) );
|
241 |
echo wp_kses_post(
|
242 |
sprintf(
|
243 |
/* translators: 1. customer name; 2. number of items purchased; 3. order total */
|
249 |
),
|
250 |
$customer_name,
|
251 |
$item_count,
|
252 |
+
edd_currency_filter( edd_format_amount( edd_get_order_total( $order->id ) ), $order->currency )
|
253 |
)
|
254 |
);
|
255 |
?>
|
256 |
</a>
|
257 |
+
<br /><?php echo esc_html( edd_date_i18n( $order->date_created ) ); ?> — <?php echo edd_get_status_label( $order->status ); ?>
|
258 |
</li>
|
259 |
<?php } // End foreach ?>
|
260 |
</ul>
|
268 |
<a href="<?php echo esc_url( $all_orders_link ); ?>" class="button-secondary"><?php esc_html_e( 'View All Orders', 'easy-digital-downloads' ); ?></a>
|
269 |
</div>
|
270 |
<?php } // End if ?>
|
271 |
+
<?php do_action( 'edd_sales_summary_widget_after_orders', $orders ); ?>
|
272 |
+
<?php
|
273 |
+
if ( has_action( 'edd_sales_summary_widget_after_purchases' ) ) {
|
274 |
+
_edd_deprecated_hook(
|
275 |
+
'edd_sales_summary_widget_after_purchases',
|
276 |
+
'3.1.0.1',
|
277 |
+
'edd_sales_summary_widget_after_orders',
|
278 |
+
'Note: The replacement hook uses the EDD 3.0 order objects, instead of payment objects. Developers will need to make adjustments accordingly.'
|
279 |
+
);
|
280 |
+
do_action( 'edd_sales_summary_widget_after_purchases', edd_get_payments( array( 'number' => 5, 'status' => 'complete' ) ) );
|
281 |
+
}
|
282 |
+
?>
|
283 |
</div>
|
284 |
<?php
|
285 |
die();
|
includes/admin/extensions/abstract-extension.php
CHANGED
@@ -288,7 +288,7 @@ abstract class Extension {
|
|
288 |
|
289 |
return edd_link_helper(
|
290 |
$url,
|
291 |
-
$utm_parameters
|
292 |
);
|
293 |
}
|
294 |
|
288 |
|
289 |
return edd_link_helper(
|
290 |
$url,
|
291 |
+
$utm_parameters
|
292 |
);
|
293 |
}
|
294 |
|
includes/blocks/includes/checkout/checkout.php
CHANGED
@@ -259,6 +259,9 @@ add_filter( 'edd_get_checkout_cart', __NAMESPACE__ . '\do_checkout_cart' );
|
|
259 |
* @return string
|
260 |
*/
|
261 |
function do_checkout_cart( $cart ) {
|
|
|
|
|
|
|
262 |
$cart_items = get_cart_contents();
|
263 |
ob_start();
|
264 |
do_action( 'edd_before_checkout_cart' );
|
@@ -373,5 +376,5 @@ add_filter( 'edd_is_checkout', __NAMESPACE__ . '\is_checkout' );
|
|
373 |
* @return bool
|
374 |
*/
|
375 |
function is_checkout( $is_checkout ) {
|
376 |
-
return ! $is_checkout &&
|
377 |
}
|
259 |
* @return string
|
260 |
*/
|
261 |
function do_checkout_cart( $cart ) {
|
262 |
+
if ( ! Functions\checkout_has_blocks() ) {
|
263 |
+
return $cart;
|
264 |
+
}
|
265 |
$cart_items = get_cart_contents();
|
266 |
ob_start();
|
267 |
do_action( 'edd_before_checkout_cart' );
|
376 |
* @return bool
|
377 |
*/
|
378 |
function is_checkout( $is_checkout ) {
|
379 |
+
return ! $is_checkout && Functions\checkout_has_blocks() ? true : $is_checkout;
|
380 |
}
|
includes/class-easy-digital-downloads.php
CHANGED
@@ -325,7 +325,7 @@ final class Easy_Digital_Downloads {
|
|
325 |
|
326 |
// Plugin version.
|
327 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
328 |
-
define( 'EDD_VERSION', '3.1' );
|
329 |
}
|
330 |
|
331 |
// Plugin Root File.
|
325 |
|
326 |
// Plugin version.
|
327 |
if ( ! defined( 'EDD_VERSION' ) ) {
|
328 |
+
define( 'EDD_VERSION', '3.1.0.1' );
|
329 |
}
|
330 |
|
331 |
// Plugin Root File.
|
includes/scripts.php
CHANGED
@@ -170,7 +170,8 @@ function edd_localize_scripts() {
|
|
170 |
'purchase_loading' => __( 'Please Wait...', 'easy-digital-downloads' ),
|
171 |
'complete_purchase' => edd_get_checkout_button_purchase_label(),
|
172 |
'taxes_enabled' => edd_use_taxes() ? '1' : '0',
|
173 |
-
'edd_version' => $version
|
|
|
174 |
) ) );
|
175 |
}
|
176 |
|
170 |
'purchase_loading' => __( 'Please Wait...', 'easy-digital-downloads' ),
|
171 |
'complete_purchase' => edd_get_checkout_button_purchase_label(),
|
172 |
'taxes_enabled' => edd_use_taxes() ? '1' : '0',
|
173 |
+
'edd_version' => $version,
|
174 |
+
'current_page' => get_the_ID(),
|
175 |
) ) );
|
176 |
}
|
177 |
|
languages/easy-digital-downloads.pot
CHANGED
@@ -2,14 +2,14 @@
|
|
2 |
# This file is distributed under the same license as the Easy Digital Downloads plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Easy Digital Downloads 3.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"POT-Creation-Date: 2022-10-
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: easy-digital-downloads\n"
|
@@ -1199,7 +1199,7 @@ msgid "No privacy policy agreement found."
|
|
1199 |
msgstr ""
|
1200 |
|
1201 |
#: includes/admin/customers/customers.php:704
|
1202 |
-
#: includes/admin/dashboard-widgets.php:
|
1203 |
msgid "Recent Orders"
|
1204 |
msgstr ""
|
1205 |
|
@@ -1432,22 +1432,22 @@ msgstr ""
|
|
1432 |
msgid "Total Earnings"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
-
#: includes/admin/dashboard-widgets.php:
|
1436 |
msgid "No Name"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
#. translators: 1. customer name; 2. number of items purchased; 3. order total
|
1440 |
-
#: includes/admin/dashboard-widgets.php:
|
1441 |
msgid "%1$s purchased %2$s item for <strong>%3$s</strong>"
|
1442 |
msgid_plural "%1$s purchased %2$s items for <strong>%3$s</strong>"
|
1443 |
msgstr[0] ""
|
1444 |
msgstr[1] ""
|
1445 |
|
1446 |
-
#: includes/admin/dashboard-widgets.php:
|
1447 |
msgid "View All Orders"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
-
#: includes/admin/dashboard-widgets.php:
|
1451 |
msgid "%s "
|
1452 |
msgid_plural "%s "
|
1453 |
msgstr[0] ""
|
@@ -2020,7 +2020,7 @@ msgid "Price ID: %s"
|
|
2020 |
msgstr ""
|
2021 |
|
2022 |
#: includes/admin/downloads/metabox.php:432
|
2023 |
-
#: includes/scripts.php:
|
2024 |
msgid "Show advanced settings"
|
2025 |
msgstr ""
|
2026 |
|
@@ -2031,7 +2031,7 @@ msgstr ""
|
|
2031 |
#: includes/admin/views/tmpl-tax-rates-table-row.php:47
|
2032 |
#: includes/blocks/views/checkout/cart/cart-fees.php:10
|
2033 |
#: includes/blocks/views/checkout/cart/cart-item.php:55
|
2034 |
-
#: includes/scripts.php:
|
2035 |
#: templates/checkout_cart.php:57
|
2036 |
#: templates/checkout_cart.php:75
|
2037 |
#: templates/shortcode-profile-editor.php:123
|
@@ -5855,7 +5855,7 @@ msgid "Use these tools to recount / reset store stats."
|
|
5855 |
msgstr ""
|
5856 |
|
5857 |
#: includes/admin/tools.php:140
|
5858 |
-
#: includes/scripts.php:
|
5859 |
msgid "Please select an option"
|
5860 |
msgstr ""
|
5861 |
|
@@ -6505,7 +6505,7 @@ msgid "Upgrade Easy Digital Downloads"
|
|
6505 |
msgstr ""
|
6506 |
|
6507 |
#: includes/admin/upgrades/upgrade-functions.php:1579
|
6508 |
-
#: includes/scripts.php:
|
6509 |
msgid "Migration complete"
|
6510 |
msgstr ""
|
6511 |
|
@@ -8427,7 +8427,7 @@ msgid "New Download Product"
|
|
8427 |
msgstr ""
|
8428 |
|
8429 |
#: includes/class-edd-html-elements.php:45
|
8430 |
-
#: includes/scripts.php:
|
8431 |
msgid "Choose a %s"
|
8432 |
msgstr ""
|
8433 |
|
@@ -12198,7 +12198,7 @@ msgid "File not found"
|
|
12198 |
msgstr ""
|
12199 |
|
12200 |
#: includes/process-purchase.php:31
|
12201 |
-
#: includes/scripts.php:
|
12202 |
msgid "Your cart is empty"
|
12203 |
msgstr ""
|
12204 |
|
@@ -12489,136 +12489,136 @@ msgstr ""
|
|
12489 |
msgid "Please Wait..."
|
12490 |
msgstr ""
|
12491 |
|
12492 |
-
#: includes/scripts.php:
|
12493 |
msgid "You have already added this item to your cart"
|
12494 |
msgstr ""
|
12495 |
|
12496 |
-
#: includes/scripts.php:
|
12497 |
#: includes/template-functions.php:192
|
12498 |
msgid "Loading"
|
12499 |
msgstr ""
|
12500 |
|
12501 |
-
#: includes/scripts.php:
|
12502 |
msgid "Add New Download"
|
12503 |
msgstr ""
|
12504 |
|
12505 |
-
#: includes/scripts.php:
|
12506 |
msgid "Use This File"
|
12507 |
msgstr ""
|
12508 |
|
12509 |
-
#: includes/scripts.php:
|
12510 |
msgid "Sorry, not available for variable priced products."
|
12511 |
msgstr ""
|
12512 |
|
12513 |
-
#: includes/scripts.php:
|
12514 |
msgid "Are you sure you want to delete this order?"
|
12515 |
msgstr ""
|
12516 |
|
12517 |
-
#: includes/scripts.php:
|
12518 |
msgid "Are you sure you want to delete this item?"
|
12519 |
msgstr ""
|
12520 |
|
12521 |
-
#: includes/scripts.php:
|
12522 |
msgid "Are you sure you want to delete this adjustment?"
|
12523 |
msgstr ""
|
12524 |
|
12525 |
-
#: includes/scripts.php:
|
12526 |
msgid "Are you sure you want to delete this note?"
|
12527 |
msgstr ""
|
12528 |
|
12529 |
-
#: includes/scripts.php:
|
12530 |
msgid "Are you sure you want to delete this tax rate?"
|
12531 |
msgstr ""
|
12532 |
|
12533 |
-
#: includes/scripts.php:
|
12534 |
msgid "Are you sure you want to revoke this API key?"
|
12535 |
msgstr ""
|
12536 |
|
12537 |
-
#: includes/scripts.php:
|
12538 |
msgid "Are you sure you want to regenerate this API key?"
|
12539 |
msgstr ""
|
12540 |
|
12541 |
-
#: includes/scripts.php:
|
12542 |
msgid "Are you sure you want to resend the purchase receipt?"
|
12543 |
msgstr ""
|
12544 |
|
12545 |
-
#: includes/scripts.php:
|
12546 |
msgid "Are you sure you want to disconnect the WordPress user from this customer record?"
|
12547 |
msgstr ""
|
12548 |
|
12549 |
-
#: includes/scripts.php:
|
12550 |
msgid "Copy these links to your clipboard and give them to your customer"
|
12551 |
msgstr ""
|
12552 |
|
12553 |
-
#: includes/scripts.php:
|
12554 |
msgid "Are you sure you want to delete this %s?"
|
12555 |
msgstr ""
|
12556 |
|
12557 |
-
#: includes/scripts.php:
|
12558 |
msgid "Type to search %s"
|
12559 |
msgstr ""
|
12560 |
|
12561 |
-
#: includes/scripts.php:
|
12562 |
msgid "Choose one or more %s"
|
12563 |
msgstr ""
|
12564 |
|
12565 |
-
#: includes/scripts.php:
|
12566 |
msgid "You must have at least one price"
|
12567 |
msgstr ""
|
12568 |
|
12569 |
-
#: includes/scripts.php:
|
12570 |
msgid "You must have at least one field"
|
12571 |
msgstr ""
|
12572 |
|
12573 |
-
#: includes/scripts.php:
|
12574 |
msgid "Payments must contain at least one item"
|
12575 |
msgstr ""
|
12576 |
|
12577 |
-
#: includes/scripts.php:
|
12578 |
msgid "No match for:"
|
12579 |
msgstr ""
|
12580 |
|
12581 |
-
#: includes/scripts.php:
|
12582 |
msgid "Item price must be numeric"
|
12583 |
msgstr ""
|
12584 |
|
12585 |
-
#: includes/scripts.php:
|
12586 |
msgid "Item tax must be numeric"
|
12587 |
msgstr ""
|
12588 |
|
12589 |
-
#: includes/scripts.php:
|
12590 |
msgid "Quantity must be numeric"
|
12591 |
msgstr ""
|
12592 |
|
12593 |
-
#: includes/scripts.php:
|
12594 |
msgid "You must choose a method."
|
12595 |
msgstr ""
|
12596 |
|
12597 |
-
#: includes/scripts.php:
|
12598 |
msgid "Required fields not completed."
|
12599 |
msgstr ""
|
12600 |
|
12601 |
-
#: includes/scripts.php:
|
12602 |
msgid "Are you sure you want to reset your store? This process is <strong><em>not reversible</em></strong>. Please be sure you have a recent backup."
|
12603 |
msgstr ""
|
12604 |
|
12605 |
-
#: includes/scripts.php:
|
12606 |
msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
|
12607 |
msgstr ""
|
12608 |
|
12609 |
-
#: includes/scripts.php:
|
12610 |
msgid "Hide advanced settings"
|
12611 |
msgstr ""
|
12612 |
|
12613 |
-
#: includes/scripts.php:
|
12614 |
msgid "There are no downloads attached to this payment"
|
12615 |
msgstr ""
|
12616 |
|
12617 |
-
#: includes/scripts.php:
|
12618 |
msgid "Please wait …"
|
12619 |
msgstr ""
|
12620 |
|
12621 |
-
#: includes/scripts.php:
|
12622 |
msgid "You must save your changes to send the test email."
|
12623 |
msgstr ""
|
12624 |
|
2 |
# This file is distributed under the same license as the Easy Digital Downloads plugin.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Easy Digital Downloads 3.1.0.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-digital-downloads\n"
|
7 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
8 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"POT-Creation-Date: 2022-10-08T15:08:05+00:00\n"
|
13 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
14 |
"X-Generator: WP-CLI 2.6.0\n"
|
15 |
"X-Domain: easy-digital-downloads\n"
|
1199 |
msgstr ""
|
1200 |
|
1201 |
#: includes/admin/customers/customers.php:704
|
1202 |
+
#: includes/admin/dashboard-widgets.php:222
|
1203 |
msgid "Recent Orders"
|
1204 |
msgstr ""
|
1205 |
|
1432 |
msgid "Total Earnings"
|
1433 |
msgstr ""
|
1434 |
|
1435 |
+
#: includes/admin/dashboard-widgets.php:239
|
1436 |
msgid "No Name"
|
1437 |
msgstr ""
|
1438 |
|
1439 |
#. translators: 1. customer name; 2. number of items purchased; 3. order total
|
1440 |
+
#: includes/admin/dashboard-widgets.php:244
|
1441 |
msgid "%1$s purchased %2$s item for <strong>%3$s</strong>"
|
1442 |
msgid_plural "%1$s purchased %2$s items for <strong>%3$s</strong>"
|
1443 |
msgstr[0] ""
|
1444 |
msgstr[1] ""
|
1445 |
|
1446 |
+
#: includes/admin/dashboard-widgets.php:268
|
1447 |
msgid "View All Orders"
|
1448 |
msgstr ""
|
1449 |
|
1450 |
+
#: includes/admin/dashboard-widgets.php:300
|
1451 |
msgid "%s "
|
1452 |
msgid_plural "%s "
|
1453 |
msgstr[0] ""
|
2020 |
msgstr ""
|
2021 |
|
2022 |
#: includes/admin/downloads/metabox.php:432
|
2023 |
+
#: includes/scripts.php:522
|
2024 |
msgid "Show advanced settings"
|
2025 |
msgstr ""
|
2026 |
|
2031 |
#: includes/admin/views/tmpl-tax-rates-table-row.php:47
|
2032 |
#: includes/blocks/views/checkout/cart/cart-fees.php:10
|
2033 |
#: includes/blocks/views/checkout/cart/cart-item.php:55
|
2034 |
+
#: includes/scripts.php:517
|
2035 |
#: templates/checkout_cart.php:57
|
2036 |
#: templates/checkout_cart.php:75
|
2037 |
#: templates/shortcode-profile-editor.php:123
|
5855 |
msgstr ""
|
5856 |
|
5857 |
#: includes/admin/tools.php:140
|
5858 |
+
#: includes/scripts.php:199
|
5859 |
msgid "Please select an option"
|
5860 |
msgstr ""
|
5861 |
|
6505 |
msgstr ""
|
6506 |
|
6507 |
#: includes/admin/upgrades/upgrade-functions.php:1579
|
6508 |
+
#: includes/scripts.php:539
|
6509 |
msgid "Migration complete"
|
6510 |
msgstr ""
|
6511 |
|
8427 |
msgstr ""
|
8428 |
|
8429 |
#: includes/class-edd-html-elements.php:45
|
8430 |
+
#: includes/scripts.php:508
|
8431 |
msgid "Choose a %s"
|
8432 |
msgstr ""
|
8433 |
|
12198 |
msgstr ""
|
12199 |
|
12200 |
#: includes/process-purchase.php:31
|
12201 |
+
#: includes/scripts.php:197
|
12202 |
msgid "Your cart is empty"
|
12203 |
msgstr ""
|
12204 |
|
12489 |
msgid "Please Wait..."
|
12490 |
msgstr ""
|
12491 |
|
12492 |
+
#: includes/scripts.php:196
|
12493 |
msgid "You have already added this item to your cart"
|
12494 |
msgstr ""
|
12495 |
|
12496 |
+
#: includes/scripts.php:198
|
12497 |
#: includes/template-functions.php:192
|
12498 |
msgid "Loading"
|
12499 |
msgstr ""
|
12500 |
|
12501 |
+
#: includes/scripts.php:493
|
12502 |
msgid "Add New Download"
|
12503 |
msgstr ""
|
12504 |
|
12505 |
+
#: includes/scripts.php:494
|
12506 |
msgid "Use This File"
|
12507 |
msgstr ""
|
12508 |
|
12509 |
+
#: includes/scripts.php:495
|
12510 |
msgid "Sorry, not available for variable priced products."
|
12511 |
msgstr ""
|
12512 |
|
12513 |
+
#: includes/scripts.php:496
|
12514 |
msgid "Are you sure you want to delete this order?"
|
12515 |
msgstr ""
|
12516 |
|
12517 |
+
#: includes/scripts.php:497
|
12518 |
msgid "Are you sure you want to delete this item?"
|
12519 |
msgstr ""
|
12520 |
|
12521 |
+
#: includes/scripts.php:498
|
12522 |
msgid "Are you sure you want to delete this adjustment?"
|
12523 |
msgstr ""
|
12524 |
|
12525 |
+
#: includes/scripts.php:499
|
12526 |
msgid "Are you sure you want to delete this note?"
|
12527 |
msgstr ""
|
12528 |
|
12529 |
+
#: includes/scripts.php:500
|
12530 |
msgid "Are you sure you want to delete this tax rate?"
|
12531 |
msgstr ""
|
12532 |
|
12533 |
+
#: includes/scripts.php:501
|
12534 |
msgid "Are you sure you want to revoke this API key?"
|
12535 |
msgstr ""
|
12536 |
|
12537 |
+
#: includes/scripts.php:502
|
12538 |
msgid "Are you sure you want to regenerate this API key?"
|
12539 |
msgstr ""
|
12540 |
|
12541 |
+
#: includes/scripts.php:503
|
12542 |
msgid "Are you sure you want to resend the purchase receipt?"
|
12543 |
msgstr ""
|
12544 |
|
12545 |
+
#: includes/scripts.php:504
|
12546 |
msgid "Are you sure you want to disconnect the WordPress user from this customer record?"
|
12547 |
msgstr ""
|
12548 |
|
12549 |
+
#: includes/scripts.php:505
|
12550 |
msgid "Copy these links to your clipboard and give them to your customer"
|
12551 |
msgstr ""
|
12552 |
|
12553 |
+
#: includes/scripts.php:506
|
12554 |
msgid "Are you sure you want to delete this %s?"
|
12555 |
msgstr ""
|
12556 |
|
12557 |
+
#: includes/scripts.php:507
|
12558 |
msgid "Type to search %s"
|
12559 |
msgstr ""
|
12560 |
|
12561 |
+
#: includes/scripts.php:509
|
12562 |
msgid "Choose one or more %s"
|
12563 |
msgstr ""
|
12564 |
|
12565 |
+
#: includes/scripts.php:510
|
12566 |
msgid "You must have at least one price"
|
12567 |
msgstr ""
|
12568 |
|
12569 |
+
#: includes/scripts.php:511
|
12570 |
msgid "You must have at least one field"
|
12571 |
msgstr ""
|
12572 |
|
12573 |
+
#: includes/scripts.php:512
|
12574 |
msgid "Payments must contain at least one item"
|
12575 |
msgstr ""
|
12576 |
|
12577 |
+
#: includes/scripts.php:513
|
12578 |
msgid "No match for:"
|
12579 |
msgstr ""
|
12580 |
|
12581 |
+
#: includes/scripts.php:514
|
12582 |
msgid "Item price must be numeric"
|
12583 |
msgstr ""
|
12584 |
|
12585 |
+
#: includes/scripts.php:515
|
12586 |
msgid "Item tax must be numeric"
|
12587 |
msgstr ""
|
12588 |
|
12589 |
+
#: includes/scripts.php:516
|
12590 |
msgid "Quantity must be numeric"
|
12591 |
msgstr ""
|
12592 |
|
12593 |
+
#: includes/scripts.php:518
|
12594 |
msgid "You must choose a method."
|
12595 |
msgstr ""
|
12596 |
|
12597 |
+
#: includes/scripts.php:519
|
12598 |
msgid "Required fields not completed."
|
12599 |
msgstr ""
|
12600 |
|
12601 |
+
#: includes/scripts.php:520
|
12602 |
msgid "Are you sure you want to reset your store? This process is <strong><em>not reversible</em></strong>. Please be sure you have a recent backup."
|
12603 |
msgstr ""
|
12604 |
|
12605 |
+
#: includes/scripts.php:521
|
12606 |
msgid "We are sorry but your browser is not compatible with this kind of file upload. Please upgrade your browser."
|
12607 |
msgstr ""
|
12608 |
|
12609 |
+
#: includes/scripts.php:523
|
12610 |
msgid "Hide advanced settings"
|
12611 |
msgstr ""
|
12612 |
|
12613 |
+
#: includes/scripts.php:524
|
12614 |
msgid "There are no downloads attached to this payment"
|
12615 |
msgstr ""
|
12616 |
|
12617 |
+
#: includes/scripts.php:525
|
12618 |
msgid "Please wait …"
|
12619 |
msgstr ""
|
12620 |
|
12621 |
+
#: includes/scripts.php:526
|
12622 |
msgid "You must save your changes to send the test email."
|
12623 |
msgstr ""
|
12624 |
|
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Easy Digital Downloads - Simple eCommerce for Selling Digital Files ===
|
2 |
Author URI: https://easydigitaldownloads.com
|
3 |
Plugin URI: https://easydigitaldownloads.com
|
4 |
-
Contributors: easydigitaldownloads,
|
5 |
Tags: ecommerce, e-commerce, sell, digital store, stripe
|
6 |
Requires at least: 4.9
|
7 |
Tested up to: 6.0
|
8 |
Requires PHP: 5.6
|
9 |
-
Stable Tag: 3.1
|
10 |
License: GNU Version 2 or Any Later Version
|
11 |
|
12 |
Sell your digital products with the ecommerce plugin written for digital creators, by digital creators.
|
@@ -238,6 +238,11 @@ Yes, through the use of our commercial addon called [Recurring Payments](https:/
|
|
238 |
|
239 |
== Changelog ==
|
240 |
|
|
|
|
|
|
|
|
|
|
|
241 |
= 3.1, October 6, 2022 =
|
242 |
* New: Websites running WordPress 5.8 and above (and PHP 7.0 or greater) have access to ten new registered EDD blocks.
|
243 |
* New: Store owners can receive weekly or monthly email summaries of their store's performance.
|
1 |
=== Easy Digital Downloads - Simple eCommerce for Selling Digital Files ===
|
2 |
Author URI: https://easydigitaldownloads.com
|
3 |
Plugin URI: https://easydigitaldownloads.com
|
4 |
+
Contributors: easydigitaldownloads, am, cklosows, littlerchicken, zkawesome, smub, mordauk, sunnyratilal, chriscct7, section214, sumobi, sdavis2702, mindctrl, sksmatt, SpencerFinnell, johnstonphilip, brashrebel, drewapicture, johnjamesjacoby, nosegraze, lisacee
|
5 |
Tags: ecommerce, e-commerce, sell, digital store, stripe
|
6 |
Requires at least: 4.9
|
7 |
Tested up to: 6.0
|
8 |
Requires PHP: 5.6
|
9 |
+
Stable Tag: 3.1.0.1
|
10 |
License: GNU Version 2 or Any Later Version
|
11 |
|
12 |
Sell your digital products with the ecommerce plugin written for digital creators, by digital creators.
|
238 |
|
239 |
== Changelog ==
|
240 |
|
241 |
+
= 3.1.0.1, October 8, 2022 =
|
242 |
+
* Fix: With taxes enabled, updating the address fields in the shortcode would replace the cart with the cart block.
|
243 |
+
* Fix: The dashboard widget was not using the order currency to display amounts for recent orders.
|
244 |
+
* Fix: No JS fallback buttons were being improperly toggled by JavaScript changes.
|
245 |
+
|
246 |
= 3.1, October 6, 2022 =
|
247 |
* New: Websites running WordPress 5.8 and above (and PHP 7.0 or greater) have access to ten new registered EDD blocks.
|
248 |
* New: Store owners can receive weekly or monthly email summaries of their store's performance.
|