-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 4193296 Author: Henner R Setyono <[email protected]> Date: Thu May 19 11:39:04 2022 +0700 2.2.0 commit 45808d5 Author: Henner R Setyono <[email protected]> Date: Thu May 19 11:08:31 2022 +0700 2.2.0 Finished refactoring commit 2fae8a4 Author: Henner R Setyono <[email protected]> Date: Wed May 18 15:57:33 2022 +0700 refactor 2 commit e1f4cc9 Author: Henner R Setyono <[email protected]> Date: Wed May 18 11:48:12 2022 +0700 refactoring in progress
- Loading branch information
Showing
73 changed files
with
3,596 additions
and
1,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true, | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"extends": [ | ||
"airbnb-base" | ||
], | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"plugins": [], | ||
"rules": { | ||
"max-len": 0, | ||
"linebreak-style": 0, | ||
"no-alert": "off", | ||
"no-param-reassign": [2, { "props": false }], | ||
"prefer-destructuring": [ | ||
"error", | ||
{ | ||
"VariableDeclarator": { | ||
"array": false, | ||
"object": true | ||
}, | ||
"AssignmentExpression": { | ||
"array": false, | ||
"object": false | ||
} | ||
}, | ||
{ | ||
"enforceForRenamedProperties": false | ||
} | ||
] | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './admin.sass'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
if (!class_exists('Ongkir_Admin')): | ||
|
||
class Ongkir_Admin { | ||
function __construct($enabled = 'no') { | ||
// run this code even if disabled | ||
add_action('woocommerce_shipping_init', [$this, 'shipping_init']); | ||
add_filter('woocommerce_shipping_methods', [$this, 'shipping_method']); | ||
} | ||
|
||
/** | ||
* Initiate WC Shipping | ||
* | ||
* @filter woocommerce_shipping_init | ||
*/ | ||
function shipping_init() { | ||
require_once __DIR__ . '/ongkir-method.php'; | ||
require_once __DIR__ . '/ongkir-zone.php'; | ||
} | ||
|
||
/** | ||
* Add our custom Shipping method | ||
* | ||
* @filter woocommerce_shipping_methods | ||
*/ | ||
function shipping_method($methods) { | ||
$methods['wcis'] = 'Ongkir_Method'; | ||
$methods['wcis_zone'] = 'Ongkir_Zone'; | ||
return $methods; | ||
} | ||
} | ||
|
||
endif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.