Changeset 2901636
- Timestamp:
- 04/20/2023 07:16:49 AM (3 years ago)
- Location:
- bulky-bulk-edit-products-for-woo/trunk
- Files:
-
- 1 added
- 5 edited
-
CHANGELOG.txt (modified) (1 diff)
-
admin/ajax.php (modified) (1 diff)
-
assets/dist/editor.js (added)
-
bulky-bulk-edit-products-for-woo.php (modified) (2 diffs)
-
includes/enqueue.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
bulky-bulk-edit-products-for-woo/trunk/CHANGELOG.txt
r2900989 r2901636 1 /**1.1.1 - 2023.04.20**/ 2 - Fix: Load product to editor 3 1 4 /**1.1.0 - 2023.04.19**/ 2 5 - Fix: Validate input data -
bulky-bulk-edit-products-for-woo/trunk/admin/ajax.php
r2749386 r2901636 429 429 430 430 public function auto_save_revision() { 431 $data = ! empty( $_POST['data'] ) ? WCBEdit_Data()->sanitize( wp_unslash( $_POST['data'] ) ) : ''; 432 $page = ! empty( $_POST['page'] ) ? absint( $_POST['page'] ) : 1; 433 $history = History::instance(); 434 $history->set( $data ); 435 $count_page = $history->count_history_pages(); 436 ob_start(); 437 $history->get_history_page( $page ); 438 $update_pages = ob_get_clean(); 439 wp_send_json_success( [ 'pages' => $count_page, 'updatePage' => $update_pages ] ); 431 wp_send_json_success( [ 'pages' => 1, 'updatePage' => '' ] ); 440 432 } 441 433 -
bulky-bulk-edit-products-for-woo/trunk/bulky-bulk-edit-products-for-woo.php
r2900989 r2901636 4 4 * Plugin URI: https://villatheme.com/extensions/bulky-woocommerce-bulk-edit-products/ 5 5 * Description: Bulky - Bulk Edit Products for WooCommerce helps easily work with products in bulk. The plugin offers sufficient simple and advanced tools to help filter various available attributes of simple and variable products such as ID, Title, Content, Excerpt, Slugs, SKU, Post date, range of regular price and sale price, Sale date, range of stock quantity, Product type, Categories.... Users can quickly search for wanted products fields and work with the product fields in bulk. The plugin promises to help users to save time and optimize manipulation when working with products in bulk. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: VillaTheme 8 8 * Author URI: https://villatheme.com … … 37 37 public $plugin_name = 'Bulky - Bulk Edit Products for WooCommerce'; 38 38 39 public $version = '1.1. 0';39 public $version = '1.1.1'; 40 40 41 41 public $conditional = ''; -
bulky-bulk-edit-products-for-woo/trunk/includes/enqueue.php
r2823303 r2901636 108 108 109 109 wp_localize_script( WCBE_CONST_F['assets_slug'] . 'editor', 'wbeParams', [ 110 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 111 'nonce' => wp_create_nonce( 'vi_wbe_nonce' ), 112 'columns' => wp_json_encode( array_values( $columns ) ), 113 'idMapping' => $id_mapping, 114 'idMappingFlip' => array_flip( $id_mapping ), 115 'attributes' => $attr_data, 116 'metaFields' => get_option( 'vi_wbe_product_meta_fields' ), 117 'settings' => WCBEdit_Data()->get_settings(), 118 'historyPages' => History::instance()->count_history_pages(), 119 'adminUrl' => admin_url(), 120 'frontendUrl' => site_url(), 121 'editType' => 'products' 110 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 111 'nonce' => wp_create_nonce( 'vi_wbe_nonce' ), 112 'columns' => wp_json_encode( array_values( $columns ) ), 113 'idMapping' => $id_mapping, 114 'idMappingFlip' => array_flip( $id_mapping ), 115 'attributes' => $attr_data, 116 'metaFields' => get_option( 'vi_wbe_product_meta_fields' ), 117 'settings' => WCBEdit_Data()->get_settings(), 118 'historyPages' => History::instance()->count_history_pages(), 119 'adminUrl' => admin_url(), 120 'frontendUrl' => site_url(), 121 'editType' => 'products', 122 'cellDependType' => $this->set_cell_depend() 122 123 ] ); 123 124 … … 166 167 } 167 168 } 169 170 public function set_cell_depend() { 171 $depend = [ 172 'simple' => [ 173 'default_attributes', 174 'grouped_products', 175 'product_url', 176 'button_text', 177 ], 178 'variable' => [ 179 'regular_price', 180 'sale_price', 181 'download_file', 182 'download_limit', 183 'download_expiry', 184 'stock_status', 185 'downloadable', 186 'sale_date_from', 187 'sale_date_to', 188 'virtual', 189 'grouped_products', 190 'product_url', 191 'button_text', 192 ], 193 'grouped' => [ 194 'regular_price', 195 'sale_price', 196 'product_url', 197 'button_text', 198 'default_attributes', 199 'cross_sells', 200 ], 201 'external' => [ 202 'grouped_products', 203 'default_attributes', 204 'cross_sells', 205 'allow_backorder', 206 'sold_individually', 207 'virtual', 208 'download_file', 209 'download_limit', 210 'download_expiry', 211 'stock_status', 212 'downloadable', 213 ], 214 'variation' => [ 215 'post_excerpt', 216 'post_title', 217 'post_date', 218 'slug', 219 'featured', 220 'product_cat', 221 'product_type', 222 'catalog_visibility', 223 'allow_reviews', 224 'sold_individually', 225 'author', 226 'tax_status', 227 'tags', 228 'upsells', 229 'cross_sells', 230 'post_name', 231 'purchase_note', 232 'gallery', 233 'password', 234 'default_attributes', 235 'grouped_products', 236 'product_url', 237 'button_text', 238 ], 239 ]; 240 241 242 return apply_filters( 'vi_wbe_set_cell_depend', $depend ); 243 } 244 168 245 } -
bulky-bulk-edit-products-for-woo/trunk/readme.txt
r2900989 r2901636 261 261 == Changelog == 262 262 263 /**1.1.1 - 2023.04.20**/ 264 - Fix: Load product to editor 265 263 266 /** 1.1.0 - 2023.04.19**/ 264 267 - Fix: Validate input data
Note: See TracChangeset
for help on using the changeset viewer.