From 97c918099aea9fc9e4a987c9c6fc389fcba0b8c9 Mon Sep 17 00:00:00 2001 From: Sofyan Sitorus Date: Sat, 17 Feb 2018 11:41:19 +0700 Subject: [PATCH 1/5] Tweak Map styling --- assets/css/woogosend-admin.css | 32 ++++++++++++++++++++++-- assets/css/woogosend-admin.min.css | 2 +- assets/scss/woogosend-admin.scss | 40 +++++++++++++++++++++++++++++- 3 files changed, 70 insertions(+), 4 deletions(-) diff --git a/assets/css/woogosend-admin.css b/assets/css/woogosend-admin.css index 6a45f13..5c14b89 100644 --- a/assets/css/woogosend-admin.css +++ b/assets/css/woogosend-admin.css @@ -1,5 +1,7 @@ .woogosend-map-wrapper { - position: relative; } + position: relative; + width: 100%; + padding-right: 10px; } .woogosend-map-wrapper .controls { margin-top: 10px; border: 1px solid transparent; @@ -11,7 +13,7 @@ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); } .woogosend-map-wrapper .woogosend-map-canvas { position: relative; - height: 300px; } + height: 360px; } .woogosend-map-wrapper .woogosend-map-search { position: relative; background-color: #fff; @@ -26,6 +28,32 @@ .woogosend-map-wrapper .woogosend-map-search:focus { border-color: #4d90fe; } +#woogosend-lat-lng-wrap { + width: 100%; + padding-right: 10px; } + #woogosend-lat-lng-wrap div { + width: 50%; } + #woogosend-lat-lng-wrap div:first-child { + float: left; + padding-right: 10px; } + #woogosend-lat-lng-wrap div:last-child { + margin-left: 50%; + padding-left: 10px; } + #woogosend-lat-lng-wrap div label { + display: block; } + #woogosend-lat-lng-wrap div input { + display: block; + width: 100%; } + @media only screen and (max-width: 1070px) { + #woogosend-lat-lng-wrap div { + width: 100%; } + #woogosend-lat-lng-wrap div:first-child { + float: none; + padding-right: 0; } + #woogosend-lat-lng-wrap div:last-child { + margin-left: 0; + padding-left: 0; } } + .pac-container { z-index: 999999 !important; } .pac-container #type-selector { diff --git a/assets/css/woogosend-admin.min.css b/assets/css/woogosend-admin.min.css index 905874e..998c97c 100644 --- a/assets/css/woogosend-admin.min.css +++ b/assets/css/woogosend-admin.min.css @@ -1 +1 @@ -.woogosend-map-wrapper{position:relative}.woogosend-map-wrapper .controls{margin-top:10px;border:1px solid transparent;border-radius:2px 0 0 2px;box-sizing:border-box;-moz-box-sizing:border-box;height:32px;outline:0;box-shadow:0 2px 6px rgba(0,0,0,.3)}.woogosend-map-wrapper .woogosend-map-canvas{position:relative;height:300px}.woogosend-map-wrapper .woogosend-map-search{position:relative;background-color:#fff;font-size:13px;font-weight:300;margin-left:12px;padding:0 11px 0 13px;text-overflow:ellipsis;width:600px;max-width:100%;margin-top:10px!important}.woogosend-map-wrapper .woogosend-map-search:focus{border-color:#4d90fe}.pac-container{z-index:999999!important}.pac-container #type-selector{color:#fff;background-color:#4d90fe;padding:5px 11px 0 11px}.pac-container #type-selector label{font-size:13px;font-weight:300}.pac-container #target{width:345px} \ No newline at end of file +.woogosend-map-wrapper{position:relative;width:100%;padding-right:10px}.woogosend-map-wrapper .controls{margin-top:10px;border:1px solid transparent;border-radius:2px 0 0 2px;box-sizing:border-box;-moz-box-sizing:border-box;height:32px;outline:0;box-shadow:0 2px 6px rgba(0,0,0,.3)}.woogosend-map-wrapper .woogosend-map-canvas{position:relative;height:360px}.woogosend-map-wrapper .woogosend-map-search{position:relative;background-color:#fff;font-size:13px;font-weight:300;margin-left:12px;padding:0 11px 0 13px;text-overflow:ellipsis;width:600px;max-width:100%;margin-top:10px!important}.woogosend-map-wrapper .woogosend-map-search:focus{border-color:#4d90fe}#woogosend-lat-lng-wrap{width:100%;padding-right:10px}#woogosend-lat-lng-wrap div{width:50%}#woogosend-lat-lng-wrap div:first-child{float:left;padding-right:10px}#woogosend-lat-lng-wrap div:last-child{margin-left:50%;padding-left:10px}#woogosend-lat-lng-wrap div label{display:block}#woogosend-lat-lng-wrap div input{display:block;width:100%}@media only screen and (max-width:1070px){#woogosend-lat-lng-wrap div{width:100%}#woogosend-lat-lng-wrap div:first-child{float:none;padding-right:0}#woogosend-lat-lng-wrap div:last-child{margin-left:0;padding-left:0}}.pac-container{z-index:999999!important}.pac-container #type-selector{color:#fff;background-color:#4d90fe;padding:5px 11px 0 11px}.pac-container #type-selector label{font-size:13px;font-weight:300}.pac-container #target{width:345px} \ No newline at end of file diff --git a/assets/scss/woogosend-admin.scss b/assets/scss/woogosend-admin.scss index bd79d8f..3605ee5 100644 --- a/assets/scss/woogosend-admin.scss +++ b/assets/scss/woogosend-admin.scss @@ -1,5 +1,7 @@ .woogosend-map-wrapper { position: relative; + width: 100%; + padding-right: 10px; .controls { margin-top: 10px; border: 1px solid transparent; @@ -12,7 +14,7 @@ } .woogosend-map-canvas { position: relative; - height: 300px; + height: 360px; } .woogosend-map-search { position: relative; @@ -31,6 +33,42 @@ } } +#woogosend-lat-lng-wrap { + width: 100%; + padding-right: 10px; + div{ + width: 50%; + &:first-child{ + float: left; + padding-right: 10px; + } + &:last-child{ + margin-left: 50%; + padding-left: 10px; + } + label{ + display: block; + } + input{ + display: block; + width: 100%; + } + } + @media only screen and (max-width: 1070px) { + div{ + width: 100%; + &:first-child{ + float: none; + padding-right: 0; + } + &:last-child{ + margin-left: 0; + padding-left: 0; + } + } + } +} + .pac-container { z-index: 999999 !important; #type-selector { From 72b91de6c0034857bd280de0579790e6a8e615c9 Mon Sep 17 00:00:00 2001 From: Sofyan Sitorus Date: Sat, 17 Feb 2018 11:41:31 +0700 Subject: [PATCH 2/5] Tweak Map JS --- assets/js/woogosend-admin.js | 118 +++++++++++++++++-------------- assets/js/woogosend-admin.min.js | 2 +- 2 files changed, 67 insertions(+), 53 deletions(-) diff --git a/assets/js/woogosend-admin.js b/assets/js/woogosend-admin.js index 03d2284..2229ee6 100644 --- a/assets/js/woogosend-admin.js +++ b/assets/js/woogosend-admin.js @@ -2,25 +2,38 @@ "use strict"; var wooGoSend = { - _inputLatId: "woocommerce_woogosend_origin_lat", - _inputLngId: "woocommerce_woogosend_origin_lng", - _mapWrapperId: "woogosend-map-wrapper", - _mapSearchId: "woogosend-map-search", - _mapCanvasId: "woogosend-map-canvas", + _inputLatSel: "", + _inputLngSel: "", + _mapWrapperSel: "", + _mapSearchSel: "", + _mapCanvasSel: "", + _serviceToggleSel: "", _zoomLevel: 16, _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", - init: function() { + _params: {}, + init: function(params) { var self = this; - if (woogosend_params.show_settings) { + self._params = params; + + self._inputLatSel = + "woocommerce_" + self._params.method_id + "_origin_lat"; + self._inputLngSel = + "woocommerce_" + self._params.method_id + "_origin_lng"; + self._mapWrapperSel = self._params.method_id + "-map-wrapper"; + self._mapSearchSel = self._params.method_id + "-map-search"; + self._mapCanvasSel = self._params.method_id + "-map-canvas"; + self._serviceToggleSel = self._params.method_id + "-toggle-service"; + + if (self._params.show_settings) { setTimeout(function() { // Try show settings modal on settings page. var isMethodAdded = false; var methods = $(document).find(".wc-shipping-zone-method-type"); for (var i = 0; i < methods.length; i++) { var method = methods[i]; - if ($(method).text() == woogosend_params.method_title) { + if ($(method).text() == self._params.method_title) { $(method) .closest("tr") .find(".row-actions .wc-shipping-zone-method-settings") @@ -34,7 +47,7 @@ if (!isMethodAdded) { $(".wc-shipping-zone-add-method").trigger("click"); $("select[name='add_method_id']") - .val(woogosend_params.method_id) + .val(self._params.method_id) .trigger("change"); } }, 200); @@ -45,14 +58,24 @@ $(this) .closest("tr") .find(".wc-shipping-zone-method-type") - .text() === woogosend_params.method_title + .text() === self._params.method_title ) { - $(".woogosend-toggle-service").trigger("change"); + $("." + self._serviceToggleSel).trigger("change"); self._initGoogleMaps(); } }); - $(document).on("change", ".woogosend-toggle-service", function() { + $(document).on( + "change", + "#" + self._inputLatSel + ", #" + self._inputLngSel, + function() { + if (!$(".gm-err-content").length) { + self._initGoogleMaps(); + } + } + ); + + $(document).on("change", "." + self._serviceToggleSel, function() { if ($(this).is(":checked")) { $(this) .closest("table") @@ -68,11 +91,9 @@ }, _initGoogleMaps: function(e) { var self = this; - $("#" + self._inputLatId) - .closest("tr") - .hide(); - $("#" + self._inputLngId) - .closest("tr") + $("#" + self._mapWrapperSel) + .show() + .siblings(".description") .hide(); try { if ( @@ -88,7 +109,7 @@ "https://maps.googleapis.com/maps/api/js?key=" + self._decode($("#map-secret-key").val()) + "&libraries=geometry,places&&language=" + - woogosend_params.language, + self._params.language, function() { self._buildGoogleMaps(); } @@ -99,23 +120,23 @@ var self = this; var defaultLat = -6.175392; var defaultLng = 106.827153; - var curLat = $("#" + self._inputLatId).val(); - var curLng = $("#" + self._inputLngId).val(); + var curLat = $("#" + self._inputLatSel).val(); + var curLng = $("#" + self._inputLngSel).val(); curLat = curLat.length ? parseFloat(curLat) : defaultLat; curLng = curLng.length ? parseFloat(curLng) : defaultLng; var curLatLng = { lat: curLat, lng: curLng }; - var tmplMapCanvas = wp.template(self._mapCanvasId); - var tmplMapSearch = wp.template(self._mapSearchId); - if (!$("#" + self._mapCanvasId).length) { - $("#" + self._mapWrapperId).append( + var tmplMapCanvas = wp.template(self._mapCanvasSel); + var tmplMapSearch = wp.template(self._mapSearchSel); + if (!$("#" + self._mapCanvasSel).length) { + $("#" + self._mapWrapperSel).append( tmplMapCanvas({ - map_canvas_id: self._mapCanvasId + map_canvas_id: self._mapCanvasSel }) ); } var markers = []; var map = new google.maps.Map( - document.getElementById(self._mapCanvasId), + document.getElementById(self._mapCanvasSel), { center: curLatLng, zoom: self._zoomLevel, @@ -126,13 +147,13 @@ map: map, position: curLatLng, draggable: true, - icon: woogosend_params.marker + icon: self._params.marker }); var infowindow = new google.maps.InfoWindow({ maxWidth: 350 }); if (curLat == defaultLat && curLng == defaultLng) { - infowindow.setContent(woogosend_params.txt.drag_marker); + infowindow.setContent(self._params.txt.drag_marker); infowindow.open(map, marker); } else { self._setLatLng(marker.position, marker, map, infowindow); @@ -148,15 +169,15 @@ markers.push(marker); - if (!$("#" + self._mapSearchId).length) { - $("#" + self._mapWrapperId).append( + if (!$("#" + self._mapSearchSel).length) { + $("#" + self._mapWrapperSel).append( tmplMapSearch({ - map_search_id: self._mapSearchId + map_search_id: self._mapSearchSel }) ); } // Create the search box and link it to the UI element. - var inputAddress = document.getElementById(self._mapSearchId); + var inputAddress = document.getElementById(self._mapSearchSel); var searchBox = new google.maps.places.SearchBox(inputAddress); map.controls[google.maps.ControlPosition.TOP_LEFT].push(inputAddress); // Bias the SearchBox results towards current map's viewport. @@ -185,7 +206,7 @@ map: map, position: place.geometry.location, draggable: true, - icon: woogosend_params.marker + icon: self._params.marker }); self._setLatLng(place.geometry.location, marker, map, infowindow); google.maps.event.addListener(marker, "dragstart", function(event) { @@ -203,21 +224,16 @@ bounds.extend(place.geometry.location); } }); - map.setZoom(self._zoomLevel); map.fitBounds(bounds); }); setInterval(function() { if ($(".gm-err-content").length) { - $("#" + self._mapCanvasId) - .closest("tr") - .hide(); - $("#" + self._inputLatId) - .closest("tr") - .show(); - $("#" + self._inputLngId) - .closest("tr") + $("#" + self._mapWrapperSel) + .hide() + .siblings(".description") .show(); + $("#" + self._mapSearchSel).remove(); google = undefined; } }, 1000); @@ -230,20 +246,18 @@ latLng: location }, function(results, status) { - if (status == google.maps.GeocoderStatus.OK) { - if (results[0]) { - infowindow.setContent(results[0].formatted_address); + if (status == google.maps.GeocoderStatus.OK && results[0]) { + infowindow.setContent(results[0].formatted_address); + infowindow.open(map, marker); + marker.addListener("click", function() { infowindow.open(map, marker); - $("#" + self._inputLatId).val(location.lat()); - $("#" + self._inputLngId).val(location.lng()); - } else { - $("#" + self._inputLatId).val(""); - $("#" + self._inputLngId).val(""); - } + }); } } ); map.setCenter(location); + $("#" + self._inputLatSel).val(location.lat()); + $("#" + self._inputLngSel).val(location.lng()); }, _encode: function(e) { var self = this; @@ -346,6 +360,6 @@ }; $(document).ready(function() { - wooGoSend.init(); + wooGoSend.init(woogosend_params); }); })(jQuery); diff --git a/assets/js/woogosend-admin.min.js b/assets/js/woogosend-admin.min.js index c0d8a97..c73b946 100644 --- a/assets/js/woogosend-admin.min.js +++ b/assets/js/woogosend-admin.min.js @@ -1 +1 @@ -!function(e){"use strict";var o={_inputLatId:"woocommerce_woogosend_origin_lat",_inputLngId:"woocommerce_woogosend_origin_lng",_mapWrapperId:"woogosend-map-wrapper",_mapSearchId:"woogosend-map-search",_mapCanvasId:"woogosend-map-canvas",_zoomLevel:16,_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",init:function(){var o=this;woogosend_params.show_settings&&setTimeout(function(){for(var o=!1,t=e(document).find(".wc-shipping-zone-method-type"),n=0;n>2,r=(3&o)<<4|(t=e.charCodeAt(g++))>>4,i=(15&t)<<2|(n=e.charCodeAt(g++))>>6,s=63&n,isNaN(t)?i=s=64:isNaN(n)&&(s=64),d=d+this._keyStr.charAt(a)+this._keyStr.charAt(r)+this._keyStr.charAt(i)+this._keyStr.charAt(s);return d},_decode:function(e){var o,t,n,a,r,i,s="",d=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");d>4,t=(15&a)<<4|(r=this._keyStr.indexOf(e.charAt(d++)))>>2,n=(3&r)<<6|(i=this._keyStr.indexOf(e.charAt(d++))),s+=String.fromCharCode(o),64!=r&&(s+=String.fromCharCode(t)),64!=i&&(s+=String.fromCharCode(n));return s=this._utf8_decode(s)},_utf8_encode:function(e){e=e.replace(/rn/g,"n");for(var o="",t=0;t127&&n<2048?(o+=String.fromCharCode(n>>6|192),o+=String.fromCharCode(63&n|128)):(o+=String.fromCharCode(n>>12|224),o+=String.fromCharCode(n>>6&63|128),o+=String.fromCharCode(63&n|128))}return o},_utf8_decode:function(e){for(var o="",t=0,n=0,a=0;t191&&n<224?(a=e.charCodeAt(t+1),o+=String.fromCharCode((31&n)<<6|63&a),t+=2):(a=e.charCodeAt(t+1),c3=e.charCodeAt(t+2),o+=String.fromCharCode((15&n)<<12|(63&a)<<6|63&c3),t+=3);return o}};e(document).ready(function(){o.init()})}(jQuery); \ No newline at end of file +!function(e){"use strict";var t={_inputLatSel:"",_inputLngSel:"",_mapWrapperSel:"",_mapSearchSel:"",_mapCanvasSel:"",_serviceToggleSel:"",_zoomLevel:16,_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_params:{},init:function(t){var a=this;a._params=t,a._inputLatSel="woocommerce_"+a._params.method_id+"_origin_lat",a._inputLngSel="woocommerce_"+a._params.method_id+"_origin_lng",a._mapWrapperSel=a._params.method_id+"-map-wrapper",a._mapSearchSel=a._params.method_id+"-map-search",a._mapCanvasSel=a._params.method_id+"-map-canvas",a._serviceToggleSel=a._params.method_id+"-toggle-service",a._params.show_settings&&setTimeout(function(){for(var t=!1,o=e(document).find(".wc-shipping-zone-method-type"),n=0;n>2,r=(3&t)<<4|(a=e.charCodeAt(d++))>>4,i=(15&a)<<2|(o=e.charCodeAt(d++))>>6,s=63&o,isNaN(a)?i=s=64:isNaN(o)&&(s=64),g=g+this._keyStr.charAt(n)+this._keyStr.charAt(r)+this._keyStr.charAt(i)+this._keyStr.charAt(s);return g},_decode:function(e){var t,a,o,n,r,i,s="",g=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");g>4,a=(15&n)<<4|(r=this._keyStr.indexOf(e.charAt(g++)))>>2,o=(3&r)<<6|(i=this._keyStr.indexOf(e.charAt(g++))),s+=String.fromCharCode(t),64!=r&&(s+=String.fromCharCode(a)),64!=i&&(s+=String.fromCharCode(o));return s=this._utf8_decode(s)},_utf8_encode:function(e){e=e.replace(/rn/g,"n");for(var t="",a=0;a127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},_utf8_decode:function(e){for(var t="",a=0,o=0,n=0;a191&&o<224?(n=e.charCodeAt(a+1),t+=String.fromCharCode((31&o)<<6|63&n),a+=2):(n=e.charCodeAt(a+1),c3=e.charCodeAt(a+2),t+=String.fromCharCode((15&o)<<12|(63&n)<<6|63&c3),a+=3);return t}};e(document).ready(function(){t.init(woogosend_params)})}(jQuery); \ No newline at end of file From 2e36b930d60f2675b0b3053ce0d6fab97db99a82 Mon Sep 17 00:00:00 2001 From: Sofyan Sitorus Date: Sat, 17 Feb 2018 11:41:46 +0700 Subject: [PATCH 3/5] Tweak Map Setting Store location --- includes/class-woogosend.php | 37 +++++++++++++++--------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/includes/class-woogosend.php b/includes/class-woogosend.php index 4f8fd6d..b4cba03 100644 --- a/includes/class-woogosend.php +++ b/includes/class-woogosend.php @@ -134,21 +134,17 @@ public function init_form_fields() { 'description' => __( 'This plugin require Google Maps Distance Matrix API Services enabled in your Google API Console. Click here to get API Key and to enable the services.', 'woogosend' ), 'default' => '', ), - 'gmaps_address_picker' => array( + 'origin' => array( 'title' => __( 'Store Location', 'woogosend' ), 'type' => 'address_picker', ), 'origin_lat' => array( 'title' => __( 'Store Location Latitude', 'woogosend' ), - 'type' => 'text', - 'default' => '', - 'description' => __( 'Click here to get your store location coordinates info.', 'woogosend' ), + 'type' => 'coordinates', ), 'origin_lng' => array( 'title' => __( 'Store Location Logitude', 'woogosend' ), - 'type' => 'text', - 'default' => '', - 'description' => __( 'Click here to get your store location coordinates info.', 'woogosend' ), + 'type' => 'coordinates', ), 'gmaps_api_mode' => array( 'title' => __( 'Travel Mode', 'woogosend' ), @@ -405,12 +401,17 @@ public function generate_address_picker_html( $key, $data ) { -
- - @@ -419,21 +420,13 @@ public function generate_address_picker_html( $key, $data ) { } /** - * Generate hidden settings field. + * Generate coordinates settings field. * * @since 1.2.4 * @param string $key Settings field key. * @param array $data Settings field data. */ - public function generate_hidden_html( $key, $data ) { - $field_key = $this->get_field_key( $key ); - - ob_start(); - ?> - - Date: Sat, 17 Feb 2018 11:47:50 +0700 Subject: [PATCH 4/5] Update README --- README.md | 13 ++++++++----- README.txt | 14 +++++++++----- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 147b51a..853f312 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ WooCommerce per kilometer shipping rates calculator for GoSend Go-Jek Indonesia courier. **Contributors:** [sofyansitorus](https://profiles.wordpress.org/sofyansitorus)
-**Tags:** [woocommerce shipping](https://wordpress.org/plugins/tags/woocommerce shipping), [go-jek](https://wordpress.org/plugins/tags/go-jek), [ojek shipping](https://wordpress.org/plugins/tags/ojek shipping), [gosend](https://wordpress.org/plugins/tags/gosend), [gojek shipping](https://wordpress.org/plugins/tags/gojek shipping)
+**Tags:** [woocommerce](https://wordpress.org/plugins/tags/woocommerce), [woocommerce-shipping](https://wordpress.org/plugins/tags/woocommerce-shipping), [gojek](https://wordpress.org/plugins/tags/gojek), [gojek-shipping](https://wordpress.org/plugins/tags/gojek-shipping), [gosend](https://wordpress.org/plugins/tags/gosend), [gosend-shipping](https://wordpress.org/plugins/tags/gosend-shipping)
**Requires at least:** 4.8
**Tested up to:** 4.9.4
**Stable tag:** trunk (master)
@@ -23,13 +23,13 @@ This plugin require Google Maps Distance Matrix API Services enabled in your Goo * Available 2 shipping services: Instant Delivery, Same Day Delivery. * Set shipping cost per kilometer. * Set minimum cost that will be billed to customer. -* Set maximum cost that will be billed to customer. * Set maximum shipping distances that allowed to use the courier. * Set maximum package weight and dimensions that allowed to use the courier. * Set shipping origin info by store location coordinates. * Set travel mode: Driving, Walking, Bicycling. * Set route restrictions: Avoid Tolls, Avoid Highways, Avoid Ferries, Avoid Indoor. * Set visibility distance info to customer. +* Set fallback request if there is no results for API request using full address. ## Installation ## @@ -97,8 +97,11 @@ I always welcome and encourage contributions to this plugin. Please visit the pl ## Changelog ## +### 1.2.6 ### +* Improvements - Enhance Maps Picker. + ### 1.2.5 ### -* Improvements -Add new option: Enable Fallback Request. +* Improvements - Add new option: Enable Fallback Request. * Fix - Added fallback to input store location manually on google map error. ### 1.2.4 ### @@ -146,7 +149,7 @@ I always welcome and encourage contributions to this plugin. Please visit the pl ## Upgrade Notice ## -### 1.2.5 ### -This version include bug fixes and improvements. Upgrade immediately. +### 1.2.6 ### +This version include improvements. Upgrade immediately. diff --git a/README.txt b/README.txt index ddb34c6..c965430 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ === WooGoSend === Contributors: sofyansitorus -Tags: woocommerce shipping,go-jek,ojek shipping,gosend,gojek shipping +Tags: woocommerce,woocommerce-shipping,gojek,gojek-shipping,gosend,gosend-shipping Requires at least: 4.8 Tested up to: 4.9.4 Requires PHP: 5.6 @@ -23,13 +23,13 @@ This plugin require Google Maps Distance Matrix API Services enabled in your Goo * Available 2 shipping services: Instant Delivery, Same Day Delivery. * Set shipping cost per kilometer. * Set minimum cost that will be billed to customer. -* Set maximum cost that will be billed to customer. * Set maximum shipping distances that allowed to use the courier. * Set maximum package weight and dimensions that allowed to use the courier. * Set shipping origin info by store location coordinates. * Set travel mode: Driving, Walking, Bicycling. * Set route restrictions: Avoid Tolls, Avoid Highways, Avoid Ferries, Avoid Indoor. * Set visibility distance info to customer. +* Set fallback request if there is no results for API request using full address. == Installation == = Minimum Requirements = @@ -83,9 +83,13 @@ I always welcome and encourage contributions to this plugin. Please visit the pl == Changelog == += 1.2.6 = + +* Improvements - Enhance Maps Picker. + = 1.2.5 = -* Improvements -Add new option: Enable Fallback Request. +* Improvements - Add new option: Enable Fallback Request. * Fix - Added fallback to input store location manually on google map error. = 1.2.4 = @@ -142,5 +146,5 @@ I always welcome and encourage contributions to this plugin. Please visit the pl == Upgrade Notice == -= 1.2.5 = -This version include bug fixes and improvements. Upgrade immediately. \ No newline at end of file += 1.2.6 = +This version include improvements. Upgrade immediately. \ No newline at end of file From 316dd6bcd0a9ce29537f7fadd9259b6d9cb1e5a1 Mon Sep 17 00:00:00 2001 From: Sofyan Sitorus Date: Sat, 17 Feb 2018 11:48:37 +0700 Subject: [PATCH 5/5] Bump version: 1.2.6 --- woogosend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/woogosend.php b/woogosend.php index 51f51b0..47e5d86 100644 --- a/woogosend.php +++ b/woogosend.php @@ -15,7 +15,7 @@ * Plugin Name: WooGoSend * Plugin URI: https://github.com/sofyansitorus/WooGoSend * Description: WooCommerce per kilometer shipping rates calculator for GoSend Go-Jek Indonesia courier. - * Version: 1.2.5 + * Version: 1.2.6 * Author: Sofyan Sitorus * Author URI: https://github.com/sofyansitorus * License: GPL-2.0+ @@ -24,7 +24,7 @@ * Domain Path: /languages * * WC requires at least: 3.0.0 - * WC tested up to: 3.3.0 + * WC tested up to: 3.4.0 */ // If this file is called directly, abort. @@ -42,7 +42,7 @@ // Defines plugin named constants. define( 'WOOGOSEND_PATH', plugin_dir_path( __FILE__ ) ); define( 'WOOGOSEND_URL', plugin_dir_url( __FILE__ ) ); -define( 'WOOGOSEND_VERSION', '1.2.5' ); +define( 'WOOGOSEND_VERSION', '1.2.6' ); define( 'WOOGOSEND_METHOD_ID', 'woogosend' ); define( 'WOOGOSEND_METHOD_TITLE', 'WooGoSend' ); define( 'WOOGOSEND_MAP_SECRET_KEY', 'QUl6YVN5Qk82MVFJUm52Zkc5c2tKTW1HV1JVbWhsSU5lcUZXaTdV' );