Plugin Directory

Changeset 3382502


Ignore:
Timestamp:
10/22/2025 10:11:21 AM (5 months ago)
Author:
azplugins
Message:

Update to version 1.0.4 from GitHub

Location:
lean-cart-share-and-save
Files:
2 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • lean-cart-share-and-save/tags/1.0.4/includes/class-settings-page.php

    r3377797 r3382502  
    11<?php
     2/**
     3 * Settings page management
     4 */
     5
    26namespace Lean_CSNS;
    37
     
    812
    913/**
    10  * Admin settings page management
     14 * Settings Page Class
     15 *
     16 * Handles settings registration, rendering, and sanitization
    1117 */
    12 class Admin {
     18class Settings_Page {
    1319   
    1420    /**
    1521     * Singleton instance
    1622     *
    17      * @var Admin
     23     * @var Settings_Page
    1824     */
    1925    private static $instance = null;
     
    2228     * Get singleton instance
    2329     *
    24      * @return Admin
     30     * @return Settings_Page
    2531     */
    2632    public static function get_instance() {
     
    3945   
    4046    /**
    41      * Initialize admin functionality
     47     * Initialize settings functionality
    4248     */
    4349    private function init() {
    44         add_action('admin_menu', [$this, 'add_admin_menu']);
    4550        add_action('admin_init', [$this, 'register_settings']);
    46     }
    47    
    48     /**
    49      * Add admin menu page
    50      */
    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             56
    60         );
    6151    }
    6252   
     
    289279   
    290280    /**
    291      * Display settings page
    292      */
    293     public function settings_page() {
     281     * Render settings page
     282     */
     283    public function render_settings_page() {
    294284        ?>
    295285        <div class="wrap">
     
    308298
    309299// Initialize singleton instance
    310 Admin::get_instance();
     300Settings_Page::get_instance();
  • lean-cart-share-and-save/tags/1.0.4/includes/class-url-handler.php

    r3367807 r3382502  
    7676     */
    7777    public function handle_share_request() {
     78        // Check both lean_csns_share and share parameters for backwards compatibility
    7879        $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        }
    7985       
    8086        if ($token) {
  • lean-cart-share-and-save/tags/1.0.4/lean-cart-share-and-save.php

    r3377797 r3382502  
    22/**
    33 * Plugin Name: Lean Cart Share and Save for WooCommerce
    4  * Plugin URI:
     4 * Plugin URI: https://leanplugins.com/
    55 * Description: Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks.
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Author: LeanPlugins
    88 * Author URI: https://leanplugins.com/
     
    2020
    2121// Define plugin constants
    22 define('LEAN_CSNS_VERSION', '1.0.3');
     22define('LEAN_CSNS_VERSION', '1.0.4');
    2323define('LEAN_CSNS_DB_VERSION', '1.0.0');
    2424define('LEAN_CSNS_PL_FILE', __FILE__);
     
    5555        'class-cart-handler.php',
    5656        'class-url-handler.php',
     57        'class-menu.php',
    5758        'class-settings-page.php',
    5859        'class-ajax-actions.php',
  • lean-cart-share-and-save/tags/1.0.4/readme.txt

    r3381927 r3382502  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    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 them for 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.
    1616
    17 **Real Business Scenarios Where This Plugin Shines:**
     17Share 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.
    1818
    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
     19Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing.
    2620
    2721== Live Demo ==
     
    3731**View Saved Carts:**
    3832[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
    3943
    4044**Key Features:**
     
    148152== Changelog ==
    149153
     154= 1.0.4 =
     155* Fixed: Cart restoration does not work.
     156
    150157= 1.0.3 =
    151158* 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  
    11<?php
     2/**
     3 * Settings page management
     4 */
     5
    26namespace Lean_CSNS;
    37
     
    812
    913/**
    10  * Admin settings page management
     14 * Settings Page Class
     15 *
     16 * Handles settings registration, rendering, and sanitization
    1117 */
    12 class Admin {
     18class Settings_Page {
    1319   
    1420    /**
    1521     * Singleton instance
    1622     *
    17      * @var Admin
     23     * @var Settings_Page
    1824     */
    1925    private static $instance = null;
     
    2228     * Get singleton instance
    2329     *
    24      * @return Admin
     30     * @return Settings_Page
    2531     */
    2632    public static function get_instance() {
     
    3945   
    4046    /**
    41      * Initialize admin functionality
     47     * Initialize settings functionality
    4248     */
    4349    private function init() {
    44         add_action('admin_menu', [$this, 'add_admin_menu']);
    4550        add_action('admin_init', [$this, 'register_settings']);
    46     }
    47    
    48     /**
    49      * Add admin menu page
    50      */
    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             56
    60         );
    6151    }
    6252   
     
    289279   
    290280    /**
    291      * Display settings page
    292      */
    293     public function settings_page() {
     281     * Render settings page
     282     */
     283    public function render_settings_page() {
    294284        ?>
    295285        <div class="wrap">
     
    308298
    309299// Initialize singleton instance
    310 Admin::get_instance();
     300Settings_Page::get_instance();
  • lean-cart-share-and-save/trunk/includes/class-url-handler.php

    r3367807 r3382502  
    7676     */
    7777    public function handle_share_request() {
     78        // Check both lean_csns_share and share parameters for backwards compatibility
    7879        $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        }
    7985       
    8086        if ($token) {
  • lean-cart-share-and-save/trunk/lean-cart-share-and-save.php

    r3377797 r3382502  
    22/**
    33 * Plugin Name: Lean Cart Share and Save for WooCommerce
    4  * Plugin URI:
     4 * Plugin URI: https://leanplugins.com/
    55 * Description: Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks.
    6  * Version: 1.0.3
     6 * Version: 1.0.4
    77 * Author: LeanPlugins
    88 * Author URI: https://leanplugins.com/
     
    2020
    2121// Define plugin constants
    22 define('LEAN_CSNS_VERSION', '1.0.3');
     22define('LEAN_CSNS_VERSION', '1.0.4');
    2323define('LEAN_CSNS_DB_VERSION', '1.0.0');
    2424define('LEAN_CSNS_PL_FILE', __FILE__);
     
    5555        'class-cart-handler.php',
    5656        'class-url-handler.php',
     57        'class-menu.php',
    5758        'class-settings-page.php',
    5859        'class-ajax-actions.php',
  • lean-cart-share-and-save/trunk/readme.txt

    r3381927 r3382502  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    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 them for 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.
    1616
    17 **Real Business Scenarios Where This Plugin Shines:**
     17Share 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.
    1818
    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
     19Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing.
    2620
    2721== Live Demo ==
     
    3731**View Saved Carts:**
    3832[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
    3943
    4044**Key Features:**
     
    148152== Changelog ==
    149153
     154= 1.0.4 =
     155* Fixed: Cart restoration does not work.
     156
    150157= 1.0.3 =
    151158* New: Compatibility with FSE (Full Site Editing) themes and WooCommerce Cart Blocks
Note: See TracChangeset for help on using the changeset viewer.