diff --git a/composer.lock b/composer.lock index cb37cb1..000d35f 100644 --- a/composer.lock +++ b/composer.lock @@ -56,16 +56,16 @@ }, { "name": "wpfactory/wpfactory-cross-selling", - "version": "v1.0.2", + "version": "v1.0.3", "source": { "type": "git", "url": "https://github.com/wpcodefactory/wpfactory-cross-selling.git", - "reference": "6637ce11b91ee75922c6e7a63c8c5f69429c1990" + "reference": "d37c73013e897d3ce3db05b97046b30fdd2fd403" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wpcodefactory/wpfactory-cross-selling/zipball/6637ce11b91ee75922c6e7a63c8c5f69429c1990", - "reference": "6637ce11b91ee75922c6e7a63c8c5f69429c1990", + "url": "https://api.github.com/repos/wpcodefactory/wpfactory-cross-selling/zipball/d37c73013e897d3ce3db05b97046b30fdd2fd403", + "reference": "d37c73013e897d3ce3db05b97046b30fdd2fd403", "shasum": "" }, "require": { @@ -100,10 +100,10 @@ ] }, "support": { - "source": "https://github.com/wpcodefactory/wpfactory-cross-selling/tree/v1.0.2", + "source": "https://github.com/wpcodefactory/wpfactory-cross-selling/tree/v1.0.3", "issues": "https://github.com/wpcodefactory/wpfactory-cross-selling/issues" }, - "time": "2024-10-14T15:28:57+00:00" + "time": "2024-10-31T15:55:35+00:00" }, { "name": "wpfactory/wpfactory-promoting-notice", diff --git a/includes/admin/class-alg-wc-wish-list-settings-list.php b/includes/admin/class-alg-wc-wish-list-settings-list.php index 5c5fe9d..015a4a2 100644 --- a/includes/admin/class-alg-wc-wish-list-settings-list.php +++ b/includes/admin/class-alg-wc-wish-list-settings-list.php @@ -2,7 +2,7 @@ /** * Wishlist for WooCommerce - Wishlist Section Settings * - * @version 2.3.7 + * @version 3.1.3 * @since 1.0.0 * @author WPFactory */ @@ -80,7 +80,7 @@ function get_section_priority() { /** * get_settings. * - * @version 2.3.7 + * @version 3.1.3 * @since 1.0.0 */ function get_settings( $settings = array() ) { @@ -199,11 +199,12 @@ function get_settings( $settings = array() ) { 'type' => 'checkbox', ), array( - 'title' => __( 'Quantity', 'wish-list-for-woocommerce' ), - 'desc' => __( 'Show product quantity', 'wish-list-for-woocommerce' ), - 'id' => self::OPTION_SHOW_QUANTITY, - 'default' => 'no', - 'type' => 'checkbox', + 'title' => __( 'Quantity', 'wish-list-for-woocommerce' ), + 'desc' => __( 'Show product quantity', 'wish-list-for-woocommerce' ), + 'id' => self::OPTION_SHOW_QUANTITY, + 'default' => 'no', + 'type' => 'checkbox', + 'custom_attributes' => apply_filters( 'alg_wc_wishlist_settings', array( 'disabled' => 'disabled' ) ) ), array( 'title' => __( 'Description', 'wish-list-for-woocommerce' ), diff --git a/includes/class-alg-wc-wish-list-core.php b/includes/class-alg-wc-wish-list-core.php index 7da24c4..c1b3a17 100644 --- a/includes/class-alg-wc-wish-list-core.php +++ b/includes/class-alg-wc-wish-list-core.php @@ -21,7 +21,7 @@ final class Alg_WC_Wish_List_Core { * @var string * @since 1.0.0 */ - public $version = '3.1.2'; + public $version = '3.1.3'; /** * @var Alg_WC_Wish_List_Core The single instance of the class diff --git a/langs/wish-list-for-woocommerce-fr_FR.po b/langs/wish-list-for-woocommerce-fr_FR.po index 1067fd5..3bb6243 100644 --- a/langs/wish-list-for-woocommerce-fr_FR.po +++ b/langs/wish-list-for-woocommerce-fr_FR.po @@ -210,7 +210,7 @@ msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-admin.php:241 #: includes/admin/class-alg-wc-wish-list-settings-list.php:195 -#: templates/wish-list.php:403 +#: templates/wish-list.php:408 msgid "SKU" msgstr "SKU" @@ -315,13 +315,13 @@ msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-buttons.php:232 #: includes/admin/class-alg-wc-wish-list-settings-list.php:136 #: includes/admin/class-alg-wc-wish-list-settings-list.php:156 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "This is a Pro feature, you will need Wishlist for WooCommerce Pro to enable it." msgstr "" @@ -721,8 +721,8 @@ msgid "Show product stock" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:181 -#: templates/wish-list.php:255 -#: templates/wish-list.php:367 +#: templates/wish-list.php:260 +#: templates/wish-list.php:372 msgid "Price" msgstr "Prix" @@ -743,7 +743,7 @@ msgid "Show product SKU" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:202 -#: templates/wish-list.php:410 +#: templates/wish-list.php:415 msgid "Quantity" msgstr "" @@ -751,287 +751,287 @@ msgstr "" msgid "Show product quantity" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:209 -#: templates/wish-list.php:389 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: templates/wish-list.php:394 msgid "Description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:211 msgid "Show product description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:216 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 msgid "Attributes" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 msgid "Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 msgid "In order to see the attributes, it is necessary to select a variation before adding it to wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "The option %s needs to be enabled." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "General > Variable products" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:225 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 msgid "Images on Emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:227 msgid "Show product images on emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:232 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:266 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 #: templates/alg_wcwl-subtotal.php:1 -#: templates/wish-list.php:420 +#: templates/wish-list.php:425 msgid "Subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:234 msgid "Show subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:239 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 msgid "Categories" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:241 msgid "Show products categories on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:246 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:247 msgid "Taxonomies" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:260 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:261 msgid "Wishlist items subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:262 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:263 msgid "The subtotal will show the sum of all the items in the wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:268 msgid "Display subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:273 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:274 #: includes/admin/class-alg-wc-wish-list-settings-social.php:75 #: includes/admin/class-alg-wc-wish-list-settings-style.php:385 msgid "Position" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:277 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 msgid "Before Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:279 msgid "After Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:290 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:291 msgid "Auto remove items" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:292 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:293 msgid "Remove products from wish list in some specific circumstance." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:296 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 msgid "When purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:298 msgid "Remove products from wish list in case they get purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:311 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 msgid "When added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:313 msgid "Remove item from wish list in case it gets added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:324 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:330 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:325 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 msgid "Drag and drop Ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:326 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:327 msgid "Sort the wish list items using drag and drop." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 msgid "Enable wish list item ordering using drag and drop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:338 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 msgid "Jquery UI Touch Punch" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 msgid "Enqueue Touch Punch script responsible for enabling the use of touch events" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:341 msgid "Enable if the drag and drop does not work on some IOS devices." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:347 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:382 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:65 msgid "Desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 msgid "Display drag and drop on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:355 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:390 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:72 msgid "Mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 msgid "Display drag and drop on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:368 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:374 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:369 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 msgid "Arrow ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:370 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:371 msgid "Sort the wish list items by clicking on down/up arrows present on each row." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 msgid "Enable wish list item ordering with arrows" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 msgid "Display arrow sorting on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "Display arrow sorting on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:405 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:411 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:406 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 msgid "Note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:407 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:408 msgid "A new column added to the wish list table allowing users to enter a note for each added item." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 msgid "Enable the note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "It's necessary to enable the option %s" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "Wish list table columns > Attributes > Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:419 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:420 msgid "Field label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:421 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:422 #: includes/free/class-alg-wc-wish-list-note-field.php:87 msgid "Note" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:425 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:426 msgid "Field type" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:429 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 msgid "Text" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:431 msgid "TextArea" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:435 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 msgid "Max length" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:437 msgid "Max number of characters allowed in the field." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:447 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:454 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:448 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 #: templates/alg_wcwl_stock_alert.php:3 msgid "Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:449 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 msgid "Notify users via email when out-of-stock products they had added to their wishlist are in-stock." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:451 msgid "Note: Users can enable/disable this option on their wish list pages." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:456 msgid "Enable Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:468 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:469 msgid "My account - Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:473 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 msgid "Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 msgid "Create a wishlist tab on \"my account\" page" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:476 msgid "If it does not work on the first attempt, please go to Permalink Settings and save changes." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:481 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 msgid "Tab slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 msgid "Tab slug that will be part of url" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:484 msgid "Note: You cannot have two identical slugs on your site. If something goes wrong, try to change this slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:489 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 msgid "Tab label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:491 msgid "Tab label that will be part of my account menu" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:492 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:493 #: includes/admin/class-alg-wc-wish-list-settings.php:24 #: includes/free/class-alg-wc-wish-list-page.php:37 #: includes/free/class-alg-wc-wish-list-widget-link.php:48 @@ -1040,15 +1040,15 @@ msgstr "" msgid "Wishlist" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:496 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 msgid "Priority" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 msgid "Try to change it if you are not getting good results, probably lowering it." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:499 msgid "Manages the WooCommerce hook responsible for adding the tab on My Account page. " msgstr "" @@ -2253,34 +2253,35 @@ msgstr "E-mails (séparés par des virgules)" msgid "Submit" msgstr "Soumettre" -#: templates/wish-list.php:228 +#: templates/wish-list.php:234 +#: templates/wish-list.php:235 msgid "Delete Wishlist" msgstr "Supprimer la liste de souhaits" -#: templates/wish-list.php:251 -#: templates/wish-list.php:349 +#: templates/wish-list.php:256 +#: templates/wish-list.php:354 msgid "Product" msgstr "Produit" -#: templates/wish-list.php:260 -#: templates/wish-list.php:374 +#: templates/wish-list.php:265 +#: templates/wish-list.php:379 msgid "Category" msgstr "Catégorie" -#: templates/wish-list.php:305 -#: templates/wish-list.php:450 +#: templates/wish-list.php:310 +#: templates/wish-list.php:455 msgid "Remove" msgstr "Retirer" -#: templates/wish-list.php:319 +#: templates/wish-list.php:324 msgid "Drag and drop" msgstr "Glisser déposer" -#: templates/wish-list.php:325 +#: templates/wish-list.php:330 msgid "Sort" msgstr "Trier" -#: templates/wish-list.php:337 +#: templates/wish-list.php:342 msgid "Thumbnail" msgstr "Vignette" @@ -2338,7 +2339,8 @@ msgid "Wishlist successfully saved." msgstr "" #: includes/class-alg-wc-wish-list-core.php:1520 -#: templates/wish-list.php:222 +#: templates/wish-list.php:228 +#: templates/wish-list.php:229 msgid "Copy Wishlist" msgstr "" @@ -2350,39 +2352,39 @@ msgstr "" msgid "Clear Wish List" msgstr "" -#: templates/wish-list.php:205 +#: templates/wish-list.php:208 msgid "Default sorting" msgstr "" -#: templates/wish-list.php:206 +#: templates/wish-list.php:209 msgid "Sort by product name A - Z" msgstr "" -#: templates/wish-list.php:207 +#: templates/wish-list.php:210 msgid "Sort by product name Z - A" msgstr "" -#: templates/wish-list.php:208 +#: templates/wish-list.php:211 msgid "Sort by latest" msgstr "" -#: templates/wish-list.php:209 +#: templates/wish-list.php:212 msgid "Sort by oldest" msgstr "" -#: templates/wish-list.php:210 +#: templates/wish-list.php:213 msgid "Sort by price: low to high" msgstr "" -#: templates/wish-list.php:211 +#: templates/wish-list.php:214 msgid "Sort by price: high to low" msgstr "" -#: templates/wish-list.php:212 +#: templates/wish-list.php:215 msgid "Sort by SKU A - Z" msgstr "" -#: templates/wish-list.php:213 +#: templates/wish-list.php:216 msgid "Sort by SKU Z - A" msgstr "" diff --git a/langs/wish-list-for-woocommerce-nl_NL.po b/langs/wish-list-for-woocommerce-nl_NL.po index e4b1625..7d929f8 100644 --- a/langs/wish-list-for-woocommerce-nl_NL.po +++ b/langs/wish-list-for-woocommerce-nl_NL.po @@ -210,7 +210,7 @@ msgstr "Productidentificatiemethode." #: includes/admin/class-alg-wc-wish-list-settings-admin.php:241 #: includes/admin/class-alg-wc-wish-list-settings-list.php:195 -#: templates/wish-list.php:403 +#: templates/wish-list.php:408 msgid "SKU" msgstr "SKU" @@ -315,13 +315,13 @@ msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-buttons.php:232 #: includes/admin/class-alg-wc-wish-list-settings-list.php:136 #: includes/admin/class-alg-wc-wish-list-settings-list.php:156 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "This is a Pro feature, you will need Wishlist for WooCommerce Pro to enable it." msgstr "" @@ -721,8 +721,8 @@ msgid "Show product stock" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:181 -#: templates/wish-list.php:255 -#: templates/wish-list.php:367 +#: templates/wish-list.php:260 +#: templates/wish-list.php:372 msgid "Price" msgstr "" @@ -743,7 +743,7 @@ msgid "Show product SKU" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:202 -#: templates/wish-list.php:410 +#: templates/wish-list.php:415 msgid "Quantity" msgstr "" @@ -751,287 +751,287 @@ msgstr "" msgid "Show product quantity" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:209 -#: templates/wish-list.php:389 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: templates/wish-list.php:394 msgid "Description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:211 msgid "Show product description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:216 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 msgid "Attributes" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 msgid "Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 msgid "In order to see the attributes, it is necessary to select a variation before adding it to wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "The option %s needs to be enabled." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "General > Variable products" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:225 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 msgid "Images on Emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:227 msgid "Show product images on emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:232 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:266 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 #: templates/alg_wcwl-subtotal.php:1 -#: templates/wish-list.php:420 +#: templates/wish-list.php:425 msgid "Subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:234 msgid "Show subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:239 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 msgid "Categories" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:241 msgid "Show products categories on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:246 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:247 msgid "Taxonomies" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:260 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:261 msgid "Wishlist items subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:262 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:263 msgid "The subtotal will show the sum of all the items in the wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:268 msgid "Display subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:273 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:274 #: includes/admin/class-alg-wc-wish-list-settings-social.php:75 #: includes/admin/class-alg-wc-wish-list-settings-style.php:385 msgid "Position" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:277 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 msgid "Before Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:279 msgid "After Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:290 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:291 msgid "Auto remove items" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:292 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:293 msgid "Remove products from wish list in some specific circumstance." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:296 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 msgid "When purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:298 msgid "Remove products from wish list in case they get purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:311 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 msgid "When added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:313 msgid "Remove item from wish list in case it gets added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:324 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:330 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:325 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 msgid "Drag and drop Ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:326 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:327 msgid "Sort the wish list items using drag and drop." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 msgid "Enable wish list item ordering using drag and drop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:338 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 msgid "Jquery UI Touch Punch" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 msgid "Enqueue Touch Punch script responsible for enabling the use of touch events" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:341 msgid "Enable if the drag and drop does not work on some IOS devices." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:347 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:382 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:65 msgid "Desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 msgid "Display drag and drop on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:355 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:390 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:72 msgid "Mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 msgid "Display drag and drop on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:368 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:374 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:369 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 msgid "Arrow ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:370 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:371 msgid "Sort the wish list items by clicking on down/up arrows present on each row." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 msgid "Enable wish list item ordering with arrows" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 msgid "Display arrow sorting on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "Display arrow sorting on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:405 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:411 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:406 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 msgid "Note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:407 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:408 msgid "A new column added to the wish list table allowing users to enter a note for each added item." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 msgid "Enable the note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "It's necessary to enable the option %s" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "Wish list table columns > Attributes > Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:419 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:420 msgid "Field label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:421 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:422 #: includes/free/class-alg-wc-wish-list-note-field.php:87 msgid "Note" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:425 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:426 msgid "Field type" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:429 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 msgid "Text" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:431 msgid "TextArea" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:435 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 msgid "Max length" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:437 msgid "Max number of characters allowed in the field." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:447 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:454 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:448 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 #: templates/alg_wcwl_stock_alert.php:3 msgid "Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:449 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 msgid "Notify users via email when out-of-stock products they had added to their wishlist are in-stock." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:451 msgid "Note: Users can enable/disable this option on their wish list pages." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:456 msgid "Enable Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:468 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:469 msgid "My account - Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:473 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 msgid "Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 msgid "Create a wishlist tab on \"my account\" page" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:476 msgid "If it does not work on the first attempt, please go to Permalink Settings and save changes." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:481 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 msgid "Tab slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 msgid "Tab slug that will be part of url" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:484 msgid "Note: You cannot have two identical slugs on your site. If something goes wrong, try to change this slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:489 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 msgid "Tab label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:491 msgid "Tab label that will be part of my account menu" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:492 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:493 #: includes/admin/class-alg-wc-wish-list-settings.php:24 #: includes/free/class-alg-wc-wish-list-page.php:37 #: includes/free/class-alg-wc-wish-list-widget-link.php:48 @@ -1040,15 +1040,15 @@ msgstr "" msgid "Wishlist" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:496 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 msgid "Priority" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 msgid "Try to change it if you are not getting good results, probably lowering it." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:499 msgid "Manages the WooCommerce hook responsible for adding the tab on My Account page. " msgstr "" @@ -2253,34 +2253,35 @@ msgstr "E-mails (door komma's gescheiden)" msgid "Submit" msgstr "Verzenden" -#: templates/wish-list.php:228 +#: templates/wish-list.php:234 +#: templates/wish-list.php:235 msgid "Delete Wishlist" msgstr "Verlanglijst verwijderen" -#: templates/wish-list.php:251 -#: templates/wish-list.php:349 +#: templates/wish-list.php:256 +#: templates/wish-list.php:354 msgid "Product" msgstr "Product" -#: templates/wish-list.php:260 -#: templates/wish-list.php:374 +#: templates/wish-list.php:265 +#: templates/wish-list.php:379 msgid "Category" msgstr "Categorie" -#: templates/wish-list.php:305 -#: templates/wish-list.php:450 +#: templates/wish-list.php:310 +#: templates/wish-list.php:455 msgid "Remove" msgstr "Verwijderen" -#: templates/wish-list.php:319 +#: templates/wish-list.php:324 msgid "Drag and drop" msgstr "Slepen en neerzetten" -#: templates/wish-list.php:325 +#: templates/wish-list.php:330 msgid "Sort" msgstr "Sorteer" -#: templates/wish-list.php:337 +#: templates/wish-list.php:342 msgid "Thumbnail" msgstr "Thumbnail" @@ -2338,7 +2339,8 @@ msgid "Wishlist successfully saved." msgstr "" #: includes/class-alg-wc-wish-list-core.php:1520 -#: templates/wish-list.php:222 +#: templates/wish-list.php:228 +#: templates/wish-list.php:229 msgid "Copy Wishlist" msgstr "" @@ -2350,39 +2352,39 @@ msgstr "" msgid "Clear Wish List" msgstr "" -#: templates/wish-list.php:205 +#: templates/wish-list.php:208 msgid "Default sorting" msgstr "" -#: templates/wish-list.php:206 +#: templates/wish-list.php:209 msgid "Sort by product name A - Z" msgstr "" -#: templates/wish-list.php:207 +#: templates/wish-list.php:210 msgid "Sort by product name Z - A" msgstr "" -#: templates/wish-list.php:208 +#: templates/wish-list.php:211 msgid "Sort by latest" msgstr "" -#: templates/wish-list.php:209 +#: templates/wish-list.php:212 msgid "Sort by oldest" msgstr "" -#: templates/wish-list.php:210 +#: templates/wish-list.php:213 msgid "Sort by price: low to high" msgstr "" -#: templates/wish-list.php:211 +#: templates/wish-list.php:214 msgid "Sort by price: high to low" msgstr "" -#: templates/wish-list.php:212 +#: templates/wish-list.php:215 msgid "Sort by SKU A - Z" msgstr "" -#: templates/wish-list.php:213 +#: templates/wish-list.php:216 msgid "Sort by SKU Z - A" msgstr "" diff --git a/langs/wish-list-for-woocommerce.pot b/langs/wish-list-for-woocommerce.pot index ca88b6c..1fd79a8 100644 --- a/langs/wish-list-for-woocommerce.pot +++ b/langs/wish-list-for-woocommerce.pot @@ -2,14 +2,14 @@ # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" -"Project-Id-Version: wish-list-for-woocommerce 3.1.2\n" +"Project-Id-Version: wish-list-for-woocommerce 3.1.3\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wish-list-for-woocommerce\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-10-24T00:28:28+02:00\n" +"POT-Creation-Date: 2024-11-15T20:01:28+01:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.7.1\n" "X-Domain: wish-list-for-woocommerce\n" @@ -219,7 +219,7 @@ msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-admin.php:241 #: includes/admin/class-alg-wc-wish-list-settings-list.php:195 -#: templates/wish-list.php:403 +#: templates/wish-list.php:408 msgid "SKU" msgstr "" @@ -344,13 +344,13 @@ msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-buttons.php:232 #: includes/admin/class-alg-wc-wish-list-settings-list.php:136 #: includes/admin/class-alg-wc-wish-list-settings-list.php:156 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "This is a Pro feature, you will need Wishlist for WooCommerce Pro to enable it." msgstr "" @@ -782,8 +782,8 @@ msgid "Show product stock" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:181 -#: templates/wish-list.php:255 -#: templates/wish-list.php:367 +#: templates/wish-list.php:260 +#: templates/wish-list.php:372 msgid "Price" msgstr "" @@ -804,7 +804,7 @@ msgid "Show product SKU" msgstr "" #: includes/admin/class-alg-wc-wish-list-settings-list.php:202 -#: templates/wish-list.php:410 +#: templates/wish-list.php:415 msgid "Quantity" msgstr "" @@ -812,287 +812,287 @@ msgstr "" msgid "Show product quantity" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:209 -#: templates/wish-list.php:389 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: templates/wish-list.php:394 msgid "Description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:210 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:211 msgid "Show product description" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:216 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 msgid "Attributes" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:217 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 msgid "Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:218 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 msgid "In order to see the attributes, it is necessary to select a variation before adding it to wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "The option %s needs to be enabled." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:219 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:220 msgid "General > Variable products" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:225 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 msgid "Images on Emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:226 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:227 msgid "Show product images on emails" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:232 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:266 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 #: templates/alg_wcwl-subtotal.php:1 -#: templates/wish-list.php:420 +#: templates/wish-list.php:425 msgid "Subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:233 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:234 msgid "Show subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:239 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 msgid "Categories" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:240 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:241 msgid "Show products categories on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:246 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:247 msgid "Taxonomies" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:260 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:261 msgid "Wishlist items subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:262 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:263 msgid "The subtotal will show the sum of all the items in the wish list." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:267 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:268 msgid "Display subtotal" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:273 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:274 #: includes/admin/class-alg-wc-wish-list-settings-social.php:75 #: includes/admin/class-alg-wc-wish-list-settings-style.php:385 msgid "Position" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:277 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 msgid "Before Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:278 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:279 msgid "After Wish list table" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:290 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:291 msgid "Auto remove items" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:292 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:293 msgid "Remove products from wish list in some specific circumstance." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:296 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 msgid "When purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:297 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:298 msgid "Remove products from wish list in case they get purchased" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:311 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 msgid "When added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:312 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:313 msgid "Remove item from wish list in case it gets added to cart" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:324 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:330 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:325 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 msgid "Drag and drop Ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:326 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:327 msgid "Sort the wish list items using drag and drop." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:331 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:332 msgid "Enable wish list item ordering using drag and drop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:338 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 msgid "Jquery UI Touch Punch" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:339 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 msgid "Enqueue Touch Punch script responsible for enabling the use of touch events" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:340 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:341 msgid "Enable if the drag and drop does not work on some IOS devices." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:347 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:382 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:65 msgid "Desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:348 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:349 msgid "Display drag and drop on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:355 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:390 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 #: includes/admin/class-alg-wc-wish-list-settings-notification.php:72 msgid "Mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:356 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:357 msgid "Display drag and drop on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:368 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:374 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:369 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 msgid "Arrow ordering" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:370 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:371 msgid "Sort the wish list items by clicking on down/up arrows present on each row." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:375 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:376 msgid "Enable wish list item ordering with arrows" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:383 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:384 msgid "Display arrow sorting on desktop" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:391 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:392 msgid "Display arrow sorting on mobile" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:405 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:411 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:406 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 msgid "Note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:407 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:408 msgid "A new column added to the wish list table allowing users to enter a note for each added item." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:412 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 msgid "Enable the note field" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "It's necessary to enable the option %s" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:413 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:414 msgid "Wish list table columns > Attributes > Show products attributes on the wish list" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:419 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:420 msgid "Field label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:421 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:422 #: includes/free/class-alg-wc-wish-list-note-field.php:87 msgid "Note" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:425 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:426 msgid "Field type" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:429 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 msgid "Text" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:430 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:431 msgid "TextArea" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:435 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 msgid "Max length" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:436 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:437 msgid "Max number of characters allowed in the field." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:447 -#: includes/admin/class-alg-wc-wish-list-settings-list.php:454 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:448 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 #: templates/alg_wcwl_stock_alert.php:3 msgid "Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:449 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 msgid "Notify users via email when out-of-stock products they had added to their wishlist are in-stock." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:450 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:451 msgid "Note: Users can enable/disable this option on their wish list pages." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:455 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:456 msgid "Enable Stock alert" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:468 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:469 msgid "My account - Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:473 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 msgid "Wishlist tab" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:474 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 msgid "Create a wishlist tab on \"my account\" page" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:475 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:476 msgid "If it does not work on the first attempt, please go to Permalink Settings and save changes." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:481 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 msgid "Tab slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:482 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 msgid "Tab slug that will be part of url" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:483 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:484 msgid "Note: You cannot have two identical slugs on your site. If something goes wrong, try to change this slug" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:489 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 msgid "Tab label" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:490 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:491 msgid "Tab label that will be part of my account menu" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:492 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:493 #: includes/admin/class-alg-wc-wish-list-settings.php:24 #: includes/free/class-alg-wc-wish-list-page.php:37 #: includes/free/class-alg-wc-wish-list-widget-link.php:48 @@ -1101,15 +1101,15 @@ msgstr "" msgid "Wishlist" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:496 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 msgid "Priority" msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:497 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 msgid "Try to change it if you are not getting good results, probably lowering it." msgstr "" -#: includes/admin/class-alg-wc-wish-list-settings-list.php:498 +#: includes/admin/class-alg-wc-wish-list-settings-list.php:499 msgid "Manages the WooCommerce hook responsible for adding the tab on My Account page. " msgstr "" @@ -2150,7 +2150,8 @@ msgid "Cancel" msgstr "" #: includes/class-alg-wc-wish-list-core.php:1520 -#: templates/wish-list.php:222 +#: templates/wish-list.php:228 +#: templates/wish-list.php:229 msgid "Copy Wishlist" msgstr "" @@ -2348,69 +2349,70 @@ msgstr "" msgid "Submit" msgstr "" -#: templates/wish-list.php:205 +#: templates/wish-list.php:208 msgid "Default sorting" msgstr "" -#: templates/wish-list.php:206 +#: templates/wish-list.php:209 msgid "Sort by product name A - Z" msgstr "" -#: templates/wish-list.php:207 +#: templates/wish-list.php:210 msgid "Sort by product name Z - A" msgstr "" -#: templates/wish-list.php:208 +#: templates/wish-list.php:211 msgid "Sort by latest" msgstr "" -#: templates/wish-list.php:209 +#: templates/wish-list.php:212 msgid "Sort by oldest" msgstr "" -#: templates/wish-list.php:210 +#: templates/wish-list.php:213 msgid "Sort by price: low to high" msgstr "" -#: templates/wish-list.php:211 +#: templates/wish-list.php:214 msgid "Sort by price: high to low" msgstr "" -#: templates/wish-list.php:212 +#: templates/wish-list.php:215 msgid "Sort by SKU A - Z" msgstr "" -#: templates/wish-list.php:213 +#: templates/wish-list.php:216 msgid "Sort by SKU Z - A" msgstr "" -#: templates/wish-list.php:228 +#: templates/wish-list.php:234 +#: templates/wish-list.php:235 msgid "Delete Wishlist" msgstr "" -#: templates/wish-list.php:251 -#: templates/wish-list.php:349 +#: templates/wish-list.php:256 +#: templates/wish-list.php:354 msgid "Product" msgstr "" -#: templates/wish-list.php:260 -#: templates/wish-list.php:374 +#: templates/wish-list.php:265 +#: templates/wish-list.php:379 msgid "Category" msgstr "" -#: templates/wish-list.php:305 -#: templates/wish-list.php:450 +#: templates/wish-list.php:310 +#: templates/wish-list.php:455 msgid "Remove" msgstr "" -#: templates/wish-list.php:319 +#: templates/wish-list.php:324 msgid "Drag and drop" msgstr "" -#: templates/wish-list.php:325 +#: templates/wish-list.php:330 msgid "Sort" msgstr "" -#: templates/wish-list.php:337 +#: templates/wish-list.php:342 msgid "Thumbnail" msgstr "" diff --git a/readme.txt b/readme.txt index 0c4cf2e..c528113 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmukherjeeli Tags: woocommerce, wishlist, woocommerce wishlist, add to wishlist, product wishlist Requires at least: 6.1 -Tested up to: 6.6 -Stable tag: 3.1.2 +Tested up to: 6.7 +Stable tag: 3.1.3 Requires PHP: 5.6.0 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -258,6 +258,14 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 3.1.3 - 15/11/2024 = +* Fix - Resolved Reflected XSS vulnerability. +* Dev - Wishlist Page - Quantity - Disabled quantity selection for the free version. +* Dev - Code refactoring and cleanup. +* Dev - Update cross-selling library. +* WC tested up to: 9.4. +* Tested up to: 6.7. + = 3.1.2 - 23/10/2024 = * Dev - New option added to manage text "Default Wishlist" when using Multiple wishlists. diff --git a/templates/wish-list.php b/templates/wish-list.php index ae32022..be60d9b 100644 --- a/templates/wish-list.php +++ b/templates/wish-list.php @@ -3,7 +3,7 @@ * Wish list template. * * @author WPFactory. - * @version 3.0.8 + * @version 3.1.3 * @since 1.0.0 */ @@ -16,31 +16,31 @@ global $wp_query, $wp; $theid = intval( $wp_query->queried_object->ID ); -$the_query = $params['the_query']; -$can_remove_items = $params['can_remove_items']; -$default_wl_text = $params['default_wishlist_text']; -$show_stock = $params['show_stock']; -$show_price = $params['show_price']; -$show_subtotal_col = isset( $params['subtotal_column'] ) ? $params['subtotal_column'] : false; -$show_add_to_cart_btn = $params['show_add_to_cart_btn']; -$products_attributes = isset( $params['product_attributes'] ) ? $params['product_attributes'] : false; -$is_email = isset( $params['is_email'] ) ? $params['is_email'] : false; -$show_product_thumb = true; -$work_with_cache = $params['work_with_cache']; -$email_table_params = ''; -$stock_alert = isset( $params['stock_alert'] ) ? $params['stock_alert'] : false; -$stock_alert_email = isset( $params['stock_alert_email'] ) ? $params['stock_alert_email'] : false; -$stock_alert_enabled = isset( $params['stock_alert_enabled'] ) ? $params['stock_alert_enabled'] : false; -$sku = isset( $params['sku'] ) ? $params['sku'] : false; -$description = isset( $params['product_description'] ) ? $params['product_description'] : false; -$quantity = isset( $params['quantity'] ) ? $params['quantity'] : false; -$show_prod_category = isset( $params['show_prod_category'] ) ? $params['show_prod_category'] : false; -$taxonomies = isset( $params['taxonomies'] ) ? $params['taxonomies'] : array(); -$empty_wishlist_text = isset( $params['empty_wishlist_text'] ) ? $params['empty_wishlist_text'] : __( 'The Wish list is empty.', 'wish-list-for-woocommerce' ); -$drag_drop = isset( $params['drag_and_drop'] ) ? $params['drag_and_drop'] : false; -$drag_drop_icon_class = isset( $params['drag_and_drop_icon_class'] ) ? $params['drag_and_drop_icon_class'] : ''; -$arrow_sorting = isset( $params['arrow_sorting'] ) ? $params['arrow_sorting'] : false; -$arrow_sorting_up_icon_class = isset( $params['arrow_sorting_up_icon_class'] ) ? $params['arrow_sorting_up_icon_class'] : ''; +$the_query = $params['the_query']; +$can_remove_items = $params['can_remove_items']; +$default_wl_text = $params['default_wishlist_text']; +$show_stock = $params['show_stock']; +$show_price = $params['show_price']; +$show_subtotal_col = isset( $params['subtotal_column'] ) ? $params['subtotal_column'] : false; +$show_add_to_cart_btn = $params['show_add_to_cart_btn']; +$products_attributes = isset( $params['product_attributes'] ) ? $params['product_attributes'] : false; +$is_email = isset( $params['is_email'] ) ? $params['is_email'] : false; +$show_product_thumb = true; +$work_with_cache = $params['work_with_cache']; +$email_table_params = ''; +$stock_alert = isset( $params['stock_alert'] ) ? $params['stock_alert'] : false; +$stock_alert_email = isset( $params['stock_alert_email'] ) ? $params['stock_alert_email'] : false; +$stock_alert_enabled = isset( $params['stock_alert_enabled'] ) ? $params['stock_alert_enabled'] : false; +$sku = isset( $params['sku'] ) ? $params['sku'] : false; +$description = isset( $params['product_description'] ) ? $params['product_description'] : false; +$quantity = isset( $params['quantity'] ) ? $params['quantity'] : false; +$show_prod_category = isset( $params['show_prod_category'] ) ? $params['show_prod_category'] : false; +$taxonomies = isset( $params['taxonomies'] ) ? $params['taxonomies'] : array(); +$empty_wishlist_text = isset( $params['empty_wishlist_text'] ) ? $params['empty_wishlist_text'] : __( 'The Wish list is empty.', 'wish-list-for-woocommerce' ); +$drag_drop = isset( $params['drag_and_drop'] ) ? $params['drag_and_drop'] : false; +$drag_drop_icon_class = isset( $params['drag_and_drop_icon_class'] ) ? $params['drag_and_drop_icon_class'] : ''; +$arrow_sorting = isset( $params['arrow_sorting'] ) ? $params['arrow_sorting'] : false; +$arrow_sorting_up_icon_class = isset( $params['arrow_sorting_up_icon_class'] ) ? $params['arrow_sorting_up_icon_class'] : ''; $arrow_sorting_down_icon_class = isset( $params['arrow_sorting_down_icon_class'] ) ? $params['arrow_sorting_down_icon_class'] : ''; // Note Field @@ -64,109 +64,112 @@ $alg_wc_wl_dropdown_sorting = get_option( 'alg_wc_wl_dropdown_sorting', 'no' ); $alg_wc_wl_duplicate_option = get_option( 'alg_wc_wl_duplicate_option', 'no' ); -// $current_page_id = get_the_ID(); +$current_page_id = $theid; +$wish_list_permalink = get_permalink( $current_page_id ); -$current_page_id = $theid; -$wish_list_permalink = get_permalink( $current_page_id ); - -$wl_tab_slug = get_option( 'alg_wc_wl_tab_slug', 'my-wish-list' ); +$wl_tab_slug = get_option( 'alg_wc_wl_tab_slug', 'my-wish-list' ); $query_string = '?'; -$page = ''; +$page = ''; -if( is_wc_endpoint_url( $wl_tab_slug ) ) { +if ( is_wc_endpoint_url( $wl_tab_slug ) ) { $structure = get_option( 'permalink_structure', '' ); - if( $structure == '' ){ - $wish_list_permalink = untrailingslashit( $wish_list_permalink ) .'&' . $wl_tab_slug; - $query_string = '&'; + if ( $structure == '' ) { + $wish_list_permalink = untrailingslashit( $wish_list_permalink ) . '&' . $wl_tab_slug; + $query_string = '&'; } else { - $wish_list_permalink = untrailingslashit( $wish_list_permalink ) .'/' . $wl_tab_slug; - $query_string = '?'; + $wish_list_permalink = untrailingslashit( $wish_list_permalink ) . '/' . $wl_tab_slug; + $query_string = '?'; } $page = $wl_tab_slug; } if ( is_user_logged_in() ) { - $user = wp_get_current_user(); - $user_id = $user->ID; + $user = wp_get_current_user(); + $user_id = $user->ID; } else { - $user_id = Alg_WC_Wish_List_Unlogged_User::get_unlogged_user_id(); + $user_id = Alg_WC_Wish_List_Unlogged_User::get_unlogged_user_id(); } $wishlist_list = Alg_WC_Wish_List::get_multiple_wishlists( $user_id ); -$current_tab_id = ''; +$current_tab_id = ''; $current_tab_title = $default_wl_text; -if ( isset($_GET) && isset($_GET['wtab']) && $_GET['wtab'] > 0) { - $current_tab_id = $_GET['wtab']; +if ( isset( $_GET ) && isset( $_GET['wtab'] ) && $_GET['wtab'] > 0 ) { + $current_tab_id = intval( $_GET['wtab'] ); } -$alg_wc_wl_style_wish_list_multiple_tab_font_color = get_option('alg_wc_wl_style_wish_list_multiple_tab_font_color', '#000'); -$alg_wc_wl_style_wish_list_multiple_tab_bg_color = get_option('alg_wc_wl_style_wish_list_multiple_tab_bg_color', '#ffffff'); -$alg_wc_wl_style_wish_list_multiple_tab_active_font_color = get_option('alg_wc_wl_style_wish_list_multiple_tab_active_font_color', '#000'); -$alg_wc_wl_style_wish_list_multiple_tab_active_bg_color = get_option('alg_wc_wl_style_wish_list_multiple_tab_active_bg_color', '#ffffff'); +$alg_wc_wl_style_wish_list_multiple_tab_font_color = get_option( 'alg_wc_wl_style_wish_list_multiple_tab_font_color', '#000' ); +$alg_wc_wl_style_wish_list_multiple_tab_bg_color = get_option( 'alg_wc_wl_style_wish_list_multiple_tab_bg_color', '#ffffff' ); +$alg_wc_wl_style_wish_list_multiple_tab_active_font_color = get_option( 'alg_wc_wl_style_wish_list_multiple_tab_active_font_color', '#000' ); +$alg_wc_wl_style_wish_list_multiple_tab_active_bg_color = get_option( 'alg_wc_wl_style_wish_list_multiple_tab_active_bg_color', '#ffffff' ); ?>