Skip to content

Commit

Permalink
Add more Import options
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Feb 9, 2024
1 parent 46241e5 commit db0d856
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 21 deletions.
36 changes: 29 additions & 7 deletions includes/admin/class-alg-wc-wish-list-settings-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Wishlist for WooCommerce - Advanced settings.
*
* @version 2.0.1
* @version 2.3.6
* @since 2.0.1
* @author WPFactory
*/
Expand Down Expand Up @@ -48,7 +48,7 @@ function get_section_priority() {
/**
* get_settings.
*
* @version 2.0.1
* @version 2.3.6
* @since 2.0.1
*/
function get_settings( $settings = array() ) {
Expand Down Expand Up @@ -206,17 +206,39 @@ function get_settings( $settings = array() ) {
'id' => 'alg_wc_wl_csv_import_file',
'default' => '',
),
array(
'type' => 'select',
'title' => __( 'CSV User column', 'wish-list-for-woocommerce' ),
'desc' => __( 'User identification method.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_user_id_method',
'options' => array(
'user_email' => __( 'User email', 'wish-list-for-woocommerce' ),
'user_login' => __( 'User login', 'wish-list-for-woocommerce' ),
),
'class' => 'chosen_select',
'default' => 'user_email',
),
array(
'type' => 'number',
'title' => __( 'CSV column positions', 'wish-list-for-woocommerce' ),
'desc' => __( 'User email.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_user_email_col_pos',
'desc' => __( 'User column position.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_user_col_pos',
'default' => 0,
),
array(
'type' => 'select',
'title' => __( 'CSV Product column', 'wish-list-for-woocommerce' ),
'desc' => __( 'Product identification method.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_product_id_method',
'options' => array(
'product_sku' => __( 'SKU', 'wish-list-for-woocommerce' ),
),
'class' => 'chosen_select',
'default' => 'product_sku',
),
array(
'type' => 'number',
'desc' => __( 'Product SKU.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_product_sky_col_pos',
'desc' => __( 'Product column position.', 'wish-list-for-woocommerce' ),
'id' => 'alg_wc_wl_csv_import_product_col_pos',
'default' => 1,
),
array(
Expand Down
2 changes: 1 addition & 1 deletion includes/class-alg-wc-wish-list-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class Alg_WC_Wish_List_Core {
* @var string
* @since 1.0.0
*/
public $version = '2.3.5';
public $version = '2.3.6';

/**
* @var Alg_WC_Wish_List The single instance of the class
Expand Down
40 changes: 29 additions & 11 deletions languages/wish-list-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Alg - Wish List for WooCommerce\n"
"POT-Creation-Date: 2024-02-09 23:10+0530\n"
"POT-Creation-Date: 2024-02-09 18:02-0300\n"
"PO-Revision-Date: 2017-01-17 13:05-0200\n"
"Last-Translator: \n"
"Language-Team: \n"
Expand All @@ -11,7 +11,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.4.2\n"
"X-Generator: Poedit 3.2.2\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e\n"
"X-Poedit-SearchPath-0: .\n"
Expand Down Expand Up @@ -136,6 +136,7 @@ msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:132
#: includes/admin/class-alg-wc-wish-list-settings-admin.php:174
#: includes/admin/class-alg-wc-wish-list-settings-admin.php:215
msgid "User email"
msgstr ""

Expand Down Expand Up @@ -183,15 +184,37 @@ msgid ""
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:211
msgid "CSV column positions"
msgid "CSV User column"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:212
msgid "User email."
msgid "User identification method."
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:218
msgid "Product SKU."
#: includes/admin/class-alg-wc-wish-list-settings-admin.php:216
msgid "User login"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:223
msgid "User column position."
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:229
msgid "CSV Product column"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:230
msgid "Product identification method."
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:233
#: includes/admin/class-alg-wc-wish-list-settings-list.php:141
#: templates/wish-list.php:227 templates/wish-list.php:350
msgid "SKU"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-admin.php:240
msgid "Product column position."
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-advanced.php:26
Expand Down Expand Up @@ -781,11 +804,6 @@ msgstr ""
msgid "Show add to cart button"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-list.php:141
#: templates/wish-list.php:227 templates/wish-list.php:350
msgid "SKU"
msgstr ""

#: includes/admin/class-alg-wc-wish-list-settings-list.php:142
msgid "Show product SKU"
msgstr ""
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu
Tags: woocommerce, wishlist, woocommerce wishlist, add to wishlist, product wishlist
Requires at least: 6.1
Tested up to: 6.4
Stable tag: 2.3.5
Stable tag: 2.3.6
Requires PHP: 5.6.0
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -272,6 +272,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 2.3.6 - 09/02/2024 =
* Dev - Admin - Wishlist import - Add new option to set up the user identification method by email or login.

= 2.3.5 - 09/02/2024 =
* Fix - sync both free and pro version 2.3.5.

Expand Down
2 changes: 1 addition & 1 deletion wish-list-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Wishlist for WooCommerce
Plugin URI: https://wpfactory.com/item/wish-list-woocommerce/
Description: Let your visitors save and share the products they love on your WooCommerce store with a Wishlist.
Version: 2.3.5
Version: 2.3.6
Author: WPFactory
Author URI: https://wpfactory.com/
Copyright: © 2023 WPFactory.
Expand Down

0 comments on commit db0d856

Please sign in to comment.