Changeset 3382502
- Timestamp:
- 10/22/2025 10:11:21 AM (5 months ago)
- Location:
- lean-cart-share-and-save
- Files:
-
- 2 added
- 8 edited
- 1 copied
-
tags/1.0.4 (copied) (copied from lean-cart-share-and-save/trunk)
-
tags/1.0.4/includes/class-menu.php (added)
-
tags/1.0.4/includes/class-settings-page.php (modified) (6 diffs)
-
tags/1.0.4/includes/class-url-handler.php (modified) (1 diff)
-
tags/1.0.4/lean-cart-share-and-save.php (modified) (3 diffs)
-
tags/1.0.4/readme.txt (modified) (4 diffs)
-
trunk/includes/class-menu.php (added)
-
trunk/includes/class-settings-page.php (modified) (6 diffs)
-
trunk/includes/class-url-handler.php (modified) (1 diff)
-
trunk/lean-cart-share-and-save.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lean-cart-share-and-save/tags/1.0.4/includes/class-settings-page.php
r3377797 r3382502 1 1 <?php 2 /** 3 * Settings page management 4 */ 5 2 6 namespace Lean_CSNS; 3 7 … … 8 12 9 13 /** 10 * Admin settings page management 14 * Settings Page Class 15 * 16 * Handles settings registration, rendering, and sanitization 11 17 */ 12 class Admin{18 class Settings_Page { 13 19 14 20 /** 15 21 * Singleton instance 16 22 * 17 * @var Admin23 * @var Settings_Page 18 24 */ 19 25 private static $instance = null; … … 22 28 * Get singleton instance 23 29 * 24 * @return Admin30 * @return Settings_Page 25 31 */ 26 32 public static function get_instance() { … … 39 45 40 46 /** 41 * Initialize adminfunctionality47 * Initialize settings functionality 42 48 */ 43 49 private function init() { 44 add_action('admin_menu', [$this, 'add_admin_menu']);45 50 add_action('admin_init', [$this, 'register_settings']); 46 }47 48 /**49 * Add admin menu page50 */51 public function add_admin_menu() {52 add_menu_page(53 __('Cart Share & Save', 'lean-cart-share-and-save'),54 __('Cart Share & Save', 'lean-cart-share-and-save'),55 'manage_options',56 'lean-csns-settings',57 [$this, 'settings_page'],58 'dashicons-share',59 5660 );61 51 } 62 52 … … 289 279 290 280 /** 291 * Displaysettings page292 */ 293 public function settings_page() {281 * Render settings page 282 */ 283 public function render_settings_page() { 294 284 ?> 295 285 <div class="wrap"> … … 308 298 309 299 // Initialize singleton instance 310 Admin::get_instance();300 Settings_Page::get_instance(); -
lean-cart-share-and-save/tags/1.0.4/includes/class-url-handler.php
r3367807 r3382502 76 76 */ 77 77 public function handle_share_request() { 78 // Check both lean_csns_share and share parameters for backwards compatibility 78 79 $token = get_query_var('lean_csns_share'); 80 81 // Fallback to 'share' parameter if lean_csns_share is not set 82 if (empty($token) && isset($_GET['share'])) { 83 $token = sanitize_text_field(wp_unslash($_GET['share'])); 84 } 79 85 80 86 if ($token) { -
lean-cart-share-and-save/tags/1.0.4/lean-cart-share-and-save.php
r3377797 r3382502 2 2 /** 3 3 * Plugin Name: Lean Cart Share and Save for WooCommerce 4 * Plugin URI: 4 * Plugin URI: https://leanplugins.com/ 5 5 * Description: Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: LeanPlugins 8 8 * Author URI: https://leanplugins.com/ … … 20 20 21 21 // Define plugin constants 22 define('LEAN_CSNS_VERSION', '1.0. 3');22 define('LEAN_CSNS_VERSION', '1.0.4'); 23 23 define('LEAN_CSNS_DB_VERSION', '1.0.0'); 24 24 define('LEAN_CSNS_PL_FILE', __FILE__); … … 55 55 'class-cart-handler.php', 56 56 'class-url-handler.php', 57 'class-menu.php', 57 58 'class-settings-page.php', 58 59 'class-ajax-actions.php', -
lean-cart-share-and-save/tags/1.0.4/readme.txt
r3381927 r3382502 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 ** Stop losing sales to abandoned carts and missed opportunities.** Lean Cart Share and Save for Later transforms how customers interact with your WooCommerce store by letting them share carts instantly and save themfor later purchase.15 **Give customers the power to save and share their shopping carts.** Lean Cart Share and Save makes shopping flexible, anyone can generate shareable cart links in one click, and logged-in users can save unlimited carts with custom names for later purchase. 16 16 17 **Real Business Scenarios Where This Plugin Shines:** 17 Share feature works for everyone, including guests. One click creates a unique URL that loads the exact cart anywhere, on any device. Perfect for cross-device shopping, getting approval from others, or sharing product recommendations. Logged-in customers can save carts with custom names (like "Birthday Wishlist" or "Monthly Reorder"), viewable in My Account → Saved Carts where they can restore or delete them anytime. 18 18 19 * **B2B Sales & Consultations**: Share product quotes and recommendations with clients instantly 20 * **Gift Shopping & Wishlists**: Let customers create and share wishlists with family and friends 21 * **Abandoned Cart Recovery**: Customers can save their cart and return later instead of losing their selections 22 * **Team Purchasing & Approvals**: Enable team members to collaborate on group orders and bulk purchases 23 * **Cross-Device Shopping**: Let customers start shopping on mobile, save, and complete on desktop 24 * **Event Planning & Bulk Orders**: Share product lists for weddings, parties, or seasonal restocking 25 * **Recurring Purchases & Subscriptions**: Create and share weekly/monthly item packages - customers can save these lists to their profile and easily reorder or modify quantities or products 19 Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing. 26 20 27 21 == Live Demo == … … 37 31 **View Saved Carts:** 38 32 [My Account → Saved Carts](https://demo.leanplugins.com/cart-share-and-save/my-account/saved-carts/?demo_auto_login=x8Kp2mQr9vLn) 33 34 **Real Business Scenarios Where This Plugin Shines:** 35 36 * **B2B Sales & Consultations**: Share product quotes and recommendations with clients instantly 37 * **Gift Shopping & Wishlists**: Let customers create and share wishlists with family and friends 38 * **Abandoned Cart Recovery**: Customers can save their cart and return later instead of losing their selections 39 * **Team Purchasing & Approvals**: Enable team members to collaborate on group orders and bulk purchases 40 * **Cross-Device Shopping**: Let customers start shopping on mobile, save, and complete on desktop 41 * **Event Planning & Bulk Orders**: Share product lists for weddings, parties, or seasonal restocking 42 * **Recurring Purchases & Subscriptions**: Create and share weekly/monthly item packages - customers can save these lists to their profile and easily reorder or modify quantities or products 39 43 40 44 **Key Features:** … … 148 152 == Changelog == 149 153 154 = 1.0.4 = 155 * Fixed: Cart restoration does not work. 156 150 157 = 1.0.3 = 151 158 * New: Compatibility with FSE (Full Site Editing) themes and WooCommerce Cart Blocks -
lean-cart-share-and-save/trunk/includes/class-settings-page.php
r3377797 r3382502 1 1 <?php 2 /** 3 * Settings page management 4 */ 5 2 6 namespace Lean_CSNS; 3 7 … … 8 12 9 13 /** 10 * Admin settings page management 14 * Settings Page Class 15 * 16 * Handles settings registration, rendering, and sanitization 11 17 */ 12 class Admin{18 class Settings_Page { 13 19 14 20 /** 15 21 * Singleton instance 16 22 * 17 * @var Admin23 * @var Settings_Page 18 24 */ 19 25 private static $instance = null; … … 22 28 * Get singleton instance 23 29 * 24 * @return Admin30 * @return Settings_Page 25 31 */ 26 32 public static function get_instance() { … … 39 45 40 46 /** 41 * Initialize adminfunctionality47 * Initialize settings functionality 42 48 */ 43 49 private function init() { 44 add_action('admin_menu', [$this, 'add_admin_menu']);45 50 add_action('admin_init', [$this, 'register_settings']); 46 }47 48 /**49 * Add admin menu page50 */51 public function add_admin_menu() {52 add_menu_page(53 __('Cart Share & Save', 'lean-cart-share-and-save'),54 __('Cart Share & Save', 'lean-cart-share-and-save'),55 'manage_options',56 'lean-csns-settings',57 [$this, 'settings_page'],58 'dashicons-share',59 5660 );61 51 } 62 52 … … 289 279 290 280 /** 291 * Displaysettings page292 */ 293 public function settings_page() {281 * Render settings page 282 */ 283 public function render_settings_page() { 294 284 ?> 295 285 <div class="wrap"> … … 308 298 309 299 // Initialize singleton instance 310 Admin::get_instance();300 Settings_Page::get_instance(); -
lean-cart-share-and-save/trunk/includes/class-url-handler.php
r3367807 r3382502 76 76 */ 77 77 public function handle_share_request() { 78 // Check both lean_csns_share and share parameters for backwards compatibility 78 79 $token = get_query_var('lean_csns_share'); 80 81 // Fallback to 'share' parameter if lean_csns_share is not set 82 if (empty($token) && isset($_GET['share'])) { 83 $token = sanitize_text_field(wp_unslash($_GET['share'])); 84 } 79 85 80 86 if ($token) { -
lean-cart-share-and-save/trunk/lean-cart-share-and-save.php
r3377797 r3382502 2 2 /** 3 3 * Plugin Name: Lean Cart Share and Save for WooCommerce 4 * Plugin URI: 4 * Plugin URI: https://leanplugins.com/ 5 5 * Description: Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks. 6 * Version: 1.0. 36 * Version: 1.0.4 7 7 * Author: LeanPlugins 8 8 * Author URI: https://leanplugins.com/ … … 20 20 21 21 // Define plugin constants 22 define('LEAN_CSNS_VERSION', '1.0. 3');22 define('LEAN_CSNS_VERSION', '1.0.4'); 23 23 define('LEAN_CSNS_DB_VERSION', '1.0.0'); 24 24 define('LEAN_CSNS_PL_FILE', __FILE__); … … 55 55 'class-cart-handler.php', 56 56 'class-url-handler.php', 57 'class-menu.php', 57 58 'class-settings-page.php', 58 59 'class-ajax-actions.php', -
lean-cart-share-and-save/trunk/readme.txt
r3381927 r3382502 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 13 13 == Description == 14 14 15 ** Stop losing sales to abandoned carts and missed opportunities.** Lean Cart Share and Save for Later transforms how customers interact with your WooCommerce store by letting them share carts instantly and save themfor later purchase.15 **Give customers the power to save and share their shopping carts.** Lean Cart Share and Save makes shopping flexible, anyone can generate shareable cart links in one click, and logged-in users can save unlimited carts with custom names for later purchase. 16 16 17 **Real Business Scenarios Where This Plugin Shines:** 17 Share feature works for everyone, including guests. One click creates a unique URL that loads the exact cart anywhere, on any device. Perfect for cross-device shopping, getting approval from others, or sharing product recommendations. Logged-in customers can save carts with custom names (like "Birthday Wishlist" or "Monthly Reorder"), viewable in My Account → Saved Carts where they can restore or delete them anytime. 18 18 19 * **B2B Sales & Consultations**: Share product quotes and recommendations with clients instantly 20 * **Gift Shopping & Wishlists**: Let customers create and share wishlists with family and friends 21 * **Abandoned Cart Recovery**: Customers can save their cart and return later instead of losing their selections 22 * **Team Purchasing & Approvals**: Enable team members to collaborate on group orders and bulk purchases 23 * **Cross-Device Shopping**: Let customers start shopping on mobile, save, and complete on desktop 24 * **Event Planning & Bulk Orders**: Share product lists for weddings, parties, or seasonal restocking 25 * **Recurring Purchases & Subscriptions**: Create and share weekly/monthly item packages - customers can save these lists to their profile and easily reorder or modify quantities or products 19 Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing. 26 20 27 21 == Live Demo == … … 37 31 **View Saved Carts:** 38 32 [My Account → Saved Carts](https://demo.leanplugins.com/cart-share-and-save/my-account/saved-carts/?demo_auto_login=x8Kp2mQr9vLn) 33 34 **Real Business Scenarios Where This Plugin Shines:** 35 36 * **B2B Sales & Consultations**: Share product quotes and recommendations with clients instantly 37 * **Gift Shopping & Wishlists**: Let customers create and share wishlists with family and friends 38 * **Abandoned Cart Recovery**: Customers can save their cart and return later instead of losing their selections 39 * **Team Purchasing & Approvals**: Enable team members to collaborate on group orders and bulk purchases 40 * **Cross-Device Shopping**: Let customers start shopping on mobile, save, and complete on desktop 41 * **Event Planning & Bulk Orders**: Share product lists for weddings, parties, or seasonal restocking 42 * **Recurring Purchases & Subscriptions**: Create and share weekly/monthly item packages - customers can save these lists to their profile and easily reorder or modify quantities or products 39 43 40 44 **Key Features:** … … 148 152 == Changelog == 149 153 154 = 1.0.4 = 155 * Fixed: Cart restoration does not work. 156 150 157 = 1.0.3 = 151 158 * New: Compatibility with FSE (Full Site Editing) themes and WooCommerce Cart Blocks
Note: See TracChangeset
for help on using the changeset viewer.