diff --git a/README.md b/README.md index 1ddd100..8a8f573 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# WooCommerce Indonesia Shipping v2 - -> This plugin requires PRO License from RajaOngkir.com. We are not affiliated with them in any way. +# Ongkos Kirim Indonesia for WooCommerce ![](https://raw.github.com/hrsetyono/cdn/master/woocommerce-indo-shipping/ongkir-banner.jpg) -Ultimate *Ongkos Kirim* Plugin for major Indonesian Shipping courier. +Calculate the shipping costs for Indonesian couriers in WooCommerce. + +> This plugin requires PRO License from RajaOngkir.com. We are not affiliated with them in any way. This plugin is free and provided as is. If you found a bug, please submit it [here](https://github.com/hrsetyono/woocommerce-indo-shipping/issues). @@ -27,7 +27,7 @@ This plugin is free and provided as is. If you found a bug, please submit it [he ## 1. How to Install -1. Download our latest version at https://github.com/hrsetyono/woocommerce-indo-shipping/releases/ +1. Download our latest version at https://github.com/hrsetyono/wc-ongkir-indonesia/releases/ 1. Go to your WP Admin panel > Plugins > Add New @@ -37,7 +37,7 @@ This plugin is free and provided as is. If you found a bug, please submit it [he This plugin is available in Composer under this name: - "pixelstudio/woocommerce-indo-shipping": "~2.1.0" + "pixelstudio/wc-ongkir-indonesia": "~2.3.0" If you don't know how to use Composer to manage plugins, visit here https://wptips.dev/composer-to-manage-plugins/ diff --git a/assets/banner-772x250.jpg b/assets/banner-772x250.jpg new file mode 100644 index 0000000..206452f Binary files /dev/null and b/assets/banner-772x250.jpg differ diff --git a/assets/icon-128x128.jpg b/assets/icon-128x128.jpg new file mode 100644 index 0000000..6d35ffb Binary files /dev/null and b/assets/icon-128x128.jpg differ diff --git a/assets/icon.svg b/assets/icon.svg new file mode 100644 index 0000000..28edc27 --- /dev/null +++ b/assets/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/ongkir-admin.css b/assets/ongkir-admin.css similarity index 100% rename from dist/ongkir-admin.css rename to assets/ongkir-admin.css diff --git a/dist/ongkir-admin.js b/assets/ongkir-admin.js similarity index 100% rename from dist/ongkir-admin.js rename to assets/ongkir-admin.js diff --git a/dist/ongkir-public.css b/assets/ongkir-public.css similarity index 100% rename from dist/ongkir-public.css rename to assets/ongkir-public.css diff --git a/dist/ongkir-public.js b/assets/ongkir-public.js similarity index 100% rename from dist/ongkir-public.js rename to assets/ongkir-public.js diff --git a/assets/screenshot-1.jpg b/assets/screenshot-1.jpg new file mode 100644 index 0000000..3a3fc1b Binary files /dev/null and b/assets/screenshot-1.jpg differ diff --git a/assets/screenshot-2.jpg b/assets/screenshot-2.jpg new file mode 100644 index 0000000..4c8855c Binary files /dev/null and b/assets/screenshot-2.jpg differ diff --git a/assets/screenshot-3.jpg b/assets/screenshot-3.jpg new file mode 100644 index 0000000..31eaea3 Binary files /dev/null and b/assets/screenshot-3.jpg differ diff --git a/LICENSE.md b/license.txt similarity index 100% rename from LICENSE.md rename to license.txt diff --git a/package.json b/package.json index 57f25e4..8e9a27b 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "name": "woocommerce-ongkir", + "name": "wc-ongkir-indonesia", "license": "AGPL-3.0-or-later", "repository": { "type": "git", - "url": "git+https://github.com/hrsetyono/woocommerce-ongkir.git" + "url": "git+https://github.com/hrsetyono/wc-ongkir-indonesia.git" }, "dependencies": { "@babel/polyfill": "^7.11.5" diff --git a/public/index.php b/public/index.php index a772ce4..75417cb 100644 --- a/public/index.php +++ b/public/index.php @@ -31,8 +31,8 @@ function template_redirect() { * @action wp_enqueue_scripts */ function enqueue_assets() { - wp_enqueue_style('ongkir_style', ONGKIR_FILE . '/dist/ongkir-public.css', [], ONGKIR_VERSION); - wp_enqueue_script('ongkir_script', ONGKIR_FILE . '/dist/ongkir-public.js', ONGKIR_VERSION, true); + wp_enqueue_style('ongkir_style', ONGKIR_FILE . '/assets/ongkir-public.css', [], ONGKIR_VERSION); + wp_enqueue_script('ongkir_script', ONGKIR_FILE . '/assets/ongkir-public.js', ONGKIR_VERSION, true); wp_localize_script('ongkir_script', 'ongkirLocalize', [ 'baseURL' => ONGKIR_API, diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..2463c62 --- /dev/null +++ b/readme.txt @@ -0,0 +1,71 @@ +=== Ongkos Kirim Indonesia for WooCommerce === +Tags: woocommerce, shipping, indonesia, jne, j&t +Requires at least: 5.8.0 +Tested up to: 5.9.3 +Requires PHP: 7.3 +License: GPL-3.0+ +License URI: https://www.gnu.org/licenses/gpl-3.0.txt + +Calculate the shipping costs for Indonesian couriers like JNE, J&T, TIKI, POS, etc. Requires RajaOngkir PRO License. + +== Description == +WooCommerce plugin to calculate the shipping costs for Indonesian couriers. Supported couriers are: + +* JNE +* TIKI +* Pos Indonesia +* J&T +* SiCepat +* Ninja Express +* AnterAja + +This plugin requires RajaOngkir PRO License. We are not affiliated with RajaOngkir. + +Last tested working on: + +* PHP 7.3 with CURL and ALLOW_URL_FOPEN enabled. +* WooCommerce 5.9.0 +* WordPress 5.8.3 + +== Installation == +STEP 1 - INITIAL SETUP + +1. Go to WooCommerce > Settings > Shipping > Indo Shipping. + +2. Enter RajaOngkir PRO API Key and press \"Save\". If it\'s correct, it will say \"Connected\" and the rest of the fields will appear. + +3. Tick Enable. + +4. Set your shop\'s city/district location. It is based on the Province you set in the General setting. + +5. Select the service you want to enable from each courier. Leave empty if you want to disable it. + +STEP 2 - SET SHIPPING ZONE + +1. Go to Shipping Zone and click the \"Add Shipping Zone\" button. You will see the screen above. + +2. Set regions as \"Indonesia\". + +3. Click \"Add shipping method\" and select \"Indo Shipping\". + +Done! You will now see additional fields for City and District (Kecamatan) when Checkout. + +== Frequently Asked Questions == += Is this a FREE plugin? = + +The plugin is free, but it requires a purchase of RajaOngkir PRO license. We are not affiliated with them in any way. + +Go visit Rajaongkir.com to purchase it. + += Is this plugin compatible with [insert other plugin]? = + +High chance to be not compatible. We are using a custom method to implement the integration with RajaOngkir. + += This plugin doesn\'t work? = + +Try disabling all other plugins except WooCommerce. If still doesn\'t work, try switching to the default Storefront theme. + +== Screenshots == +1. Displaying the shipping cost of JNE and Ninja Xpress +2. Installation Step 1 +3. Installation Step 2 \ No newline at end of file diff --git a/woocommerce-ongkir.php b/wc-ongkir-indonesia.php similarity index 74% rename from woocommerce-ongkir.php rename to wc-ongkir-indonesia.php index 09e066f..a4d2cc9 100644 --- a/woocommerce-ongkir.php +++ b/wc-ongkir-indonesia.php @@ -1,14 +1,14 @@