Changeset 3273181
- Timestamp:
- 04/15/2025 08:54:26 AM (12 months ago)
- Location:
- bulk-edit-for-woocommerce/trunk
- Files:
-
- 4 edited
-
bulk-edit.php (modified) (1 diff)
-
inc/class-install.php (modified) (2 diffs)
-
inc/class-task.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulk-edit-for-woocommerce/trunk/bulk-edit.php
r2737803 r3273181 5 5 * Plugin URI: https://github.com/PressMaximum/bulk-edit-for-woocommerce 6 6 * Description: A Bulk Edit plugin for WooCommerce 7 * Version: 0.0. 67 * Version: 0.0.7 8 8 * Author: PressMaximum 9 9 * Author URI: https://github.com/PressMaximum -
bulk-edit-for-woocommerce/trunk/inc/class-install.php
r2725160 r3273181 41 41 `status` varchar(30) NOT NULL, 42 42 `date_added` datetime default CURRENT_TIMESTAMP, 43 `date_completed` datetime default NULL 43 `date_completed` datetime default NULL, 44 44 `message` text default NULL 45 45 ); … … 51 51 dbDelta( $sql ); 52 52 dbDelta( $sql2 ); 53 $wpdb->hide_errors();53 //$wpdb->hide_errors(); 54 54 $wpdb->query( $sql3 ); 55 55 update_option( 'pbe_db_version', self::$version ); -
bulk-edit-for-woocommerce/trunk/inc/class-task.php
r2725160 r3273181 355 355 356 356 if ($post_query->have_posts()) { 357 358 // var_dump( $post_query->found_posts ); die(); 359 360 357 361 while ($post_query->have_posts()) { 358 362 $post_query->the_post(); … … 1017 1021 if (is_callable([$product, 'get_' . $method])) { 1018 1022 $old_value = call_user_func_array([$product, 'get_' . $method], ['edit']); 1023 } 1024 1025 if ('sale_price' == $method) { 1026 if ($old_value <= 0) { 1027 $old_value = $product->get_regular_price(); 1028 } 1019 1029 } 1020 1030 … … 1052 1062 $task_value = floatval($task_value); 1053 1063 $new_val = floatval($old_value); 1054 $save_value += ($new_val * $task_value) / 100;1064 $save_value -= ($new_val * $task_value) / 100; 1055 1065 break; 1056 1066 … … 1141 1151 do_action('pbe_task_after_edit_post', $log, $source['field'], $save_value, $old_value); 1142 1152 } 1143 1144 1145 1146 1153 } -
bulk-edit-for-woocommerce/trunk/readme.txt
r2736200 r3273181 3 3 Tags: woocommerce, woocommerce bulk edit, bulk edit, bulk editing, bulk, edit, products editor, products, tools, products 4 4 Requires at least: 5.1.0 5 Tested up to: 6. 05 Tested up to: 6.8 6 6 Requires PHP: 5.4 7 7 Stable tag: trunk … … 105 105 == Changelog == 106 106 107 = 0.0.7 = 108 * Update tested up Wp 6.8 109 107 110 = 0.0.1 = 108 111 * Release
Note: See TracChangeset
for help on using the changeset viewer.