Changeset 2846945
- Timestamp:
- 01/11/2023 06:20:25 PM (3 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 3 edited
-
includes/Base/EnqueueWC.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
-
shop-2-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/includes/Base/EnqueueWC.php
r2825412 r2846945 92 92 'description' => __('If checked it will sync product to Bol.com', 'woocommerce'), 93 93 'value' => $shop2api_sync_to_bol ? $shop2api_sync_to_bol : 'no' 94 ) 95 ); 96 97 // Add EAN Number 98 $shop2api_ean_number = get_post_meta( $post->ID, 'shop2api_ean_number', true); 99 woocommerce_wp_text_input( 100 array( 101 'id' => 'shop2api_ean_number', 102 'wrapper_class' => 'cfwc-custom-field', 103 'label' => __('Bol EAN Number', 'woocommerce'), 104 //'description' => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ), 105 'value' => $shop2api_ean_number 94 106 ) 95 107 ); … … 162 174 $post_id = $product->id; 163 175 $this->shop2api_set_meta_for_post_id($post_id); 164 165 166 176 } 167 177 … … 198 208 } 199 209 } 210 211 $shop2api_ean_number = $_POST['shop2api_ean_number'] ?? ''; 212 update_post_meta($post_id, 'shop2api_ean_number', $shop2api_ean_number); 200 213 } 201 214 … … 209 222 $woo_checkbox = isset($_POST['shop2api_koopblok_service']) ? 'yes' : 'no'; 210 223 update_post_meta($variation_id, 'shop2api_koopblok_service', $woo_checkbox); 224 225 $shop2api_ean_number = $_POST['shop2api_ean_number'] ?? ''; 226 update_post_meta($variation_id, 'shop2api_ean_number', $shop2api_ean_number); 211 227 } 212 228 … … 246 262 ); 247 263 echo wp_kses('</div>', $this->allowed_html); 264 265 // Add EAN Number 266 $shop2api_ean_number = get_post_meta( $variation->ID, 'shop2api_ean_number', true); 267 woocommerce_wp_text_input( 268 array( 269 'id' => 'shop2api_ean_number', 270 'wrapper_class' => 'cfwc-custom-field', 271 'label' => __('Bol EAN Number', 'woocommerce'), 272 //'description' => __( 'An optional EAN Number that you can map on Shop-2-api or use for orders.', 'woocommerce' ), 273 'value' => $shop2api_ean_number ? $shop2api_ean_number : '' 274 ) 275 ); 248 276 } 249 277 -
shop-2-api/trunk/readme.txt
r2832543 r2846945 116 116 1) Small bug fix on removing previous mappings. 117 117 118 = 1.0.19 = 119 1) Added an EAN Number field to the product page 120 2) Extended the EAN Number field to variations 121 3) EAN Numbers can now be split up with a comma, so multiple EAN's can be sent over to Bol.com 122 118 123 == Instructions == 119 124 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
r2832543 r2846945 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 87 Version: 1.0.19 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 8');36 define ('VERSION', '1.0.19'); 37 37 38 38 // Register items in the project.
Note: See TracChangeset
for help on using the changeset viewer.