Changeset 3433308
- Timestamp:
- 01/06/2026 07:41:35 AM (3 months ago)
- Location:
- printess-editor/trunk
- Files:
-
- 3 edited
-
includes/js/printessWoocommerce.js (modified) (1 diff)
-
printess.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
printess-editor/trunk/includes/js/printessWoocommerce.js
r3422702 r3433308 1066 1066 } 1067 1067 if (settings.useRecordCountAsQuantity === true && typeof context.currentRecordCount !== null && context.currentRecordCount != null && context.currentRecordCount > 0) { 1068 //Add input for basket item flag that this item should not render out quantity control 1069 const hideQuantityInput = document.createElement("input"); 1070 hideQuantityInput.setAttribute("id", "printess_hide_quantity"); 1071 hideQuantityInput.setAttribute("name", "printess_hide_quantity"); 1072 hideQuantityInput.value = "true"; 1073 cartForm.appendChild(hideQuantityInput); 1068 1074 const quantiyCtrl = document.querySelector('input[name="quantity"],select[name="quantity"],input[name="qty"],select[name="qty"]'); 1069 1075 if (quantiyCtrl) { -
printess-editor/trunk/printess.php
r3422702 r3433308 5 5 * Plugin URI: https://printess.com/kb/integrations/woo-commerce/index.html 6 6 * Developer: Bastian Kröger (support@printess.com); Alexander Oser (support@printess.com) 7 * Version: 1.6.7 37 * Version: 1.6.74 8 8 * Author: Printess 9 9 * Author URI: https://printess.com … … 14 14 * Tested up to: 6.9 15 15 * 16 * Woo: 10000:92403 0dfsfhsf8429842386wdff234sfd16 * Woo: 10000:924031dfsfhsf8429842386wdff234sfd 17 17 * WC requires at least: 5.8 18 18 * WC tested up to: 10.3.6 … … 139 139 $additionalSettings = filter_input( INPUT_POST, 'printess-additional-settings', FILTER_SANITIZE_SPECIAL_CHARS ); 140 140 $item_usage = filter_input( INPUT_POST, 'printess_item_usage', FILTER_UNSAFE_RAW ); 141 $printess_hide_quantity = filter_input( INPUT_POST, 'printess_hide_quantity', FILTER_UNSAFE_RAW ); 141 142 $remove_items_from_cart = false; 142 143 $remove_option_value = get_option( 'printess_show_original_product_in_basket', true ); … … 210 211 if ( ! empty( $item_usage ) ) { 211 212 $cart_item_data['printess-item-usage'] = $item_usage; 213 } 214 215 if ( ! empty( $printess_hide_quantity ) ) { 216 $cart_item_data['printess_hide_quantity'] = $printess_hide_quantity; 212 217 } 213 218 -
printess-editor/trunk/readme.txt
r3422702 r3433308 5 5 Tested up to: 6.9 6 6 WC Tested up to: 10.3.6 7 Stable tag: 1.6.7 37 Stable tag: 1.6.74 8 8 Requires PHP: 8.1 9 9 License: GPLv2 or later … … 371 371 = 1.6.73 = 372 372 - Added support for using data table record count as product quantity (quantity selector must be hidden [not removed!] from product page and hidden / removed from shopping basket) 373 374 = 1.6.74 = 375 - Added additional basket item property printess_hide_quantity for products that have use record count as quantity activated.
Note: See TracChangeset
for help on using the changeset viewer.