Changeset 3024034
- Timestamp:
- 01/19/2024 11:20:24 AM (2 years ago)
- Location:
- shop-2-api/trunk
- Files:
-
- 5 edited
-
includes/Api/Shop2ApiConnect.php (modified) (1 diff)
-
includes/Pages/Admin.php (modified) (2 diffs)
-
includes/Tables/Wc2BolProductSettings.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
shop-2-api.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shop-2-api/trunk/includes/Api/Shop2ApiConnect.php
r3007787 r3024034 22 22 $this->header = ['Authorization' => 'Token ' . $token]; 23 23 if (get_site_url() == 'http://localhost:8000' || get_site_url() == 'http://127.0.0.1:8000') { 24 $this->header = array_merge($this->header, ['authurl' => "https:// testshop.shop2api.com"]);24 $this->header = array_merge($this->header, ['authurl' => "https://shop2api.com/testshop"]); 25 25 } else { 26 26 $this->header = array_merge($this->header, ['authurl' => get_site_url()]); -
shop-2-api/trunk/includes/Pages/Admin.php
r3007787 r3024034 261 261 $ListTable = new Shop2Api_Wc2BolProductSettings(); 262 262 echo wp_kses('<div class="wrap">', $this->allowed_html); 263 echo wp_kses('<form method="post">', $this->allowed_html);263 // echo wp_kses('<form method="post">', $this->allowed_html); 264 264 // Common Header to be included everywhere and js should also be in the common.js 265 265 $shop2api_header = "WooCommerce To Bol Category Mapping"; … … 276 276 $ListTable->prepare_items(); 277 277 // Render Table 278 echo wp_kses('<form method="POST">', $this->allowed_html); 279 $ListTable->search_box(__('Search'), 'search-box-id'); 280 echo wp_kses('</form>', $this->allowed_html); 278 281 $ListTable->display(); 279 282 echo wp_kses('<button id="category-save" class="shop-2-api-connect-save">Save</button>', $this->allowed_html); 280 echo wp_kses('</form">', $this->allowed_html);283 // echo wp_kses('</form">', $this->allowed_html); 281 284 echo wp_kses('</div>', $this->allowed_html); 282 285 echo wp_kses('</div>', $this->allowed_html); -
shop-2-api/trunk/includes/Tables/Wc2BolProductSettings.php
r3007906 r3024034 73 73 { 74 74 $search_val = ''; 75 if (!empty($_ GET['s'])) {76 $search_val = sanitize_title_for_query(esc_attr($_ GET['s']));75 if (!empty($_POST['s'])) { 76 $search_val = sanitize_title_for_query(esc_attr($_POST['s'])); 77 77 } 78 78 … … 210 210 211 211 // Overwrite table nav to add the search bar. 212 function display_tablenav($which): void 213 { 214 echo(wp_kses('<form action="" method="GET">', $this->allowed_html)); 215 if ('top' === $which) { 216 $this->search_box(__('Search'), 'search-box-id'); 217 } 218 parent::display_tablenav($which); 219 echo(wp_kses('<input type="hidden" name="page" value="' . esc_attr($_REQUEST['page']) . '"/>', $this->allowed_html)); 220 echo(wp_kses('</form>', $this->allowed_html)); 221 } 212 // function display_tablenav($which): void 213 // { 214 // echo(wp_kses('<form action="" method="GET">', $this->allowed_html)); 215 // if ('top' === $which) { 216 // echo('<form>'); 217 // echo wp_kses('<form">', $this->allowed_html); 218 // $this->search_box(__('Search'), 'search-box-id'); 219 // echo('<div>qwe</div>'); 220 // echo('</form>'); 221 // } 222 // parent::display_tablenav($which); 223 // echo(wp_kses('<input type="hidden" name="page" value="' . esc_attr($_REQUEST['page']) . '"/>', $this->allowed_html)); 224 // 225 // echo(wp_kses('</form>', $this->allowed_html)); 226 // } 222 227 223 228 private function get_saved_map_data_by_bol_slug($bol_cat_slug) -
shop-2-api/trunk/readme.txt
r3017057 r3024034 166 166 3) Remove Ean number on main product 167 167 4) Fix issue on empty EAN Number 168 5) Fix issue on category search 168 169 169 170 -
shop-2-api/trunk/shop-2-api.php
r3017057 r3024034 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.29. 47 Version: 1.0.29.5 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.29. 4');36 define ('VERSION', '1.0.29.5'); 37 37 38 38 // Register items in the project.
Note: See TracChangeset
for help on using the changeset viewer.