Plugin Directory

Changeset 3388256


Ignore:
Timestamp:
11/02/2025 06:18:44 AM (4 months ago)
Author:
azplugins
Message:

Update to version 1.0.5 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.5/includes/class-menu.php

    r3382502 r3388256  
    4949    private function init() {
    5050        add_action('admin_menu', [$this, 'add_admin_menu']);
     51        add_filter('plugin_action_links_' . plugin_basename(LEAN_CSNS_PL_FILE), [$this, 'add_plugin_action_links']);
    5152        add_action('admin_head', [$this, 'suppress_admin_notices']);
    5253    }
     
    6566            56
    6667        );
     68    }
     69
     70    /**
     71     * Add plugin action links
     72     */
     73    public function add_plugin_action_links($links) {
     74        $quick_settings_link = '<a href="' . esc_url(admin_url('admin.php?page=lean-csns-settings')) . '">' . esc_html__('Settings', 'lean-cart-share-and-save') . '</a>';
     75       
     76        // Prepend Settings link at the beginning (before Deactivate)
     77        return array_merge(['settings' => $quick_settings_link], $links);
    6778    }
    6879   
  • lean-cart-share-and-save/tags/1.0.5/languages/lean-cart-share-and-save.pot

    r3367807 r3388256  
    1 #, fuzzy
     1# Copyright (C) 2025 LeanPlugins
     2# This file is distributed under the GPLv2 or later.
    23msgid ""
    34msgstr ""
    4 "Project-Id-Version: Lean Cart Share and Save\n"
    5 "Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2025-09-04 11:48+0000\n"
    7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     5"Project-Id-Version: Lean Cart Share and Save for WooCommerce 1.0.5\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lean-cart-share-and-save\n"
    87"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    9 "Language-Team: \n"
    10 "Language: \n"
    11 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    129"MIME-Version: 1.0\n"
    1310"Content-Type: text/plain; charset=UTF-8\n"
    1411"Content-Transfer-Encoding: 8bit\n"
    15 "X-Generator: Loco https://localise.biz/\n"
    16 "X-Loco-Version: 2.8.0; wp-6.8.2; php-8.0.30\n"
    17 "X-Domain: lean-cart-share-and-save"
     12"POT-Creation-Date: 2025-11-02T06:02:00+00:00\n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.8.1\n"
     15"X-Domain: lean-cart-share-and-save\n"
     16
     17#. Plugin Name of the plugin
     18msgid "Lean Cart Share and Save for WooCommerce"
     19msgstr ""
     20
     21#. Plugin URI of the plugin
     22#. Author URI of the plugin
     23msgid "https://leanplugins.com/"
     24msgstr ""
     25
     26#. Description of the plugin
     27msgid "Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks."
     28msgstr ""
     29
     30#. Author of the plugin
     31msgid "LeanPlugins"
     32msgstr ""
     33
     34#: includes/class-ajax-actions.php:73
     35msgid "Cart name is required"
     36msgstr ""
     37
     38#: includes/class-ajax-actions.php:89
     39msgid "Please log in to delete cart"
     40msgstr ""
     41
     42#: includes/class-ajax-actions.php:94
     43msgid "Invalid cart ID"
     44msgstr ""
     45
     46#: includes/class-ajax-actions.php:101
     47msgid "You are not authorized to delete this cart"
     48msgstr ""
     49
     50#: includes/class-ajax-actions.php:108
     51#: includes/class-base.php:179
     52msgid "Cart deleted successfully!"
     53msgstr ""
     54
     55#: includes/class-ajax-actions.php:108
     56msgid "Failed to delete cart"
     57msgstr ""
     58
     59#: includes/class-assets-manager.php:95
     60msgid "Share Your Cart"
     61msgstr ""
     62
     63#: includes/class-assets-manager.php:96
     64msgid "Save Your Cart"
     65msgstr ""
     66
     67#: includes/class-assets-manager.php:97
     68msgid "Copy"
     69msgstr ""
     70
     71#: includes/class-assets-manager.php:98
     72msgid "Close"
     73msgstr ""
     74
     75#: includes/class-assets-manager.php:99
     76msgid "Save"
     77msgstr ""
     78
     79#: includes/class-assets-manager.php:100
     80msgid "Cancel"
     81msgstr ""
     82
     83#: includes/class-assets-manager.php:101
     84msgid "Enter cart name..."
     85msgstr ""
     86
     87#: includes/class-assets-manager.php:102
     88msgid "Please enter a cart name"
     89msgstr ""
     90
     91#: includes/class-assets-manager.php:103
     92msgid "Link copied to clipboard!"
     93msgstr ""
     94
     95#: includes/class-base.php:88
     96msgid "Share Cart"
     97msgstr ""
     98
     99#: includes/class-base.php:92
     100msgid "Save Cart"
     101msgstr ""
     102
     103#: includes/class-base.php:130
     104#: templates/my-account/saved-carts.php:17
     105msgid "Saved Carts"
     106msgstr ""
     107
     108#: includes/class-base.php:159
     109msgid "Security verification failed."
     110msgstr ""
     111
     112#: includes/class-base.php:164
     113msgid "Please log in to delete cart."
     114msgstr ""
     115
     116#: includes/class-base.php:172
     117msgid "You are not authorized to delete this cart."
     118msgstr ""
     119
     120#: includes/class-base.php:181
     121msgid "Failed to delete cart."
     122msgstr ""
     123
     124#: includes/class-cart-handler.php:153
     125#: includes/class-cart-handler.php:197
     126msgid "Cart is empty"
     127msgstr ""
     128
     129#: includes/class-cart-handler.php:180
     130msgid "Failed to share cart"
     131msgstr ""
     132
     133#: includes/class-cart-handler.php:191
     134msgid "Please log in to save cart"
     135msgstr ""
     136
     137#: includes/class-cart-handler.php:216
     138msgid "Cart saved successfully!"
     139msgstr ""
     140
     141#: includes/class-cart-handler.php:216
     142msgid "Failed to save cart"
     143msgstr ""
     144
     145#: includes/class-deactivation-feedback.php:76
     146msgid "Sending..."
     147msgstr ""
     148
     149#: includes/class-deactivation-feedback.php:89
     150msgid "I'm deactivating because"
     151msgstr ""
     152
     153#: includes/class-deactivation-feedback.php:90
     154msgid "Type your reason here ... (optional)"
     155msgstr ""
     156
     157#: includes/class-deactivation-feedback.php:93
     158msgid "I no longer need the plugin"
     159msgstr ""
     160
     161#: includes/class-deactivation-feedback.php:97
     162msgid "I'm switching to a different plugin"
     163msgstr ""
     164
     165#: includes/class-deactivation-feedback.php:98
     166msgid "Please share which plugin (optional)"
     167msgstr ""
     168
     169#: includes/class-deactivation-feedback.php:101
     170msgid "I couldn't get the plugin to work"
     171msgstr ""
     172
     173#: includes/class-deactivation-feedback.php:102
     174msgid "We're sorry to hear. Can you let us know what didn't work? (optional)"
     175msgstr ""
     176
     177#: includes/class-deactivation-feedback.php:105
     178msgid "It's a temporary deactivation"
     179msgstr ""
     180
     181#: includes/class-deactivation-feedback.php:154
     182msgid "Quick Feedback"
     183msgstr ""
     184
     185#: includes/class-deactivation-feedback.php:155
     186msgid "If you have a moment, please share why you are deactivating this plugin:"
     187msgstr ""
     188
     189#: includes/class-deactivation-feedback.php:156
     190msgid "Submit & Deactivate"
     191msgstr ""
     192
     193#: includes/class-deactivation-feedback.php:157
     194msgid "Skip & Deactivate"
     195msgstr ""
     196
     197#: includes/class-menu.php:60
     198#: includes/class-menu.php:61
     199msgid "Cart Share & Save"
     200msgstr ""
     201
     202#: includes/class-menu.php:74
     203msgid "Settings"
     204msgstr ""
     205
     206#: includes/class-settings-page.php:63
     207msgid "Cart Share Settings"
     208msgstr ""
     209
     210#: includes/class-settings-page.php:70
     211msgid "Enable Share Cart"
     212msgstr ""
     213
     214#: includes/class-settings-page.php:74
     215msgid "Allow users to share their cart"
     216msgstr ""
     217
     218#: includes/class-settings-page.php:88
     219msgid "Share Expiry (Days)"
     220msgstr ""
     221
     222#: includes/class-settings-page.php:92
     223msgid "Set to 0 for no expiration, or number of days before shared carts expire"
     224msgstr ""
     225
     226#: includes/class-settings-page.php:98
     227msgid "Cart Save Settings"
     228msgstr ""
     229
     230#: includes/class-settings-page.php:105
     231msgid "Enable Save Cart"
     232msgstr ""
     233
     234#: includes/class-settings-page.php:109
     235msgid "Allow logged-in users to save their cart"
     236msgstr ""
     237
     238#: includes/class-settings-page.php:115
     239msgid "Data Management"
     240msgstr ""
     241
     242#: includes/class-settings-page.php:122
     243msgid "Delete All Data on Uninstall"
     244msgstr ""
     245
     246#: includes/class-settings-page.php:126
     247msgid "Remove all saved & shared carts and plugin settings when the plugin is deleted.<br> This helps keep your database clean if you no longer plan to use the plugin."
     248msgstr ""
     249
     250#: includes/class-settings-page.php:199
     251msgid "📢 Important: Fix 404 Errors"
     252msgstr ""
     253
     254#: includes/class-settings-page.php:202
     255msgid "Share links require pretty permalinks. "
     256msgstr ""
     257
     258#. translators: %s is a link to WordPress Settings → Permalinks page
     259#: includes/class-settings-page.php:207
     260msgid "If share links or My Account → Saved Carts show 404 errors: Go to %s and click \"Save Changes\" (no need to change anything). This refreshes WordPress URL rules and fixes 404 issues."
     261msgstr ""
     262
     263#: includes/class-settings-page.php:208
     264msgid "Settings → Permalinks"
     265msgstr ""
     266
     267#: includes/class-settings-page.php:210
     268msgid "Why this happens: WordPress needs to refresh URL routing when new link structures are added."
     269msgstr ""
     270
     271#: includes/class-settings-page.php:286
     272msgid "Cart Share & Save Settings"
     273msgstr ""
     274
     275#: includes/class-settings-page.php:291
     276msgid "Save Settings"
     277msgstr ""
     278
     279#: includes/class-url-handler.php:100
     280msgid "Shared cart not found."
     281msgstr ""
     282
     283#: includes/class-url-handler.php:107
     284msgid "This shared cart has expired."
     285msgstr ""
     286
     287#: includes/class-url-handler.php:123
     288msgid "Shared cart loaded successfully!"
     289msgstr ""
     290
     291#: includes/class-url-handler.php:125
     292msgid "Failed to load shared cart."
     293msgstr ""
     294
     295#: lean-cart-share-and-save.php:34
     296msgid "Lean Cart Share and Save requires WooCommerce to be installed and active."
     297msgstr ""
     298
     299#: templates/my-account/saved-carts.php:21
     300msgid "No saved carts found."
     301msgstr ""
     302
     303#: templates/my-account/saved-carts.php:24
     304msgid "Start Shopping"
     305msgstr ""
     306
     307#: templates/my-account/saved-carts.php:33
     308#: templates/my-account/saved-carts.php:46
     309msgid "Cart Name"
     310msgstr ""
     311
     312#: templates/my-account/saved-carts.php:36
     313#: templates/my-account/saved-carts.php:49
     314msgid "Saved On"
     315msgstr ""
    18316
    19317#: templates/my-account/saved-carts.php:39
     
    22320msgstr ""
    23321
    24 #: includes/class-settings-page.php:119
    25 msgid "Allow logged-in users to save their cart"
    26 msgstr ""
    27 
    28 #: includes/class-settings-page.php:84
    29 msgid "Allow users to share their cart"
     322#: templates/my-account/saved-carts.php:57
     323msgid "Restore this cart"
     324msgstr ""
     325
     326#: templates/my-account/saved-carts.php:58
     327msgid "Restore"
     328msgstr ""
     329
     330#: templates/my-account/saved-carts.php:62
     331msgid "Delete this cart"
    30332msgstr ""
    31333
    32334#: templates/my-account/saved-carts.php:63
    33 msgid ""
    34 "Are you sure you want to delete this saved cart? This action cannot be "
    35 "undone."
    36 msgstr ""
    37 
    38 #. Author of the plugin
    39 msgid "AZPlugins"
    40 msgstr ""
    41 
    42 #: includes/class-assets-manager.php:92
    43 msgid "Cancel"
    44 msgstr ""
    45 
    46 #: includes/class-ajax-actions.php:108 includes/class-base.php:157
    47 msgid "Cart deleted successfully!"
    48 msgstr ""
    49 
    50 #: includes/class-cart-handler.php:153 includes/class-cart-handler.php:197
    51 msgid "Cart is empty"
    52 msgstr ""
    53 
    54 #: templates/my-account/saved-carts.php:33
    55 #: templates/my-account/saved-carts.php:46
    56 msgid "Cart Name"
    57 msgstr ""
    58 
    59 #: includes/class-ajax-actions.php:73
    60 msgid "Cart name is required"
    61 msgstr ""
    62 
    63 #: includes/class-settings-page.php:108
    64 msgid "Cart Save Settings"
    65 msgstr ""
    66 
    67 #: includes/class-cart-handler.php:216
    68 msgid "Cart saved successfully!"
    69 msgstr ""
    70 
    71 #: includes/class-settings-page.php:53 includes/class-settings-page.php:54
    72 msgid "Cart Share & Save"
    73 msgstr ""
    74 
    75 #: includes/class-settings-page.php:296
    76 msgid "Cart Share & Save Settings"
    77 msgstr ""
    78 
    79 #: includes/class-settings-page.php:73
    80 msgid "Cart Share Settings"
    81 msgstr ""
    82 
    83 #: includes/class-assets-manager.php:90
    84 msgid "Close"
    85 msgstr ""
    86 
    87 #: includes/class-assets-manager.php:89
    88 msgid "Copy"
    89 msgstr ""
    90 
    91 #: includes/class-settings-page.php:125
    92 msgid "Data Management"
     335msgid "Are you sure you want to delete this saved cart? This action cannot be undone."
    93336msgstr ""
    94337
     
    96339msgid "Delete"
    97340msgstr ""
    98 
    99 #: includes/class-settings-page.php:132
    100 msgid "Delete All Data on Uninstall"
    101 msgstr ""
    102 
    103 #: templates/my-account/saved-carts.php:62
    104 msgid "Delete this cart"
    105 msgstr ""
    106 
    107 #: includes/class-settings-page.php:115
    108 msgid "Enable Save Cart"
    109 msgstr ""
    110 
    111 #: includes/class-settings-page.php:80
    112 msgid "Enable Share Cart"
    113 msgstr ""
    114 
    115 #: includes/class-assets-manager.php:93
    116 msgid "Enter cart name..."
    117 msgstr ""
    118 
    119 #: includes/class-ajax-actions.php:108
    120 msgid "Failed to delete cart"
    121 msgstr ""
    122 
    123 #: includes/class-base.php:159
    124 msgid "Failed to delete cart."
    125 msgstr ""
    126 
    127 #: includes/class-url-handler.php:125
    128 msgid "Failed to load shared cart."
    129 msgstr ""
    130 
    131 #: includes/class-cart-handler.php:216
    132 msgid "Failed to save cart"
    133 msgstr ""
    134 
    135 #: includes/class-cart-handler.php:180
    136 msgid "Failed to share cart"
    137 msgstr ""
    138 
    139 #. %s is a link to WordPress Settings → Permalinks page
    140 #: includes/class-settings-page.php:217
    141 #, php-format
    142 msgid ""
    143 "If share links or My Account → Saved Carts show 404 errors: Go to %s and "
    144 "click \"Save Changes\" (no need to change anything). This refreshes "
    145 "WordPress URL rules and fixes 404 issues."
    146 msgstr ""
    147 
    148 #: includes/class-ajax-actions.php:94
    149 msgid "Invalid cart ID"
    150 msgstr ""
    151 
    152 #. Name of the plugin
    153 msgid "Lean Cart Share and Save"
    154 msgstr ""
    155 
    156 #: lean-cart-share-and-save.php:34
    157 msgid ""
    158 "Lean Cart Share and Save requires WooCommerce to be installed and active."
    159 msgstr ""
    160 
    161 #. Description of the plugin
    162 msgid "Lightweight cart sharing and saving for WooCommerce"
    163 msgstr ""
    164 
    165 #: includes/class-assets-manager.php:95
    166 msgid "Link copied to clipboard!"
    167 msgstr ""
    168 
    169 #: templates/my-account/saved-carts.php:21
    170 msgid "No saved carts found."
    171 msgstr ""
    172 
    173 #: includes/class-assets-manager.php:94
    174 msgid "Please enter a cart name"
    175 msgstr ""
    176 
    177 #: includes/class-ajax-actions.php:89
    178 msgid "Please log in to delete cart"
    179 msgstr ""
    180 
    181 #: includes/class-base.php:142
    182 msgid "Please log in to delete cart."
    183 msgstr ""
    184 
    185 #: includes/class-cart-handler.php:191
    186 msgid "Please log in to save cart"
    187 msgstr ""
    188 
    189 #: includes/class-settings-page.php:136
    190 msgid ""
    191 "Remove all saved & shared carts and plugin settings when the plugin is "
    192 "deleted (unchecked by default). <br> This helps keep your database clean if "
    193 "you no longer plan to use the plugin."
    194 msgstr ""
    195 
    196 #: templates/my-account/saved-carts.php:58
    197 msgid "Restore"
    198 msgstr ""
    199 
    200 #: templates/my-account/saved-carts.php:57
    201 msgid "Restore this cart"
    202 msgstr ""
    203 
    204 #: includes/class-assets-manager.php:91
    205 msgid "Save"
    206 msgstr ""
    207 
    208 #: includes/class-base.php:81
    209 msgid "Save Cart"
    210 msgstr ""
    211 
    212 #: includes/class-settings-page.php:301
    213 msgid "Save Settings"
    214 msgstr ""
    215 
    216 #: includes/class-assets-manager.php:88
    217 msgid "Save Your Cart"
    218 msgstr ""
    219 
    220 #: includes/class-base.php:108 templates/my-account/saved-carts.php:17
    221 msgid "Saved Carts"
    222 msgstr ""
    223 
    224 #: templates/my-account/saved-carts.php:36
    225 #: templates/my-account/saved-carts.php:49
    226 msgid "Saved On"
    227 msgstr ""
    228 
    229 #: includes/class-base.php:137
    230 msgid "Security verification failed."
    231 msgstr ""
    232 
    233 #: includes/class-settings-page.php:102
    234 msgid ""
    235 "Set to 0 for no expiration, or number of days before shared carts expire"
    236 msgstr ""
    237 
    238 #: includes/class-settings-page.php:218
    239 msgid "Settings → Permalinks"
    240 msgstr ""
    241 
    242 #: includes/class-base.php:77
    243 msgid "Share Cart"
    244 msgstr ""
    245 
    246 #: includes/class-settings-page.php:98
    247 msgid "Share Expiry (Days)"
    248 msgstr ""
    249 
    250 #: includes/class-settings-page.php:212
    251 msgid "Share links require pretty permalinks. "
    252 msgstr ""
    253 
    254 #: includes/class-assets-manager.php:87
    255 msgid "Share Your Cart"
    256 msgstr ""
    257 
    258 #: includes/class-url-handler.php:123
    259 msgid "Shared cart loaded successfully!"
    260 msgstr ""
    261 
    262 #: includes/class-url-handler.php:100
    263 msgid "Shared cart not found."
    264 msgstr ""
    265 
    266 #: templates/my-account/saved-carts.php:24
    267 msgid "Start Shopping"
    268 msgstr ""
    269 
    270 #: includes/class-url-handler.php:107
    271 msgid "This shared cart has expired."
    272 msgstr ""
    273 
    274 #: includes/class-settings-page.php:220
    275 msgid ""
    276 "Why this happens: WordPress needs to refresh URL routing when new link "
    277 "structures are added."
    278 msgstr ""
    279 
    280 #: includes/class-ajax-actions.php:101
    281 msgid "You are not authorized to delete this cart"
    282 msgstr ""
    283 
    284 #: includes/class-base.php:150
    285 msgid "You are not authorized to delete this cart."
    286 msgstr ""
    287 
    288 #: includes/class-settings-page.php:209
    289 msgid "📢 Important: Fix 404 Errors"
    290 msgstr ""
  • lean-cart-share-and-save/tags/1.0.5/lean-cart-share-and-save.php

    r3382502 r3388256  
    44 * 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.4
     6 * Version: 1.0.5
    77 * Author: LeanPlugins
    88 * Author URI: https://leanplugins.com/
     
    2020
    2121// Define plugin constants
    22 define('LEAN_CSNS_VERSION', '1.0.4');
     22define('LEAN_CSNS_VERSION', '1.0.5');
    2323define('LEAN_CSNS_DB_VERSION', '1.0.0');
    2424define('LEAN_CSNS_PL_FILE', __FILE__);
     
    5858        'class-settings-page.php',
    5959        'class-ajax-actions.php',
    60         'class-assets-manager.php'
     60        'class-assets-manager.php',
     61        'class-deactivation-feedback.php'
    6162    ];
    6263   
  • lean-cart-share-and-save/tags/1.0.5/readme.txt

    r3382502 r3388256  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1818
    1919Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing.
     20
     21**[Learn More](https://leanplugins.com/wordpress-plugins/cart-share-and-save/)**
    2022
    2123== Live Demo ==
     
    141143Go to Settings → Permalinks in your WordPress admin and click "Save Changes" (no need to change anything). This refreshes WordPress URL rules.
    142144
     145= Does this plugin use any third-party services? =
     146
     147Yes. When you deactivate this plugin, a feedback modal appears. If you choose to submit feedback, these 5 pieces of information are sent to our server:
     148
     149* Your deactivation reason (from the options provided)
     150* Your optional comment (if you write one)
     151* Plugin version
     152* WordPress version
     153* PHP version
     154
     155This feedback helps us understand real-world issues and prioritize fixes. You can click "Skip & Deactivate" to skip feedback entirely.
     156
     157**Service Used:** Supabase (https://supabase.com/)
     158**Privacy Policy:** https://supabase.com/privacy
     159**Terms of Service:** https://supabase.com/terms
     160
     161The feedback is only sent when you click "Submit & Deactivate". Nothing is collected during normal plugin usage.
     162
    143163== Screenshots ==
    144164
     
    151171
    152172== Changelog ==
     173
     174= 1.0.5 =
     175* New: Added Settings link to plugin action links
     176* Updated: Language translation file
    153177
    154178= 1.0.4 =
  • lean-cart-share-and-save/trunk/includes/class-menu.php

    r3382502 r3388256  
    4949    private function init() {
    5050        add_action('admin_menu', [$this, 'add_admin_menu']);
     51        add_filter('plugin_action_links_' . plugin_basename(LEAN_CSNS_PL_FILE), [$this, 'add_plugin_action_links']);
    5152        add_action('admin_head', [$this, 'suppress_admin_notices']);
    5253    }
     
    6566            56
    6667        );
     68    }
     69
     70    /**
     71     * Add plugin action links
     72     */
     73    public function add_plugin_action_links($links) {
     74        $quick_settings_link = '<a href="' . esc_url(admin_url('admin.php?page=lean-csns-settings')) . '">' . esc_html__('Settings', 'lean-cart-share-and-save') . '</a>';
     75       
     76        // Prepend Settings link at the beginning (before Deactivate)
     77        return array_merge(['settings' => $quick_settings_link], $links);
    6778    }
    6879   
  • lean-cart-share-and-save/trunk/languages/lean-cart-share-and-save.pot

    r3367807 r3388256  
    1 #, fuzzy
     1# Copyright (C) 2025 LeanPlugins
     2# This file is distributed under the GPLv2 or later.
    23msgid ""
    34msgstr ""
    4 "Project-Id-Version: Lean Cart Share and Save\n"
    5 "Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2025-09-04 11:48+0000\n"
    7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     5"Project-Id-Version: Lean Cart Share and Save for WooCommerce 1.0.5\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/lean-cart-share-and-save\n"
    87"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    9 "Language-Team: \n"
    10 "Language: \n"
    11 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    129"MIME-Version: 1.0\n"
    1310"Content-Type: text/plain; charset=UTF-8\n"
    1411"Content-Transfer-Encoding: 8bit\n"
    15 "X-Generator: Loco https://localise.biz/\n"
    16 "X-Loco-Version: 2.8.0; wp-6.8.2; php-8.0.30\n"
    17 "X-Domain: lean-cart-share-and-save"
     12"POT-Creation-Date: 2025-11-02T06:02:00+00:00\n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.8.1\n"
     15"X-Domain: lean-cart-share-and-save\n"
     16
     17#. Plugin Name of the plugin
     18msgid "Lean Cart Share and Save for WooCommerce"
     19msgstr ""
     20
     21#. Plugin URI of the plugin
     22#. Author URI of the plugin
     23msgid "https://leanplugins.com/"
     24msgstr ""
     25
     26#. Description of the plugin
     27msgid "Lightweight cart sharing and saving for WooCommerce. Fully compatible with FSE themes and WooCommerce Cart Blocks."
     28msgstr ""
     29
     30#. Author of the plugin
     31msgid "LeanPlugins"
     32msgstr ""
     33
     34#: includes/class-ajax-actions.php:73
     35msgid "Cart name is required"
     36msgstr ""
     37
     38#: includes/class-ajax-actions.php:89
     39msgid "Please log in to delete cart"
     40msgstr ""
     41
     42#: includes/class-ajax-actions.php:94
     43msgid "Invalid cart ID"
     44msgstr ""
     45
     46#: includes/class-ajax-actions.php:101
     47msgid "You are not authorized to delete this cart"
     48msgstr ""
     49
     50#: includes/class-ajax-actions.php:108
     51#: includes/class-base.php:179
     52msgid "Cart deleted successfully!"
     53msgstr ""
     54
     55#: includes/class-ajax-actions.php:108
     56msgid "Failed to delete cart"
     57msgstr ""
     58
     59#: includes/class-assets-manager.php:95
     60msgid "Share Your Cart"
     61msgstr ""
     62
     63#: includes/class-assets-manager.php:96
     64msgid "Save Your Cart"
     65msgstr ""
     66
     67#: includes/class-assets-manager.php:97
     68msgid "Copy"
     69msgstr ""
     70
     71#: includes/class-assets-manager.php:98
     72msgid "Close"
     73msgstr ""
     74
     75#: includes/class-assets-manager.php:99
     76msgid "Save"
     77msgstr ""
     78
     79#: includes/class-assets-manager.php:100
     80msgid "Cancel"
     81msgstr ""
     82
     83#: includes/class-assets-manager.php:101
     84msgid "Enter cart name..."
     85msgstr ""
     86
     87#: includes/class-assets-manager.php:102
     88msgid "Please enter a cart name"
     89msgstr ""
     90
     91#: includes/class-assets-manager.php:103
     92msgid "Link copied to clipboard!"
     93msgstr ""
     94
     95#: includes/class-base.php:88
     96msgid "Share Cart"
     97msgstr ""
     98
     99#: includes/class-base.php:92
     100msgid "Save Cart"
     101msgstr ""
     102
     103#: includes/class-base.php:130
     104#: templates/my-account/saved-carts.php:17
     105msgid "Saved Carts"
     106msgstr ""
     107
     108#: includes/class-base.php:159
     109msgid "Security verification failed."
     110msgstr ""
     111
     112#: includes/class-base.php:164
     113msgid "Please log in to delete cart."
     114msgstr ""
     115
     116#: includes/class-base.php:172
     117msgid "You are not authorized to delete this cart."
     118msgstr ""
     119
     120#: includes/class-base.php:181
     121msgid "Failed to delete cart."
     122msgstr ""
     123
     124#: includes/class-cart-handler.php:153
     125#: includes/class-cart-handler.php:197
     126msgid "Cart is empty"
     127msgstr ""
     128
     129#: includes/class-cart-handler.php:180
     130msgid "Failed to share cart"
     131msgstr ""
     132
     133#: includes/class-cart-handler.php:191
     134msgid "Please log in to save cart"
     135msgstr ""
     136
     137#: includes/class-cart-handler.php:216
     138msgid "Cart saved successfully!"
     139msgstr ""
     140
     141#: includes/class-cart-handler.php:216
     142msgid "Failed to save cart"
     143msgstr ""
     144
     145#: includes/class-deactivation-feedback.php:76
     146msgid "Sending..."
     147msgstr ""
     148
     149#: includes/class-deactivation-feedback.php:89
     150msgid "I'm deactivating because"
     151msgstr ""
     152
     153#: includes/class-deactivation-feedback.php:90
     154msgid "Type your reason here ... (optional)"
     155msgstr ""
     156
     157#: includes/class-deactivation-feedback.php:93
     158msgid "I no longer need the plugin"
     159msgstr ""
     160
     161#: includes/class-deactivation-feedback.php:97
     162msgid "I'm switching to a different plugin"
     163msgstr ""
     164
     165#: includes/class-deactivation-feedback.php:98
     166msgid "Please share which plugin (optional)"
     167msgstr ""
     168
     169#: includes/class-deactivation-feedback.php:101
     170msgid "I couldn't get the plugin to work"
     171msgstr ""
     172
     173#: includes/class-deactivation-feedback.php:102
     174msgid "We're sorry to hear. Can you let us know what didn't work? (optional)"
     175msgstr ""
     176
     177#: includes/class-deactivation-feedback.php:105
     178msgid "It's a temporary deactivation"
     179msgstr ""
     180
     181#: includes/class-deactivation-feedback.php:154
     182msgid "Quick Feedback"
     183msgstr ""
     184
     185#: includes/class-deactivation-feedback.php:155
     186msgid "If you have a moment, please share why you are deactivating this plugin:"
     187msgstr ""
     188
     189#: includes/class-deactivation-feedback.php:156
     190msgid "Submit & Deactivate"
     191msgstr ""
     192
     193#: includes/class-deactivation-feedback.php:157
     194msgid "Skip & Deactivate"
     195msgstr ""
     196
     197#: includes/class-menu.php:60
     198#: includes/class-menu.php:61
     199msgid "Cart Share & Save"
     200msgstr ""
     201
     202#: includes/class-menu.php:74
     203msgid "Settings"
     204msgstr ""
     205
     206#: includes/class-settings-page.php:63
     207msgid "Cart Share Settings"
     208msgstr ""
     209
     210#: includes/class-settings-page.php:70
     211msgid "Enable Share Cart"
     212msgstr ""
     213
     214#: includes/class-settings-page.php:74
     215msgid "Allow users to share their cart"
     216msgstr ""
     217
     218#: includes/class-settings-page.php:88
     219msgid "Share Expiry (Days)"
     220msgstr ""
     221
     222#: includes/class-settings-page.php:92
     223msgid "Set to 0 for no expiration, or number of days before shared carts expire"
     224msgstr ""
     225
     226#: includes/class-settings-page.php:98
     227msgid "Cart Save Settings"
     228msgstr ""
     229
     230#: includes/class-settings-page.php:105
     231msgid "Enable Save Cart"
     232msgstr ""
     233
     234#: includes/class-settings-page.php:109
     235msgid "Allow logged-in users to save their cart"
     236msgstr ""
     237
     238#: includes/class-settings-page.php:115
     239msgid "Data Management"
     240msgstr ""
     241
     242#: includes/class-settings-page.php:122
     243msgid "Delete All Data on Uninstall"
     244msgstr ""
     245
     246#: includes/class-settings-page.php:126
     247msgid "Remove all saved & shared carts and plugin settings when the plugin is deleted.<br> This helps keep your database clean if you no longer plan to use the plugin."
     248msgstr ""
     249
     250#: includes/class-settings-page.php:199
     251msgid "📢 Important: Fix 404 Errors"
     252msgstr ""
     253
     254#: includes/class-settings-page.php:202
     255msgid "Share links require pretty permalinks. "
     256msgstr ""
     257
     258#. translators: %s is a link to WordPress Settings → Permalinks page
     259#: includes/class-settings-page.php:207
     260msgid "If share links or My Account → Saved Carts show 404 errors: Go to %s and click \"Save Changes\" (no need to change anything). This refreshes WordPress URL rules and fixes 404 issues."
     261msgstr ""
     262
     263#: includes/class-settings-page.php:208
     264msgid "Settings → Permalinks"
     265msgstr ""
     266
     267#: includes/class-settings-page.php:210
     268msgid "Why this happens: WordPress needs to refresh URL routing when new link structures are added."
     269msgstr ""
     270
     271#: includes/class-settings-page.php:286
     272msgid "Cart Share & Save Settings"
     273msgstr ""
     274
     275#: includes/class-settings-page.php:291
     276msgid "Save Settings"
     277msgstr ""
     278
     279#: includes/class-url-handler.php:100
     280msgid "Shared cart not found."
     281msgstr ""
     282
     283#: includes/class-url-handler.php:107
     284msgid "This shared cart has expired."
     285msgstr ""
     286
     287#: includes/class-url-handler.php:123
     288msgid "Shared cart loaded successfully!"
     289msgstr ""
     290
     291#: includes/class-url-handler.php:125
     292msgid "Failed to load shared cart."
     293msgstr ""
     294
     295#: lean-cart-share-and-save.php:34
     296msgid "Lean Cart Share and Save requires WooCommerce to be installed and active."
     297msgstr ""
     298
     299#: templates/my-account/saved-carts.php:21
     300msgid "No saved carts found."
     301msgstr ""
     302
     303#: templates/my-account/saved-carts.php:24
     304msgid "Start Shopping"
     305msgstr ""
     306
     307#: templates/my-account/saved-carts.php:33
     308#: templates/my-account/saved-carts.php:46
     309msgid "Cart Name"
     310msgstr ""
     311
     312#: templates/my-account/saved-carts.php:36
     313#: templates/my-account/saved-carts.php:49
     314msgid "Saved On"
     315msgstr ""
    18316
    19317#: templates/my-account/saved-carts.php:39
     
    22320msgstr ""
    23321
    24 #: includes/class-settings-page.php:119
    25 msgid "Allow logged-in users to save their cart"
    26 msgstr ""
    27 
    28 #: includes/class-settings-page.php:84
    29 msgid "Allow users to share their cart"
     322#: templates/my-account/saved-carts.php:57
     323msgid "Restore this cart"
     324msgstr ""
     325
     326#: templates/my-account/saved-carts.php:58
     327msgid "Restore"
     328msgstr ""
     329
     330#: templates/my-account/saved-carts.php:62
     331msgid "Delete this cart"
    30332msgstr ""
    31333
    32334#: templates/my-account/saved-carts.php:63
    33 msgid ""
    34 "Are you sure you want to delete this saved cart? This action cannot be "
    35 "undone."
    36 msgstr ""
    37 
    38 #. Author of the plugin
    39 msgid "AZPlugins"
    40 msgstr ""
    41 
    42 #: includes/class-assets-manager.php:92
    43 msgid "Cancel"
    44 msgstr ""
    45 
    46 #: includes/class-ajax-actions.php:108 includes/class-base.php:157
    47 msgid "Cart deleted successfully!"
    48 msgstr ""
    49 
    50 #: includes/class-cart-handler.php:153 includes/class-cart-handler.php:197
    51 msgid "Cart is empty"
    52 msgstr ""
    53 
    54 #: templates/my-account/saved-carts.php:33
    55 #: templates/my-account/saved-carts.php:46
    56 msgid "Cart Name"
    57 msgstr ""
    58 
    59 #: includes/class-ajax-actions.php:73
    60 msgid "Cart name is required"
    61 msgstr ""
    62 
    63 #: includes/class-settings-page.php:108
    64 msgid "Cart Save Settings"
    65 msgstr ""
    66 
    67 #: includes/class-cart-handler.php:216
    68 msgid "Cart saved successfully!"
    69 msgstr ""
    70 
    71 #: includes/class-settings-page.php:53 includes/class-settings-page.php:54
    72 msgid "Cart Share & Save"
    73 msgstr ""
    74 
    75 #: includes/class-settings-page.php:296
    76 msgid "Cart Share & Save Settings"
    77 msgstr ""
    78 
    79 #: includes/class-settings-page.php:73
    80 msgid "Cart Share Settings"
    81 msgstr ""
    82 
    83 #: includes/class-assets-manager.php:90
    84 msgid "Close"
    85 msgstr ""
    86 
    87 #: includes/class-assets-manager.php:89
    88 msgid "Copy"
    89 msgstr ""
    90 
    91 #: includes/class-settings-page.php:125
    92 msgid "Data Management"
     335msgid "Are you sure you want to delete this saved cart? This action cannot be undone."
    93336msgstr ""
    94337
     
    96339msgid "Delete"
    97340msgstr ""
    98 
    99 #: includes/class-settings-page.php:132
    100 msgid "Delete All Data on Uninstall"
    101 msgstr ""
    102 
    103 #: templates/my-account/saved-carts.php:62
    104 msgid "Delete this cart"
    105 msgstr ""
    106 
    107 #: includes/class-settings-page.php:115
    108 msgid "Enable Save Cart"
    109 msgstr ""
    110 
    111 #: includes/class-settings-page.php:80
    112 msgid "Enable Share Cart"
    113 msgstr ""
    114 
    115 #: includes/class-assets-manager.php:93
    116 msgid "Enter cart name..."
    117 msgstr ""
    118 
    119 #: includes/class-ajax-actions.php:108
    120 msgid "Failed to delete cart"
    121 msgstr ""
    122 
    123 #: includes/class-base.php:159
    124 msgid "Failed to delete cart."
    125 msgstr ""
    126 
    127 #: includes/class-url-handler.php:125
    128 msgid "Failed to load shared cart."
    129 msgstr ""
    130 
    131 #: includes/class-cart-handler.php:216
    132 msgid "Failed to save cart"
    133 msgstr ""
    134 
    135 #: includes/class-cart-handler.php:180
    136 msgid "Failed to share cart"
    137 msgstr ""
    138 
    139 #. %s is a link to WordPress Settings → Permalinks page
    140 #: includes/class-settings-page.php:217
    141 #, php-format
    142 msgid ""
    143 "If share links or My Account → Saved Carts show 404 errors: Go to %s and "
    144 "click \"Save Changes\" (no need to change anything). This refreshes "
    145 "WordPress URL rules and fixes 404 issues."
    146 msgstr ""
    147 
    148 #: includes/class-ajax-actions.php:94
    149 msgid "Invalid cart ID"
    150 msgstr ""
    151 
    152 #. Name of the plugin
    153 msgid "Lean Cart Share and Save"
    154 msgstr ""
    155 
    156 #: lean-cart-share-and-save.php:34
    157 msgid ""
    158 "Lean Cart Share and Save requires WooCommerce to be installed and active."
    159 msgstr ""
    160 
    161 #. Description of the plugin
    162 msgid "Lightweight cart sharing and saving for WooCommerce"
    163 msgstr ""
    164 
    165 #: includes/class-assets-manager.php:95
    166 msgid "Link copied to clipboard!"
    167 msgstr ""
    168 
    169 #: templates/my-account/saved-carts.php:21
    170 msgid "No saved carts found."
    171 msgstr ""
    172 
    173 #: includes/class-assets-manager.php:94
    174 msgid "Please enter a cart name"
    175 msgstr ""
    176 
    177 #: includes/class-ajax-actions.php:89
    178 msgid "Please log in to delete cart"
    179 msgstr ""
    180 
    181 #: includes/class-base.php:142
    182 msgid "Please log in to delete cart."
    183 msgstr ""
    184 
    185 #: includes/class-cart-handler.php:191
    186 msgid "Please log in to save cart"
    187 msgstr ""
    188 
    189 #: includes/class-settings-page.php:136
    190 msgid ""
    191 "Remove all saved & shared carts and plugin settings when the plugin is "
    192 "deleted (unchecked by default). <br> This helps keep your database clean if "
    193 "you no longer plan to use the plugin."
    194 msgstr ""
    195 
    196 #: templates/my-account/saved-carts.php:58
    197 msgid "Restore"
    198 msgstr ""
    199 
    200 #: templates/my-account/saved-carts.php:57
    201 msgid "Restore this cart"
    202 msgstr ""
    203 
    204 #: includes/class-assets-manager.php:91
    205 msgid "Save"
    206 msgstr ""
    207 
    208 #: includes/class-base.php:81
    209 msgid "Save Cart"
    210 msgstr ""
    211 
    212 #: includes/class-settings-page.php:301
    213 msgid "Save Settings"
    214 msgstr ""
    215 
    216 #: includes/class-assets-manager.php:88
    217 msgid "Save Your Cart"
    218 msgstr ""
    219 
    220 #: includes/class-base.php:108 templates/my-account/saved-carts.php:17
    221 msgid "Saved Carts"
    222 msgstr ""
    223 
    224 #: templates/my-account/saved-carts.php:36
    225 #: templates/my-account/saved-carts.php:49
    226 msgid "Saved On"
    227 msgstr ""
    228 
    229 #: includes/class-base.php:137
    230 msgid "Security verification failed."
    231 msgstr ""
    232 
    233 #: includes/class-settings-page.php:102
    234 msgid ""
    235 "Set to 0 for no expiration, or number of days before shared carts expire"
    236 msgstr ""
    237 
    238 #: includes/class-settings-page.php:218
    239 msgid "Settings → Permalinks"
    240 msgstr ""
    241 
    242 #: includes/class-base.php:77
    243 msgid "Share Cart"
    244 msgstr ""
    245 
    246 #: includes/class-settings-page.php:98
    247 msgid "Share Expiry (Days)"
    248 msgstr ""
    249 
    250 #: includes/class-settings-page.php:212
    251 msgid "Share links require pretty permalinks. "
    252 msgstr ""
    253 
    254 #: includes/class-assets-manager.php:87
    255 msgid "Share Your Cart"
    256 msgstr ""
    257 
    258 #: includes/class-url-handler.php:123
    259 msgid "Shared cart loaded successfully!"
    260 msgstr ""
    261 
    262 #: includes/class-url-handler.php:100
    263 msgid "Shared cart not found."
    264 msgstr ""
    265 
    266 #: templates/my-account/saved-carts.php:24
    267 msgid "Start Shopping"
    268 msgstr ""
    269 
    270 #: includes/class-url-handler.php:107
    271 msgid "This shared cart has expired."
    272 msgstr ""
    273 
    274 #: includes/class-settings-page.php:220
    275 msgid ""
    276 "Why this happens: WordPress needs to refresh URL routing when new link "
    277 "structures are added."
    278 msgstr ""
    279 
    280 #: includes/class-ajax-actions.php:101
    281 msgid "You are not authorized to delete this cart"
    282 msgstr ""
    283 
    284 #: includes/class-base.php:150
    285 msgid "You are not authorized to delete this cart."
    286 msgstr ""
    287 
    288 #: includes/class-settings-page.php:209
    289 msgid "📢 Important: Fix 404 Errors"
    290 msgstr ""
  • lean-cart-share-and-save/trunk/lean-cart-share-and-save.php

    r3382502 r3388256  
    44 * 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.4
     6 * Version: 1.0.5
    77 * Author: LeanPlugins
    88 * Author URI: https://leanplugins.com/
     
    2020
    2121// Define plugin constants
    22 define('LEAN_CSNS_VERSION', '1.0.4');
     22define('LEAN_CSNS_VERSION', '1.0.5');
    2323define('LEAN_CSNS_DB_VERSION', '1.0.0');
    2424define('LEAN_CSNS_PL_FILE', __FILE__);
     
    5858        'class-settings-page.php',
    5959        'class-ajax-actions.php',
    60         'class-assets-manager.php'
     60        'class-assets-manager.php',
     61        'class-deactivation-feedback.php'
    6162    ];
    6263   
  • lean-cart-share-and-save/trunk/readme.txt

    r3382502 r3388256  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.4
     7Stable tag: 1.0.5
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1818
    1919Lightweight, works with classic themes and modern FSE Cart Blocks, and helps reduce cart abandonment while enabling natural product sharing.
     20
     21**[Learn More](https://leanplugins.com/wordpress-plugins/cart-share-and-save/)**
    2022
    2123== Live Demo ==
     
    141143Go to Settings → Permalinks in your WordPress admin and click "Save Changes" (no need to change anything). This refreshes WordPress URL rules.
    142144
     145= Does this plugin use any third-party services? =
     146
     147Yes. When you deactivate this plugin, a feedback modal appears. If you choose to submit feedback, these 5 pieces of information are sent to our server:
     148
     149* Your deactivation reason (from the options provided)
     150* Your optional comment (if you write one)
     151* Plugin version
     152* WordPress version
     153* PHP version
     154
     155This feedback helps us understand real-world issues and prioritize fixes. You can click "Skip & Deactivate" to skip feedback entirely.
     156
     157**Service Used:** Supabase (https://supabase.com/)
     158**Privacy Policy:** https://supabase.com/privacy
     159**Terms of Service:** https://supabase.com/terms
     160
     161The feedback is only sent when you click "Submit & Deactivate". Nothing is collected during normal plugin usage.
     162
    143163== Screenshots ==
    144164
     
    151171
    152172== Changelog ==
     173
     174= 1.0.5 =
     175* New: Added Settings link to plugin action links
     176* Updated: Language translation file
    153177
    154178= 1.0.4 =
Note: See TracChangeset for help on using the changeset viewer.