Changeset 2825412
- Timestamp:
- 11/28/2022 06:28:12 PM (3 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 5 edited
-
assets/bol2api_category_mapping_scripts.js (modified) (1 diff)
-
assets/bol2api_mapping_scripts.js (modified) (3 diffs)
-
includes/Api/Shop2ApiConnect.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
shop-2-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/assets/bol2api_category_mapping_scripts.js
r2778437 r2825412 146 146 "value": "sku" 147 147 }, 148 "Name": {149 "type": "Product",150 "value": "name"151 },152 "Description": {153 "type": "Product",154 "value": "description"155 },148 // "Name": { 149 // "type": "Product", 150 // "value": "name" 151 // }, 152 // "Description": { 153 // "type": "Product", 154 // "value": "description" 155 // }, 156 156 "stock.amount": { 157 "type": " Product",158 "value": " stock_quantity"157 "type": "OwnValue", 158 "value": "0" 159 159 }, 160 160 "condition.name": { 161 161 "type": "OwnValue", 162 162 "value": "NEW" 163 },164 "Cover Image URL": {165 "type": "Product",166 "value": "images|src"167 163 }, 168 164 "fulfilment.method": { -
shop-2-api/trunk/assets/bol2api_mapping_scripts.js
r2795752 r2825412 161 161 obj = woocommerce_option_properties[item]; 162 162 163 if (obj.type =="array") {163 if (obj.type === "array") { 164 164 if (item === "images") { 165 165 for (const sub_item in obj.items.properties) { 166 if (sub_item !== 'src') { 167 continue; 168 } 169 166 170 let value_text = item + '|' + sub_item; 167 171 let dropdown_values = {"value": value_text, "text": value_text} … … 170 174 dropdown_values['selected'] = 'selected'; 171 175 } 172 176 173 177 $('<option />', dropdown_values).appendTo(_select); 178 179 for (let i = 1; i <= 20; i++) { 180 let value_text = item + '|' + sub_item + '|' + String(i); 181 let dropdown_values = {"value": value_text, "text": value_text} 182 183 if (data['saved_value'] === value_text) { 184 dropdown_values['selected'] = 'selected'; 185 } 186 187 $('<option />', dropdown_values).appendTo(_select); 188 } 174 189 } 175 190 } … … 404 419 unit_value.name = value.name + ' (Unit)'; 405 420 unit_value.id = value.id + '_unit'; 406 debugger;407 421 add_product_mapping_row(unit_value,true); 408 422 } -
shop-2-api/trunk/includes/Api/Shop2ApiConnect.php
r2781839 r2825412 21 21 $this->shop_2_api_url = getenv('SHOP_2_API_URL', true) ? getenv('SHOP_2_API_URL') : "https://www.shop2apidevelopment.com"; 22 22 $this->header = ['Authorization' => 'Token ' . $token]; 23 if (get_site_url() == 'http://localhost:8000' ) {23 if (get_site_url() == 'http://localhost:8000' || get_site_url() == 'http://127.0.0.1:8000') { 24 24 $this->header = array_merge($this->header, ['authurl' => "https://pepperwall.nl/bol"]); 25 25 } else { -
shop-2-api/trunk/readme.txt
r2795752 r2825412 3 3 Plugin URI: https://wordpress.org/plugins/shop-2-api/ 4 4 Tags: WooCommerce, Bol 5 Stable Tag: 1.0.1 65 Stable Tag: 1.0.17 6 6 Requires at least: 5.0 7 7 Requires PHP: 7.2 … … 110 110 2) Add icon if the value provided should be an image. 111 111 112 = 1.0.17 = 113 1) Updated front end to add Other Images to be send to Bol.com 114 112 115 == Instructions == 113 116 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
r2795752 r2825412 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.1 67 Version: 1.0.17 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.1 6');36 define ('VERSION', '1.0.17'); 37 37 38 38 // Register items in the project.
Note: See TracChangeset
for help on using the changeset viewer.