Changeset 3473124
- Timestamp:
- 03/02/2026 10:25:57 PM (5 days ago)
- Location:
- woo-auto-coupons/tags/3.0.44
- Files:
-
- 3 copied
-
. (copied) (copied from woo-auto-coupons/trunk)
-
readme.txt (copied) (copied from woo-auto-coupons/trunk/readme.txt) (2 diffs)
-
wac_functions.php (copied) (copied from woo-auto-coupons/trunk/wac_functions.php) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-auto-coupons/tags/3.0.44/readme.txt
r3469825 r3473124 6 6 Requires at least: 4.6 7 7 Tested up to: 6.9 8 Stable tag: 3.0.4 38 Stable tag: 3.0.44 9 9 10 10 Apply WooCommerce Coupons automatically with a fast, lightweight plugin. Set minimum product quantities, apply coupons by URL or automatically. … … 50 50 51 51 == Changelog == 52 = 3.0.44 = * Potential efficiency improvements 52 53 = 3.0.43 = * Minor php warning fixes 53 54 = 3.0.42 = * Fallback when customer declines cookies -
woo-auto-coupons/tags/3.0.44/wac_functions.php
r3469825 r3473124 7 7 Author URI: https://richardlerma.com/contact/ 8 8 Requires Plugins: woocommerce 9 Version: 3.0.4 39 Version: 3.0.44 10 10 Text Domain: woo-auto-coupons 11 11 Copyright: (c) 2019-2026 rldd.net - All Rights Reserved … … 16 16 */ 17 17 18 global $wp_version,$wac_version,$wac_pro_version,$wac_version_type; $wac_version='3.0.4 3';18 global $wp_version,$wac_version,$wac_pro_version,$wac_version_type; $wac_version='3.0.44'; 19 19 $wac_version_type='GPL'; 20 20 $wac_pro_version=get_option('wac_pro_version'); … … 592 592 if(isset($_POST['wac_reset_cache']) && intval($_POST['wac_reset_cache'])>0) wac_clear_cache(); 593 593 $cart_items=$apply_indv=$disp_email_prompt=$email_match=0; 594 $req =$req2=$coupon=$cart_email=$wac_email='';594 $reqs=$exp=$coupon=$cart_email=$wac_email=''; 595 595 $meta='_wc_%_apply'; 596 596 $cart_qty=$woocommerce->cart->get_cart_contents_count(); … … 617 617 618 618 if($trb<1) { 619 $req2.=" AND(individual='yes' OR apply IS NOT NULL OR c_email IS NOT NULL)"; 620 $req.=" AND exp=0"; 619 $reqs.=" AND(individual='yes' OR apply IS NOT NULL"; 620 if(function_exists('wac_email_prompt')&&$coupon_email>0)$reqs.=" OR c_email IS NOT NULL"; 621 $reqs.=")"; 622 $exp.=" AND IFNULL(FROM_UNIXTIME(x.meta_value),'9999-12-31')>'$now'"; 621 623 } 622 624 … … 643 645 FROM wp_posts p 644 646 LEFT JOIN wp_postmeta x ON x.post_id=p.ID AND x.meta_key='date_expires' AND LENGTH(x.meta_value)=10 AND x.meta_value REGEXP '[0-9]' 645 LEFT JOIN wp_postmeta pm ON pm.post_id=p.ID 646 AND (pm.meta_key IN ('product_ids','exclude_product_ids','product_categories','exclude_product_categories','individual_use','coupon_amount','customer_email','_wc_min_qty','_wc_max_qty','_wc_qty_ntf','_wc_min_qty_ntf','_wc_max_qty_ntf') 647 LEFT JOIN wp_postmeta pm ON pm.post_id=p.ID AND (pm.meta_key IN ('product_ids','exclude_product_ids','product_categories','exclude_product_categories','individual_use','coupon_amount','customer_email','_wc_min_qty','_wc_max_qty','_wc_qty_ntf','_wc_min_qty_ntf','_wc_max_qty_ntf') 647 648 OR pm.meta_key LIKE '_wc_%_apply') 648 649 WHERE post_type='shop_coupon' 649 650 AND post_status='publish' 651 $exp 650 652 GROUP BY p.ID 651 653 )a 652 654 WHERE 1=1 653 $req2 654 $req 655 $reqs 655 656 ORDER BY individual DESC,exp,CAST(coupon_amount AS SIGNED) DESC;"); 656 657 if(!$coupons)return;
Note: See TracChangeset
for help on using the changeset viewer.