Changeset 3417630
- Timestamp:
- 12/11/2025 05:28:35 PM (3 months ago)
- Location:
- view-carts/tags/1.0.5
- Files:
-
- 3 copied
-
. (copied) (copied from view-carts/trunk)
-
readme.txt (copied) (copied from view-carts/trunk/readme.txt) (2 diffs)
-
vc_functions.php (copied) (copied from view-carts/trunk/vc_functions.php) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
view-carts/tags/1.0.5/readme.txt
r3405472 r3417630 5 5 License URI: http://www.gnu.org/licenses/gpl-3.0.html 6 6 Requires at least: 6.6 7 Tested up to: 6. 88 Stable tag: 1.0. 37 Tested up to: 6.9 8 Stable tag: 1.0.5 9 9 10 10 A simple, fast, lightweight admin tool to share or recreate recent WooCommerce carts. Label carts, adjust pricing, and manage coupons. … … 37 37 38 38 == Changelog == 39 = 1.0.5 = * Only display unexpired coupons in admin dropdown 39 40 = 1.0.3 = * Public release 40 41 = 1.0.2 = * Updates for Review ID: R view-carts/rermis/14Nov25/T2 20Nov25/3.6.1 -
view-carts/tags/1.0.5/vc_functions.php
r3405472 r3417630 9 9 Author URI: https://richardlerma.com/contact/ 10 10 Requires Plugins: woocommerce 11 Version: 1.0. 311 Version: 1.0.5 12 12 Text Domain: view-carts 13 13 Copyright: (c) 2019-2025 rldd.net - All Rights Reserved … … 15 15 License URI: http://www.gnu.org/licenses/gpl-3.0.html 16 16 WC requires at least: 9.0 17 WC tested up to: 10. 217 WC tested up to: 10.3 18 18 */ 19 19 … … 124 124 <h1 style='margin:1em 0'>Recent Carts</h1>"; 125 125 if(!$q){echo "<p>No recent carts.</p></div>";return;} 126 $coupons=[];$posts=get_posts(['post_type'=>'shop_coupon','post_status'=>'publish','numberposts'=>1000,'orderby'=>'title','order'=>'ASC']);foreach($posts as$p)$coupons[]=$p->post_title;if($coupons)echo"<div id='wcvsc-cdata' data-coupons='".esc_attr(implode(',',$coupons))."'></div>"; 126 $coupons=[]; 127 $posts=get_posts(['post_type'=>'shop_coupon','post_status'=>'publish','numberposts'=>1000,'orderby'=>'title','order'=>'ASC']); 128 if($posts)foreach($posts as$p){ 129 $exp=get_post_meta($p->ID,'date_expires',true);if($exp===''){ $d=get_post_meta($p->ID,'expiry_date',true);$exp=$d?strtotime($d):'';} 130 if($exp===''||$exp===false||$exp==0||$exp>=time())$coupons[]=$p->post_title; 131 } 132 if($coupons)echo"<div id='wcvsc-cdata' data-coupons='".esc_attr(implode(',',$coupons))."'></div>"; 133 127 134 128 135 echo "<table class='widefat striped'><thead><tr><th>Date</th><th>Identifiers</th><th>Items</th><th style='text-align:center'>Action</th></tr></thead><tbody>";
Note: See TracChangeset
for help on using the changeset viewer.