Changeset 3102325
- Timestamp:
- 06/13/2024 01:22:11 PM (21 months ago)
- Location:
- wc-shipos-delivery/trunk
- Files:
-
- 9 edited
-
admin/js/wc-shipos-delivery-admin.min.js (modified) (1 diff)
-
class/class-admin.php (modified) (2 diffs)
-
class/class-license.php (modified) (1 diff)
-
class/class-rest-routes.php (modified) (2 diffs)
-
includes/Pickup.php (modified) (1 diff)
-
languages/wc-shipos-delivery.pot (modified) (8 diffs)
-
partials/options-page.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wc-shipos-delivery.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-shipos-delivery/trunk/admin/js/wc-shipos-delivery-admin.min.js
r2999706 r3102325 1 /*! wc-shipos-delivery 1.1.4 2023-11-21 11:30:57PM */2 !function(){"use strict";jQuery(document).ready(function(i){function t(){var a=i('[name="dvsfw_is_pickup"]').prop("checked"),t=i('[name="dvsfw_google_maps_api_key"]').closest("tr"),e=i('[name="dvsfw_pickup_point_display_preference"]').closest("tr"),r=i('[name="dvsfw_pickup_point_default_display"]').closest("tr");a?(t.show(),e.show(),r.show(),s(),i(document).on("change",'[name="dvsfw_pickup_point_display_preference"]',function(a){s()})):(t.hide(),e.hide(),r.hide())}function s(){var a=i('[name="dvsfw_pickup_point_display_preference"]').val(),t=i('[name="dvsfw_pickup_point_default_display"]').closest("tr");"both"===a?t.show():t.hide()}i(document).on("click",".sync_pickup",function(a){a.preventDefault();let t=i(this);i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_sync_pickup_point"},success:function(a){t.text(a)},error:function(){}})}),i(".ship_status").click(function(a){a.preventDefault();a=i(this).data("status");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_get_order_details",dvsfw_order_id:a,matat_get_wpnonce:matat_delivery.matat_ajax_get_nonce},success:function(a){var a=JSON.parse(a),t=(console.log(a),a.Records.Record.DeliveryStatus),e="";switch(1!=t&&2!=t&&(i(".matat_receiver_name").html(a.Records.Record.Receiver),i(".matat_shipped_on").html(a.Records.Record.ExeTime)),t){case"1":e=matat_delivery.matat_status_1;break;case"2":e=matat_delivery.matat_status_2;break;case"3":e=matat_delivery.matat_status_3;break;case"4":e=matat_delivery.matat_status_4;break;case"5":e=matat_delivery.matat_status_5;break;case"7":e=matat_delivery.matat_status_7;break;case"8":e=matat_delivery.matat_status_8;break;case"9":e=matat_delivery.matat_status_9;break;case"12":e=matat_delivery.matat_status_12}i(".matat_delivery_status").html(e),i(".matat_receiver_name").html(a.Records.Record.Receiver),i(".matat_shipped_on").html(a.Records.Record.ExeTime)}})}),i(document).on("click",".matat-open-button",function(t){t.preventDefault(),i(t.target).prop("disabled",!0),i("#matat_open_ship").append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'" alt="shipos-loader">');var a=i("button.matat-open-button").attr("data-order");let e="1",r=(!0===i("#matat_urgent").is(":checked")&&(e="2"),"1"),s=(!0===i("#dvsfw_return").is(":checked")&&(r="2"),i("#matat_collect").val());isNaN(s)&&(s="NO");var _=i("#matat_motor").val(),o=i("#dvsfw_packages").val(),d=i("#dvsfw_exaction_date").val(),n=i("input[name=dvsfw_delivey_type]:checked").val();i(".matat_error_message").remove(),i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_open_new_order",dvsfw_order_id:a,matat_urgent:e,dvsfw_return:r,matat_collect:s,matat_motor:_,dvsfw_packages:o,dvsfw_exaction_date:d,dvsfw_delivey_type:n,dvsfw_wpnonce:matat_delivery.matat_ajax_nonce},success:function(a){i(".matat_loader").hide(),i(".matat-powered-by").show(),a.success?location.reload():(i(".matat-button-container-open").append('<p class="matat_error_message">'+a.data+"</p>"),i(t.target).prop("disabled",!1))},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i("#matat_open_ship").append('<p class="matat_error_message">'+matat_delivery.matat_err_message+"</p>"),i(t.target).prop("disabled",!1)}})}),i(document).on("click",".matat-cancel-ship",function(a){a.preventDefault();var t=i(this).closest(".matat-button-container"),a=(t.append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">'),i(this).data("shipping-id")),e=i(this).data("order-id");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_change_order_status",dvsfw_ship_id:a,order_id:e,matat_change_wpnonce:matat_delivery.matat_ajax_change_nonce},success:function(a){i(".matat_loader").hide(),a.success?(location.reload(),t.closest(".matat-wrapper").append('<p class="matat_error_message">'+matat_delivery.matat_cancel_ship_ok+"</p>")):(a=a.data.message||matat_delivery.matat_err_message,t.closest(".matat-wrapper").append('<p class="matat_error_message">'+a+"</p>"))},error:function(){i(".matat_loader").hide(),t.append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i(document).on("click",".matat-reopen-ship",function(a){a.preventDefault(),i("#matat_ship_exists").hide(),i(".matat-powered-by").hide(),i(".matat-wrapper").append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">');a=i("#matat_ship_exists").attr("data-order");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"dvsfw_reopen_ship",dvsfw_woo_order_id:a,dvsfw_reopen_wpnonce:matat_delivery.matat_ajax_reopen_nonce},success:function(a){location.reload()},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i(".matat-wrapper").append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i("#matat_collect").change(function(){0==i(".matat_nis").length&&i("#matat_collect").after("<span class='matat_nis'>₪</span>")}),i(".matat_shop_order_delivery").click(function(a){a.preventDefault();var t=i(this).closest("button.matat_shop_order_delivery").attr("data-order"),e=i(".order-"+t),r=i("button.matat_shop_order_delivery").attr("data-nonce"),a=(e.append('<img width="70px" class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">'),new Date),s=String(a.getDate()).padStart(2,"0"),_=String(a.getMonth()+1).padStart(2,"0"),_=a=a.getFullYear()+"-"+_+"-"+s;i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_open_new_order",dvsfw_order_id:t,matat_urgent:"1",dvsfw_return:"1",matat_collect:"NO",matat_motor:"1",dvsfw_packages:"1",dvsfw_exaction_date:_,dvsfw_delivey_type:"1",dvsfw_wpnonce:matat_delivery.matat_ajax_nonce},success:function(a){console.log(a),i(".matat_loader").hide(),i(".matat-powered-by").show(),a.success?e.text("").html('<div class="matat-table-deliv-num">\n מספר שליחות: <span>'+a.data+'</span></div><a class="matat-button matat-print-button" target="_blank" data-order='+t+' href="post.php?matat_pdf=create&matat_label_wpnonce='+r+"&order_id="+t+'">הדפס תוית</a>'):e.append('<div style="color:red">'+a.data+"</div>")},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i("#matat_open_ship").append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i(document).on("submit","#posts-filter",function(a){"cargo_bulk"==i("#bulk-action-selector-top").val()?i("#doaction").prop("disabled",!0):i("#doaction").prop("disabled",!1)}),i(document).on("change",'[name="dvsfw_automatic"]',function(a){"yes"==i(this).val()?i(".auto_delivery").removeClass("hidden"):i(".auto_delivery").addClass("hidden")}),t(),i(document).on("change",'[name="dvsfw_is_pickup"]',function(a){t()})})}();1 /*! wc-shipos-delivery 2.0.7 2024-06-13 6:52:35 PM */ 2 !function(){"use strict";jQuery(document).ready(function(i){function t(){var a=i('[name="dvsfw_is_pickup"]').prop("checked"),t=i('[name="dvsfw_google_maps_api_key"]').closest("tr"),e=i('[name="dvsfw_pickup_point_display_preference"]').closest("tr"),r=i('[name="dvsfw_pickup_point_default_display"]').closest("tr");a?(t.show(),e.show(),r.show(),s(),i(document).on("change",'[name="dvsfw_pickup_point_display_preference"]',function(a){s()})):(t.hide(),e.hide(),r.hide())}function s(){var a=i('[name="dvsfw_pickup_point_display_preference"]').val(),t=i('[name="dvsfw_pickup_point_default_display"]').closest("tr");"both"===a?t.show():t.hide()}i(document).on("click",".sync_pickup",function(a){a.preventDefault();let t=i(this);i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_sync_pickup_point"},success:function(a){t.text(a)},error:function(){}})}),i(".ship_status").click(function(a){a.preventDefault();a=i(this).data("status");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_get_order_details",dvsfw_order_id:a,matat_get_wpnonce:matat_delivery.matat_ajax_get_nonce},success:function(a){var a=JSON.parse(a),t=(console.log(a),a.Records.Record.DeliveryStatus),e="";switch(1!=t&&2!=t&&(i(".matat_receiver_name").html(a.Records.Record.Receiver),i(".matat_shipped_on").html(a.Records.Record.ExeTime)),t){case"1":e=matat_delivery.matat_status_1;break;case"2":e=matat_delivery.matat_status_2;break;case"3":e=matat_delivery.matat_status_3;break;case"4":e=matat_delivery.matat_status_4;break;case"5":e=matat_delivery.matat_status_5;break;case"7":e=matat_delivery.matat_status_7;break;case"8":e=matat_delivery.matat_status_8;break;case"9":e=matat_delivery.matat_status_9;break;case"12":e=matat_delivery.matat_status_12}i(".matat_delivery_status").html(e),i(".matat_receiver_name").html(a.Records.Record.Receiver),i(".matat_shipped_on").html(a.Records.Record.ExeTime)}})}),i(document).on("click",".matat-open-button",function(t){t.preventDefault(),i(t.target).prop("disabled",!0),i("#matat_open_ship").append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'" alt="shipos-loader">');var a=i("button.matat-open-button").attr("data-order");let e="1",r=(!0===i("#matat_urgent").is(":checked")&&(e="2"),"1"),s=(!0===i("#dvsfw_return").is(":checked")&&(r="2"),i("#matat_collect").val());isNaN(s)&&(s="NO");var o=i("#matat_motor").val(),_=i("#dvsfw_packages").val(),d=i("#dvsfw_exaction_date").val(),n=i("input[name=dvsfw_delivey_type]:checked").val();i(".matat_error_message").remove(),i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_open_new_order",dvsfw_order_id:a,matat_urgent:e,dvsfw_return:r,matat_collect:s,matat_motor:o,dvsfw_packages:_,dvsfw_exaction_date:d,dvsfw_delivey_type:n,dvsfw_wpnonce:matat_delivery.matat_ajax_nonce},success:function(a){i(".matat_loader").hide(),i(".matat-powered-by").show(),a.success?location.reload():(i(".matat-button-container-open").append('<p class="matat_error_message">'+a.data+"</p>"),i(t.target).prop("disabled",!1))},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i("#matat_open_ship").append('<p class="matat_error_message">'+matat_delivery.matat_err_message+"</p>"),i(t.target).prop("disabled",!1)}})}),i(document).on("click",".matat-cancel-ship",function(a){a.preventDefault();var t=i(this).closest(".matat-button-container"),a=(t.append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">'),i(this).data("shipping-id")),e=i(this).data("license-key"),r=i(this).data("order-id");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_change_order_status",dvsfw_ship_id:a,dvsfw_license_key:e,order_id:r,matat_change_wpnonce:matat_delivery.matat_ajax_change_nonce},success:function(a){i(".matat_loader").hide(),a.success?(location.reload(),t.closest(".matat-wrapper").append('<p class="matat_error_message">'+matat_delivery.matat_cancel_ship_ok+"</p>")):(a=a.data.message||matat_delivery.matat_err_message,t.closest(".matat-wrapper").append('<p class="matat_error_message">'+a+"</p>"))},error:function(){i(".matat_loader").hide(),t.append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i(document).on("click",".matat-reopen-ship",function(a){a.preventDefault(),i("#matat_ship_exists").hide(),i(".matat-powered-by").hide(),i(".matat-wrapper").append('<img class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">');a=i("#matat_ship_exists").attr("data-order");i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"dvsfw_reopen_ship",dvsfw_woo_order_id:a,dvsfw_reopen_wpnonce:matat_delivery.matat_ajax_reopen_nonce},success:function(a){location.reload()},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i(".matat-wrapper").append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i("#matat_collect").change(function(){0==i(".matat_nis").length&&i("#matat_collect").after("<span class='matat_nis'>₪</span>")}),i(".matat_shop_order_delivery").click(function(a){a.preventDefault();var t=i(this).closest("button.matat_shop_order_delivery").attr("data-order"),e=i(".matat-table-deliv-not.order-"+t),r=i("button.matat_shop_order_delivery").attr("data-nonce"),a=(e.append('<img width="70px" class="matat_loader" src="'+matat_delivery.matat_ajax_loader+'">'),new Date),s=String(a.getDate()).padStart(2,"0"),o=String(a.getMonth()+1).padStart(2,"0"),o=a=a.getFullYear()+"-"+o+"-"+s;i.ajax({url:matat_delivery.ajax_url,type:"POST",data:{action:"matat_open_new_order",dvsfw_order_id:t,matat_urgent:"1",dvsfw_return:"1",matat_collect:"NO",matat_motor:"1",dvsfw_packages:"1",dvsfw_exaction_date:o,dvsfw_delivey_type:"1",dvsfw_wpnonce:matat_delivery.matat_ajax_nonce},success:function(a){console.log(a),i(".matat_loader").hide(),i(".matat-powered-by").show(),a.success?e.text("").html('<div class="matat-table-deliv-num">\n מספר שליחות: <span>'+a.data+'</span></div><a class="matat-button matat-print-button" target="_blank" data-order='+t+' href="post.php?matat_pdf=create&matat_label_wpnonce='+r+"&order_id="+t+'">הדפס תוית</a>'):e.append('<div style="color:red">'+a.data+"</div>")},error:function(){i(".matat_loader").hide(),i(".matat-powered-by").show(),i("#matat_open_ship").append("<p>"+matat_delivery.matat_err_message+"</p>")}})}),i(document).on("submit","#posts-filter",function(a){"cargo_bulk"==i("#bulk-action-selector-top").val()?i("#doaction").prop("disabled",!0):i("#doaction").prop("disabled",!1)}),i(document).on("change",'[name="dvsfw_automatic"]',function(a){"yes"==i(this).val()?i(".auto_delivery").removeClass("hidden"):i(".auto_delivery").addClass("hidden")}),t(),i(document).on("change",'[name="dvsfw_is_pickup"]',function(a){t()}),i(document).on("click","#doaction",function(a){if("undefined"!=typeof pagenow&&"edit-shop_order"===pagenow&&"shipos_bulk"===i("#bulk-action-selector-top").val()){a.preventDefault();a=i("form#posts-filter").serializeArray().filter(a=>"post[]"===a.name).map(a=>a.value);if(a.length){let t=new URLSearchParams;t.append("page","deliver-via-shipos"),a.forEach(a=>{t.append("dvsfw_select_ids[]",a)}),t.append("dvsfw_action","bulk_ship");a=matat_delivery.admin_url+"?"+t.toString();window.open(a,"_blank")}else alert("Please select some orders")}})})}(); -
wc-shipos-delivery/trunk/class/class-admin.php
r3076255 r3102325 39 39 array( 40 40 'ajax_url' => admin_url( 'admin-ajax.php' ), 41 'admin_url' => admin_url( 'admin.php' ), 41 42 'matat_ajax_nonce' => wp_create_nonce( 'dvsfw_submit_open_ship' ), 42 43 'matat_ajax_get_nonce' => wp_create_nonce( 'dvsfw_submit_get_ship' ), … … 403 404 function shipos_page() { 404 405 if ( ! current_user_can( 'manage_woocommerce' ) ) { 405 wp_die( __( 'You do not have sufficient permissions to access this page.' ) );406 wp_die( __( 'You do not have sufficient permissions to access this page.', 'wc-shipos-delivery' ) ); 406 407 } 407 408 -
wc-shipos-delivery/trunk/class/class-license.php
r3017410 r3102325 60 60 } 61 61 62 public function shipos_activate_license( ) {63 $license = trim( sanitize_text_field( wp_unslash( $ _POST['dvsfw_license_key'] ) ) );62 public function shipos_activate_license( $license_key = null ) { 63 $license = trim( sanitize_text_field( wp_unslash( $license_key ?: $_POST['dvsfw_license_key'] ) ) ); 64 64 65 65 $shipos_action = 'activate_license'; -
wc-shipos-delivery/trunk/class/class-rest-routes.php
r3100360 r3102325 50 50 return new WP_Error( 51 51 'rest_forbidden', 52 esc_html__('You are not authenticated.', ' text-domain'),52 esc_html__('You are not authenticated.', 'wc-shipos-delivery'), 53 53 array('status' => 401) 54 54 ); … … 176 176 177 177 update_option('dvsfw_license_key', $new_license_key); 178 $license = License::getInstance(); 179 $license->shipos_activate_license($new_license_key); 178 180 179 181 return new WP_REST_Response(array( -
wc-shipos-delivery/trunk/includes/Pickup.php
r3046945 r3102325 58 58 ), 59 59 'ignore_discounts' => array( 60 'title' => __( 'Coupons discounts', 'w oocommerce' ),61 'label' => __( 'Apply minimum order rule before coupon discount', 'w oocommerce' ),60 'title' => __( 'Coupons discounts', 'wc-shipos-delivery' ), 61 'label' => __( 'Apply minimum order rule before coupon discount', 'wc-shipos-delivery' ), 62 62 'type' => 'checkbox', 63 'description' => __( 'If checked, free shipping would be available based on pre-discount order amount.', 'w oocommerce' ),63 'description' => __( 'If checked, free shipping would be available based on pre-discount order amount.', 'wc-shipos-delivery' ), 64 64 'default' => 'no', 65 65 'desc_tip' => true, -
wc-shipos-delivery/trunk/languages/wc-shipos-delivery.pot
r3100360 r3102325 1 # Copyright (C) 202 3Amit Matat1 # Copyright (C) 2024 Amit Matat 2 2 # This file is distributed under the GPL-2.0+. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Deliver via Shipos for WooCommerce 2.0. 6\n"5 "Project-Id-Version: Deliver via Shipos for WooCommerce 2.0.7\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/wc-shipos-delivery\n" 8 "POT-Creation-Date: 202 3-11-21 17:45:57+00:00\n"8 "POT-Creation-Date: 2024-06-13 13:07:35+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 202 3-MO-DA HO:MI+ZONE\n"12 "PO-Revision-Date: 2024-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 14 14 "Language-Team: LANGUAGE <[email protected]>\n" … … 26 26 "X-Generator: grunt-wp-i18n 1.0.3\n" 27 27 28 #: class/class-admin.php:4 628 #: class/class-admin.php:47 29 29 msgid "We are experiencing a communication error. Please try again later." 30 30 msgstr "" 31 31 32 #: class/class-admin.php:4 732 #: class/class-admin.php:48 33 33 msgid "Cancel shipment" 34 34 msgstr "" 35 35 36 #: class/class-admin.php:4 836 #: class/class-admin.php:49 37 37 msgid "Shipment canceled successfully" 38 38 msgstr "" 39 39 40 #: class/class-admin.php: 4940 #: class/class-admin.php:50 41 41 msgid "Reopen shipment" 42 42 msgstr "" 43 43 44 #: class/class-admin.php:5 044 #: class/class-admin.php:51 45 45 msgid "Open" 46 46 msgstr "" 47 47 48 #: class/class-admin.php:5 148 #: class/class-admin.php:52 49 49 msgid "Delivery man on his way" 50 50 msgstr "" 51 51 52 #: class/class-admin.php:5 252 #: class/class-admin.php:53 53 53 msgid "Delivered" 54 54 msgstr "" 55 55 56 #: class/class-admin.php:5 356 #: class/class-admin.php:54 57 57 msgid "Collected from customer" 58 58 msgstr "" 59 59 60 #: class/class-admin.php:5 460 #: class/class-admin.php:55 61 61 msgid "Back from costumer" 62 62 msgstr "" 63 63 64 #: class/class-admin.php:5 564 #: class/class-admin.php:56 65 65 msgid "Approved" 66 66 msgstr "" 67 67 68 #: class/class-admin.php:5 668 #: class/class-admin.php:57 69 69 msgid "Canceled" 70 70 msgstr "" 71 71 72 #: class/class-admin.php:5 772 #: class/class-admin.php:58 73 73 msgid "Second delivery man " 74 74 msgstr "" 75 75 76 #: class/class-admin.php:5 876 #: class/class-admin.php:59 77 77 msgid "On hold" 78 78 msgstr "" 79 79 80 #: class/class-admin.php: 5980 #: class/class-admin.php:60 81 81 msgid "" 82 82 "Error fetching data from Matat. Please check your API Settings on Settings " … … 84 84 msgstr "" 85 85 86 #: class/class-admin.php:6 086 #: class/class-admin.php:61 87 87 msgid "" 88 88 "Error opening shipment in Matat. Please check your API Settings on Settings " … … 90 90 msgstr "" 91 91 92 #: class/class-admin.php:103 class/class-admin.php:267 92 #: class/class-admin.php:109 class/class-admin.php:119 93 #: class/class-admin.php:310 93 94 msgid "Matat Shipos" 94 95 msgstr "" 95 96 96 #: class/class-admin.php:1 23 class/class-admin.php:32397 #: class/class-admin.php:143 class/class-admin.php:374 97 98 msgid "" 98 99 "Order shipping method is Local pickup. Create delivery option is disabled " … … 100 101 msgstr "" 101 102 102 #: class/class-admin.php:1 46103 #: class/class-admin.php:168 103 104 msgid "Matat shipment details: " 104 105 msgstr "" 105 106 106 #: class/class-admin.php:1 54 class/class-ajax.php:175107 #: class/class-admin.php:176 class/class-ajax.php:158 107 108 msgid "Double delivery" 108 109 msgstr "" 109 110 110 #: class/class-admin.php:1 56 class/class-admin.php:234 class/class-ajax.php:177111 #: class/class-ajax.php:1 84111 #: class/class-admin.php:178 class/class-admin.php:265 class/class-ajax.php:160 112 #: class/class-ajax.php:167 112 113 msgid "Regular delivery" 113 114 msgstr "" 114 115 115 #: class/class-admin.php:1 59 class/class-ajax.php:180116 #: class/class-admin.php:181 class/class-ajax.php:163 116 117 msgid "Collecting delivery" 117 118 msgstr "" 118 119 119 #: class/class-admin.php:1 66 class/class-admin.php:247120 #: class/class-admin.php:188 class/class-admin.php:284 120 121 msgid "Shipment number:" 121 122 msgstr "" 122 123 123 #: class/class-admin.php:1 72 class/class-admin.php:250124 #: class/class-admin.php:3 15124 #: class/class-admin.php:196 class/class-admin.php:290 125 #: class/class-admin.php:366 125 126 msgid "Print label" 126 127 msgstr "" 127 128 128 #: class/class-admin.php: 182 class/class-admin.php:305129 #: class/class-admin.php:209 class/class-admin.php:354 129 130 msgid "Shipment canceled" 130 131 msgstr "" 131 132 132 #: class/class-admin.php: 184133 #: class/class-admin.php:211 133 134 msgid "Cancel delivery" 134 135 msgstr "" 135 136 136 #: class/class-admin.php: 194137 #: class/class-admin.php:223 137 138 msgid "Delivery status" 138 139 msgstr "" 139 140 140 #: class/class-admin.php: 197141 #: class/class-admin.php:226 141 142 msgid "Receiver name: " 142 143 msgstr "" 143 144 144 #: class/class-admin.php: 198145 #: class/class-admin.php:228 145 146 msgid "Delivery time:" 146 147 msgstr "" 147 148 148 #: class/class-admin.php: 199149 #: class/class-admin.php:231 149 150 msgid "Delivery status:" 150 151 msgstr "" 151 152 152 #: class/class-admin.php:2 00153 #: class/class-admin.php:233 153 154 msgid "Shipped on:" 154 155 msgstr "" 155 156 156 #: class/class-admin.php:216 157 msgid "" 158 "Notice: This plugin was installed after this order was made. Please check " 159 "with Matat if you already opened this delivery. " 160 msgstr "" 161 162 #: class/class-admin.php:220 157 #: class/class-admin.php:247 163 158 msgid "Create shipping:" 164 159 msgstr "" 165 160 166 #: class/class-admin.php:2 28161 #: class/class-admin.php:257 167 162 msgid "Double" 168 163 msgstr "" 169 164 170 #: class/class-admin.php:2 30165 #: class/class-admin.php:260 171 166 msgid "Amount to collect" 172 167 msgstr "" 173 168 174 #: class/class-admin.php:2 36169 #: class/class-admin.php:268 175 170 msgid "Collecting" 176 171 msgstr "" 177 172 178 #: class/class-admin.php:2 38173 #: class/class-admin.php:270 179 174 msgid "Packages:" 180 175 msgstr "" 181 176 182 #: class/class-admin.php:2 39177 #: class/class-admin.php:274 183 178 msgid "Deliver on:" 184 179 msgstr "" 185 180 186 #: class/class-admin.php:2 42181 #: class/class-admin.php:279 187 182 msgid "Open shipment" 188 183 msgstr "" 189 184 190 #: class/class-admin.php:2 54185 #: class/class-admin.php:294 191 186 msgid "Powered by" 192 187 msgstr "" 193 188 194 #: class/class-admin.php: 297189 #: class/class-admin.php:345 195 190 msgid "Shipping method is Local pickup." 196 191 msgstr "" 197 192 198 #: class/class-admin.php:3 10193 #: class/class-admin.php:359 199 194 msgid "Delivery number:" 200 195 msgstr "" 201 196 202 #: class/class-admin.php:3 30197 #: class/class-admin.php:382 203 198 msgid "No delivery to display" 204 199 msgstr "" 205 200 206 #: class/class-admin.php:3 34201 #: class/class-admin.php:388 207 202 msgid "open delivery" 208 203 msgstr "" 209 204 210 #: class/class-ajax.php:37 class/class-ajax.php:214 class/class-ajax.php:231 211 #: class/class-ajax.php:260 class/class-delivery.php:97 205 #: class/class-admin.php:406 206 msgid "You do not have sufficient permissions to access this page." 207 msgstr "" 208 209 #: class/class-ajax.php:37 class/class-ajax.php:197 class/class-ajax.php:214 210 #: class/class-ajax.php:244 class/class-delivery.php:120 212 211 msgid "Failed security check" 213 212 msgstr "" 214 213 215 #: class/class-ajax.php:1 49214 #: class/class-ajax.php:131 216 215 msgid "Error creating shipment" 217 216 msgstr "" 218 217 219 #: class/class-ajax.php:1 89218 #: class/class-ajax.php:172 220 219 #. translators: 1: Shipping Number, 2: Shipping Type 221 220 msgid "Shipping successfully created, shipping number: %1$s Shipping type: %2$s" 222 221 msgstr "" 223 222 224 #: class/class-ajax.php:2 45223 #: class/class-ajax.php:229 225 224 msgid " Order canceled" 226 225 msgstr "" 227 226 228 #: class/class-ajax.php:2 69 includes/Pickup.php:377227 #: class/class-ajax.php:253 includes/Pickup.php:404 229 228 msgid "Failed to initialise WC_Filesystem API while trying to sync Shipos Cities." 230 229 msgstr "" 231 230 232 #: class/class-ajax.php:2 85231 #: class/class-ajax.php:269 233 232 msgid "Json file retrieved locally" 234 233 msgstr "" 235 234 236 #: class/class-ajax.php:2 90235 #: class/class-ajax.php:274 237 236 msgid "Locations retrieved from server" 238 237 msgstr "" 239 238 240 #: class/class-license.php:1 09 class/class-license.php:128239 #: class/class-license.php:110 class/class-license.php:129 241 240 msgid "An error occurred, please try again." 242 241 msgstr "" 243 242 244 #: class/class-license.php:12 0243 #: class/class-license.php:121 245 244 msgid "Your license key has been disabled." 246 245 msgstr "" 247 246 248 #: class/class-license.php:12 4247 #: class/class-license.php:125 249 248 msgid "Invalid license." 249 msgstr "" 250 251 #: class/class-rest-routes.php:52 252 msgid "You are not authenticated." 250 253 msgstr "" 251 254 … … 346 349 msgstr "" 347 350 348 #: class/class-settings.php:18 8351 #: class/class-settings.php:187 349 352 msgid "Test Mode" 350 353 msgstr "" 351 354 352 #: class/class-settings.php:1 90355 #: class/class-settings.php:189 353 356 msgid "Run the shipment for testing ?" 354 357 msgstr "" 355 358 356 #: class/class-settings.php:21 8359 #: class/class-settings.php:217 357 360 msgid "Please fill the license field and start shipping." 358 361 msgstr "" 359 362 360 #: class/class-settings.php:2 40363 #: class/class-settings.php:239 361 364 msgid "License successfully activated" 362 365 msgstr "" 363 366 364 #: includes/Pickup.php: 16 includes/Pickup.php:17 includes/Pickup.php:26365 #: includes/Pickup.php: 29367 #: includes/Pickup.php:25 includes/Pickup.php:26 includes/Pickup.php:35 368 #: includes/Pickup.php:38 366 369 msgid "Shipos delivery" 367 370 msgstr "" 368 371 369 #: includes/Pickup.php: 28372 #: includes/Pickup.php:37 370 373 msgid "This controls the title which the user sees during checkout." 371 374 msgstr "" 372 375 373 #: includes/Pickup.php: 33376 #: includes/Pickup.php:42 374 377 msgid "Cost" 375 378 msgstr "" 376 379 377 #: includes/Pickup.php: 35380 #: includes/Pickup.php:44 378 381 msgid "Enter delivery cost" 379 382 msgstr "" 380 383 381 #: includes/Pickup.php: 39384 #: includes/Pickup.php:48 382 385 msgid "Discount cost" 383 386 msgstr "" 384 387 385 #: includes/Pickup.php: 41388 #: includes/Pickup.php:50 386 389 msgid "Enter discount cost" 387 390 msgstr "" 388 391 389 #: includes/Pickup.php: 45392 #: includes/Pickup.php:54 390 393 msgid "Discount cost condition" 391 394 msgstr "" 392 395 393 #: includes/Pickup.php: 47396 #: includes/Pickup.php:56 394 397 msgid "Changing shipping method price if the order amount is higher than..." 395 398 msgstr "" 396 399 397 #: includes/Pickup.php:108 400 #: includes/Pickup.php:60 401 msgid "Coupons discounts" 402 msgstr "" 403 404 #: includes/Pickup.php:61 405 msgid "Apply minimum order rule before coupon discount" 406 msgstr "" 407 408 #: includes/Pickup.php:63 409 msgid "" 410 "If checked, free shipping would be available based on pre-discount order " 411 "amount." 412 msgstr "" 413 414 #: includes/Pickup.php:135 398 415 msgid "Click to select a pickup point" 399 416 msgstr "" 400 417 401 #: includes/Pickup.php:1 19418 #: includes/Pickup.php:146 402 419 msgid "Chosen Delivery Spot" 403 420 msgstr "" 404 421 405 #: includes/Pickup.php:1 56422 #: includes/Pickup.php:183 406 423 msgid "Choose a Collection Point" 407 424 msgstr "" 408 425 409 #: includes/Pickup.php:1 57426 #: includes/Pickup.php:184 410 427 msgid "Search and Select a collection point by origin address" 411 428 msgstr "" 412 429 413 #: includes/Pickup.php:1 64430 #: includes/Pickup.php:191 414 431 msgid "Select On Map" 415 432 msgstr "" 416 433 417 #: includes/Pickup.php:1 68434 #: includes/Pickup.php:195 418 435 msgid "Select Manually" 419 436 msgstr "" 420 437 421 #: includes/Pickup.php: 187438 #: includes/Pickup.php:214 422 439 msgid "Selected pickup point:" 423 440 msgstr "" 424 441 425 #: includes/Pickup.php: 197 includes/Pickup.php:276442 #: includes/Pickup.php:224 includes/Pickup.php:303 426 443 msgid "Select Collection Point" 427 444 msgstr "" 428 445 429 #: includes/Pickup.php:2 01 includes/Pickup.php:280446 #: includes/Pickup.php:228 includes/Pickup.php:307 430 447 msgid "Clear" 431 448 msgstr "" 432 449 433 #: includes/Pickup.php:2 28450 #: includes/Pickup.php:255 434 451 msgid "Search" 435 452 msgstr "" 436 453 437 #: includes/Pickup.php:2 39454 #: includes/Pickup.php:266 438 455 msgid "Total Results: " 439 456 msgstr "" 440 457 441 #: includes/Pickup.php:2 60458 #: includes/Pickup.php:287 442 459 msgid "View on Map" 443 460 msgstr "" 444 461 445 #: includes/Pickup.php:3 36462 #: includes/Pickup.php:363 446 463 msgid "Please select delivery spot." 447 464 msgstr "" 448 465 449 #: includes/Pickup.php:3 61 includes/Pickup.php:412466 #: includes/Pickup.php:388 includes/Pickup.php:439 450 467 msgid "Requested Delivery point" 451 468 msgstr "" 452 469 453 #: includes/Pickup.php: 373470 #: includes/Pickup.php:400 454 471 msgid "Oops! Error getting response from server..." 455 472 msgstr "" 456 473 457 #: includes/Pickup.php: 392474 #: includes/Pickup.php:419 458 475 msgid "Pickup location created successfully..." 459 476 msgstr "" 460 477 461 #: includes/Pickup.php: 394478 #: includes/Pickup.php:421 462 479 msgid "Oops! Error creating pickup json file..." 463 480 msgstr "" 464 481 465 482 #: includes/matat-actions.php:40 466 msgid " Create orders on matat shipos"483 msgid "Ship OS - create bulk shipping" 467 484 msgstr "" 468 485 … … 471 488 msgstr "" 472 489 473 #: includes/matat-actions.php:78 474 #. translators: 1: WooCommerce Order id 475 msgid "Order id (%1$d) Has local pickup shipping method." 476 msgstr "" 477 478 #: includes/matat-actions.php:89 479 #. translators: 1: WooCommerce Order id 480 msgid "Error: Order id (%1$d) data exist." 481 msgstr "" 482 483 #: includes/matat-actions.php:140 490 #: includes/matat-actions.php:110 484 491 msgid "Error: None of the selected orders have shipments." 485 492 msgstr "" 486 493 487 #: includes/matat-actions.php:1 42494 #: includes/matat-actions.php:112 488 495 msgid "Error: No of selected shipments have exceeded max amount of 100." 489 496 msgstr "" 490 497 491 #: includes/matat-actions.php:1 67498 #: includes/matat-actions.php:137 492 499 #. translators: %d: WooCommerce Order id, %s: Error message 493 500 msgid "There is an error with order id (%1$d): %2$s" 494 501 msgstr "" 495 502 496 #: includes/matat-actions.php: 214503 #: includes/matat-actions.php:184 497 504 #. translators: %s: Shipping 498 505 msgid "Shipping: %s" 499 506 msgstr "" 500 507 501 #: includes/matat-actions.php: 226508 #: includes/matat-actions.php:196 502 509 #. translators: %s: Total 503 510 msgid "%s Sent" 504 511 msgstr "" 505 512 506 #: wc-shipos-delivery.php:1 19513 #: wc-shipos-delivery.php:140 507 514 msgid "" 508 515 "WooCommerce is not active. Please activate plugin before using Matat " … … 510 517 msgstr "" 511 518 512 #: wc-shipos-delivery.php:1 27519 #: wc-shipos-delivery.php:148 513 520 msgid "Warning! Shipos is currently running in test mode." 514 521 msgstr "" -
wc-shipos-delivery/trunk/partials/options-page.php
r3017423 r3102325 42 42 ?> 43 43 44 <div class="wrap woocommerce" >45 <iframe src="<?php esc_html_e( $app_url ) ?>/wp/app? <?php esc_html_e( $query ) ?>#/orders?<?php esc_html_e( $spa_query) ?>"44 <div class="wrap woocommerce" style="margin: 10px 15px;"> 45 <iframe src="<?php esc_html_e( $app_url, 'wc-shipos-delivery' ) ?>/wp/app? <?php esc_html_e( $query, 'wc-shipos-delivery' ) ?>#/orders?<?php esc_html_e( $spa_query, 'wc-shipos-delivery' ) ?>" 46 46 style="width: 100%; height: 90vh"></iframe> 47 47 <script> -
wc-shipos-delivery/trunk/readme.txt
r3100360 r3102325 4 4 Requires at least: 5.8.0 5 5 Tested up to: 6.5.2 6 Stable tag: 2.0. 66 Stable tag: 2.0.7 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 84 84 == Changelog == 85 85 86 = 2.0.5 = 86 = 2.0.7 = 87 * Fix bug where license was not activated when automatically updated 88 89 = 2.0.6 = 87 90 * Open bulk shipment option in new tab 88 91 * Add REST route for adding license key automatically -
wc-shipos-delivery/trunk/wc-shipos-delivery.php
r3100360 r3102325 5 5 * Plugin URI: https://matat.co.il/ 6 6 * Description: A plugin for Ship os Delivery orders from within WooCommerce. 7 * Version: 2.0. 67 * Version: 2.0.7 8 8 * Author: Amit Matat 9 9 * Author URI: https://www.linkedin.com/in/amitmatatof/ … … 47 47 */ 48 48 define( 'DVSFW_PLUGIN_SLUG', 'wc-shipos-delivery' ); 49 define( 'DVSFW_PLUGIN_VERSION', '2.0. 6' );49 define( 'DVSFW_PLUGIN_VERSION', '2.0.7' ); 50 50 51 51
Note: See TracChangeset
for help on using the changeset viewer.