Changeset 2691185
- Timestamp:
- 03/09/2022 03:46:51 AM (4 years ago)
- Location:
- woo-min-max-quantity-step-control-single
- Files:
-
- 37 added
- 1 deleted
- 3 edited
-
tags/2.3 (added)
-
tags/2.3/admin (added)
-
tags/2.3/admin/add_options_admin.php (added)
-
tags/2.3/admin/functions.php (added)
-
tags/2.3/admin/includes (added)
-
tags/2.3/admin/includes/terms_condition.php (added)
-
tags/2.3/admin/plugin_setting_link.php (added)
-
tags/2.3/admin/product_panel.php (added)
-
tags/2.3/admin/set_menu_and_fac.php (added)
-
tags/2.3/assets (added)
-
tags/2.3/assets/css (added)
-
tags/2.3/assets/css/admin-common.css (added)
-
tags/2.3/assets/css/admin.css (added)
-
tags/2.3/assets/css/select2.css (added)
-
tags/2.3/assets/css/select2.min.css (added)
-
tags/2.3/assets/css/wcmmq-front.css (added)
-
tags/2.3/assets/images (added)
-
tags/2.3/assets/images/features (added)
-
tags/2.3/assets/images/features/cart-page-notices-settings.png (added)
-
tags/2.3/assets/images/features/min-max-on-cart-page.png (added)
-
tags/2.3/assets/images/features/quantity-prefix-sufix.jpg (added)
-
tags/2.3/assets/images/features/setting-bottom.jpg (added)
-
tags/2.3/assets/images/icon-color.png (added)
-
tags/2.3/assets/images/icon.png (added)
-
tags/2.3/assets/images/logo-color.png (added)
-
tags/2.3/assets/images/logo.png (added)
-
tags/2.3/assets/js (added)
-
tags/2.3/assets/js/admin.js (added)
-
tags/2.3/assets/js/select2.full.js (added)
-
tags/2.3/assets/js/select2.full.min.js (added)
-
tags/2.3/assets/js/select2.js (added)
-
tags/2.3/includes (added)
-
tags/2.3/includes/enqueue.php (added)
-
tags/2.3/includes/set_max_min_quantity.php (added)
-
tags/2.3/languages (added)
-
tags/2.3/readme.txt (added)
-
tags/2.3/wcmmq.php (added)
-
trunk/includes/set_max_min_quantity.php (modified) (2 diffs)
-
trunk/languages (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wcmmq.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-min-max-quantity-step-control-single/trunk/includes/set_max_min_quantity.php
r2683676 r2691185 475 475 */ 476 476 function wcmmq_s_set_min_for_single( $quantity, $product ){ 477 $min_quantity = get_post_meta( $product->get_id(), WC_MMQ_PREFIX . ' s_min_quantity', true);478 $min_quantity = !empty( $min_quantity ) ? $min_quantity : WC_MMQ::getOption( WC_MMQ_PREFIX . ' s_min_quantity' ); //Regenerate from Default477 $min_quantity = get_post_meta( $product->get_id(), WC_MMQ_PREFIX . 'min_quantity', true); 478 $min_quantity = !empty( $min_quantity ) ? $min_quantity : WC_MMQ::getOption( WC_MMQ_PREFIX . 'min_quantity' ); //Regenerate from Default 479 479 if( !$product->is_sold_individually() && ( !empty( $min_quantity ) || !$min_quantity ) && is_numeric($min_quantity) ){ 480 480 return $min_quantity; … … 496 496 return 0.01; 497 497 } 498 add_filter('woocommerce_quantity_input_step','wcmmq_step_set_for_order_status_update',888,1); 498 //add_filter('woocommerce_quantity_input_step','wcmmq_step_set_for_order_status_update',888,1); 499 500 function wcmmq_step_set_step_quantity($quantity, $product){ 501 $product_step = get_post_meta( $product->get_id(), WC_MMQ_PREFIX . 'product_step', true); 502 $product_step = !empty( $product_step ) ? $product_step : WC_MMQ::getOption( WC_MMQ_PREFIX . 'product_step' ); //Regenerate from Default 503 if( !$product->is_sold_individually() && ( !empty( $product_step ) || !$product_step ) && is_numeric($product_step) ){ 504 return $product_step; 505 } 506 return 1; 507 } 508 add_filter('woocommerce_quantity_input_step','wcmmq_step_set_step_quantity', 10, 2); 499 509 500 510 /** -
woo-min-max-quantity-step-control-single/trunk/readme.txt
r2683774 r2691185 6 6 Tested up to: 5.9 7 7 Requires PHP: 5.6 8 Stable tag: 2. 38 Stable tag: 2.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 87 87 == Changelog == 88 88 89 = 2.4 = 90 * Fixed: min quantity on mini cart and other plugins 91 * Fixed: step quantity on mini cart and other plugins 92 * Bug Fixed 93 89 94 = 2.3 = 90 95 * Fixed: min quantity should message error fixed. -
woo-min-max-quantity-step-control-single/trunk/wcmmq.php
r2683676 r2691185 2 2 /** 3 3 * Plugin Name: Min Max Quantity & Step Control for WooCommerce 4 * Plugin URI: https:// min-max-quantity.codeastrology.com/4 * Plugin URI: https://codeastrology.com/min-max-quantity/ 5 5 * Description: Min Max Quantity & Step Control plugin offers to display specific products with minimum, maximum quantity. As well as by this plugin you will be able to set the increment or decrement step as much as you want. In a word: Minimum Quantity, Maximum Quantity and Step can be controlled. for any issue: codersaiful@gmail.com 6 6 * Author: CodeAstrology … … 8 8 * Tags: WooCommerce, minimum quantity, maximum quantity, woocommrce quantity, customize woocommerce quantity, customize wc quantity, wc qt, max qt, min qt, maximum qt, minimum qt 9 9 * 10 * Version: 2. 310 * Version: 2.4 11 11 * Requires at least: 4.0.0 12 12 * Tested up to: 5.9.1 … … 27 27 28 28 define('WC_MMQ__FILE__', __FILE__); 29 define('WC_MMQ_VERSION', '2. 3.0');29 define('WC_MMQ_VERSION', '2.4.1'); 30 30 define('WC_MMQ_PATH', plugin_dir_path(WC_MMQ__FILE__)); 31 31 define('WC_MMQ_URL', plugins_url(DIRECTORY_SEPARATOR, WC_MMQ__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.