Plugin Directory

Changeset 3146904


Ignore:
Timestamp:
09/05/2024 10:10:18 AM (17 months ago)
Author:
akosglys
Message:

v7 login and wordpress tested up

Location:
syncee-global-dropshipping
Files:
8 edited
3 copied

Legend:

Unmodified
Added
Removed
  • syncee-global-dropshipping/tags/1.0.19/JS/index.js

    r2926589 r3146904  
    1414        let synceePluginSiteUrl = syncee_globals.site_url;
    1515        let syncee_access_token = syncee_globals.syncee_access_token;
     16        let syncee_user_token = syncee_globals.syncee_user_token;
    1617        let dataToSynceeInstaller = syncee_globals.data_to_syncee_installer;
    1718        let syncee_img_dir_url = syncee_globals.img_dir_url;
    1819        let installerCallbackUrl = syncee_globals.syncee_installer_url + '/woocommerce_auth/callback?';
    1920        let synceeRedirect = syncee_globals.syncee_url + '/crosslogin?token=';
     21        let synceeV7Redirect = syncee_globals.syncee_installer_url + '/woocommerce_auth/login-with-token?token=';
    2022        let synceeRetailerNonce = syncee_globals.syncee_retailer_nonce;
    2123
     
    5052
    5153        jQuery("#openSynceeButton").click(function () {
    52             if (connectedToSyncee)
     54            if (connectedToSyncee){
     55                if (syncee_user_token) {
     56                    window.open(synceeV7Redirect + syncee_user_token)
     57                }
    5358                window.open(synceeRedirect + syncee_access_token)
    54             else
     59            }
     60            else {
    5561                swal("Failed!", "Something went wrong!", "warning");
     62            }
    5663        });
    5764
     
    108115                    synceePluginSiteUrl = result.data.site_url;
    109116                    syncee_access_token = result.data.syncee_access_token;
     117                    syncee_user_token = result.data.syncee_user_token;
    110118
    111119                    checkInstalledSyncee();
  • syncee-global-dropshipping/tags/1.0.19/Syncee.php

    r2922864 r3146904  
    101101                'site_url' => get_option('siteurl'),
    102102                'syncee_access_token' => get_option('syncee_access_token', false),
     103                'syncee_user_token' => get_option('syncee_user_token', false),
    103104                'data_to_syncee_installer' => get_option('data_to_syncee_installer', false),
    104105                'syncee_url' => SYNCEE_URL,
  • syncee-global-dropshipping/tags/1.0.19/includes/RestForSyncee.php

    r2805582 r3146904  
    1010                'callbackFromWoocommerce' => false,
    1111                'saveAccessTokenFromSyncee' => false,
     12                'saveTokenFromSyncee' => false,
    1213                'uninstallEcom' => false,
    1314            ],
     
    105106        $uninstallData = [
    106107            'domain' => get_option('siteurl'),
    107             'access_token' => get_option('syncee_access_token')
     108            'access_token' => get_option('syncee_access_token'),
     109            'syncee_user_token' => get_option('syncee_user_token'),
    108110        ];
    109111        $response = wp_safe_remote_post(
     
    117119        if ($response['response']['code'] === 200) {
    118120            delete_option('syncee_access_token');
     121            delete_option('syncee_user_token');
    119122            wp_send_json_success('Successfully uninstalled store in Syncee!', 200);
    120123        } else {
     
    131134
    132135
     136    function saveTokenFromSyncee()
     137    {
     138        $accessToken = sanitize_text_field($_POST['token']);
     139        update_option('syncee_user_token', $accessToken);
     140        wp_send_json_success(esc_html(get_option('syncee_user_token')));
     141    }
     142
     143
    133144    function getDataForFrontend()
    134145    {
     
    137148            'site_url' => get_option('siteurl'),
    138149            'syncee_access_token' => get_option('syncee_access_token', false),
     150            'syncee_user_token' => get_option('syncee_user_token', false),
    139151            'data_to_syncee_installer' => get_option('data_to_syncee_installer', false),
    140152        ];
  • syncee-global-dropshipping/tags/1.0.19/plugin.php

    r3067317 r3146904  
    44 * Plugin Name: Syncee - Global Dropshipping
    55 * Description: Find high-quality US/CA/EU/AU products from reliable suppliers, upload them to [your WooCommerce store](https://syncee.co/woocommerce/) easily, and automate your order processes.
    6  * Version: 1.0.18
     6 * Version: 1.0.19
    77 * Author: Syncee
    88 * Author URI: https://syncee.co
     
    1616
    1717// Define constants.
    18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.18' );
     18define( 'SYNCEE_PLUGIN_VERSION', '1.0.19' );
    1919
    2020//DEMO
  • syncee-global-dropshipping/tags/1.0.19/readme.txt

    r3067317 r3146904  
    22Tags: products, suppliers, ecommerce, dropship, dropshipping
    33Requires at least: 4.6
    4 Tested up to: 6.5
    5 Stable tag: 1.0.18
     4Tested up to: 6.6.1
     5Stable tag: 1.0.19
    66Requires PHP: 7.2
    77License: GPLv2 or later
     
    7777= 1.0.18 =
    7878* Tested up to 6.5 WordPress.
     79= 1.0.19 =
     80* Tested up to 6.6.1 WordPress.
    7981
    8082== Frequently Asked Questions ==
  • syncee-global-dropshipping/trunk/JS/index.js

    r2926589 r3146904  
    1414        let synceePluginSiteUrl = syncee_globals.site_url;
    1515        let syncee_access_token = syncee_globals.syncee_access_token;
     16        let syncee_user_token = syncee_globals.syncee_user_token;
    1617        let dataToSynceeInstaller = syncee_globals.data_to_syncee_installer;
    1718        let syncee_img_dir_url = syncee_globals.img_dir_url;
    1819        let installerCallbackUrl = syncee_globals.syncee_installer_url + '/woocommerce_auth/callback?';
    1920        let synceeRedirect = syncee_globals.syncee_url + '/crosslogin?token=';
     21        let synceeV7Redirect = syncee_globals.syncee_installer_url + '/woocommerce_auth/login-with-token?token=';
    2022        let synceeRetailerNonce = syncee_globals.syncee_retailer_nonce;
    2123
     
    5052
    5153        jQuery("#openSynceeButton").click(function () {
    52             if (connectedToSyncee)
     54            if (connectedToSyncee){
     55                if (syncee_user_token) {
     56                    window.open(synceeV7Redirect + syncee_user_token)
     57                }
    5358                window.open(synceeRedirect + syncee_access_token)
    54             else
     59            }
     60            else {
    5561                swal("Failed!", "Something went wrong!", "warning");
     62            }
    5663        });
    5764
     
    108115                    synceePluginSiteUrl = result.data.site_url;
    109116                    syncee_access_token = result.data.syncee_access_token;
     117                    syncee_user_token = result.data.syncee_user_token;
    110118
    111119                    checkInstalledSyncee();
  • syncee-global-dropshipping/trunk/Syncee.php

    r2922864 r3146904  
    101101                'site_url' => get_option('siteurl'),
    102102                'syncee_access_token' => get_option('syncee_access_token', false),
     103                'syncee_user_token' => get_option('syncee_user_token', false),
    103104                'data_to_syncee_installer' => get_option('data_to_syncee_installer', false),
    104105                'syncee_url' => SYNCEE_URL,
  • syncee-global-dropshipping/trunk/includes/RestForSyncee.php

    r2805582 r3146904  
    1010                'callbackFromWoocommerce' => false,
    1111                'saveAccessTokenFromSyncee' => false,
     12                'saveTokenFromSyncee' => false,
    1213                'uninstallEcom' => false,
    1314            ],
     
    105106        $uninstallData = [
    106107            'domain' => get_option('siteurl'),
    107             'access_token' => get_option('syncee_access_token')
     108            'access_token' => get_option('syncee_access_token'),
     109            'syncee_user_token' => get_option('syncee_user_token'),
    108110        ];
    109111        $response = wp_safe_remote_post(
     
    117119        if ($response['response']['code'] === 200) {
    118120            delete_option('syncee_access_token');
     121            delete_option('syncee_user_token');
    119122            wp_send_json_success('Successfully uninstalled store in Syncee!', 200);
    120123        } else {
     
    131134
    132135
     136    function saveTokenFromSyncee()
     137    {
     138        $accessToken = sanitize_text_field($_POST['token']);
     139        update_option('syncee_user_token', $accessToken);
     140        wp_send_json_success(esc_html(get_option('syncee_user_token')));
     141    }
     142
     143
    133144    function getDataForFrontend()
    134145    {
     
    137148            'site_url' => get_option('siteurl'),
    138149            'syncee_access_token' => get_option('syncee_access_token', false),
     150            'syncee_user_token' => get_option('syncee_user_token', false),
    139151            'data_to_syncee_installer' => get_option('data_to_syncee_installer', false),
    140152        ];
  • syncee-global-dropshipping/trunk/plugin.php

    r3067317 r3146904  
    44 * Plugin Name: Syncee - Global Dropshipping
    55 * Description: Find high-quality US/CA/EU/AU products from reliable suppliers, upload them to [your WooCommerce store](https://syncee.co/woocommerce/) easily, and automate your order processes.
    6  * Version: 1.0.18
     6 * Version: 1.0.19
    77 * Author: Syncee
    88 * Author URI: https://syncee.co
     
    1616
    1717// Define constants.
    18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.18' );
     18define( 'SYNCEE_PLUGIN_VERSION', '1.0.19' );
    1919
    2020//DEMO
  • syncee-global-dropshipping/trunk/readme.txt

    r3067317 r3146904  
    22Tags: products, suppliers, ecommerce, dropship, dropshipping
    33Requires at least: 4.6
    4 Tested up to: 6.5
    5 Stable tag: 1.0.18
     4Tested up to: 6.6.1
     5Stable tag: 1.0.19
    66Requires PHP: 7.2
    77License: GPLv2 or later
     
    7777= 1.0.18 =
    7878* Tested up to 6.5 WordPress.
     79= 1.0.19 =
     80* Tested up to 6.6.1 WordPress.
    7981
    8082== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.