Changeset 3146904
- Timestamp:
- 09/05/2024 10:10:18 AM (17 months ago)
- Location:
- syncee-global-dropshipping
- Files:
-
- 8 edited
- 3 copied
-
tags/1.0.19 (copied) (copied from syncee-global-dropshipping/trunk)
-
tags/1.0.19/JS/index.js (modified) (3 diffs)
-
tags/1.0.19/Syncee.php (modified) (1 diff)
-
tags/1.0.19/includes/RestForSyncee.php (modified) (5 diffs)
-
tags/1.0.19/plugin.php (copied) (copied from syncee-global-dropshipping/trunk/plugin.php) (2 diffs)
-
tags/1.0.19/readme.txt (copied) (copied from syncee-global-dropshipping/trunk/readme.txt) (2 diffs)
-
trunk/JS/index.js (modified) (3 diffs)
-
trunk/Syncee.php (modified) (1 diff)
-
trunk/includes/RestForSyncee.php (modified) (5 diffs)
-
trunk/plugin.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
syncee-global-dropshipping/tags/1.0.19/JS/index.js
r2926589 r3146904 14 14 let synceePluginSiteUrl = syncee_globals.site_url; 15 15 let syncee_access_token = syncee_globals.syncee_access_token; 16 let syncee_user_token = syncee_globals.syncee_user_token; 16 17 let dataToSynceeInstaller = syncee_globals.data_to_syncee_installer; 17 18 let syncee_img_dir_url = syncee_globals.img_dir_url; 18 19 let installerCallbackUrl = syncee_globals.syncee_installer_url + '/woocommerce_auth/callback?'; 19 20 let synceeRedirect = syncee_globals.syncee_url + '/crosslogin?token='; 21 let synceeV7Redirect = syncee_globals.syncee_installer_url + '/woocommerce_auth/login-with-token?token='; 20 22 let synceeRetailerNonce = syncee_globals.syncee_retailer_nonce; 21 23 … … 50 52 51 53 jQuery("#openSynceeButton").click(function () { 52 if (connectedToSyncee) 54 if (connectedToSyncee){ 55 if (syncee_user_token) { 56 window.open(synceeV7Redirect + syncee_user_token) 57 } 53 58 window.open(synceeRedirect + syncee_access_token) 54 else 59 } 60 else { 55 61 swal("Failed!", "Something went wrong!", "warning"); 62 } 56 63 }); 57 64 … … 108 115 synceePluginSiteUrl = result.data.site_url; 109 116 syncee_access_token = result.data.syncee_access_token; 117 syncee_user_token = result.data.syncee_user_token; 110 118 111 119 checkInstalledSyncee(); -
syncee-global-dropshipping/tags/1.0.19/Syncee.php
r2922864 r3146904 101 101 'site_url' => get_option('siteurl'), 102 102 'syncee_access_token' => get_option('syncee_access_token', false), 103 'syncee_user_token' => get_option('syncee_user_token', false), 103 104 'data_to_syncee_installer' => get_option('data_to_syncee_installer', false), 104 105 'syncee_url' => SYNCEE_URL, -
syncee-global-dropshipping/tags/1.0.19/includes/RestForSyncee.php
r2805582 r3146904 10 10 'callbackFromWoocommerce' => false, 11 11 'saveAccessTokenFromSyncee' => false, 12 'saveTokenFromSyncee' => false, 12 13 'uninstallEcom' => false, 13 14 ], … … 105 106 $uninstallData = [ 106 107 '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'), 108 110 ]; 109 111 $response = wp_safe_remote_post( … … 117 119 if ($response['response']['code'] === 200) { 118 120 delete_option('syncee_access_token'); 121 delete_option('syncee_user_token'); 119 122 wp_send_json_success('Successfully uninstalled store in Syncee!', 200); 120 123 } else { … … 131 134 132 135 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 133 144 function getDataForFrontend() 134 145 { … … 137 148 'site_url' => get_option('siteurl'), 138 149 'syncee_access_token' => get_option('syncee_access_token', false), 150 'syncee_user_token' => get_option('syncee_user_token', false), 139 151 'data_to_syncee_installer' => get_option('data_to_syncee_installer', false), 140 152 ]; -
syncee-global-dropshipping/tags/1.0.19/plugin.php
r3067317 r3146904 4 4 * Plugin Name: Syncee - Global Dropshipping 5 5 * 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.1 86 * Version: 1.0.19 7 7 * Author: Syncee 8 8 * Author URI: https://syncee.co … … 16 16 17 17 // Define constants. 18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.1 8' );18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.19' ); 19 19 20 20 //DEMO -
syncee-global-dropshipping/tags/1.0.19/readme.txt
r3067317 r3146904 2 2 Tags: products, suppliers, ecommerce, dropship, dropshipping 3 3 Requires at least: 4.6 4 Tested up to: 6. 55 Stable tag: 1.0.1 84 Tested up to: 6.6.1 5 Stable tag: 1.0.19 6 6 Requires PHP: 7.2 7 7 License: GPLv2 or later … … 77 77 = 1.0.18 = 78 78 * Tested up to 6.5 WordPress. 79 = 1.0.19 = 80 * Tested up to 6.6.1 WordPress. 79 81 80 82 == Frequently Asked Questions == -
syncee-global-dropshipping/trunk/JS/index.js
r2926589 r3146904 14 14 let synceePluginSiteUrl = syncee_globals.site_url; 15 15 let syncee_access_token = syncee_globals.syncee_access_token; 16 let syncee_user_token = syncee_globals.syncee_user_token; 16 17 let dataToSynceeInstaller = syncee_globals.data_to_syncee_installer; 17 18 let syncee_img_dir_url = syncee_globals.img_dir_url; 18 19 let installerCallbackUrl = syncee_globals.syncee_installer_url + '/woocommerce_auth/callback?'; 19 20 let synceeRedirect = syncee_globals.syncee_url + '/crosslogin?token='; 21 let synceeV7Redirect = syncee_globals.syncee_installer_url + '/woocommerce_auth/login-with-token?token='; 20 22 let synceeRetailerNonce = syncee_globals.syncee_retailer_nonce; 21 23 … … 50 52 51 53 jQuery("#openSynceeButton").click(function () { 52 if (connectedToSyncee) 54 if (connectedToSyncee){ 55 if (syncee_user_token) { 56 window.open(synceeV7Redirect + syncee_user_token) 57 } 53 58 window.open(synceeRedirect + syncee_access_token) 54 else 59 } 60 else { 55 61 swal("Failed!", "Something went wrong!", "warning"); 62 } 56 63 }); 57 64 … … 108 115 synceePluginSiteUrl = result.data.site_url; 109 116 syncee_access_token = result.data.syncee_access_token; 117 syncee_user_token = result.data.syncee_user_token; 110 118 111 119 checkInstalledSyncee(); -
syncee-global-dropshipping/trunk/Syncee.php
r2922864 r3146904 101 101 'site_url' => get_option('siteurl'), 102 102 'syncee_access_token' => get_option('syncee_access_token', false), 103 'syncee_user_token' => get_option('syncee_user_token', false), 103 104 'data_to_syncee_installer' => get_option('data_to_syncee_installer', false), 104 105 'syncee_url' => SYNCEE_URL, -
syncee-global-dropshipping/trunk/includes/RestForSyncee.php
r2805582 r3146904 10 10 'callbackFromWoocommerce' => false, 11 11 'saveAccessTokenFromSyncee' => false, 12 'saveTokenFromSyncee' => false, 12 13 'uninstallEcom' => false, 13 14 ], … … 105 106 $uninstallData = [ 106 107 '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'), 108 110 ]; 109 111 $response = wp_safe_remote_post( … … 117 119 if ($response['response']['code'] === 200) { 118 120 delete_option('syncee_access_token'); 121 delete_option('syncee_user_token'); 119 122 wp_send_json_success('Successfully uninstalled store in Syncee!', 200); 120 123 } else { … … 131 134 132 135 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 133 144 function getDataForFrontend() 134 145 { … … 137 148 'site_url' => get_option('siteurl'), 138 149 'syncee_access_token' => get_option('syncee_access_token', false), 150 'syncee_user_token' => get_option('syncee_user_token', false), 139 151 'data_to_syncee_installer' => get_option('data_to_syncee_installer', false), 140 152 ]; -
syncee-global-dropshipping/trunk/plugin.php
r3067317 r3146904 4 4 * Plugin Name: Syncee - Global Dropshipping 5 5 * 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.1 86 * Version: 1.0.19 7 7 * Author: Syncee 8 8 * Author URI: https://syncee.co … … 16 16 17 17 // Define constants. 18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.1 8' );18 define( 'SYNCEE_PLUGIN_VERSION', '1.0.19' ); 19 19 20 20 //DEMO -
syncee-global-dropshipping/trunk/readme.txt
r3067317 r3146904 2 2 Tags: products, suppliers, ecommerce, dropship, dropshipping 3 3 Requires at least: 4.6 4 Tested up to: 6. 55 Stable tag: 1.0.1 84 Tested up to: 6.6.1 5 Stable tag: 1.0.19 6 6 Requires PHP: 7.2 7 7 License: GPLv2 or later … … 77 77 = 1.0.18 = 78 78 * Tested up to 6.5 WordPress. 79 = 1.0.19 = 80 * Tested up to 6.6.1 WordPress. 79 81 80 82 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.