Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon committed Dec 14, 2023
2 parents fb8392c + 4e83cd2 commit 4bdc5ab
Show file tree
Hide file tree
Showing 51 changed files with 15,869 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on: pull_request

name: Inspections
jobs:
runPHPCSInspection:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.3'
coverage: none
tools: cs2pr, composer:v1

- name: Get composer cache directory
id: composercache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composercache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-suggest --no-progress

- id: changes
run: |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename' | xargs)
echo "::set-output name=files::$FILES"
- name: Detect coding standard violations
run: vendor/bin/phpcs ${{ steps.changes.outputs.files }} -q --report=checkstyle | cs2pr --graceful-warnings
33 changes: 33 additions & 0 deletions .github/workflows/sample-deploy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: cs2pr, composer:v2
- name: Build
run: |
composer install --no-dev
composer dump-autoload -o
yarn install
yarn build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: dokan-vendor-dashboard
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
composer.lock
vendor
node_modules
.DS_Store
package-lock.json
yarn-error.log
.vscode
build
26 changes: 26 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

128 changes: 128 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

require_once __DIR__ . '/vendor/tareq1988/wp-php-cs-fixer/loader.php';

$finder = PhpCsFixer\Finder::create()
->exclude( 'node_modules' )
->exclude( 'vendors' )
->exclude( 'assets' )
->exclude( 'languages' )
->exclude( 'src' )
->exclude( 'bin' )
->in( __DIR__ )
;

$config = PhpCsFixer\Config::create()
->registerCustomFixers( [
new WeDevs\Fixer\SpaceInsideParenthesisFixer(),
new WeDevs\Fixer\BlankLineAfterClassOpeningFixer(),
] )
->setRiskyAllowed( true )
->setUsingCache( false )
->setRules( WeDevs\Fixer\Fixer::rules() )
->setFinder( $finder )
;

return $config;
80 changes: 79 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,79 @@
# dokan-migrator
# Dokan Migrator
**Contributors:** [tareq1988](https://profiles.wordpress.org/tareq1988/), [wedevs](https://profiles.wordpress.org/wedevs/), [nizamuddinbabu](https://profiles.wordpress.org/nizamuddinbabu/)
**Donate Link:** http://tareq.co/donate/
**Tags:** dokan, dokan migrator, multivendor marketplace
**Requires at least:** 5.8
**Tested up to:** 6.4.2
**WC tested up to:** 8.4.0
**Requires PHP:** 7.3
**Stable tag:** 1.1.0
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Migrate your marketplace from WCFM, WC Vendors and YITh to Dokan with one click. Secure data transfer within minutes.

## Description

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.

**DOKAN MIGRATOR PLUGIN FOR WORDPRESS**

- LEARN MORE : Dokan Migrator works.

- DOCUMENTATION : Detailed Guide.

- COMPATIBILITY: WooCommerce, Dokan Lite & Dokan Pro, WCFM, WC Vendors, YITH.

**EASY TO USE, SIMPLE TO FOLLOW**

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.


**MIGRATING TO AND USING DOKAN**

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.

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.

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/).

**SUPPORTED MULTI-VENDOR PLUGINS FOR MIGRATION**

- WCFM
- WC Vendors
- YITH

**MIGRATE IN 3 EASY STEPS**

1. Install and activate Dokan Migrator. Ensure Dokan Lite and Dokan Pro are activated.
Note: Activating Dokan Pro is not mandatory, but if not activated, Dokan Pro data will not be transferred
2. Click the Dokan Migrator banner CTA.
3. Review data to be migrated from your existing plugin to Dokan Multivendor.

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.

**IMPORTANT NOTES**

- This migration plugin is only for migrating vendors, orders, and withdrawals.
- Other marketplace admin settings, such as shipping information beyond WooCommerce settings will not migrate. You will have to set those manually.
- Deleted vendor or product orders will not be migrated.
- 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.

**CHECKLIST BEFORE START MIGRATION**

- Keep a backup of your site’s database.
- Disable caching and optimize plugins.
- Ensure your previous multi-vendor plugin is installed and activated, along with Dokan.
- You have access to a fast internet connection.

**CONTACT US**

- Get free help from us [here](https://wedevs.com/contact/)
- Report a bug or request a feature through [GitHub](https://github.com/weDevsOfficial/dokan).
- Check out all functions of Dokan.

## Installation

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.


36 changes: 36 additions & 0 deletions appsero.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"exclude": [
"bin",
"node_modules",
"src",
"tests",
".github",
".babelrc",
".browserslistrc",
".editorconfig",
".eslint",
".gitignore",
".php_cs",
".prettierrc.js",
".svnignore",
".travis.yml",
"appsero.json",
"composer.json",
"composer.lock",
"CONTRIBUTING.md",
"package-lock.json",
"package.json",
"phpcs.xml",
"phpcs.xml.dist",
"phpunit.xml",
"phpunit.xml.dist",
"plugin-deploy.sh",
"postcss.config.js",
"README.md",
"tailwind.config.js",
"tsconfig.json",
"webpack.config.js",
"yarn-error.log",
"yarn.lock"
]
}
1 change: 1 addition & 0 deletions assets/dist/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-element', 'wp-i18n'), 'version' => '5d6edc644b8a51eb7bb7');
2 changes: 2 additions & 0 deletions assets/dist/index.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 4bdc5ab

Please sign in to comment.