Changeset 3464833
- Timestamp:
- 02/19/2026 08:16:21 AM (2 days ago)
- Location:
- priceboard-lite
- Files:
-
- 16 added
- 2 edited
-
tags/1.4.2 (added)
-
tags/1.4.2/languages (added)
-
tags/1.4.2/languages/priceboard-lite-cs_CZ.mo (added)
-
tags/1.4.2/languages/priceboard-lite-cs_CZ.po (added)
-
tags/1.4.2/languages/priceboard-lite-de_DE.mo (added)
-
tags/1.4.2/languages/priceboard-lite-de_DE.po (added)
-
tags/1.4.2/languages/priceboard-lite-hr.mo (added)
-
tags/1.4.2/languages/priceboard-lite-hr.po (added)
-
tags/1.4.2/languages/priceboard-lite-hu_HU.mo (added)
-
tags/1.4.2/languages/priceboard-lite-hu_HU.po (added)
-
tags/1.4.2/languages/priceboard-lite-pl_PL.mo (added)
-
tags/1.4.2/languages/priceboard-lite-pl_PL.po (added)
-
tags/1.4.2/languages/priceboard-lite-ro_RO.mo (added)
-
tags/1.4.2/languages/priceboard-lite-ro_RO.po (added)
-
tags/1.4.2/priceboard-lite.php (added)
-
tags/1.4.2/readme.txt (added)
-
trunk/priceboard-lite.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
priceboard-lite/trunk/priceboard-lite.php
r3456301 r3464833 4 4 * Plugin URI: https://priceboard.hu/plugin-info/ 5 5 * Description: Fast WooCommerce price editor for Simple products with live search. 6 * Version: 1.4. 16 * Version: 1.4.2 7 7 * Author: PriceBoard 8 8 * Author URI: https://priceboard.hu … … 289 289 } 290 290 291 public function save_prices() {292 // Jogosultság ellenőrzése291 public function save_prices() { 292 global $wpdb; 293 293 if (!current_user_can('manage_woocommerce')) return; 294 295 // Biztonsági nonce ellenőrzése296 294 check_admin_referer('priceboard_save', 'priceboard_nonce'); 297 295 298 // Ellenőrizzük, hogy érkeztek-e adatok299 296 if (!isset($_POST['prices']) || !is_array($_POST['prices'])) return; 300 297 301 298 foreach ($_POST['prices'] as $id => $data) { 302 $product = wc_get_product(intval($id)); 303 299 $id = intval($id); 304 300 // Csak egyszerű termékeket mentünk a Lite verzióban 305 if ($product && $product->get_type() === 'simple') {306 307 // Árak tisztítása (szóközök eltávolítása, tizedesvessző javítása) 308 $reg = sanitize_text_field(str_replace([' ', ','], ['', '.'], $data['regular']));309 $sale = sanitize_text_field(str_replace([' ', ','], ['', '.'], $data['sale']));310 311 $product->set_regular_price($reg); 312 $product->set_sale_price($sale);313 314 // --- ÚJ: Akciós dátumok mentése ---315 // Ha üres a dátum, a WooCommerce törli a korábbi korlátozást316 $product->set_date_on_sale_from(sanitize_text_field($data['date_from']));317 $ product->set_date_on_sale_to(sanitize_text_field($data['date_to']));318 319 // Adatok véglegesítése320 $ product->save();301 $post_type = $wpdb->get_var($wpdb->prepare("SELECT post_type FROM {$wpdb->posts} WHERE ID = %d", $id)); 302 if ($post_type !== 'product') continue; 303 304 // Árak tisztítása 305 $reg = sanitize_text_field(str_replace([' ', ','], ['', '.'], $data['regular'])); 306 $sale = sanitize_text_field(str_replace([' ', ','], ['', '.'], $data['sale'])); 307 308 // 1. Alapár és Akciós ár SQL frissítése 309 update_post_meta($id, '_regular_price', $reg); 310 311 if ($sale !== '') { 312 update_post_meta($id, '_sale_price', $sale); 313 $final_price = (floatval($sale) < floatval($reg)) ? $sale : $reg; 314 } else { 315 delete_post_meta($id, '_sale_price'); 316 $final_price = $reg; 321 317 } 318 update_post_meta($id, '_price', $final_price); 319 320 // 2. Akciós dátumok mentése (update_post_meta-val az integritásért) 321 update_post_meta($id, '_sale_price_dates_from', sanitize_text_field($data['date_from'])); 322 update_post_meta($id, '_sale_price_dates_to', sanitize_text_field($data['date_to'])); 323 324 // 3. Cache törlése termékenként 325 wc_delete_product_transients($id); 322 326 } 323 327 324 // Visszairányítás siker üzenettel325 328 wp_redirect(admin_url('admin.php?page='.self::SLUG.'&saved=1')); 326 329 exit; -
priceboard-lite/trunk/readme.txt
r3456301 r3464833 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.4. 17 Stable tag: 1.4.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 11 == Description == (English) 12 Built for Speed:" PriceBoard Lite now features an enterprise-grade SQL engine. While other plugins struggle with 100+ products, PriceBoard handles hundreds of price updates in seconds without breaking a sweat or slowing down your server. 12 13 PriceBoard Lite is the fastest bulk pricing dashboard for WooCommerce. Stop wasting time opening products one by one! Manage simple product prices, sale prices, and promotional schedules instantly from a single, intuitive interface. 13 14 The plugin features a high-performance Live Search that lets you find products by SKU or name in milliseconds. With the new Bulk Action Panel, you can apply percentage or fixed price changes to multiple products at once, including support for decimal values and scheduled sales. … … 65 66 == Changelog == 66 67 67 = 1.4.0 = 68 = 1.4.2 = 69 70 * NEW: High-Performance SQL Engine – Saving hundreds of prices is now near-instant, bypassing heavy WooCommerce background tasks. 71 * NEW: Lightweight Data Engine – Optimized product loading ensures the dashboard remains responsive even with 500+ products. 72 * FIX: Real-time Price Sync – Added automatic cache flushing so new prices appear on your shop frontend immediately[cite: 34]. 73 * FIX: Memory Optimization – Drastically reduced server RAM usage during bulk edits. 74 75 = 1.4.1 = 68 76 69 77 NEW: Bulk Edit Target Selection - Apply changes to Regular Price, Sale Price, or Both.
Note: See TracChangeset
for help on using the changeset viewer.