Skip to content

Commit

Permalink
2.3.1 (#63)
Browse files Browse the repository at this point in the history
* Added screenshot

* Update README.md
  • Loading branch information
hrsetyono authored May 22, 2022
1 parent d995619 commit 594b702
Show file tree
Hide file tree
Showing 17 changed files with 89 additions and 17 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand All @@ -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

Expand All @@ -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/

Expand Down
Binary file added assets/banner-772x250.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/icon-128x128.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added assets/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
71 changes: 71 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions woocommerce-ongkir.php → wc-ongkir-indonesia.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* Plugin Name: WooCommerce Ongkir Indonesia
* Plugin URI: http://github.com/hrsetyono/woocommerce-ongkir
* Description: Calculate shipping cost for Indonesian couriers like JNE, J&T, TIKI, POS, etc. Requires RajaOngkir PRO License.
* Version: 2.3.0
* Plugin Name: Ongkos Kirim Indonesia for WooCommerce
* Plugin URI: http://github.com/hrsetyono/wc-ongkir-indonesia
* Description: Calculate the shipping costs for Indonesian couriers like JNE, J&T, TIKI, POS, etc. Requires RajaOngkir PRO License.
* Version: 2.3.1
* Author: Pixel Studio
* Author URI: https://pixelstudio.id/
* License: GPL-3.0+
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: woocommerce-ongkir
* Text Domain: wc-ongkir-indonesia
*/

if (!defined('ABSPATH')) { exit; } // exit if accessed directly
Expand All @@ -18,7 +18,7 @@
return;
}

define('ONGKIR_VERSION', '2.3.0');
define('ONGKIR_VERSION', '2.3.1');
define('ONGKIR_FILE', plugins_url('', __FILE__));
define('ONGKIR_DIR', __DIR__);
define('ONGKIR_NAMESPACE', 'ongkir/v1');
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const path = require('path');

const outputPath = 'dist';
const outputPath = 'assets';

const entryPoints = {
'ongkir-public': './public/assets/public.js',
Expand Down

0 comments on commit 594b702

Please sign in to comment.