Skip to content

Commit 4bdc5ab

Browse files
committed
Merge branch 'release/1.1.0'
2 parents fb8392c + 4e83cd2 commit 4bdc5ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+15869
-1
lines changed

.github/workflows/phpcs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on: pull_request
2+
3+
name: Inspections
4+
jobs:
5+
runPHPCSInspection:
6+
name: Run PHPCS inspection
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Setup PHP
12+
uses: shivammathur/setup-php@v2
13+
with:
14+
php-version: '7.3'
15+
coverage: none
16+
tools: cs2pr, composer:v1
17+
18+
- name: Get composer cache directory
19+
id: composercache
20+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
21+
22+
- name: Cache dependencies
23+
uses: actions/cache@v2
24+
with:
25+
path: ${{ steps.composercache.outputs.dir }}
26+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
27+
restore-keys: ${{ runner.os }}-composer-
28+
29+
- name: Install dependencies
30+
run: composer install --prefer-dist --no-suggest --no-progress
31+
32+
- id: changes
33+
run: |
34+
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
35+
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename' | xargs)
36+
echo "::set-output name=files::$FILES"
37+
38+
- name: Detect coding standard violations
39+
run: vendor/bin/phpcs ${{ steps.changes.outputs.files }} -q --report=checkstyle | cs2pr --graceful-warnings
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
jobs:
7+
tag:
8+
name: New tag
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Setup Node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: '7.4'
20+
coverage: none
21+
tools: cs2pr, composer:v2
22+
- name: Build
23+
run: |
24+
composer install --no-dev
25+
composer dump-autoload -o
26+
yarn install
27+
yarn build
28+
- name: WordPress Plugin Deploy
29+
uses: 10up/action-wordpress-plugin-deploy@stable
30+
env:
31+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
32+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
33+
SLUG: dokan-vendor-dashboard

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
composer.lock
2+
vendor
3+
node_modules
4+
.DS_Store
5+
package-lock.json
6+
yarn-error.log
7+
.vscode
8+
build

.idea/php.xml

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.php_cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
require_once __DIR__ . '/vendor/tareq1988/wp-php-cs-fixer/loader.php';
4+
5+
$finder = PhpCsFixer\Finder::create()
6+
->exclude( 'node_modules' )
7+
->exclude( 'vendors' )
8+
->exclude( 'assets' )
9+
->exclude( 'languages' )
10+
->exclude( 'src' )
11+
->exclude( 'bin' )
12+
->in( __DIR__ )
13+
;
14+
15+
$config = PhpCsFixer\Config::create()
16+
->registerCustomFixers( [
17+
new WeDevs\Fixer\SpaceInsideParenthesisFixer(),
18+
new WeDevs\Fixer\BlankLineAfterClassOpeningFixer(),
19+
] )
20+
->setRiskyAllowed( true )
21+
->setUsingCache( false )
22+
->setRules( WeDevs\Fixer\Fixer::rules() )
23+
->setFinder( $finder )
24+
;
25+
26+
return $config;

README.md

Lines changed: 79 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,79 @@
1-
# dokan-migrator
1+
# Dokan Migrator
2+
**Contributors:** [tareq1988](https://profiles.wordpress.org/tareq1988/), [wedevs](https://profiles.wordpress.org/wedevs/), [nizamuddinbabu](https://profiles.wordpress.org/nizamuddinbabu/)
3+
**Donate Link:** http://tareq.co/donate/
4+
**Tags:** dokan, dokan migrator, multivendor marketplace
5+
**Requires at least:** 5.8
6+
**Tested up to:** 6.4.2
7+
**WC tested up to:** 8.4.0
8+
**Requires PHP:** 7.3
9+
**Stable tag:** 1.1.0
10+
**License:** GPLv2 or later
11+
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
12+
13+
Migrate your marketplace from WCFM, WC Vendors and YITh to Dokan with one click. Secure data transfer within minutes.
14+
15+
## Description
16+
17+
Building a multi-vendor store from scratch is tough enough, but moving from an already built marketplace platform to another can be unimaginable. But when you are restricted to a platform that does not meet your growing feature requirements, it can be harmful for your business. Dokan Migrator allows you to seamlessly migrate from WCFM, WC Vendors, and YITH to the Dokan Multivendor Marketplace. Migrate without losing data about vendors, orders, or withdrawal records.
18+
19+
**DOKAN MIGRATOR PLUGIN FOR WORDPRESS**
20+
21+
- LEARN MORE : Dokan Migrator works.
22+
23+
- DOCUMENTATION : Detailed Guide.
24+
25+
- COMPATIBILITY: WooCommerce, Dokan Lite & Dokan Pro, WCFM, WC Vendors, YITH.
26+
27+
**EASY TO USE, SIMPLE TO FOLLOW**
28+
29+
Like the rest of Dokan settings and functions, the Dokan Migrator plugin is created to provide advanced options in easy solutions. Whether you are new to WordPress technicalities or an expert, experienced tech-savvy person, this migrator guarantees hassle free implementation. Just a single click allows you to start the process with a dashboard to review the existing data on your marketplace before allowing the plugin to bundle the data and move it to Dokan.
30+
31+
32+
**MIGRATING TO AND USING DOKAN**
33+
34+
When you activate the Dokan Migrator plugin (ensure that Dokan Lite is active as well), a banner on the plugin will notify you to migrate with a clickable link. When you click, you will be redirected to a dashboard to review the existing data (of vendors, orders and withdrawals) that will be migrated upon your approval.
35+
36+
When the migration process is complete, you will be able to take advantage of the advanced features of Dokan Multivendor and do more with the data migrated. View all your vendor information in a neatly organized Dokan dashboard. Review all store activities with Dokan while having control over marketplace orders and extended withdrawal options such as auto-disbursement and reverse withdrawal for cash on delivery payments.
37+
38+
Check out all the [features of Dokan](https://wedevs.com/dokan/features/) and more advanced functions with [Dokan Pro modules](https://wedevs.com/dokan/modules/).
39+
40+
**SUPPORTED MULTI-VENDOR PLUGINS FOR MIGRATION**
41+
42+
- WCFM
43+
- WC Vendors
44+
- YITH
45+
46+
**MIGRATE IN 3 EASY STEPS**
47+
48+
1. Install and activate Dokan Migrator. Ensure Dokan Lite and Dokan Pro are activated.
49+
Note: Activating Dokan Pro is not mandatory, but if not activated, Dokan Pro data will not be transferred
50+
2. Click the Dokan Migrator banner CTA.
51+
3. Review data to be migrated from your existing plugin to Dokan Multivendor.
52+
53+
Note: Ensure you click the “Activate Dokan Vendor Dashboard” button. It will ensure the vendor frontend is seamlessly integrated while disabling your previous marketplace plugins.
54+
55+
**IMPORTANT NOTES**
56+
57+
- This migration plugin is only for migrating vendors, orders, and withdrawals.
58+
- Other marketplace admin settings, such as shipping information beyond WooCommerce settings will not migrate. You will have to set those manually.
59+
- Deleted vendor or product orders will not be migrated.
60+
- If your migration setting is interrupted during the process, it will be paused. You can pick up from where you left off with Dokan Migrator.
61+
62+
**CHECKLIST BEFORE START MIGRATION**
63+
64+
- Keep a backup of your site’s database.
65+
- Disable caching and optimize plugins.
66+
- Ensure your previous multi-vendor plugin is installed and activated, along with Dokan.
67+
- You have access to a fast internet connection.
68+
69+
**CONTACT US**
70+
71+
- Get free help from us [here](https://wedevs.com/contact/)
72+
- Report a bug or request a feature through [GitHub](https://github.com/weDevsOfficial/dokan).
73+
- Check out all functions of Dokan.
74+
75+
## Installation
76+
77+
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from the Plugins page.
78+
79+

appsero.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"exclude": [
3+
"bin",
4+
"node_modules",
5+
"src",
6+
"tests",
7+
".github",
8+
".babelrc",
9+
".browserslistrc",
10+
".editorconfig",
11+
".eslint",
12+
".gitignore",
13+
".php_cs",
14+
".prettierrc.js",
15+
".svnignore",
16+
".travis.yml",
17+
"appsero.json",
18+
"composer.json",
19+
"composer.lock",
20+
"CONTRIBUTING.md",
21+
"package-lock.json",
22+
"package.json",
23+
"phpcs.xml",
24+
"phpcs.xml.dist",
25+
"phpunit.xml",
26+
"phpunit.xml.dist",
27+
"plugin-deploy.sh",
28+
"postcss.config.js",
29+
"README.md",
30+
"tailwind.config.js",
31+
"tsconfig.json",
32+
"webpack.config.js",
33+
"yarn-error.log",
34+
"yarn.lock"
35+
]
36+
}

assets/dist/index.asset.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-i18n'), 'version' => '5d6edc644b8a51eb7bb7');

0 commit comments

Comments
 (0)