Plugin Directory

Changeset 3402448


Ignore:
Timestamp:
11/25/2025 11:24:20 AM (3 weeks ago)
Author:
wpdevteam
Message:

Update to version 6.5.2 from GitHub

Location:
essential-addons-for-elementor-lite
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • essential-addons-for-elementor-lite/tags/6.5.2/assets/front-end/js/view/woo-checkout.js

    r3397981 r3402448  
    9494/***/ (function(module, exports) {
    9595
    96 eval("var WooCheckout = function WooCheckout($scope, $) {\n  $.blockUI.defaults.overlayCSS.cursor = \"default\";\n\n  //We added this class in body\n  document.body.classList.add('eael-woo-checkout');\n  function render_order_review_template() {\n    var wooCheckout = $(\".ea-woo-checkout\");\n    setTimeout(function () {\n      $(\".ea-checkout-review-order-table\").addClass(\"processing\").block({\n        message: null,\n        overlayCSS: {\n          background: \"#fff\",\n          opacity: 0.6\n        }\n      });\n      $.ajax({\n        type: \"POST\",\n        url: localize.ajaxurl,\n        data: {\n          action: \"woo_checkout_update_order_review\",\n          orderReviewData: wooCheckout.data(\"checkout\"),\n          shippingData: $(\"#shipping_method input:checked\").val()\n        },\n        success: function success(data) {\n          $(\".ea-checkout-review-order-table\").replaceWith(data.order_review);\n          setTimeout(function () {\n            $(\".ea-checkout-review-order-table\").removeClass(\"processing\").unblock();\n          }, 100000);\n        }\n      });\n    }, 200);\n  }\n  $(document).on(\"click\", \".woocommerce-remove-coupon\", function (e) {\n    render_order_review_template();\n  });\n  $(\"form.checkout_coupon\").submit(function (event) {\n    render_order_review_template();\n  });\n  var wooCheckout = $(\".ea-woo-checkout\");\n  wooCheckout.on('change', 'select.shipping_method, input[name^=\"shipping_method\"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type=\"radio\"], .update_totals_on_change input[type=\"checkbox\"]', function () {\n    $(document.body).trigger('update_checkout');\n    render_order_review_template();\n  }); // eslint-disable-line max-len\n\n  $(document.body).bind('update_checkout', function () {\n    render_order_review_template();\n  });\n\n  //move coupon remove message to coupon box (multi step and split layout)\n  $(document.body).on('removed_coupon_in_checkout', function () {\n    var message = $('.ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message').remove();\n    $('.ea-woo-checkout .checkout_coupon.woocommerce-form-coupon').before(message);\n  });\n  function eael_update_checkout() {\n    var cart_item_key = $(this).attr('name').replace(/cart\\[([\\w]+)\\]\\[qty\\]/g, \"$1\");\n    var item_quantity = $(this).val();\n    var cart_table = $('.ea-checkout-review-order-table', $scope);\n    var currentVal = parseFloat(item_quantity);\n    $this = $(this);\n    cart_table.css('opacity', '0.7');\n    $('.eael-checkout-cart-qty-input', cart_table).attr('disabled', true);\n    $.ajax({\n      type: 'POST',\n      url: localize.ajaxurl,\n      data: {\n        action: 'eael_checkout_cart_qty_update',\n        nonce: localize.nonce,\n        cart_item_key: cart_item_key,\n        quantity: currentVal\n      },\n      success: function success(response) {\n        if (response.success) {\n          $(document.body).trigger('update_checkout');\n        }\n      }\n    });\n  }\n  ;\n  $(document).on('change', '.eael-checkout-cart-qty-input', ea.debounce(eael_update_checkout, 300));\n};\njQuery(window).on(\"elementor/frontend/init\", function () {\n  elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-checkout.default\", WooCheckout);\n});\nif (jQuery('.ea-woo-checkout').hasClass('checkout-reorder-enabled')) {\n  jQuery(document.body).on('country_to_state_changing', function (event, country, wrapper) {\n    var $ = jQuery,\n      checkout_keys = $('.ea-woo-checkout').data('checkout_ids'),\n      field_wrapper = $('.ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper');\n    field_wrapper.addClass('eael-reordering');\n    var reorder_fields = function reorder_fields(type, _wrapper) {\n      var $selector = $(\".eael-\".concat(type, \"-fields .woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      _wrapper = typeof _wrapper !== 'undefined' ? _wrapper : wrapper;\n      $.each(checkout_keys[type], function (field_key, form_class) {\n        var $fieldHtml = _wrapper.find(\"#\".concat(field_key, \"_field\"));\n        if ($fieldHtml.length === 0) {\n          $fieldHtml = _wrapper.find(\"input[name='\".concat(field_key, \"']\")).closest('p');\n        }\n        $fieldHtml.removeClass('form-row-first form-row-last form-row-wide').addClass(form_class);\n        $(\"#eael-wc-\".concat(type, \"-reordered-fields .eael-woo-\").concat(type, \"-fields\")).append($fieldHtml);\n      });\n      $selector.replaceWith($(\"#eael-wc-\".concat(type, \"-reordered-fields\")).contents());\n      $(\".eael-woo-\".concat(type, \"-fields\")).toggleClass(\"eael-woo-\".concat(type, \"-fields woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      $(\"#eael-wc-\".concat(type, \"-reordered-fields\")).html(\"<div class=\\\"eael-woo-\".concat(type, \"-fields\\\"></div>\"));\n    };\n    setTimeout(function () {\n      if (wrapper.hasClass(\"eael-billing-fields\")) {\n        reorder_fields(\"billing\");\n        reorder_fields(\"shipping\", $(\".eael-shipping-fields\"));\n      }\n      if (wrapper.hasClass(\"eael-shipping-fields\")) {\n        reorder_fields(\"shipping\");\n        reorder_fields(\"billing\", $(\".eael-billing-fields\"));\n      }\n      field_wrapper.removeClass(\"eael-reordering\");\n    }, 500);\n  });\n}\nvar change_button_text = function change_button_text() {\n  var $ = jQuery,\n    button_texts = $('.ea-woo-checkout').data('button_texts');\n  setTimeout(function () {\n    if (button_texts.place_order !== '') {\n      $('#place_order').text(button_texts.place_order);\n    }\n  }, 500);\n};\njQuery(document.body).on('update_checkout payment_method_selected updated_checkout', function (event) {\n  change_button_text();\n}).on('click', '.woocommerce-checkout-payment li label', function () {\n  change_button_text();\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-checkout.js?");
     96eval("var WooCheckout = function WooCheckout($scope, $) {\n  $.blockUI.defaults.overlayCSS.cursor = \"default\";\n\n  //We added this class in body\n  document.body.classList.add('eael-woo-checkout');\n  function render_order_review_template() {\n    var wooCheckout = $(\".ea-woo-checkout\");\n    setTimeout(function () {\n      $(\".ea-checkout-review-order-table\").addClass(\"processing\").block({\n        message: null,\n        overlayCSS: {\n          background: \"#fff\",\n          opacity: 0.6\n        }\n      });\n      $.ajax({\n        type: \"POST\",\n        url: localize.ajaxurl,\n        data: {\n          action: \"woo_checkout_update_order_review\",\n          orderReviewData: wooCheckout.data(\"checkout\"),\n          shippingData: $(\".ea-woo-checkout-order-review #shipping_method input:checked\").val()\n        },\n        success: function success(data) {\n          $(\".ea-checkout-review-order-table\").replaceWith(data.order_review);\n          setTimeout(function () {\n            $(\".ea-checkout-review-order-table\").removeClass(\"processing\").unblock();\n          }, 100000);\n        }\n      });\n    }, 200);\n  }\n  $(document).on(\"click\", \".woocommerce-remove-coupon\", function (e) {\n    render_order_review_template();\n  });\n  $(\"form.checkout_coupon\").submit(function (event) {\n    render_order_review_template();\n  });\n  var wooCheckout = $(\".ea-woo-checkout\");\n  wooCheckout.on('change', 'select.shipping_method, input[name^=\"shipping_method\"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type=\"radio\"], .update_totals_on_change input[type=\"checkbox\"]', function () {\n    $(document.body).trigger('update_checkout');\n    render_order_review_template();\n  }); // eslint-disable-line max-len\n\n  $(document.body).bind('update_checkout', function () {\n    render_order_review_template();\n  });\n\n  //move coupon remove message to coupon box (multi step and split layout)\n  $(document.body).on('removed_coupon_in_checkout', function () {\n    var message = $('.ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message').remove();\n    $('.ea-woo-checkout .checkout_coupon.woocommerce-form-coupon').before(message);\n  });\n  function eael_update_checkout() {\n    var cart_item_key = $(this).attr('name').replace(/cart\\[([\\w]+)\\]\\[qty\\]/g, \"$1\");\n    var item_quantity = $(this).val();\n    var cart_table = $('.ea-checkout-review-order-table', $scope);\n    var currentVal = parseFloat(item_quantity);\n    $this = $(this);\n    cart_table.css('opacity', '0.7');\n    $('.eael-checkout-cart-qty-input', cart_table).attr('disabled', true);\n    $.ajax({\n      type: 'POST',\n      url: localize.ajaxurl,\n      data: {\n        action: 'eael_checkout_cart_qty_update',\n        nonce: localize.nonce,\n        cart_item_key: cart_item_key,\n        quantity: currentVal\n      },\n      success: function success(response) {\n        if (response.success) {\n          $(document.body).trigger('update_checkout');\n        }\n      }\n    });\n  }\n  ;\n  $(document).on('change', '.eael-checkout-cart-qty-input', ea.debounce(eael_update_checkout, 300));\n};\njQuery(window).on(\"elementor/frontend/init\", function () {\n  elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-checkout.default\", WooCheckout);\n});\nif (jQuery('.ea-woo-checkout').hasClass('checkout-reorder-enabled')) {\n  jQuery(document.body).on('country_to_state_changing', function (event, country, wrapper) {\n    var $ = jQuery,\n      checkout_keys = $('.ea-woo-checkout').data('checkout_ids'),\n      field_wrapper = $('.ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper');\n    field_wrapper.addClass('eael-reordering');\n    var reorder_fields = function reorder_fields(type, _wrapper) {\n      var $selector = $(\".eael-\".concat(type, \"-fields .woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      _wrapper = typeof _wrapper !== 'undefined' ? _wrapper : wrapper;\n      $.each(checkout_keys[type], function (field_key, form_class) {\n        var $fieldHtml = _wrapper.find(\"#\".concat(field_key, \"_field\"));\n        if ($fieldHtml.length === 0) {\n          $fieldHtml = _wrapper.find(\"input[name='\".concat(field_key, \"']\")).closest('p');\n        }\n        $fieldHtml.removeClass('form-row-first form-row-last form-row-wide').addClass(form_class);\n        $(\"#eael-wc-\".concat(type, \"-reordered-fields .eael-woo-\").concat(type, \"-fields\")).append($fieldHtml);\n      });\n      $selector.replaceWith($(\"#eael-wc-\".concat(type, \"-reordered-fields\")).contents());\n      $(\".eael-woo-\".concat(type, \"-fields\")).toggleClass(\"eael-woo-\".concat(type, \"-fields woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      $(\"#eael-wc-\".concat(type, \"-reordered-fields\")).html(\"<div class=\\\"eael-woo-\".concat(type, \"-fields\\\"></div>\"));\n    };\n    setTimeout(function () {\n      if (wrapper.hasClass(\"eael-billing-fields\")) {\n        reorder_fields(\"billing\");\n        reorder_fields(\"shipping\", $(\".eael-shipping-fields\"));\n      }\n      if (wrapper.hasClass(\"eael-shipping-fields\")) {\n        reorder_fields(\"shipping\");\n        reorder_fields(\"billing\", $(\".eael-billing-fields\"));\n      }\n      field_wrapper.removeClass(\"eael-reordering\");\n    }, 500);\n  });\n}\nvar change_button_text = function change_button_text() {\n  var $ = jQuery,\n    button_texts = $('.ea-woo-checkout').data('button_texts');\n  setTimeout(function () {\n    if (button_texts.place_order !== '') {\n      $('#place_order').text(button_texts.place_order);\n    }\n  }, 500);\n};\njQuery(document.body).on('update_checkout payment_method_selected updated_checkout', function (event) {\n  change_button_text();\n}).on('click', '.woocommerce-checkout-payment li label', function () {\n  change_button_text();\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-checkout.js?");
    9797
    9898/***/ })
  • essential-addons-for-elementor-lite/tags/6.5.2/assets/front-end/js/view/woo-checkout.min.js

    r3397981 r3402448  
    1 !function(e){var o={};function t(c){if(o[c])return o[c].exports;var n=o[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,c){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:c})},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,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(c,n,function(o){return e[o]}.bind(null,n));return c},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=38)}({38:function(e,o){var t=function(e,o){function t(){var e=o(".ea-woo-checkout");setTimeout((function(){o(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout"),shippingData:o("#shipping_method input:checked").val()},success:function(e){o(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){o(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),200)}o.blockUI.defaults.overlayCSS.cursor="default",document.body.classList.add("eael-woo-checkout"),o(document).on("click",".woocommerce-remove-coupon",(function(e){t()})),o("form.checkout_coupon").submit((function(e){t()})),o(".ea-woo-checkout").on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]',(function(){o(document.body).trigger("update_checkout"),t()})),o(document.body).bind("update_checkout",(function(){t()})),o(document.body).on("removed_coupon_in_checkout",(function(){var e=o(".ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message").remove();o(".ea-woo-checkout .checkout_coupon.woocommerce-form-coupon").before(e)})),o(document).on("change",".eael-checkout-cart-qty-input",ea.debounce((function(){var t=o(this).attr("name").replace(/cart\[([\w]+)\]\[qty\]/g,"$1"),c=o(this).val(),n=o(".ea-checkout-review-order-table",e),a=parseFloat(c);$this=o(this),n.css("opacity","0.7"),o(".eael-checkout-cart-qty-input",n).attr("disabled",!0),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"eael_checkout_cart_qty_update",nonce:localize.nonce,cart_item_key:t,quantity:a},success:function(e){e.success&&o(document.body).trigger("update_checkout")}})}),300))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",t)})),jQuery(".ea-woo-checkout").hasClass("checkout-reorder-enabled")&&jQuery(document.body).on("country_to_state_changing",(function(e,o,t){var c=jQuery,n=c(".ea-woo-checkout").data("checkout_ids"),a=c(".ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper");a.addClass("eael-reordering");var r=function(e,o){var a=c(".eael-".concat(e,"-fields .woocommerce-").concat(e,"-fields__field-wrapper"));o=void 0!==o?o:t,c.each(n[e],(function(t,n){var a=o.find("#".concat(t,"_field"));0===a.length&&(a=o.find("input[name='".concat(t,"']")).closest("p")),a.removeClass("form-row-first form-row-last form-row-wide").addClass(n),c("#eael-wc-".concat(e,"-reordered-fields .eael-woo-").concat(e,"-fields")).append(a)})),a.replaceWith(c("#eael-wc-".concat(e,"-reordered-fields")).contents()),c(".eael-woo-".concat(e,"-fields")).toggleClass("eael-woo-".concat(e,"-fields woocommerce-").concat(e,"-fields__field-wrapper")),c("#eael-wc-".concat(e,"-reordered-fields")).html('<div class="eael-woo-'.concat(e,'-fields"></div>'))};setTimeout((function(){t.hasClass("eael-billing-fields")&&(r("billing"),r("shipping",c(".eael-shipping-fields"))),t.hasClass("eael-shipping-fields")&&(r("shipping"),r("billing",c(".eael-billing-fields"))),a.removeClass("eael-reordering")}),500)}));var c=function(){var e=jQuery,o=e(".ea-woo-checkout").data("button_texts");setTimeout((function(){""!==o.place_order&&e("#place_order").text(o.place_order)}),500)};jQuery(document.body).on("update_checkout payment_method_selected updated_checkout",(function(e){c()})).on("click",".woocommerce-checkout-payment li label",(function(){c()}))}});
     1!function(e){var o={};function t(c){if(o[c])return o[c].exports;var n=o[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,c){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:c})},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,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(c,n,function(o){return e[o]}.bind(null,n));return c},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=38)}({38:function(e,o){var t=function(e,o){function t(){var e=o(".ea-woo-checkout");setTimeout((function(){o(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout"),shippingData:o(".ea-woo-checkout-order-review #shipping_method input:checked").val()},success:function(e){o(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){o(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),200)}o.blockUI.defaults.overlayCSS.cursor="default",document.body.classList.add("eael-woo-checkout"),o(document).on("click",".woocommerce-remove-coupon",(function(e){t()})),o("form.checkout_coupon").submit((function(e){t()})),o(".ea-woo-checkout").on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]',(function(){o(document.body).trigger("update_checkout"),t()})),o(document.body).bind("update_checkout",(function(){t()})),o(document.body).on("removed_coupon_in_checkout",(function(){var e=o(".ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message").remove();o(".ea-woo-checkout .checkout_coupon.woocommerce-form-coupon").before(e)})),o(document).on("change",".eael-checkout-cart-qty-input",ea.debounce((function(){var t=o(this).attr("name").replace(/cart\[([\w]+)\]\[qty\]/g,"$1"),c=o(this).val(),n=o(".ea-checkout-review-order-table",e),a=parseFloat(c);$this=o(this),n.css("opacity","0.7"),o(".eael-checkout-cart-qty-input",n).attr("disabled",!0),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"eael_checkout_cart_qty_update",nonce:localize.nonce,cart_item_key:t,quantity:a},success:function(e){e.success&&o(document.body).trigger("update_checkout")}})}),300))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",t)})),jQuery(".ea-woo-checkout").hasClass("checkout-reorder-enabled")&&jQuery(document.body).on("country_to_state_changing",(function(e,o,t){var c=jQuery,n=c(".ea-woo-checkout").data("checkout_ids"),a=c(".ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper");a.addClass("eael-reordering");var r=function(e,o){var a=c(".eael-".concat(e,"-fields .woocommerce-").concat(e,"-fields__field-wrapper"));o=void 0!==o?o:t,c.each(n[e],(function(t,n){var a=o.find("#".concat(t,"_field"));0===a.length&&(a=o.find("input[name='".concat(t,"']")).closest("p")),a.removeClass("form-row-first form-row-last form-row-wide").addClass(n),c("#eael-wc-".concat(e,"-reordered-fields .eael-woo-").concat(e,"-fields")).append(a)})),a.replaceWith(c("#eael-wc-".concat(e,"-reordered-fields")).contents()),c(".eael-woo-".concat(e,"-fields")).toggleClass("eael-woo-".concat(e,"-fields woocommerce-").concat(e,"-fields__field-wrapper")),c("#eael-wc-".concat(e,"-reordered-fields")).html('<div class="eael-woo-'.concat(e,'-fields"></div>'))};setTimeout((function(){t.hasClass("eael-billing-fields")&&(r("billing"),r("shipping",c(".eael-shipping-fields"))),t.hasClass("eael-shipping-fields")&&(r("shipping"),r("billing",c(".eael-billing-fields"))),a.removeClass("eael-reordering")}),500)}));var c=function(){var e=jQuery,o=e(".ea-woo-checkout").data("button_texts");setTimeout((function(){""!==o.place_order&&e("#place_order").text(o.place_order)}),500)};jQuery(document.body).on("update_checkout payment_method_selected updated_checkout",(function(e){c()})).on("click",".woocommerce-checkout-payment li label",(function(){c()}))}});
  • essential-addons-for-elementor-lite/tags/6.5.2/essential_adons_elementor.php

    r3398866 r3402448  
    55 * Plugin URI: https://essential-addons.com/
    66 * Author: WPDeveloper
    7  * Version: 6.5.1
     7 * Version: 6.5.2
    88 * Author URI: https://wpdeveloper.com/
    99 * Text Domain: essential-addons-for-elementor-lite
     
    1111 *
    1212 * WC tested up to: 10.0
    13  * Elementor tested up to: 3.32
    14  * Elementor Pro tested up to: 3.32
     13 * Elementor tested up to: 3.33
     14 * Elementor Pro tested up to: 3.33
    1515 */
    1616
     
    2828define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
    2929define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
    30 define('EAEL_PLUGIN_VERSION', '6.5.1');
     30define('EAEL_PLUGIN_VERSION', '6.5.2');
    3131define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
    3232define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
  • essential-addons-for-elementor-lite/tags/6.5.2/includes/Classes/Compatibility_Support.php

    r3344575 r3402448  
    2929        // Parse shipping method details
    3030        $method_string = $chosen_shipping_methods[0];
    31         list($method_id, $instance_id) = explode(':', $method_string);
     31        // Ensure method_string is a string and contains a colon
     32        if ( !is_string($method_string) || strpos($method_string, ':') === false ) {
     33            return;
     34        }
     35        list($method_id, $instance_id) = explode(':', $method_string, 2);
    3236
    3337        // Add shipping form if Mondial Relay is selected
  • essential-addons-for-elementor-lite/tags/6.5.2/includes/Traits/Ajax_Handler.php

    r3397981 r3402448  
    561561    public function woo_checkout_update_order_review() {
    562562        $setting       = $_POST['orderReviewData'];
    563         $shipping_data = $_POST['shippingData'] ?? [];
    564        
     563        $shipping_data = empty ( $_POST['shippingData'] ) ? WC()->session->get('chosen_shipping_methods') : [wc_clean( $_POST['shippingData'] )];
    565564        //Mondial Relay plugin integration
    566565        do_action( 'eael_mondialrelay_order_after_shipping' );
    567566       
    568         WC()->session->set( 'chosen_shipping_methods', [$shipping_data] );
     567        WC()->session->set( 'chosen_shipping_methods', $shipping_data );
    569568
    570569        ob_start();
  • essential-addons-for-elementor-lite/tags/6.5.2/languages/essential-addons-for-elementor-lite.pot

    r3398866 r3402448  
    4646msgstr ""
    4747
    48 #: ../includes/Classes/Compatibility_Support.php:63
     48#: ../includes/Classes/Compatibility_Support.php:67
    4949msgid "Livraison Mondial Relay"
    5050msgstr ""
    5151
    52 #: ../includes/Classes/Compatibility_Support.php:65
     52#: ../includes/Classes/Compatibility_Support.php:69
    5353msgid "Vous n'avez pas encore choisi de Point Relais®"
    5454msgstr ""
    5555
    56 #: ../includes/Classes/Compatibility_Support.php:67
     56#: ../includes/Classes/Compatibility_Support.php:71
    5757msgid "Choisir un Point Relais®"
    5858msgstr ""
     
    214214msgstr ""
    215215
    216 #: ../includes/Classes/WPDeveloper_Plugin_Installer.php:152, ../includes/Classes/WPDeveloper_Plugin_Installer.php:186, ../includes/Classes/WPDeveloper_Plugin_Installer.php:205, ../includes/Classes/WPDeveloper_Plugin_Installer.php:226, ../includes/Classes/WPDeveloper_Setup_Wizard.php:463, ../includes/Classes/WPDeveloper_Setup_Wizard.php:487, ../includes/Classes/WPDeveloper_Setup_Wizard.php:508, ../includes/Traits/Ajax_Handler.php:963, ../includes/Traits/Ajax_Handler.php:1152, ../includes/Traits/Ajax_Handler.php:1182, ../includes/Traits/Ajax_Handler.php:1199, ../includes/Traits/Helper.php:427
     216#: ../includes/Classes/WPDeveloper_Plugin_Installer.php:152, ../includes/Classes/WPDeveloper_Plugin_Installer.php:186, ../includes/Classes/WPDeveloper_Plugin_Installer.php:205, ../includes/Classes/WPDeveloper_Plugin_Installer.php:226, ../includes/Classes/WPDeveloper_Setup_Wizard.php:463, ../includes/Classes/WPDeveloper_Setup_Wizard.php:487, ../includes/Classes/WPDeveloper_Setup_Wizard.php:508, ../includes/Traits/Ajax_Handler.php:962, ../includes/Traits/Ajax_Handler.php:1151, ../includes/Traits/Ajax_Handler.php:1181, ../includes/Traits/Ajax_Handler.php:1198, ../includes/Traits/Helper.php:427
    217217msgid "you are not allowed to do this action"
    218218msgstr ""
     
    1202312023msgstr ""
    1202412024
    12025 #: ../includes/Traits/Ajax_Handler.php:94, ../includes/Traits/Ajax_Handler.php:635, ../includes/Traits/Login_Registration.php:96, ../includes/Traits/Login_Registration.php:263, ../includes/Traits/Login_Registration.php:786, ../includes/Traits/Login_Registration.php:998
     12025#: ../includes/Traits/Ajax_Handler.php:94, ../includes/Traits/Ajax_Handler.php:634, ../includes/Traits/Login_Registration.php:96, ../includes/Traits/Login_Registration.php:263, ../includes/Traits/Login_Registration.php:786, ../includes/Traits/Login_Registration.php:998
    1202612026msgid "Insecure form submitted without security token"
    1202712027msgstr ""
    1202812028
    12029 #: ../includes/Traits/Ajax_Handler.php:103, ../includes/Traits/Ajax_Handler.php:644, ../includes/Traits/Login_Registration.php:108, ../includes/Traits/Login_Registration.php:273, ../includes/Traits/Login_Registration.php:798, ../includes/Traits/Login_Registration.php:1010, ../includes/Traits/Woo_Product_Comparable.php:2174
     12029#: ../includes/Traits/Ajax_Handler.php:103, ../includes/Traits/Ajax_Handler.php:643, ../includes/Traits/Login_Registration.php:108, ../includes/Traits/Login_Registration.php:273, ../includes/Traits/Login_Registration.php:798, ../includes/Traits/Login_Registration.php:1010, ../includes/Traits/Woo_Product_Comparable.php:2174
    1203012030msgid "Security token did not match"
    1203112031msgstr ""
    1203212032
    12033 #: ../includes/Traits/Ajax_Handler.php:114, ../includes/Traits/Ajax_Handler.php:321, ../includes/Traits/Ajax_Handler.php:403, ../includes/Traits/Ajax_Handler.php:655, ../includes/Traits/Login_Registration.php:72, ../includes/Traits/Login_Registration.php:288, ../includes/Traits/Login_Registration.php:762, ../includes/Traits/Login_Registration.php:973, ../includes/Traits/Woo_Product_Comparable.php:2132
     12033#: ../includes/Traits/Ajax_Handler.php:114, ../includes/Traits/Ajax_Handler.php:321, ../includes/Traits/Ajax_Handler.php:403, ../includes/Traits/Ajax_Handler.php:654, ../includes/Traits/Login_Registration.php:72, ../includes/Traits/Login_Registration.php:288, ../includes/Traits/Login_Registration.php:762, ../includes/Traits/Login_Registration.php:973, ../includes/Traits/Woo_Product_Comparable.php:2132
    1203412034msgid "Page ID is missing"
    1203512035msgstr ""
    1203612036
    12037 #: ../includes/Traits/Ajax_Handler.php:125, ../includes/Traits/Ajax_Handler.php:328, ../includes/Traits/Ajax_Handler.php:410, ../includes/Traits/Ajax_Handler.php:666, ../includes/Traits/Facebook_Feed.php:41, ../includes/Traits/Login_Registration.php:79, ../includes/Traits/Login_Registration.php:293, ../includes/Traits/Login_Registration.php:769, ../includes/Traits/Login_Registration.php:980, ../includes/Traits/Woo_Product_Comparable.php:2137
     12037#: ../includes/Traits/Ajax_Handler.php:125, ../includes/Traits/Ajax_Handler.php:328, ../includes/Traits/Ajax_Handler.php:410, ../includes/Traits/Ajax_Handler.php:665, ../includes/Traits/Facebook_Feed.php:41, ../includes/Traits/Login_Registration.php:79, ../includes/Traits/Login_Registration.php:293, ../includes/Traits/Login_Registration.php:769, ../includes/Traits/Login_Registration.php:980, ../includes/Traits/Woo_Product_Comparable.php:2137
    1203812038msgid "Widget ID is missing"
    1203912039msgstr ""
    1204012040
    12041 #: ../includes/Traits/Ajax_Handler.php:136, ../includes/Traits/Ajax_Handler.php:334, ../includes/Traits/Ajax_Handler.php:417, ../includes/Traits/Ajax_Handler.php:676
     12041#: ../includes/Traits/Ajax_Handler.php:136, ../includes/Traits/Ajax_Handler.php:334, ../includes/Traits/Ajax_Handler.php:417, ../includes/Traits/Ajax_Handler.php:675
    1204212042msgid "Widget settings are not found. Did you save the widget before using load more??"
    1204312043msgstr ""
     
    1204712047msgstr ""
    1204812048
    12049 #: ../includes/Traits/Ajax_Handler.php:1006
     12049#: ../includes/Traits/Ajax_Handler.php:1005
    1205012050msgid "Login | Register Settings updated"
    1205112051msgstr ""
  • essential-addons-for-elementor-lite/tags/6.5.2/readme.txt

    r3398866 r3402448  
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 6.5.1
     7Stable tag: 6.5.2
    88License: GPLv3
    99License URI: https://opensource.org/licenses/GPL-3.0
     
    320320== Changelog ==
    321321
     322= 6.5.2 - 25/11/2025 =
     323
     324- Fixed: Fixed checkout WooCommerce issues where shipping methods weren't updating correctly and prevented crashes when using the Mondial Relay shipping plugin
     325- Few minor bug fixes & improvements
     326
    322327= 6.5.1 - 19/11/2025 =
    323328
  • essential-addons-for-elementor-lite/trunk/assets/front-end/js/view/woo-checkout.js

    r3397981 r3402448  
    9494/***/ (function(module, exports) {
    9595
    96 eval("var WooCheckout = function WooCheckout($scope, $) {\n  $.blockUI.defaults.overlayCSS.cursor = \"default\";\n\n  //We added this class in body\n  document.body.classList.add('eael-woo-checkout');\n  function render_order_review_template() {\n    var wooCheckout = $(\".ea-woo-checkout\");\n    setTimeout(function () {\n      $(\".ea-checkout-review-order-table\").addClass(\"processing\").block({\n        message: null,\n        overlayCSS: {\n          background: \"#fff\",\n          opacity: 0.6\n        }\n      });\n      $.ajax({\n        type: \"POST\",\n        url: localize.ajaxurl,\n        data: {\n          action: \"woo_checkout_update_order_review\",\n          orderReviewData: wooCheckout.data(\"checkout\"),\n          shippingData: $(\"#shipping_method input:checked\").val()\n        },\n        success: function success(data) {\n          $(\".ea-checkout-review-order-table\").replaceWith(data.order_review);\n          setTimeout(function () {\n            $(\".ea-checkout-review-order-table\").removeClass(\"processing\").unblock();\n          }, 100000);\n        }\n      });\n    }, 200);\n  }\n  $(document).on(\"click\", \".woocommerce-remove-coupon\", function (e) {\n    render_order_review_template();\n  });\n  $(\"form.checkout_coupon\").submit(function (event) {\n    render_order_review_template();\n  });\n  var wooCheckout = $(\".ea-woo-checkout\");\n  wooCheckout.on('change', 'select.shipping_method, input[name^=\"shipping_method\"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type=\"radio\"], .update_totals_on_change input[type=\"checkbox\"]', function () {\n    $(document.body).trigger('update_checkout');\n    render_order_review_template();\n  }); // eslint-disable-line max-len\n\n  $(document.body).bind('update_checkout', function () {\n    render_order_review_template();\n  });\n\n  //move coupon remove message to coupon box (multi step and split layout)\n  $(document.body).on('removed_coupon_in_checkout', function () {\n    var message = $('.ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message').remove();\n    $('.ea-woo-checkout .checkout_coupon.woocommerce-form-coupon').before(message);\n  });\n  function eael_update_checkout() {\n    var cart_item_key = $(this).attr('name').replace(/cart\\[([\\w]+)\\]\\[qty\\]/g, \"$1\");\n    var item_quantity = $(this).val();\n    var cart_table = $('.ea-checkout-review-order-table', $scope);\n    var currentVal = parseFloat(item_quantity);\n    $this = $(this);\n    cart_table.css('opacity', '0.7');\n    $('.eael-checkout-cart-qty-input', cart_table).attr('disabled', true);\n    $.ajax({\n      type: 'POST',\n      url: localize.ajaxurl,\n      data: {\n        action: 'eael_checkout_cart_qty_update',\n        nonce: localize.nonce,\n        cart_item_key: cart_item_key,\n        quantity: currentVal\n      },\n      success: function success(response) {\n        if (response.success) {\n          $(document.body).trigger('update_checkout');\n        }\n      }\n    });\n  }\n  ;\n  $(document).on('change', '.eael-checkout-cart-qty-input', ea.debounce(eael_update_checkout, 300));\n};\njQuery(window).on(\"elementor/frontend/init\", function () {\n  elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-checkout.default\", WooCheckout);\n});\nif (jQuery('.ea-woo-checkout').hasClass('checkout-reorder-enabled')) {\n  jQuery(document.body).on('country_to_state_changing', function (event, country, wrapper) {\n    var $ = jQuery,\n      checkout_keys = $('.ea-woo-checkout').data('checkout_ids'),\n      field_wrapper = $('.ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper');\n    field_wrapper.addClass('eael-reordering');\n    var reorder_fields = function reorder_fields(type, _wrapper) {\n      var $selector = $(\".eael-\".concat(type, \"-fields .woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      _wrapper = typeof _wrapper !== 'undefined' ? _wrapper : wrapper;\n      $.each(checkout_keys[type], function (field_key, form_class) {\n        var $fieldHtml = _wrapper.find(\"#\".concat(field_key, \"_field\"));\n        if ($fieldHtml.length === 0) {\n          $fieldHtml = _wrapper.find(\"input[name='\".concat(field_key, \"']\")).closest('p');\n        }\n        $fieldHtml.removeClass('form-row-first form-row-last form-row-wide').addClass(form_class);\n        $(\"#eael-wc-\".concat(type, \"-reordered-fields .eael-woo-\").concat(type, \"-fields\")).append($fieldHtml);\n      });\n      $selector.replaceWith($(\"#eael-wc-\".concat(type, \"-reordered-fields\")).contents());\n      $(\".eael-woo-\".concat(type, \"-fields\")).toggleClass(\"eael-woo-\".concat(type, \"-fields woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      $(\"#eael-wc-\".concat(type, \"-reordered-fields\")).html(\"<div class=\\\"eael-woo-\".concat(type, \"-fields\\\"></div>\"));\n    };\n    setTimeout(function () {\n      if (wrapper.hasClass(\"eael-billing-fields\")) {\n        reorder_fields(\"billing\");\n        reorder_fields(\"shipping\", $(\".eael-shipping-fields\"));\n      }\n      if (wrapper.hasClass(\"eael-shipping-fields\")) {\n        reorder_fields(\"shipping\");\n        reorder_fields(\"billing\", $(\".eael-billing-fields\"));\n      }\n      field_wrapper.removeClass(\"eael-reordering\");\n    }, 500);\n  });\n}\nvar change_button_text = function change_button_text() {\n  var $ = jQuery,\n    button_texts = $('.ea-woo-checkout').data('button_texts');\n  setTimeout(function () {\n    if (button_texts.place_order !== '') {\n      $('#place_order').text(button_texts.place_order);\n    }\n  }, 500);\n};\njQuery(document.body).on('update_checkout payment_method_selected updated_checkout', function (event) {\n  change_button_text();\n}).on('click', '.woocommerce-checkout-payment li label', function () {\n  change_button_text();\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-checkout.js?");
     96eval("var WooCheckout = function WooCheckout($scope, $) {\n  $.blockUI.defaults.overlayCSS.cursor = \"default\";\n\n  //We added this class in body\n  document.body.classList.add('eael-woo-checkout');\n  function render_order_review_template() {\n    var wooCheckout = $(\".ea-woo-checkout\");\n    setTimeout(function () {\n      $(\".ea-checkout-review-order-table\").addClass(\"processing\").block({\n        message: null,\n        overlayCSS: {\n          background: \"#fff\",\n          opacity: 0.6\n        }\n      });\n      $.ajax({\n        type: \"POST\",\n        url: localize.ajaxurl,\n        data: {\n          action: \"woo_checkout_update_order_review\",\n          orderReviewData: wooCheckout.data(\"checkout\"),\n          shippingData: $(\".ea-woo-checkout-order-review #shipping_method input:checked\").val()\n        },\n        success: function success(data) {\n          $(\".ea-checkout-review-order-table\").replaceWith(data.order_review);\n          setTimeout(function () {\n            $(\".ea-checkout-review-order-table\").removeClass(\"processing\").unblock();\n          }, 100000);\n        }\n      });\n    }, 200);\n  }\n  $(document).on(\"click\", \".woocommerce-remove-coupon\", function (e) {\n    render_order_review_template();\n  });\n  $(\"form.checkout_coupon\").submit(function (event) {\n    render_order_review_template();\n  });\n  var wooCheckout = $(\".ea-woo-checkout\");\n  wooCheckout.on('change', 'select.shipping_method, input[name^=\"shipping_method\"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type=\"radio\"], .update_totals_on_change input[type=\"checkbox\"]', function () {\n    $(document.body).trigger('update_checkout');\n    render_order_review_template();\n  }); // eslint-disable-line max-len\n\n  $(document.body).bind('update_checkout', function () {\n    render_order_review_template();\n  });\n\n  //move coupon remove message to coupon box (multi step and split layout)\n  $(document.body).on('removed_coupon_in_checkout', function () {\n    var message = $('.ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message').remove();\n    $('.ea-woo-checkout .checkout_coupon.woocommerce-form-coupon').before(message);\n  });\n  function eael_update_checkout() {\n    var cart_item_key = $(this).attr('name').replace(/cart\\[([\\w]+)\\]\\[qty\\]/g, \"$1\");\n    var item_quantity = $(this).val();\n    var cart_table = $('.ea-checkout-review-order-table', $scope);\n    var currentVal = parseFloat(item_quantity);\n    $this = $(this);\n    cart_table.css('opacity', '0.7');\n    $('.eael-checkout-cart-qty-input', cart_table).attr('disabled', true);\n    $.ajax({\n      type: 'POST',\n      url: localize.ajaxurl,\n      data: {\n        action: 'eael_checkout_cart_qty_update',\n        nonce: localize.nonce,\n        cart_item_key: cart_item_key,\n        quantity: currentVal\n      },\n      success: function success(response) {\n        if (response.success) {\n          $(document.body).trigger('update_checkout');\n        }\n      }\n    });\n  }\n  ;\n  $(document).on('change', '.eael-checkout-cart-qty-input', ea.debounce(eael_update_checkout, 300));\n};\njQuery(window).on(\"elementor/frontend/init\", function () {\n  elementorFrontend.hooks.addAction(\"frontend/element_ready/eael-woo-checkout.default\", WooCheckout);\n});\nif (jQuery('.ea-woo-checkout').hasClass('checkout-reorder-enabled')) {\n  jQuery(document.body).on('country_to_state_changing', function (event, country, wrapper) {\n    var $ = jQuery,\n      checkout_keys = $('.ea-woo-checkout').data('checkout_ids'),\n      field_wrapper = $('.ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper');\n    field_wrapper.addClass('eael-reordering');\n    var reorder_fields = function reorder_fields(type, _wrapper) {\n      var $selector = $(\".eael-\".concat(type, \"-fields .woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      _wrapper = typeof _wrapper !== 'undefined' ? _wrapper : wrapper;\n      $.each(checkout_keys[type], function (field_key, form_class) {\n        var $fieldHtml = _wrapper.find(\"#\".concat(field_key, \"_field\"));\n        if ($fieldHtml.length === 0) {\n          $fieldHtml = _wrapper.find(\"input[name='\".concat(field_key, \"']\")).closest('p');\n        }\n        $fieldHtml.removeClass('form-row-first form-row-last form-row-wide').addClass(form_class);\n        $(\"#eael-wc-\".concat(type, \"-reordered-fields .eael-woo-\").concat(type, \"-fields\")).append($fieldHtml);\n      });\n      $selector.replaceWith($(\"#eael-wc-\".concat(type, \"-reordered-fields\")).contents());\n      $(\".eael-woo-\".concat(type, \"-fields\")).toggleClass(\"eael-woo-\".concat(type, \"-fields woocommerce-\").concat(type, \"-fields__field-wrapper\"));\n      $(\"#eael-wc-\".concat(type, \"-reordered-fields\")).html(\"<div class=\\\"eael-woo-\".concat(type, \"-fields\\\"></div>\"));\n    };\n    setTimeout(function () {\n      if (wrapper.hasClass(\"eael-billing-fields\")) {\n        reorder_fields(\"billing\");\n        reorder_fields(\"shipping\", $(\".eael-shipping-fields\"));\n      }\n      if (wrapper.hasClass(\"eael-shipping-fields\")) {\n        reorder_fields(\"shipping\");\n        reorder_fields(\"billing\", $(\".eael-billing-fields\"));\n      }\n      field_wrapper.removeClass(\"eael-reordering\");\n    }, 500);\n  });\n}\nvar change_button_text = function change_button_text() {\n  var $ = jQuery,\n    button_texts = $('.ea-woo-checkout').data('button_texts');\n  setTimeout(function () {\n    if (button_texts.place_order !== '') {\n      $('#place_order').text(button_texts.place_order);\n    }\n  }, 500);\n};\njQuery(document.body).on('update_checkout payment_method_selected updated_checkout', function (event) {\n  change_button_text();\n}).on('click', '.woocommerce-checkout-payment li label', function () {\n  change_button_text();\n});\n\n//# sourceURL=webpack:///./src/js/view/woo-checkout.js?");
    9797
    9898/***/ })
  • essential-addons-for-elementor-lite/trunk/assets/front-end/js/view/woo-checkout.min.js

    r3397981 r3402448  
    1 !function(e){var o={};function t(c){if(o[c])return o[c].exports;var n=o[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,c){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:c})},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,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(c,n,function(o){return e[o]}.bind(null,n));return c},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=38)}({38:function(e,o){var t=function(e,o){function t(){var e=o(".ea-woo-checkout");setTimeout((function(){o(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout"),shippingData:o("#shipping_method input:checked").val()},success:function(e){o(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){o(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),200)}o.blockUI.defaults.overlayCSS.cursor="default",document.body.classList.add("eael-woo-checkout"),o(document).on("click",".woocommerce-remove-coupon",(function(e){t()})),o("form.checkout_coupon").submit((function(e){t()})),o(".ea-woo-checkout").on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]',(function(){o(document.body).trigger("update_checkout"),t()})),o(document.body).bind("update_checkout",(function(){t()})),o(document.body).on("removed_coupon_in_checkout",(function(){var e=o(".ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message").remove();o(".ea-woo-checkout .checkout_coupon.woocommerce-form-coupon").before(e)})),o(document).on("change",".eael-checkout-cart-qty-input",ea.debounce((function(){var t=o(this).attr("name").replace(/cart\[([\w]+)\]\[qty\]/g,"$1"),c=o(this).val(),n=o(".ea-checkout-review-order-table",e),a=parseFloat(c);$this=o(this),n.css("opacity","0.7"),o(".eael-checkout-cart-qty-input",n).attr("disabled",!0),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"eael_checkout_cart_qty_update",nonce:localize.nonce,cart_item_key:t,quantity:a},success:function(e){e.success&&o(document.body).trigger("update_checkout")}})}),300))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",t)})),jQuery(".ea-woo-checkout").hasClass("checkout-reorder-enabled")&&jQuery(document.body).on("country_to_state_changing",(function(e,o,t){var c=jQuery,n=c(".ea-woo-checkout").data("checkout_ids"),a=c(".ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper");a.addClass("eael-reordering");var r=function(e,o){var a=c(".eael-".concat(e,"-fields .woocommerce-").concat(e,"-fields__field-wrapper"));o=void 0!==o?o:t,c.each(n[e],(function(t,n){var a=o.find("#".concat(t,"_field"));0===a.length&&(a=o.find("input[name='".concat(t,"']")).closest("p")),a.removeClass("form-row-first form-row-last form-row-wide").addClass(n),c("#eael-wc-".concat(e,"-reordered-fields .eael-woo-").concat(e,"-fields")).append(a)})),a.replaceWith(c("#eael-wc-".concat(e,"-reordered-fields")).contents()),c(".eael-woo-".concat(e,"-fields")).toggleClass("eael-woo-".concat(e,"-fields woocommerce-").concat(e,"-fields__field-wrapper")),c("#eael-wc-".concat(e,"-reordered-fields")).html('<div class="eael-woo-'.concat(e,'-fields"></div>'))};setTimeout((function(){t.hasClass("eael-billing-fields")&&(r("billing"),r("shipping",c(".eael-shipping-fields"))),t.hasClass("eael-shipping-fields")&&(r("shipping"),r("billing",c(".eael-billing-fields"))),a.removeClass("eael-reordering")}),500)}));var c=function(){var e=jQuery,o=e(".ea-woo-checkout").data("button_texts");setTimeout((function(){""!==o.place_order&&e("#place_order").text(o.place_order)}),500)};jQuery(document.body).on("update_checkout payment_method_selected updated_checkout",(function(e){c()})).on("click",".woocommerce-checkout-payment li label",(function(){c()}))}});
     1!function(e){var o={};function t(c){if(o[c])return o[c].exports;var n=o[c]={i:c,l:!1,exports:{}};return e[c].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=e,t.c=o,t.d=function(e,o,c){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:c})},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,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(c,n,function(o){return e[o]}.bind(null,n));return c},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=38)}({38:function(e,o){var t=function(e,o){function t(){var e=o(".ea-woo-checkout");setTimeout((function(){o(".ea-checkout-review-order-table").addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}}),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"woo_checkout_update_order_review",orderReviewData:e.data("checkout"),shippingData:o(".ea-woo-checkout-order-review #shipping_method input:checked").val()},success:function(e){o(".ea-checkout-review-order-table").replaceWith(e.order_review),setTimeout((function(){o(".ea-checkout-review-order-table").removeClass("processing").unblock()}),1e5)}})}),200)}o.blockUI.defaults.overlayCSS.cursor="default",document.body.classList.add("eael-woo-checkout"),o(document).on("click",".woocommerce-remove-coupon",(function(e){t()})),o("form.checkout_coupon").submit((function(e){t()})),o(".ea-woo-checkout").on("change",'select.shipping_method, input[name^="shipping_method"], #ship-to-different-address input, .update_totals_on_change select, .update_totals_on_change input[type="radio"], .update_totals_on_change input[type="checkbox"]',(function(){o(document.body).trigger("update_checkout"),t()})),o(document.body).bind("update_checkout",(function(){t()})),o(document.body).on("removed_coupon_in_checkout",(function(){var e=o(".ea-woo-checkout .ms-tabs-content > .woocommerce-message,.ea-woo-checkout .split-tabs-content > .woocommerce-message").remove();o(".ea-woo-checkout .checkout_coupon.woocommerce-form-coupon").before(e)})),o(document).on("change",".eael-checkout-cart-qty-input",ea.debounce((function(){var t=o(this).attr("name").replace(/cart\[([\w]+)\]\[qty\]/g,"$1"),c=o(this).val(),n=o(".ea-checkout-review-order-table",e),a=parseFloat(c);$this=o(this),n.css("opacity","0.7"),o(".eael-checkout-cart-qty-input",n).attr("disabled",!0),o.ajax({type:"POST",url:localize.ajaxurl,data:{action:"eael_checkout_cart_qty_update",nonce:localize.nonce,cart_item_key:t,quantity:a},success:function(e){e.success&&o(document.body).trigger("update_checkout")}})}),300))};jQuery(window).on("elementor/frontend/init",(function(){elementorFrontend.hooks.addAction("frontend/element_ready/eael-woo-checkout.default",t)})),jQuery(".ea-woo-checkout").hasClass("checkout-reorder-enabled")&&jQuery(document.body).on("country_to_state_changing",(function(e,o,t){var c=jQuery,n=c(".ea-woo-checkout").data("checkout_ids"),a=c(".ea-woo-checkout .woocommerce-billing-fields__field-wrapper, .ea-woo-checkout .woocommerce-shipping-fields__field-wrapper");a.addClass("eael-reordering");var r=function(e,o){var a=c(".eael-".concat(e,"-fields .woocommerce-").concat(e,"-fields__field-wrapper"));o=void 0!==o?o:t,c.each(n[e],(function(t,n){var a=o.find("#".concat(t,"_field"));0===a.length&&(a=o.find("input[name='".concat(t,"']")).closest("p")),a.removeClass("form-row-first form-row-last form-row-wide").addClass(n),c("#eael-wc-".concat(e,"-reordered-fields .eael-woo-").concat(e,"-fields")).append(a)})),a.replaceWith(c("#eael-wc-".concat(e,"-reordered-fields")).contents()),c(".eael-woo-".concat(e,"-fields")).toggleClass("eael-woo-".concat(e,"-fields woocommerce-").concat(e,"-fields__field-wrapper")),c("#eael-wc-".concat(e,"-reordered-fields")).html('<div class="eael-woo-'.concat(e,'-fields"></div>'))};setTimeout((function(){t.hasClass("eael-billing-fields")&&(r("billing"),r("shipping",c(".eael-shipping-fields"))),t.hasClass("eael-shipping-fields")&&(r("shipping"),r("billing",c(".eael-billing-fields"))),a.removeClass("eael-reordering")}),500)}));var c=function(){var e=jQuery,o=e(".ea-woo-checkout").data("button_texts");setTimeout((function(){""!==o.place_order&&e("#place_order").text(o.place_order)}),500)};jQuery(document.body).on("update_checkout payment_method_selected updated_checkout",(function(e){c()})).on("click",".woocommerce-checkout-payment li label",(function(){c()}))}});
  • essential-addons-for-elementor-lite/trunk/essential_adons_elementor.php

    r3398866 r3402448  
    55 * Plugin URI: https://essential-addons.com/
    66 * Author: WPDeveloper
    7  * Version: 6.5.1
     7 * Version: 6.5.2
    88 * Author URI: https://wpdeveloper.com/
    99 * Text Domain: essential-addons-for-elementor-lite
     
    1111 *
    1212 * WC tested up to: 10.0
    13  * Elementor tested up to: 3.32
    14  * Elementor Pro tested up to: 3.32
     13 * Elementor tested up to: 3.33
     14 * Elementor Pro tested up to: 3.33
    1515 */
    1616
     
    2828define('EAEL_PLUGIN_PATH', trailingslashit(plugin_dir_path(__FILE__)));
    2929define('EAEL_PLUGIN_URL', trailingslashit(plugins_url('/', __FILE__)));
    30 define('EAEL_PLUGIN_VERSION', '6.5.1');
     30define('EAEL_PLUGIN_VERSION', '6.5.2');
    3131define('EAEL_ASSET_PATH', wp_upload_dir()['basedir'] . '/essential-addons-elementor');
    3232define('EAEL_ASSET_URL', wp_upload_dir()['baseurl'] . '/essential-addons-elementor');
  • essential-addons-for-elementor-lite/trunk/includes/Classes/Compatibility_Support.php

    r3344575 r3402448  
    2929        // Parse shipping method details
    3030        $method_string = $chosen_shipping_methods[0];
    31         list($method_id, $instance_id) = explode(':', $method_string);
     31        // Ensure method_string is a string and contains a colon
     32        if ( !is_string($method_string) || strpos($method_string, ':') === false ) {
     33            return;
     34        }
     35        list($method_id, $instance_id) = explode(':', $method_string, 2);
    3236
    3337        // Add shipping form if Mondial Relay is selected
  • essential-addons-for-elementor-lite/trunk/includes/Traits/Ajax_Handler.php

    r3397981 r3402448  
    561561    public function woo_checkout_update_order_review() {
    562562        $setting       = $_POST['orderReviewData'];
    563         $shipping_data = $_POST['shippingData'] ?? [];
    564        
     563        $shipping_data = empty ( $_POST['shippingData'] ) ? WC()->session->get('chosen_shipping_methods') : [wc_clean( $_POST['shippingData'] )];
    565564        //Mondial Relay plugin integration
    566565        do_action( 'eael_mondialrelay_order_after_shipping' );
    567566       
    568         WC()->session->set( 'chosen_shipping_methods', [$shipping_data] );
     567        WC()->session->set( 'chosen_shipping_methods', $shipping_data );
    569568
    570569        ob_start();
  • essential-addons-for-elementor-lite/trunk/languages/essential-addons-for-elementor-lite.pot

    r3398866 r3402448  
    4646msgstr ""
    4747
    48 #: ../includes/Classes/Compatibility_Support.php:63
     48#: ../includes/Classes/Compatibility_Support.php:67
    4949msgid "Livraison Mondial Relay"
    5050msgstr ""
    5151
    52 #: ../includes/Classes/Compatibility_Support.php:65
     52#: ../includes/Classes/Compatibility_Support.php:69
    5353msgid "Vous n'avez pas encore choisi de Point Relais®"
    5454msgstr ""
    5555
    56 #: ../includes/Classes/Compatibility_Support.php:67
     56#: ../includes/Classes/Compatibility_Support.php:71
    5757msgid "Choisir un Point Relais®"
    5858msgstr ""
     
    214214msgstr ""
    215215
    216 #: ../includes/Classes/WPDeveloper_Plugin_Installer.php:152, ../includes/Classes/WPDeveloper_Plugin_Installer.php:186, ../includes/Classes/WPDeveloper_Plugin_Installer.php:205, ../includes/Classes/WPDeveloper_Plugin_Installer.php:226, ../includes/Classes/WPDeveloper_Setup_Wizard.php:463, ../includes/Classes/WPDeveloper_Setup_Wizard.php:487, ../includes/Classes/WPDeveloper_Setup_Wizard.php:508, ../includes/Traits/Ajax_Handler.php:963, ../includes/Traits/Ajax_Handler.php:1152, ../includes/Traits/Ajax_Handler.php:1182, ../includes/Traits/Ajax_Handler.php:1199, ../includes/Traits/Helper.php:427
     216#: ../includes/Classes/WPDeveloper_Plugin_Installer.php:152, ../includes/Classes/WPDeveloper_Plugin_Installer.php:186, ../includes/Classes/WPDeveloper_Plugin_Installer.php:205, ../includes/Classes/WPDeveloper_Plugin_Installer.php:226, ../includes/Classes/WPDeveloper_Setup_Wizard.php:463, ../includes/Classes/WPDeveloper_Setup_Wizard.php:487, ../includes/Classes/WPDeveloper_Setup_Wizard.php:508, ../includes/Traits/Ajax_Handler.php:962, ../includes/Traits/Ajax_Handler.php:1151, ../includes/Traits/Ajax_Handler.php:1181, ../includes/Traits/Ajax_Handler.php:1198, ../includes/Traits/Helper.php:427
    217217msgid "you are not allowed to do this action"
    218218msgstr ""
     
    1202312023msgstr ""
    1202412024
    12025 #: ../includes/Traits/Ajax_Handler.php:94, ../includes/Traits/Ajax_Handler.php:635, ../includes/Traits/Login_Registration.php:96, ../includes/Traits/Login_Registration.php:263, ../includes/Traits/Login_Registration.php:786, ../includes/Traits/Login_Registration.php:998
     12025#: ../includes/Traits/Ajax_Handler.php:94, ../includes/Traits/Ajax_Handler.php:634, ../includes/Traits/Login_Registration.php:96, ../includes/Traits/Login_Registration.php:263, ../includes/Traits/Login_Registration.php:786, ../includes/Traits/Login_Registration.php:998
    1202612026msgid "Insecure form submitted without security token"
    1202712027msgstr ""
    1202812028
    12029 #: ../includes/Traits/Ajax_Handler.php:103, ../includes/Traits/Ajax_Handler.php:644, ../includes/Traits/Login_Registration.php:108, ../includes/Traits/Login_Registration.php:273, ../includes/Traits/Login_Registration.php:798, ../includes/Traits/Login_Registration.php:1010, ../includes/Traits/Woo_Product_Comparable.php:2174
     12029#: ../includes/Traits/Ajax_Handler.php:103, ../includes/Traits/Ajax_Handler.php:643, ../includes/Traits/Login_Registration.php:108, ../includes/Traits/Login_Registration.php:273, ../includes/Traits/Login_Registration.php:798, ../includes/Traits/Login_Registration.php:1010, ../includes/Traits/Woo_Product_Comparable.php:2174
    1203012030msgid "Security token did not match"
    1203112031msgstr ""
    1203212032
    12033 #: ../includes/Traits/Ajax_Handler.php:114, ../includes/Traits/Ajax_Handler.php:321, ../includes/Traits/Ajax_Handler.php:403, ../includes/Traits/Ajax_Handler.php:655, ../includes/Traits/Login_Registration.php:72, ../includes/Traits/Login_Registration.php:288, ../includes/Traits/Login_Registration.php:762, ../includes/Traits/Login_Registration.php:973, ../includes/Traits/Woo_Product_Comparable.php:2132
     12033#: ../includes/Traits/Ajax_Handler.php:114, ../includes/Traits/Ajax_Handler.php:321, ../includes/Traits/Ajax_Handler.php:403, ../includes/Traits/Ajax_Handler.php:654, ../includes/Traits/Login_Registration.php:72, ../includes/Traits/Login_Registration.php:288, ../includes/Traits/Login_Registration.php:762, ../includes/Traits/Login_Registration.php:973, ../includes/Traits/Woo_Product_Comparable.php:2132
    1203412034msgid "Page ID is missing"
    1203512035msgstr ""
    1203612036
    12037 #: ../includes/Traits/Ajax_Handler.php:125, ../includes/Traits/Ajax_Handler.php:328, ../includes/Traits/Ajax_Handler.php:410, ../includes/Traits/Ajax_Handler.php:666, ../includes/Traits/Facebook_Feed.php:41, ../includes/Traits/Login_Registration.php:79, ../includes/Traits/Login_Registration.php:293, ../includes/Traits/Login_Registration.php:769, ../includes/Traits/Login_Registration.php:980, ../includes/Traits/Woo_Product_Comparable.php:2137
     12037#: ../includes/Traits/Ajax_Handler.php:125, ../includes/Traits/Ajax_Handler.php:328, ../includes/Traits/Ajax_Handler.php:410, ../includes/Traits/Ajax_Handler.php:665, ../includes/Traits/Facebook_Feed.php:41, ../includes/Traits/Login_Registration.php:79, ../includes/Traits/Login_Registration.php:293, ../includes/Traits/Login_Registration.php:769, ../includes/Traits/Login_Registration.php:980, ../includes/Traits/Woo_Product_Comparable.php:2137
    1203812038msgid "Widget ID is missing"
    1203912039msgstr ""
    1204012040
    12041 #: ../includes/Traits/Ajax_Handler.php:136, ../includes/Traits/Ajax_Handler.php:334, ../includes/Traits/Ajax_Handler.php:417, ../includes/Traits/Ajax_Handler.php:676
     12041#: ../includes/Traits/Ajax_Handler.php:136, ../includes/Traits/Ajax_Handler.php:334, ../includes/Traits/Ajax_Handler.php:417, ../includes/Traits/Ajax_Handler.php:675
    1204212042msgid "Widget settings are not found. Did you save the widget before using load more??"
    1204312043msgstr ""
     
    1204712047msgstr ""
    1204812048
    12049 #: ../includes/Traits/Ajax_Handler.php:1006
     12049#: ../includes/Traits/Ajax_Handler.php:1005
    1205012050msgid "Login | Register Settings updated"
    1205112051msgstr ""
  • essential-addons-for-elementor-lite/trunk/readme.txt

    r3398866 r3402448  
    55Tested up to: 6.8
    66Requires PHP: 7.0
    7 Stable tag: 6.5.1
     7Stable tag: 6.5.2
    88License: GPLv3
    99License URI: https://opensource.org/licenses/GPL-3.0
     
    320320== Changelog ==
    321321
     322= 6.5.2 - 25/11/2025 =
     323
     324- Fixed: Fixed checkout WooCommerce issues where shipping methods weren't updating correctly and prevented crashes when using the Mondial Relay shipping plugin
     325- Few minor bug fixes & improvements
     326
    322327= 6.5.1 - 19/11/2025 =
    323328
Note: See TracChangeset for help on using the changeset viewer.