Changeset 2900323
- Timestamp:
- 04/17/2023 06:21:11 PM (3 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 5 edited
-
includes/Api/Shop2ApiConnect.php (modified) (1 diff)
-
includes/Base/EnqueueWC.php (modified) (1 diff)
-
includes/Pages/Admin.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
shop-2-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/includes/Api/Shop2ApiConnect.php
r2885872 r2900323 559 559 ); 560 560 } 561 562 public function start_sync_orders($order_id) 563 { 564 return wp_remote_get( 565 $this->shop_2_api_url . '/woocommerce/start-order-sync/' . $order_id . '/', ['headers' => $this->header] 566 ); 567 } 561 568 } -
shop-2-api/trunk/includes/Base/EnqueueWC.php
r2885872 r2900323 49 49 add_action( 'manage_shop_order_posts_custom_column', array($this, 'display_custom_metadata_column_value'), 10, 2 ); 50 50 51 } 51 // Hook into the 'woocommerce_order_status_changed' action 52 add_action( 'woocommerce_order_status_changed', array($this,'woocommerce_send_order'), 10, 3 ); 53 } 54 /** 55 * Custom function to be executed when order status changes 56 * 57 * @param int $order_id The order ID 58 * @param string $old_status The old order status 59 * @param string $new_status The new order status 60 */ 61 function woocommerce_send_order( $order_id, $old_status, $new_status ) { 62 // Perform custom actions based on the order status change 63 $shop_2_api_connection = new Shop2ApiConnect(); 64 $shop_2_api_connection->start_sync_orders($order_id); 65 } 66 52 67 // Add Bol Number in Order List 53 68 function add_custom_metadata_column_to_order_list( $columns ) { -
shop-2-api/trunk/includes/Pages/Admin.php
r2825412 r2900323 92 92 'manage_options', // Capability 93 93 'shop2api_bol_mapping', // Menu Slug 94 array($this, 'wc_to_bol_mapping_page') ,// Function94 array($this, 'wc_to_bol_mapping_page') // Function 95 95 ); 96 96 … … 101 101 'manage_options', // Capability 102 102 'shop2api_bol_koopblok_service', // Menu Slug 103 array($this, 'bol_koopblok_service') ,// Function103 array($this, 'bol_koopblok_service') // Function 104 104 ); 105 105 … … 110 110 'manage_options', // Capability 111 111 'shop2api_bol_order_service', // Menu Slug 112 array($this, 'bol_order_service') ,// Function112 array($this, 'bol_order_service') // Function 113 113 ); 114 115 /*add_submenu_page( 116 'shop2api_plugin', //Parent Slug 117 'Sync Bol Product to WooCommerce', // Page Title 118 'Sync Bol Product to WooCommerce', // Menu Title 119 'manage_options', // Capability 120 'shop2api_bol_to_wc_product', // Menu Slug 121 array($this, 'bol_to_wc_product_sync_page') // Function 122 );*/ 114 123 115 124 $hook = add_submenu_page( … … 154 163 require_once SHOP2API_PLUGIN_PATH . 'templates/wc-to-bol-mapping.php'; 155 164 } 165 166 public function bol_to_wc_product_sync_page() 167 { 168 require_once SHOP2API_PLUGIN_PATH . 'templates/bol-to-wc-product-sync.php'; 169 } 156 170 157 171 public function wc_to_bol_reports_detail_page() -
shop-2-api/trunk/readme.txt
r2885872 r2900323 3 3 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 4 4 Tags: WooCommerce, Bol 5 Stable Tag: 1.0.2 35 Stable Tag: 1.0.24 6 6 Requires at least: 5.0 7 7 Requires PHP: 7.2 8 Tested up to: 6. 1.18 Tested up to: 6.2 9 9 Author: Adriaan Coetzee 10 10 Author URI: https://shop2API.com/ … … 136 136 3) Added WooCommerce Order field to the Order Service Screen (Overwrite the E-Mail received from Bol.com) 137 137 138 = 1.0.24 = 139 1) Fixed a issue on multi-line order stock sync 140 138 141 == Instructions == 139 142 1) After installing Shop2Api, a new menu item will be available in your WordPress installation, you can continue and click on it and enter you token which was mailed to you. -
shop-2-api/trunk/shop-2-api.php
r2885872 r2900323 5 5 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 6 6 Description: The plugin Shop2Api will sync products between e-Commerce platforms. The current supported e-Commerce platforms are WooCommerce to Bol.com, and we are working on Amazon, Shopify and others. We added a koopblok service so that you can check if you lower your price can you get koopblok. 7 Version: 1.0.2 37 Version: 1.0.24 8 8 Requires at least: 5.0 9 9 Requires PHP: 7.2 … … 34 34 define('SHOP2API_PLUGIN_URL', plugin_dir_url( __FILE__ )); 35 35 define('SHOP2API_PLUGIN', plugin_basename( __FILE__ )); 36 define ('VERSION', '1.0.2 3');36 define ('VERSION', '1.0.24'); 37 37 38 38 // Register items in the project.
Note: See TracChangeset
for help on using the changeset viewer.