Version Description
- Updated: All YITH plugins to latest version
- Fixed: Theme compatibility
Download this release
Release Info
Developer | yithemes |
Plugin | YITH Essential Kit for WooCommerce #1 |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- README.txt +8 -3
- init.php +1 -1
- modules/yith-woocommerce-cart-messages/class.yith-woocommerce-cart-message.php +29 -29
- modules/yith-woocommerce-cart-messages/class.yith-woocommerce-cart-messages.php +11 -11
- modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages-it_IT.mo +0 -0
- modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages-it_IT.po +443 -0
- modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages.pot +1211 -0
- modules/yith-woocommerce-cart-messages/plugin-options/metabox/ywcm_metabox.php +22 -22
- modules/yith-woocommerce-cart-messages/plugin-options/settings-options.php +9 -9
- modules/yith-woocommerce-cart-messages/templates/admin/premium.php +30 -32
- modules/yith-woocommerce-cart-messages/yith-cart-messages-functions.php +1 -1
- modules/yith-woocommerce-cart-messages/yith-cart-messages.php +6 -6
- modules/yith-woocommerce-catalog-mode/class.yith-woocommerce-catalog-mode.php +9 -9
- modules/yith-woocommerce-catalog-mode/init.php +6 -6
- modules/yith-woocommerce-catalog-mode/languages/yith-woocommerce-catalog-mode.pot +250 -0
- modules/yith-woocommerce-catalog-mode/plugin-options/settings-options.php +24 -24
- modules/yith-woocommerce-catalog-mode/templates/admin/premium.php +21 -21
- modules/yith-woocommerce-colors-labels-variations/changelog.txt +52 -0
- modules/yith-woocommerce-product-vendors/assets/css/admin.css +93 -2
- modules/yith-woocommerce-product-vendors/assets/js/admin.js +54 -0
- modules/yith-woocommerce-product-vendors/includes/class.yith-commissions.php +7 -7
- modules/yith-woocommerce-product-vendors/includes/class.yith-orders.php +1619 -0
- modules/yith-woocommerce-product-vendors/includes/class.yith-vendor.php +531 -511
- modules/yith-woocommerce-product-vendors/includes/class.yith-vendors-admin.php +197 -36
- modules/yith-woocommerce-product-vendors/includes/class.yith-vendors-frontend.php +23 -0
- modules/yith-woocommerce-product-vendors/includes/class.yith-vendors.php +30 -3
- modules/yith-woocommerce-product-vendors/includes/functions.yith-update.php +15 -4
- modules/yith-woocommerce-product-vendors/includes/functions.yith-vendors.php +14 -1
- modules/yith-woocommerce-product-vendors/includes/lib/class.yith-commissions-list-table.php +18 -4
- modules/yith-woocommerce-product-vendors/init.php +6 -7
- modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors-it_IT.mo +0 -0
- modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors-it_IT.po +710 -319
- modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors.pot +329 -219
- modules/yith-woocommerce-product-vendors/plugin-options/commissions-options.php +0 -2
- modules/yith-woocommerce-product-vendors/plugin-options/vendors-options.php +31 -2
- modules/yith-woocommerce-product-vendors/templates/admin/commission-view.php +14 -1
- modules/yith-woocommerce-product-vendors/templates/admin/premium.php +30 -115
- modules/yith-woocommerce-product-vendors/templates/woocommerce/single-product/vendor-tab.php +2 -2
- plugin-fw/lib/yit-plugin-panel-wc.php +2 -1
- plugin-fw/lib/yit-upgrade.php +21 -2
- yith-jetpack.php +3 -1
README.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce,jetpack,woocommerce jetpack, essential, kit, plugins, plugin, product, e-commerce, ecommerce, commerce, shop, yith, yit, yithemes,yith woocommerce colors and labels variations, colors and labels variations,colors and labels variations jetpack,yith woocommerce zoom magnifier,zoom magnifier,zoom magnifier jetpack,yith woocommerce wishlist,wishlist,wishlist jetpack,yith woocommerce compare,compare,compare jetpack,yith woocommerce ajax product filter,ajax product filter,ajax product filter jetpack,yith woocommerce ajax search,ajax search,ajax search jetpack,yith woocommerce catalog mode,catalog mode,catalog mode jetpack,yith woocommerce order tracking,order tracking,order tracking jetpack, yith woocommerce advanced reviews,advanced reviews,advanced reviews jetpack,yith woocommerce badges management,badges management,badges management jetpack,yith woocommerce cart messages,cart messages,cart messages jetpack,yith woocommerce review reminder,review reminder,review reminder jetpack,yith woocommerce quick view,quick view,quick view jetpack,yith live chat,live chat,live chat jetpack,yith woocommerce eu vat,eu vat,eu vat jetpack,yith woocommerce mailchimp,mailchimp,mailchimp jetpack,yith woocommerce stripe,stripe, stripe jetpack,yith infinite scrolling,infinite scrolling,infinite scrolling jetpack,yith woocommerce request a quote,request a quote,request a quote jetpack,yith woocommerce waiting list,waiting list,waiting list jetpack,yith woocommerce tab manager,tab manager,tab manager jetpack,yith woocommerce multi vendor,multi vendor,multi vendor jetpack,product vendor,products vendor,products vendor jetpack, booster for woocommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.2.4
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -136,7 +136,7 @@ Of course not, what makes your site heavier is the activation of many plugins at
|
|
136 |
|
137 |
= How can I get additional features for each of the plugins installed with YITH Essential Kit #1 ? =
|
138 |
|
139 |
-
You can get additional features of the plugins installed with the premium version of each of them, that you can get by clicking the button "Premium
|
140 |
|
141 |
== Installation ==
|
142 |
|
@@ -150,6 +150,11 @@ YITH Essential Kit for WooCommerce #1 will add a new submenu called "YITH Essent
|
|
150 |
|
151 |
== Changelog ==
|
152 |
|
|
|
|
|
|
|
|
|
|
|
153 |
= 1.1.3 =
|
154 |
|
155 |
* Updated: YITH WooCommerce Ajax Product Filter
|
@@ -215,5 +220,5 @@ YITH Essential Kit for WooCommerce #1 will add a new submenu called "YITH Essent
|
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
-
Last Stable Tag 1.1.
|
219 |
|
4 |
Tags: woocommerce,jetpack,woocommerce jetpack, essential, kit, plugins, plugin, product, e-commerce, ecommerce, commerce, shop, yith, yit, yithemes,yith woocommerce colors and labels variations, colors and labels variations,colors and labels variations jetpack,yith woocommerce zoom magnifier,zoom magnifier,zoom magnifier jetpack,yith woocommerce wishlist,wishlist,wishlist jetpack,yith woocommerce compare,compare,compare jetpack,yith woocommerce ajax product filter,ajax product filter,ajax product filter jetpack,yith woocommerce ajax search,ajax search,ajax search jetpack,yith woocommerce catalog mode,catalog mode,catalog mode jetpack,yith woocommerce order tracking,order tracking,order tracking jetpack, yith woocommerce advanced reviews,advanced reviews,advanced reviews jetpack,yith woocommerce badges management,badges management,badges management jetpack,yith woocommerce cart messages,cart messages,cart messages jetpack,yith woocommerce review reminder,review reminder,review reminder jetpack,yith woocommerce quick view,quick view,quick view jetpack,yith live chat,live chat,live chat jetpack,yith woocommerce eu vat,eu vat,eu vat jetpack,yith woocommerce mailchimp,mailchimp,mailchimp jetpack,yith woocommerce stripe,stripe, stripe jetpack,yith infinite scrolling,infinite scrolling,infinite scrolling jetpack,yith woocommerce request a quote,request a quote,request a quote jetpack,yith woocommerce waiting list,waiting list,waiting list jetpack,yith woocommerce tab manager,tab manager,tab manager jetpack,yith woocommerce multi vendor,multi vendor,multi vendor jetpack,product vendor,products vendor,products vendor jetpack, booster for woocommerce
|
5 |
Requires at least: 3.5.1
|
6 |
Tested up to: 4.2.4
|
7 |
+
Stable tag: 1.1.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
136 |
|
137 |
= How can I get additional features for each of the plugins installed with YITH Essential Kit #1 ? =
|
138 |
|
139 |
+
You can get additional features of the plugins installed with the premium version of each of them, that you can get by clicking the button "Buy Premium Version" and that takes you to yithemes.com where you can purchase them and discover other products and offers from YITH.
|
140 |
|
141 |
== Installation ==
|
142 |
|
150 |
|
151 |
== Changelog ==
|
152 |
|
153 |
+
= 1.1.4 =
|
154 |
+
|
155 |
+
* Updated: All YITH plugins to latest version
|
156 |
+
* Fixed: Theme compatibility
|
157 |
+
|
158 |
= 1.1.3 =
|
159 |
|
160 |
* Updated: YITH WooCommerce Ajax Product Filter
|
220 |
|
221 |
== Upgrade Notice ==
|
222 |
|
223 |
+
Last Stable Tag 1.1.4
|
224 |
|
init.php
CHANGED
@@ -7,7 +7,7 @@ Text Domain: yith-essential-kit-for-woocommerce-1
|
|
7 |
Domain Path: /languages/
|
8 |
Author: YIThemes
|
9 |
Author URI: http://yithemes.com/
|
10 |
-
Version: 1.1.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
Domain Path: /languages/
|
8 |
Author: YIThemes
|
9 |
Author URI: http://yithemes.com/
|
10 |
+
Version: 1.1.4
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
modules/yith-woocommerce-cart-messages/class.yith-woocommerce-cart-message.php
CHANGED
@@ -68,23 +68,23 @@ if ( !class_exists( 'YWCM_Cart_Message' ) ) {
|
|
68 |
function message_post_type() {
|
69 |
|
70 |
$labels = array(
|
71 |
-
'name' => _x( 'Yith Cart Messages', 'Post Type General Name', '
|
72 |
-
'singular_name' => _x( 'Yith Cart Message', 'Post Type Singular Name', '
|
73 |
-
'menu_name' => __( 'Cart Message', '
|
74 |
-
'parent_item_colon' => __( 'Parent Item:', '
|
75 |
-
'all_items' => __( 'All Messages', '
|
76 |
-
'view_item' => __( 'View Messages', '
|
77 |
-
'add_new_item' => __( 'Add New Message', '
|
78 |
-
'add_new' => __( 'Add New Message', '
|
79 |
-
'edit_item' => __( 'Edit Message', '
|
80 |
-
'update_item' => __( 'Update Message', '
|
81 |
-
'search_items' => __( 'Search Message', '
|
82 |
-
'not_found' => __( 'Not found', '
|
83 |
-
'not_found_in_trash' => __( 'Not found in Trash', '
|
84 |
);
|
85 |
$args = array(
|
86 |
-
'label' => __( 'ywcm_message', '
|
87 |
-
'description' => __( 'Yith Cart Message Description', '
|
88 |
'labels' => $labels,
|
89 |
'supports' => array( 'title' ),
|
90 |
'hierarchical' => false,
|
@@ -107,8 +107,8 @@ if ( !class_exists( 'YWCM_Cart_Message' ) ) {
|
|
107 |
|
108 |
public function add_submenu_woocommerce() {
|
109 |
add_submenu_page( 'woocommerce',
|
110 |
-
__( '
|
111 |
-
__( 'Yith Cart Messages', '
|
112 |
'manage_woocommerce',
|
113 |
'edit.php?post_type=' . $this->post_type_name,
|
114 |
false
|
@@ -143,12 +143,12 @@ if ( !class_exists( 'YWCM_Cart_Message' ) ) {
|
|
143 |
|
144 |
$columns = array(
|
145 |
'cb' => '<input type="checkbox" />',
|
146 |
-
'title' => __( 'Title', '
|
147 |
-
'type' => __( 'Type', '
|
148 |
-
'message' => __( 'Message', '
|
149 |
-
'button_text' => __( 'Button Text', '
|
150 |
-
'button_url' => __( 'Button Url', '
|
151 |
-
'date' => __( 'Date', '
|
152 |
);
|
153 |
|
154 |
return $columns;
|
@@ -188,15 +188,15 @@ if ( !class_exists( 'YWCM_Cart_Message' ) ) {
|
|
188 |
|
189 |
public function get_types() {
|
190 |
$types = array(
|
191 |
-
'products_cart' => __( 'Products in Cart', '
|
192 |
-
'categories_cart' => __( 'Categories in Cart', '
|
193 |
-
'simple_message' => __( 'Simple Message', '
|
194 |
);
|
195 |
|
196 |
if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
|
197 |
-
$types['minimum_amount'] = __( 'Minimum Amount', '
|
198 |
-
$types['deadline'] = __( 'Deadline', '
|
199 |
-
$types['referer'] = __( 'Referer', '
|
200 |
}
|
201 |
|
202 |
return apply_filters( 'ywcm_cart_message_type', $types );
|
68 |
function message_post_type() {
|
69 |
|
70 |
$labels = array(
|
71 |
+
'name' => _x( 'Yith Cart Messages', 'Post Type General Name', 'yith-woocommerce-cart-messages' ),
|
72 |
+
'singular_name' => _x( 'Yith Cart Message', 'Post Type Singular Name', 'yith-woocommerce-cart-messages' ),
|
73 |
+
'menu_name' => __( 'Cart Message', 'yith-woocommerce-cart-messages' ),
|
74 |
+
'parent_item_colon' => __( 'Parent Item:', 'yith-woocommerce-cart-messages' ),
|
75 |
+
'all_items' => __( 'All Messages', 'yith-woocommerce-cart-messages' ),
|
76 |
+
'view_item' => __( 'View Messages', 'yith-woocommerce-cart-messages' ),
|
77 |
+
'add_new_item' => __( 'Add New Message', 'yith-woocommerce-cart-messages' ),
|
78 |
+
'add_new' => __( 'Add New Message', 'yith-woocommerce-cart-messages' ),
|
79 |
+
'edit_item' => __( 'Edit Message', 'yith-woocommerce-cart-messages' ),
|
80 |
+
'update_item' => __( 'Update Message', 'yith-woocommerce-cart-messages' ),
|
81 |
+
'search_items' => __( 'Search Message', 'yith-woocommerce-cart-messages' ),
|
82 |
+
'not_found' => __( 'Not found', 'yith-woocommerce-cart-messages' ),
|
83 |
+
'not_found_in_trash' => __( 'Not found in Trash', 'yith-woocommerce-cart-messages' ),
|
84 |
);
|
85 |
$args = array(
|
86 |
+
'label' => __( 'ywcm_message', 'yith-woocommerce-cart-messages' ),
|
87 |
+
'description' => __( 'Yith Cart Message Description', 'yith-woocommerce-cart-messages' ),
|
88 |
'labels' => $labels,
|
89 |
'supports' => array( 'title' ),
|
90 |
'hierarchical' => false,
|
107 |
|
108 |
public function add_submenu_woocommerce() {
|
109 |
add_submenu_page( 'woocommerce',
|
110 |
+
__( 'Yith Cart Messages', 'yith-woocommerce-cart-messages' ),
|
111 |
+
__( 'Yith Cart Messages', 'yith-woocommerce-cart-messages' ),
|
112 |
'manage_woocommerce',
|
113 |
'edit.php?post_type=' . $this->post_type_name,
|
114 |
false
|
143 |
|
144 |
$columns = array(
|
145 |
'cb' => '<input type="checkbox" />',
|
146 |
+
'title' => __( 'Title', 'yith-woocommerce-cart-messages' ),
|
147 |
+
'type' => __( 'Type', 'yith-woocommerce-cart-messages' ),
|
148 |
+
'message' => __( 'Message', 'yith-woocommerce-cart-messages' ),
|
149 |
+
'button_text' => __( 'Button Text', 'yith-woocommerce-cart-messages' ),
|
150 |
+
'button_url' => __( 'Button Url', 'yith-woocommerce-cart-messages' ),
|
151 |
+
'date' => __( 'Date', 'yith-woocommerce-cart-messages' ),
|
152 |
);
|
153 |
|
154 |
return $columns;
|
188 |
|
189 |
public function get_types() {
|
190 |
$types = array(
|
191 |
+
'products_cart' => __( 'Products in Cart', 'yith-woocommerce-cart-messages' ),
|
192 |
+
'categories_cart' => __( 'Categories in Cart', 'yith-woocommerce-cart-messages' ),
|
193 |
+
'simple_message' => __( 'Simple Message', 'yith-woocommerce-cart-messages' ),
|
194 |
);
|
195 |
|
196 |
if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
|
197 |
+
$types['minimum_amount'] = __( 'Minimum Amount', 'yith-woocommerce-cart-messages' );
|
198 |
+
$types['deadline'] = __( 'Deadline', 'yith-woocommerce-cart-messages' );
|
199 |
+
$types['referer'] = __( 'Referer', 'yith-woocommerce-cart-messages' );
|
200 |
}
|
201 |
|
202 |
return apply_filters( 'ywcm_cart_message_type', $types );
|
modules/yith-woocommerce-cart-messages/class.yith-woocommerce-cart-messages.php
CHANGED
@@ -145,22 +145,22 @@ if ( !class_exists( 'YWCM_Cart_Messages' ) ) {
|
|
145 |
}
|
146 |
|
147 |
$admin_tabs = array(
|
148 |
-
'settings' => __( 'Settings', '
|
149 |
);
|
150 |
|
151 |
if ( defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
152 |
-
$admin_tabs['premium'] = __( 'Premium Version', '
|
153 |
}
|
154 |
|
155 |
if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
|
156 |
-
$admin_tabs['layout'] = __( 'Layouts', '
|
157 |
}
|
158 |
|
159 |
$args = array(
|
160 |
'create_menu_page' => true,
|
161 |
'parent_slug' => '',
|
162 |
-
'page_title' => __( 'Cart Messages', '
|
163 |
-
'menu_title' => __( 'Cart Messages', '
|
164 |
'capability' => 'manage_options',
|
165 |
'parent' => '',
|
166 |
'parent_page' => 'yit_plugin_panel',
|
@@ -211,9 +211,9 @@ if ( !class_exists( 'YWCM_Cart_Messages' ) ) {
|
|
211 |
|
212 |
public function action_links( $links ) {
|
213 |
|
214 |
-
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', '
|
215 |
if ( defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
216 |
-
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', '
|
217 |
}
|
218 |
|
219 |
return $links;
|
@@ -475,7 +475,7 @@ if ( !class_exists( 'YWCM_Cart_Messages' ) ) {
|
|
475 |
public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
476 |
|
477 |
if ( ( defined( 'YITH_YWCM_FREE_INIT' ) && YITH_YWCM_FREE_INIT == $plugin_file) || ( defined( 'YITH_YWCM_INIT' ) && YITH_YWCM_INIT == $plugin_file )) {
|
478 |
-
$plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', '
|
479 |
}
|
480 |
return $plugin_meta;
|
481 |
}
|
@@ -492,10 +492,10 @@ if ( !class_exists( 'YWCM_Cart_Messages' ) ) {
|
|
492 |
'pointer_id' => 'yith_woocommerce_cart_messages',
|
493 |
'target' => '#toplevel_page_yit_plugin_panel',
|
494 |
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
|
495 |
-
__( 'YITH WooCommerce Cart Messages', '
|
496 |
__( 'In the YIT Plugins tab you can find the YITH WooCommerce Cart Messages options.
|
497 |
With this menu, you can access to all the settings of our plugins that you have activated.
|
498 |
-
YITH WooCommerce Cart Messages is available in an outstanding PREMIUM version with many new options, <a href="'.$this->get_premium_landing_uri().'">discover it now</a>', '
|
499 |
),
|
500 |
'position' => array( 'edge' => 'left', 'align' => 'center' ),
|
501 |
'init' => YITH_YWCM_FREE_INIT
|
@@ -513,7 +513,7 @@ YITH WooCommerce Cart Messages is available in an outstanding PREMIUM version wi
|
|
513 |
* @return string The premium landing link
|
514 |
*/
|
515 |
public function get_premium_landing_uri(){
|
516 |
-
return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing;
|
517 |
}
|
518 |
|
519 |
}
|
145 |
}
|
146 |
|
147 |
$admin_tabs = array(
|
148 |
+
'settings' => __( 'Settings', 'yith-woocommerce-cart-messages' )
|
149 |
);
|
150 |
|
151 |
if ( defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
152 |
+
$admin_tabs['premium'] = __( 'Premium Version', 'yith-woocommerce-cart-messages' );
|
153 |
}
|
154 |
|
155 |
if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
|
156 |
+
$admin_tabs['layout'] = __( 'Layouts', 'yith-woocommerce-cart-messages' );
|
157 |
}
|
158 |
|
159 |
$args = array(
|
160 |
'create_menu_page' => true,
|
161 |
'parent_slug' => '',
|
162 |
+
'page_title' => __( 'Cart Messages', 'yith-woocommerce-cart-messages' ),
|
163 |
+
'menu_title' => __( 'Cart Messages', 'yith-woocommerce-cart-messages' ),
|
164 |
'capability' => 'manage_options',
|
165 |
'parent' => '',
|
166 |
'parent_page' => 'yit_plugin_panel',
|
211 |
|
212 |
public function action_links( $links ) {
|
213 |
|
214 |
+
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-cart-messages' ) . '</a>';
|
215 |
if ( defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
216 |
+
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-cart-messages' ) . '</a>';
|
217 |
}
|
218 |
|
219 |
return $links;
|
475 |
public function plugin_row_meta( $plugin_meta, $plugin_file, $plugin_data, $status ) {
|
476 |
|
477 |
if ( ( defined( 'YITH_YWCM_FREE_INIT' ) && YITH_YWCM_FREE_INIT == $plugin_file) || ( defined( 'YITH_YWCM_INIT' ) && YITH_YWCM_INIT == $plugin_file )) {
|
478 |
+
$plugin_meta[] = '<a href="' . $this->doc_url . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-cart-messages' ) . '</a>';
|
479 |
}
|
480 |
return $plugin_meta;
|
481 |
}
|
492 |
'pointer_id' => 'yith_woocommerce_cart_messages',
|
493 |
'target' => '#toplevel_page_yit_plugin_panel',
|
494 |
'content' => sprintf( '<h3> %s </h3> <p> %s </p>',
|
495 |
+
__( 'YITH WooCommerce Cart Messages', 'yith-woocommerce-cart-messages' ),
|
496 |
__( 'In the YIT Plugins tab you can find the YITH WooCommerce Cart Messages options.
|
497 |
With this menu, you can access to all the settings of our plugins that you have activated.
|
498 |
+
YITH WooCommerce Cart Messages is available in an outstanding PREMIUM version with many new options, <a href="'.$this->get_premium_landing_uri().'">discover it now</a>', 'yith-woocommerce-cart-messages' )
|
499 |
),
|
500 |
'position' => array( 'edge' => 'left', 'align' => 'center' ),
|
501 |
'init' => YITH_YWCM_FREE_INIT
|
513 |
* @return string The premium landing link
|
514 |
*/
|
515 |
public function get_premium_landing_uri(){
|
516 |
+
return defined( 'YITH_REFER_ID' ) ? $this->_premium_landing . '?refer_id=' . YITH_REFER_ID : $this->_premium_landing. '?refer_id=1030585';
|
517 |
}
|
518 |
|
519 |
}
|
modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages-it_IT.mo
ADDED
Binary file
|
modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages-it_IT.po
ADDED
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: YIT WooCommerce Cart Messages\n"
|
4 |
+
"POT-Creation-Date: 2015-10-02 09:33+0200\n"
|
5 |
+
"PO-Revision-Date: 2015-10-02 09:33+0200\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: Yithemes <plugins@yithemes.com>\n"
|
8 |
+
"Language: it\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.8.4\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;__ngettext:1,2;"
|
14 |
+
"__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
|
15 |
+
"_nx_noop:4c,1,2\n"
|
16 |
+
"X-Poedit-Basepath: ..\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
18 |
+
"X-Poedit-SearchPath-0: .\n"
|
19 |
+
"X-Poedit-SearchPathExcluded-0: plugin-fw\n"
|
20 |
+
|
21 |
+
#: class.yith-woocommerce-cart-message.php:71
|
22 |
+
msgctxt "Post Type General Name"
|
23 |
+
msgid "Yith Cart Messages"
|
24 |
+
msgstr "YITH Cart Messages"
|
25 |
+
|
26 |
+
#: class.yith-woocommerce-cart-message.php:72
|
27 |
+
msgctxt "Post Type Singular Name"
|
28 |
+
msgid "Yith Cart Message"
|
29 |
+
msgstr "YITH Cart Message"
|
30 |
+
|
31 |
+
#: class.yith-woocommerce-cart-message.php:73
|
32 |
+
msgid "Cart Message"
|
33 |
+
msgstr "Messaggio carrello"
|
34 |
+
|
35 |
+
#: class.yith-woocommerce-cart-message.php:74
|
36 |
+
msgid "Parent Item:"
|
37 |
+
msgstr "Articolo genitore:"
|
38 |
+
|
39 |
+
#: class.yith-woocommerce-cart-message.php:75
|
40 |
+
msgid "All Messages"
|
41 |
+
msgstr "Tutti i messaggi"
|
42 |
+
|
43 |
+
#: class.yith-woocommerce-cart-message.php:76
|
44 |
+
msgid "View Messages"
|
45 |
+
msgstr "Visualizza messaggi"
|
46 |
+
|
47 |
+
#: class.yith-woocommerce-cart-message.php:77
|
48 |
+
#: class.yith-woocommerce-cart-message.php:78
|
49 |
+
msgid "Add New Message"
|
50 |
+
msgstr "Aggiungi nuovo messaggio"
|
51 |
+
|
52 |
+
#: class.yith-woocommerce-cart-message.php:79
|
53 |
+
msgid "Edit Message"
|
54 |
+
msgstr "Modifica messaggio"
|
55 |
+
|
56 |
+
#: class.yith-woocommerce-cart-message.php:80
|
57 |
+
msgid "Update Message"
|
58 |
+
msgstr "Aggiorna messaggio"
|
59 |
+
|
60 |
+
#: class.yith-woocommerce-cart-message.php:81
|
61 |
+
msgid "Search Message"
|
62 |
+
msgstr "Cerca messaggio"
|
63 |
+
|
64 |
+
#: class.yith-woocommerce-cart-message.php:82
|
65 |
+
msgid "Not found"
|
66 |
+
msgstr "Non trovato"
|
67 |
+
|
68 |
+
#: class.yith-woocommerce-cart-message.php:83
|
69 |
+
msgid "Not found in Trash"
|
70 |
+
msgstr "Non trovato nel carrello"
|
71 |
+
|
72 |
+
#: class.yith-woocommerce-cart-message.php:86
|
73 |
+
msgid "ywcm_message"
|
74 |
+
msgstr "ywcm_message"
|
75 |
+
|
76 |
+
#: class.yith-woocommerce-cart-message.php:87
|
77 |
+
msgid "Yith Cart Message Description"
|
78 |
+
msgstr "Yith Cart Message Descrizione"
|
79 |
+
|
80 |
+
#: class.yith-woocommerce-cart-message.php:110
|
81 |
+
#: class.yith-woocommerce-cart-message.php:111
|
82 |
+
msgid "Yith Cart Messages"
|
83 |
+
msgstr "Yith Cart Messages"
|
84 |
+
|
85 |
+
#: class.yith-woocommerce-cart-message.php:146
|
86 |
+
msgid "Title"
|
87 |
+
msgstr "Titolo"
|
88 |
+
|
89 |
+
#: class.yith-woocommerce-cart-message.php:147
|
90 |
+
msgid "Type"
|
91 |
+
msgstr "Tipologia"
|
92 |
+
|
93 |
+
#: class.yith-woocommerce-cart-message.php:148
|
94 |
+
#: plugin-options/metabox/ywcm_metabox.php:33
|
95 |
+
#: plugin-options/metabox/ywcm_metabox.php:85
|
96 |
+
#: plugin-options/metabox/ywcm_metabox.php:113
|
97 |
+
msgid "Message"
|
98 |
+
msgstr "Messaggio"
|
99 |
+
|
100 |
+
#: class.yith-woocommerce-cart-message.php:149
|
101 |
+
msgid "Button Text"
|
102 |
+
msgstr "Testo pulsante"
|
103 |
+
|
104 |
+
#: class.yith-woocommerce-cart-message.php:150
|
105 |
+
msgid "Button Url"
|
106 |
+
msgstr "URL pulsante"
|
107 |
+
|
108 |
+
#: class.yith-woocommerce-cart-message.php:151
|
109 |
+
msgid "Date"
|
110 |
+
msgstr "Data"
|
111 |
+
|
112 |
+
#: class.yith-woocommerce-cart-message.php:191
|
113 |
+
msgid "Products in Cart"
|
114 |
+
msgstr "Prodotti nel carrello"
|
115 |
+
|
116 |
+
#: class.yith-woocommerce-cart-message.php:192
|
117 |
+
msgid "Categories in Cart"
|
118 |
+
msgstr "Categorie nel carrello"
|
119 |
+
|
120 |
+
#: class.yith-woocommerce-cart-message.php:193
|
121 |
+
msgid "Simple Message"
|
122 |
+
msgstr "Messaggio semplice"
|
123 |
+
|
124 |
+
#: class.yith-woocommerce-cart-message.php:197
|
125 |
+
msgid "Minimum Amount"
|
126 |
+
msgstr "Spesa minima"
|
127 |
+
|
128 |
+
#: class.yith-woocommerce-cart-message.php:198
|
129 |
+
msgid "Deadline"
|
130 |
+
msgstr "Scadenza"
|
131 |
+
|
132 |
+
#: class.yith-woocommerce-cart-message.php:199
|
133 |
+
msgid "Referer"
|
134 |
+
msgstr "Affiliato"
|
135 |
+
|
136 |
+
#: class.yith-woocommerce-cart-messages.php:148
|
137 |
+
#: class.yith-woocommerce-cart-messages.php:214
|
138 |
+
#: plugin-options/metabox/ywcm_metabox.php:20
|
139 |
+
msgid "Settings"
|
140 |
+
msgstr "Impostazioni"
|
141 |
+
|
142 |
+
#: class.yith-woocommerce-cart-messages.php:152
|
143 |
+
#: class.yith-woocommerce-cart-messages.php:216
|
144 |
+
msgid "Premium Version"
|
145 |
+
msgstr "Versione premium"
|
146 |
+
|
147 |
+
#: class.yith-woocommerce-cart-messages.php:156
|
148 |
+
msgid "Layouts"
|
149 |
+
msgstr "Layout"
|
150 |
+
|
151 |
+
#: class.yith-woocommerce-cart-messages.php:162
|
152 |
+
#: class.yith-woocommerce-cart-messages.php:163
|
153 |
+
msgid "Cart Messages"
|
154 |
+
msgstr "Messaggi carrello"
|
155 |
+
|
156 |
+
#: class.yith-woocommerce-cart-messages.php:478
|
157 |
+
msgid "Plugin Documentation"
|
158 |
+
msgstr "Documentazione plugin"
|
159 |
+
|
160 |
+
#: class.yith-woocommerce-cart-messages.php:495
|
161 |
+
#: plugin-options/settings-options.php:25
|
162 |
+
#: plugin-options/settings-options.php:33
|
163 |
+
msgid "YITH WooCommerce Cart Messages"
|
164 |
+
msgstr "YITH WooCommerce Cart Messages"
|
165 |
+
|
166 |
+
#: class.yith-woocommerce-cart-messages.php:496
|
167 |
+
msgid ""
|
168 |
+
"In the YIT Plugins tab you can find the YITH WooCommerce Cart Messages "
|
169 |
+
"options.\n"
|
170 |
+
"With this menu, you can access to all the settings of our plugins that you "
|
171 |
+
"have activated.\n"
|
172 |
+
"YITH WooCommerce Cart Messages is available in an outstanding PREMIUM "
|
173 |
+
"version with many new options, <a href=\""
|
174 |
+
msgstr ""
|
175 |
+
"Puoi trovare la pagina opzioni di YITH WooCommerce Cart Messages nella tab "
|
176 |
+
"YIT Plugins.\n"
|
177 |
+
"Da questo menu puoi accedere a tutte le impostazioni dei nostri plugin "
|
178 |
+
"attivati.\n"
|
179 |
+
"YITH WooCommerce Cart Messages è disponibile in un'eccellente versione "
|
180 |
+
"PREMIUM con molte nuove opzioni, <a href=\""
|
181 |
+
|
182 |
+
#: plugin-options/metabox/ywcm_metabox.php:14
|
183 |
+
msgid "Message Settings"
|
184 |
+
msgstr "Impostazioni messaggi"
|
185 |
+
|
186 |
+
#: plugin-options/metabox/ywcm_metabox.php:23
|
187 |
+
msgid "Message Type"
|
188 |
+
msgstr "Tipologia messaggio"
|
189 |
+
|
190 |
+
#: plugin-options/metabox/ywcm_metabox.php:24
|
191 |
+
msgid "Choose the type of the message"
|
192 |
+
msgstr "Scegli il tipo di messaggio"
|
193 |
+
|
194 |
+
#: plugin-options/metabox/ywcm_metabox.php:34
|
195 |
+
msgid ""
|
196 |
+
"You can edit the text using the following placeholder: <br>\n"
|
197 |
+
"{remaining_amount} indicates the remaining amount to reach the minimum order "
|
198 |
+
"amount;<br>\n"
|
199 |
+
"{products} specifies which of the listed product is in the cart;<br>\n"
|
200 |
+
"{required_quantity} states the exact number of product to purchase."
|
201 |
+
msgstr ""
|
202 |
+
"Puoi modificare il testo utilizzando i seguenti segnaposto: <br>\n"
|
203 |
+
"{remaining_amount} indica l'importo da mancante per raggiungere la spesa "
|
204 |
+
"minima per l'ordine; <br>\n"
|
205 |
+
"{products} specifica quali dei prodotti elencati si trova nel carrello;<br>\n"
|
206 |
+
"{required_quantity} riporta il numero esatto di prodotti da acquistare."
|
207 |
+
|
208 |
+
#: plugin-options/metabox/ywcm_metabox.php:47
|
209 |
+
msgid "Required quantity"
|
210 |
+
msgstr "Quantità richiesta"
|
211 |
+
|
212 |
+
#: plugin-options/metabox/ywcm_metabox.php:48
|
213 |
+
#: plugin-options/metabox/ywcm_metabox.php:59
|
214 |
+
msgid "The minimum total amount of above selected products."
|
215 |
+
msgstr "Spesa minima totale dei prodotti sopra selezionati."
|
216 |
+
|
217 |
+
#: plugin-options/metabox/ywcm_metabox.php:58
|
218 |
+
msgid "Threshold amount"
|
219 |
+
msgstr "Importo soglia"
|
220 |
+
|
221 |
+
#: plugin-options/metabox/ywcm_metabox.php:70
|
222 |
+
msgid "Select products"
|
223 |
+
msgstr "Seleziona prodotti"
|
224 |
+
|
225 |
+
#: plugin-options/metabox/ywcm_metabox.php:86
|
226 |
+
msgid ""
|
227 |
+
"You can edit the message using <br>{categories} to state the list of "
|
228 |
+
"categories."
|
229 |
+
msgstr ""
|
230 |
+
"Puoi modificare il messaggio utilizzando <br>{categories} per visualizzare "
|
231 |
+
"l'elenco delle categorie."
|
232 |
+
|
233 |
+
#: plugin-options/metabox/ywcm_metabox.php:97
|
234 |
+
msgid "Select categories"
|
235 |
+
msgstr "Seleziona categorie"
|
236 |
+
|
237 |
+
#: plugin-options/metabox/ywcm_metabox.php:114
|
238 |
+
msgid "Edit the message"
|
239 |
+
msgstr "Modifica il messaggio"
|
240 |
+
|
241 |
+
#: plugin-options/metabox/ywcm_metabox.php:127
|
242 |
+
msgid "Button Text (optional)"
|
243 |
+
msgstr "Testo pulsante (opzionale)"
|
244 |
+
|
245 |
+
#: plugin-options/metabox/ywcm_metabox.php:128
|
246 |
+
msgid ""
|
247 |
+
"The text of the button for the action call. Leave it empty if you do not "
|
248 |
+
"want to show it."
|
249 |
+
msgstr ""
|
250 |
+
"Testo del pulsante call to action. Lascia il campo vuoto se non vuoi "
|
251 |
+
"mostrarlo."
|
252 |
+
|
253 |
+
#: plugin-options/metabox/ywcm_metabox.php:133
|
254 |
+
msgid "Button URL (optional)"
|
255 |
+
msgstr "URL pulsante (opzionale)"
|
256 |
+
|
257 |
+
#: plugin-options/metabox/ywcm_metabox.php:134
|
258 |
+
msgid "The URL of the button of the call to action"
|
259 |
+
msgstr "URL del pulsante call to action"
|
260 |
+
|
261 |
+
#: plugin-options/metabox/ywcm_metabox.php:139
|
262 |
+
msgid "Expire date (optional)"
|
263 |
+
msgstr "Data di fine (opzionale)"
|
264 |
+
|
265 |
+
#: plugin-options/metabox/ywcm_metabox.php:140
|
266 |
+
msgid "Choose a date until this message will appear"
|
267 |
+
msgstr "Scegli la data fino a quando il messaggio apparirà"
|
268 |
+
|
269 |
+
#: plugin-options/settings-options.php:22
|
270 |
+
msgid "Upgrade to the PREMIUM VERSION"
|
271 |
+
msgstr "Aggiorna alla VERSIONE PREMIUM"
|
272 |
+
|
273 |
+
#: plugin-options/settings-options.php:26
|
274 |
+
msgid "Discover the Advanced Features"
|
275 |
+
msgstr "Scopri le funzionalità avanzate"
|
276 |
+
|
277 |
+
#: plugin-options/settings-options.php:27
|
278 |
+
msgid ""
|
279 |
+
"Upgrade to the PREMIUM VERSION\n"
|
280 |
+
"of YITH WooCommerce Cart Messages to benefit from all features!"
|
281 |
+
msgstr ""
|
282 |
+
"Aggiorna alla VERSIONE PREMIUM\n"
|
283 |
+
"di YITH WooCommerce Cart Messages per usufruire di tutte le sue funzionalità!"
|
284 |
+
|
285 |
+
#: plugin-options/settings-options.php:35
|
286 |
+
msgid "Get Support and Pro Features"
|
287 |
+
msgstr "Ottieni supporto e funzionalità premium"
|
288 |
+
|
289 |
+
#: plugin-options/settings-options.php:36
|
290 |
+
msgid ""
|
291 |
+
"By purchasing the premium version of the plugin, you will take advantage of "
|
292 |
+
"the advanced features of the product and you will get one year of free "
|
293 |
+
"updates and support through our platform available 24h/24."
|
294 |
+
msgstr ""
|
295 |
+
"Acquistando la versione premium del plugin, potrai usufruire delle "
|
296 |
+
"funzionalità avanzate del prodotto ed otterrai un anno di aggiornamenti "
|
297 |
+
"gratuiti e di supporto attraverso la nostra piattaforma disponibiile 24 ore "
|
298 |
+
"su 24."
|
299 |
+
|
300 |
+
#: plugin-options/settings-options.php:46
|
301 |
+
msgid "General settings"
|
302 |
+
msgstr "Impostazioni generali"
|
303 |
+
|
304 |
+
#: plugin-options/settings-options.php:52
|
305 |
+
msgid "Show in cart"
|
306 |
+
msgstr "Mostra nel carrello"
|
307 |
+
|
308 |
+
#: plugin-options/settings-options.php:60
|
309 |
+
msgid "Show in checkout"
|
310 |
+
msgstr "Mostra durante il checkout"
|
311 |
+
|
312 |
+
#: templates/admin/premium.php:199
|
313 |
+
#, php-format
|
314 |
+
msgid ""
|
315 |
+
"Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Cart Messages"
|
316 |
+
"%2$s to benefit from all features!"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: templates/admin/premium.php:202 templates/admin/premium.php:300
|
320 |
+
msgid "UPGRADE"
|
321 |
+
msgstr ""
|
322 |
+
|
323 |
+
#: templates/admin/premium.php:203 templates/admin/premium.php:301
|
324 |
+
msgid "to the premium version"
|
325 |
+
msgstr ""
|
326 |
+
|
327 |
+
#: templates/admin/premium.php:212
|
328 |
+
msgid "create message regarding"
|
329 |
+
msgstr ""
|
330 |
+
|
331 |
+
#: templates/admin/premium.php:217
|
332 |
+
msgid "CREATE MESSAGES REGARDING A MINIMUM AMOUNT TO SPEND"
|
333 |
+
msgstr ""
|
334 |
+
|
335 |
+
#: templates/admin/premium.php:219
|
336 |
+
#, php-format
|
337 |
+
msgid ""
|
338 |
+
"It encourages users to exceed a certain amount of purchases to get a benefit "
|
339 |
+
"for example, %1$sif you spend more than $100 you will get free shipping%2$s, "
|
340 |
+
"and it also shows the amount needed to fill the gap."
|
341 |
+
msgstr ""
|
342 |
+
|
343 |
+
#: templates/admin/premium.php:228
|
344 |
+
msgid "ANALYZE THE REFERRER"
|
345 |
+
msgstr ""
|
346 |
+
|
347 |
+
#: templates/admin/premium.php:230
|
348 |
+
#, php-format
|
349 |
+
msgid ""
|
350 |
+
"It shows a notification based on the source site. For example, %1$sif users "
|
351 |
+
"come from Google%2$s, you can let them see an additional %1$sdiscount message"
|
352 |
+
"%2$s."
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#: templates/admin/premium.php:233
|
356 |
+
msgid "analyze the referrer"
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
+
#: templates/admin/premium.php:240
|
360 |
+
msgid "create message deadline"
|
361 |
+
msgstr ""
|
362 |
+
|
363 |
+
#: templates/admin/premium.php:245
|
364 |
+
msgid "CREATE MESSAGES WITH A DEADLINE"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: templates/admin/premium.php:247
|
368 |
+
#, php-format
|
369 |
+
msgid ""
|
370 |
+
"It lets you set messages with a time limit, for example: %1$s\"if you make a "
|
371 |
+
"purchase before 6 p.m., your order will be shipped today\"%2$s."
|
372 |
+
msgstr ""
|
373 |
+
|
374 |
+
#: templates/admin/premium.php:256
|
375 |
+
msgid "CHOOSE AMONG DIFFERENT LAYOUTS AND CUSTOMIZE THEM QUICKLY AND EASILY"
|
376 |
+
msgstr ""
|
377 |
+
|
378 |
+
#: templates/admin/premium.php:258
|
379 |
+
#, php-format
|
380 |
+
msgid ""
|
381 |
+
"You have %1$s6 different layouts%2$s to give the style you want to your "
|
382 |
+
"messages from the %1$sadministration panel.%2$s"
|
383 |
+
msgstr ""
|
384 |
+
|
385 |
+
#: templates/admin/premium.php:261
|
386 |
+
msgid "choose amoung different"
|
387 |
+
msgstr ""
|
388 |
+
|
389 |
+
#: templates/admin/premium.php:268
|
390 |
+
msgid "choose who can see"
|
391 |
+
msgstr ""
|
392 |
+
|
393 |
+
#: templates/admin/premium.php:273
|
394 |
+
msgid "CHOOSE WHO CAN SEE YOUR MESSAGES"
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: templates/admin/premium.php:275
|
398 |
+
#, php-format
|
399 |
+
msgid ""
|
400 |
+
"You can show a message to your %1$sclients,%2$s or decide to show it only to "
|
401 |
+
"%1$sguests%2$s or to logged in %1$susers.%2$s"
|
402 |
+
msgstr ""
|
403 |
+
|
404 |
+
#: templates/admin/premium.php:284
|
405 |
+
msgid "DECIDE THE PAGES WHERE TO SHOW YOUR MESSAGES"
|
406 |
+
msgstr ""
|
407 |
+
|
408 |
+
#: templates/admin/premium.php:286
|
409 |
+
#, php-format
|
410 |
+
msgid ""
|
411 |
+
"You can freely decide where to show every single message %1$s(single page, "
|
412 |
+
"shop, cart, checkout).%2$s"
|
413 |
+
msgstr ""
|
414 |
+
|
415 |
+
#: templates/admin/premium.php:289
|
416 |
+
msgid "decide the pages where to"
|
417 |
+
msgstr ""
|
418 |
+
|
419 |
+
#: templates/admin/premium.php:297
|
420 |
+
msgid ""
|
421 |
+
"Upgrade to the premium version of YITH WooCommerce Cart Messages to benefit "
|
422 |
+
"from all features!"
|
423 |
+
msgstr ""
|
424 |
+
|
425 |
+
#: yith-cart-messages-functions.php:11
|
426 |
+
msgid "All categories"
|
427 |
+
msgstr "Tutte le categorie"
|
428 |
+
|
429 |
+
#: yith-cart-messages.php:27
|
430 |
+
msgid ""
|
431 |
+
"You can't activate the free version of YITH WooCommerce Cart Messages while "
|
432 |
+
"you are using the premium one."
|
433 |
+
msgstr ""
|
434 |
+
"Non è possibile attivare la versione free di YITH WooCommerce Cart Messages "
|
435 |
+
"se stai già utilizzando la premium."
|
436 |
+
|
437 |
+
#: yith-cart-messages.php:82
|
438 |
+
msgid ""
|
439 |
+
"YITH WooCommerce Cart Messages is enabled but not effective. It requires "
|
440 |
+
"WooCommerce in order to work."
|
441 |
+
msgstr ""
|
442 |
+
"YITH WooCommerce Cart Messages è abilitato ma non in funzione. Devi aver "
|
443 |
+
"installato WooCommerce perché questo possa funzionare correttamente."
|
modules/yith-woocommerce-cart-messages/languages/yith-woocommerce-cart-messages.pot
ADDED
@@ -0,0 +1,1211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#, fuzzy
|
2 |
+
msgid ""
|
3 |
+
msgstr ""
|
4 |
+
"Project-Id-Version: YIT WooCommerce Cart Messages\n"
|
5 |
+
"POT-Creation-Date: 2015-10-02 09:33+0200\n"
|
6 |
+
"PO-Revision-Date: 2015-03-30 11:55+0100\n"
|
7 |
+
"Last-Translator: \n"
|
8 |
+
"Language-Team: Yithemes <plugins@yithemes.com>\n"
|
9 |
+
"Language: en\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 1.8.4\n"
|
14 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;__ngettext:1,2;"
|
15 |
+
"__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
|
16 |
+
"_nx_noop:4c,1,2\n"
|
17 |
+
"X-Poedit-Basepath: .\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
19 |
+
"X-Poedit-SearchPath-0: ..\n"
|
20 |
+
|
21 |
+
#: ../class.yith-woocommerce-cart-message.php:71
|
22 |
+
msgctxt "Post Type General Name"
|
23 |
+
msgid "Yith Cart Messages"
|
24 |
+
msgstr ""
|
25 |
+
|
26 |
+
#: ../class.yith-woocommerce-cart-message.php:72
|
27 |
+
msgctxt "Post Type Singular Name"
|
28 |
+
msgid "Yith Cart Message"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../class.yith-woocommerce-cart-message.php:73
|
32 |
+
msgid "Cart Message"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../class.yith-woocommerce-cart-message.php:74
|
36 |
+
msgid "Parent Item:"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: ../class.yith-woocommerce-cart-message.php:75
|
40 |
+
msgid "All Messages"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: ../class.yith-woocommerce-cart-message.php:76
|
44 |
+
msgid "View Messages"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: ../class.yith-woocommerce-cart-message.php:77
|
48 |
+
#: ../class.yith-woocommerce-cart-message.php:78
|
49 |
+
msgid "Add New Message"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../class.yith-woocommerce-cart-message.php:79
|
53 |
+
msgid "Edit Message"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../class.yith-woocommerce-cart-message.php:80
|
57 |
+
msgid "Update Message"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: ../class.yith-woocommerce-cart-message.php:81
|
61 |
+
msgid "Search Message"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: ../class.yith-woocommerce-cart-message.php:82
|
65 |
+
msgid "Not found"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: ../class.yith-woocommerce-cart-message.php:83
|
69 |
+
msgid "Not found in Trash"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: ../class.yith-woocommerce-cart-message.php:86
|
73 |
+
msgid "ywcm_message"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: ../class.yith-woocommerce-cart-message.php:87
|
77 |
+
msgid "Yith Cart Message Description"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: ../class.yith-woocommerce-cart-message.php:110
|
81 |
+
msgid "WooCommerce Cart Notices"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: ../class.yith-woocommerce-cart-message.php:111
|
85 |
+
msgid "Yith Cart Messages"
|
86 |
+
msgstr ""
|
87 |
+
|
88 |
+
#: ../class.yith-woocommerce-cart-message.php:146
|
89 |
+
msgid "Title"
|
90 |
+
msgstr ""
|
91 |
+
|
92 |
+
#: ../class.yith-woocommerce-cart-message.php:147
|
93 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1051
|
94 |
+
msgid "Type"
|
95 |
+
msgstr ""
|
96 |
+
|
97 |
+
#: ../class.yith-woocommerce-cart-message.php:148
|
98 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:33
|
99 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:85
|
100 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:113
|
101 |
+
msgid "Message"
|
102 |
+
msgstr ""
|
103 |
+
|
104 |
+
#: ../class.yith-woocommerce-cart-message.php:149
|
105 |
+
msgid "Button Text"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: ../class.yith-woocommerce-cart-message.php:150
|
109 |
+
msgid "Button Url"
|
110 |
+
msgstr ""
|
111 |
+
|
112 |
+
#: ../class.yith-woocommerce-cart-message.php:151
|
113 |
+
msgid "Date"
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: ../class.yith-woocommerce-cart-message.php:191
|
117 |
+
msgid "Products in Cart"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: ../class.yith-woocommerce-cart-message.php:192
|
121 |
+
msgid "Categories in Cart"
|
122 |
+
msgstr ""
|
123 |
+
|
124 |
+
#: ../class.yith-woocommerce-cart-message.php:193
|
125 |
+
msgid "Simple Message"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: ../class.yith-woocommerce-cart-message.php:197
|
129 |
+
msgid "Minimum Amount"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: ../class.yith-woocommerce-cart-message.php:198
|
133 |
+
msgid "Deadline"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: ../class.yith-woocommerce-cart-message.php:199
|
137 |
+
msgid "Referer"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: ../class.yith-woocommerce-cart-messages.php:148
|
141 |
+
#: ../class.yith-woocommerce-cart-messages.php:214
|
142 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1048
|
143 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1196
|
144 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1202
|
145 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:62
|
146 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:20
|
147 |
+
msgid "Settings"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: ../class.yith-woocommerce-cart-messages.php:152
|
151 |
+
#: ../class.yith-woocommerce-cart-messages.php:216
|
152 |
+
msgid "Premium Version"
|
153 |
+
msgstr ""
|
154 |
+
|
155 |
+
#: ../class.yith-woocommerce-cart-messages.php:156
|
156 |
+
msgid "Layouts"
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#: ../class.yith-woocommerce-cart-messages.php:162
|
160 |
+
#: ../class.yith-woocommerce-cart-messages.php:163
|
161 |
+
msgid "Cart Messages"
|
162 |
+
msgstr ""
|
163 |
+
|
164 |
+
#: ../class.yith-woocommerce-cart-messages.php:478
|
165 |
+
msgid "Plugin Documentation"
|
166 |
+
msgstr ""
|
167 |
+
|
168 |
+
#: ../class.yith-woocommerce-cart-messages.php:495
|
169 |
+
#: ../plugin-options/settings-options.php:25
|
170 |
+
#: ../plugin-options/settings-options.php:33
|
171 |
+
msgid "YITH WooCommerce Cart Messages"
|
172 |
+
msgstr ""
|
173 |
+
|
174 |
+
#: ../class.yith-woocommerce-cart-messages.php:496
|
175 |
+
msgid ""
|
176 |
+
"In the YIT Plugins tab you can find the YITH WooCommerce Cart Messages "
|
177 |
+
"options.\n"
|
178 |
+
"With this menu, you can access to all the settings of our plugins that you "
|
179 |
+
"have activated.\n"
|
180 |
+
"YITH WooCommerce Cart Messages is available in an outstanding PREMIUM "
|
181 |
+
"version with many new options, <a href=\""
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:460
|
185 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:574
|
186 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:719
|
187 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1632
|
188 |
+
#, php-format
|
189 |
+
msgid "Add %s"
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:461
|
193 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:575
|
194 |
+
#, php-format
|
195 |
+
msgid "Add New %s"
|
196 |
+
msgstr ""
|
197 |
+
|
198 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:462
|
199 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:576
|
200 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1267
|
201 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1304
|
202 |
+
#, php-format
|
203 |
+
msgid "Edit %s"
|
204 |
+
msgstr ""
|
205 |
+
|
206 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:463
|
207 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:577
|
208 |
+
#, php-format
|
209 |
+
msgid "New %s"
|
210 |
+
msgstr ""
|
211 |
+
|
212 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:464
|
213 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:578
|
214 |
+
#, php-format
|
215 |
+
msgid "All %s"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:465
|
219 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:579
|
220 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1251
|
221 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1305
|
222 |
+
#, php-format
|
223 |
+
msgid "View %s"
|
224 |
+
msgstr ""
|
225 |
+
|
226 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:466
|
227 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:580
|
228 |
+
#, php-format
|
229 |
+
msgid "Search %s"
|
230 |
+
msgstr ""
|
231 |
+
|
232 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:467
|
233 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:581
|
234 |
+
#, php-format
|
235 |
+
msgid "No %s found"
|
236 |
+
msgstr ""
|
237 |
+
|
238 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:468
|
239 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:582
|
240 |
+
#, php-format
|
241 |
+
msgid "No %s found in Trash"
|
242 |
+
msgstr ""
|
243 |
+
|
244 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:625
|
245 |
+
#, php-format
|
246 |
+
msgctxt "taxonomy general name"
|
247 |
+
msgid "%s Categories"
|
248 |
+
msgstr ""
|
249 |
+
|
250 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:626
|
251 |
+
msgctxt "taxonomy singular name"
|
252 |
+
msgid "Category"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:627
|
256 |
+
msgid "Search Categories"
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:628
|
260 |
+
msgid "All Categories"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:629
|
264 |
+
msgid "Parent Category"
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:630
|
268 |
+
msgid "Parent Category:"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:631
|
272 |
+
msgid "Edit Category"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:632
|
276 |
+
msgid "Update Category"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:633
|
280 |
+
msgid "Add New Category"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:634
|
284 |
+
msgid "New Category Name"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:635
|
288 |
+
msgid "Category"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:724
|
292 |
+
msgid "Categories"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1042
|
296 |
+
#, php-format
|
297 |
+
msgid "%s Settings"
|
298 |
+
msgstr ""
|
299 |
+
|
300 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1052
|
301 |
+
msgid "Layout for this "
|
302 |
+
msgstr ""
|
303 |
+
|
304 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1058
|
305 |
+
msgid "Rewrite"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1059
|
309 |
+
msgid ""
|
310 |
+
"Univocal identification name in the URL for each product (slug from post if "
|
311 |
+
"empty)"
|
312 |
+
msgstr ""
|
313 |
+
|
314 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1064
|
315 |
+
msgid "Label in Singular"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1065
|
319 |
+
msgid "Set a label in singular (title of portfolio if empty)"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1070
|
323 |
+
msgid "Label in Plural"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1071
|
327 |
+
msgid "Set a label in plural (title of portfolio if empty)"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1076
|
331 |
+
msgid "Taxonomy"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1077
|
335 |
+
msgid ""
|
336 |
+
"If you want to use categories in the portfolio, set a name for taxonomy. "
|
337 |
+
"Name should be a slug (must not contain capital letters nor spaces) and must "
|
338 |
+
"not be more than 32 characters long (database structure restriction)."
|
339 |
+
msgstr ""
|
340 |
+
|
341 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1082
|
342 |
+
msgid "Taxonomy Rewrite"
|
343 |
+
msgstr ""
|
344 |
+
|
345 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1083
|
346 |
+
msgid "Set univocal name for each category page URL."
|
347 |
+
msgstr ""
|
348 |
+
|
349 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1088
|
350 |
+
msgid "Single layout"
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1089
|
354 |
+
msgid "Layout for single page of this portfolio"
|
355 |
+
msgstr ""
|
356 |
+
|
357 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1130
|
358 |
+
msgid "layout settings"
|
359 |
+
msgstr ""
|
360 |
+
|
361 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1222
|
362 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1235
|
363 |
+
msgid "Quick links"
|
364 |
+
msgstr ""
|
365 |
+
|
366 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1475
|
367 |
+
#, php-format
|
368 |
+
msgid "Show frontend of the %s"
|
369 |
+
msgstr ""
|
370 |
+
|
371 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1482
|
372 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:46
|
373 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:90
|
374 |
+
msgid "Name"
|
375 |
+
msgstr ""
|
376 |
+
|
377 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1631
|
378 |
+
#, php-format
|
379 |
+
msgid "Add %s from images"
|
380 |
+
msgstr ""
|
381 |
+
|
382 |
+
#: ../plugin-fw/lib/yit-cpt-unlimited.php:1633
|
383 |
+
msgid "Add with multiupload"
|
384 |
+
msgstr ""
|
385 |
+
|
386 |
+
#: ../plugin-fw/lib/yit-plugin-panel-wc.php:295
|
387 |
+
msgid "The changes you have made will be lost if you leave this page."
|
388 |
+
msgstr ""
|
389 |
+
|
390 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:61
|
391 |
+
msgid "Plugin Settings"
|
392 |
+
msgstr ""
|
393 |
+
|
394 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:91
|
395 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:101
|
396 |
+
msgid "YIT Plugins"
|
397 |
+
msgstr ""
|
398 |
+
|
399 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:280
|
400 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:142
|
401 |
+
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:5
|
402 |
+
msgid "Save Changes"
|
403 |
+
msgstr ""
|
404 |
+
|
405 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:283
|
406 |
+
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:8
|
407 |
+
msgid ""
|
408 |
+
"If you continue with this action, you will reset all options in this page."
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:285
|
412 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
413 |
+
msgid "Reset to Default"
|
414 |
+
msgstr ""
|
415 |
+
|
416 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:285
|
417 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:147
|
418 |
+
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
419 |
+
msgid "Are you sure?"
|
420 |
+
msgstr ""
|
421 |
+
|
422 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:419
|
423 |
+
msgid ""
|
424 |
+
"The element you have entered already exists. Please, enter another name."
|
425 |
+
msgstr ""
|
426 |
+
|
427 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:420
|
428 |
+
msgid "Settings saved"
|
429 |
+
msgstr ""
|
430 |
+
|
431 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:421
|
432 |
+
msgid "Settings reset"
|
433 |
+
msgstr ""
|
434 |
+
|
435 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:422
|
436 |
+
msgid "Element deleted correctly."
|
437 |
+
msgstr ""
|
438 |
+
|
439 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:423
|
440 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:424
|
441 |
+
msgid "Element updated correctly."
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:425
|
445 |
+
msgid "Database imported correctly."
|
446 |
+
msgstr ""
|
447 |
+
|
448 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:426
|
449 |
+
msgid "An error has occurred during import. Please try again."
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:427
|
453 |
+
msgid "The added file is not valid."
|
454 |
+
msgstr ""
|
455 |
+
|
456 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:428
|
457 |
+
msgid "Sorry, import is disabled."
|
458 |
+
msgstr ""
|
459 |
+
|
460 |
+
#: ../plugin-fw/lib/yit-plugin-panel.php:429
|
461 |
+
msgid "Sorting successful."
|
462 |
+
msgstr ""
|
463 |
+
|
464 |
+
#: ../plugin-fw/lib/yit-plugin-subpanel.php:145
|
465 |
+
msgid ""
|
466 |
+
"If you continue with this action, you will reset all the options in this "
|
467 |
+
"page."
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: ../plugin-fw/lib/yit-pointers.php:70
|
471 |
+
msgid "Plugins Activated"
|
472 |
+
msgstr ""
|
473 |
+
|
474 |
+
#: ../plugin-fw/lib/yit-pointers.php:71
|
475 |
+
msgid ""
|
476 |
+
"From now on, you can find all plugin options in YIT Plugin menu.\n"
|
477 |
+
" For each plugin installed, "
|
478 |
+
"customization settings will be available as a new entry in YIT Plugin menu."
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#: ../plugin-fw/lib/yit-pointers.php:73 ../plugin-fw/lib/yit-pointers.php:89
|
482 |
+
msgid "Discover all our plugins available on:"
|
483 |
+
msgstr ""
|
484 |
+
|
485 |
+
#: ../plugin-fw/lib/yit-pointers.php:74 ../plugin-fw/lib/yit-pointers.php:90
|
486 |
+
msgid "and"
|
487 |
+
msgstr ""
|
488 |
+
|
489 |
+
#: ../plugin-fw/lib/yit-pointers.php:84
|
490 |
+
msgid "Plugins Upgraded"
|
491 |
+
msgstr ""
|
492 |
+
|
493 |
+
#: ../plugin-fw/lib/yit-pointers.php:85
|
494 |
+
msgid ""
|
495 |
+
"From now on, you can find all options of your plugins in YIT Plugin menu.\n"
|
496 |
+
" Any time one of our plugins is updated, "
|
497 |
+
"a new entry will be added to this menu.\n"
|
498 |
+
" For example, after the update, plugin "
|
499 |
+
"options (such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax "
|
500 |
+
"Search, etc.)\n"
|
501 |
+
" will be moved from previous location to "
|
502 |
+
"YIT Plugin tab."
|
503 |
+
msgstr ""
|
504 |
+
|
505 |
+
#: ../plugin-fw/lib/yit-upgrade.php:119
|
506 |
+
msgid "There is a new version of %plugin_name% available."
|
507 |
+
msgstr ""
|
508 |
+
|
509 |
+
#: ../plugin-fw/lib/yit-upgrade.php:120
|
510 |
+
msgid "View version %latest% details."
|
511 |
+
msgstr ""
|
512 |
+
|
513 |
+
#: ../plugin-fw/lib/yit-upgrade.php:121
|
514 |
+
msgid "Automatic update is unavailable for this plugin,"
|
515 |
+
msgstr ""
|
516 |
+
|
517 |
+
#: ../plugin-fw/lib/yit-upgrade.php:122
|
518 |
+
msgid ""
|
519 |
+
"please <a href=\"%activate_link%\">activate</a> your copy of %plugin_name%."
|
520 |
+
msgstr ""
|
521 |
+
|
522 |
+
#: ../plugin-fw/lib/yit-upgrade.php:123
|
523 |
+
msgid "Update now."
|
524 |
+
msgstr ""
|
525 |
+
|
526 |
+
#: ../plugin-fw/lib/yit-upgrade.php:226
|
527 |
+
msgid "Yithemes Repository"
|
528 |
+
msgstr ""
|
529 |
+
|
530 |
+
#: ../plugin-fw/lib/yit-upgrade.php:260
|
531 |
+
msgid "Invalid URL Provided."
|
532 |
+
msgstr ""
|
533 |
+
|
534 |
+
#: ../plugin-fw/lib/yit-upgrade.php:273
|
535 |
+
msgid "Could not create Temporary file."
|
536 |
+
msgstr ""
|
537 |
+
|
538 |
+
#: ../plugin-fw/lib/yit-upgrade.php:414
|
539 |
+
#, php-format
|
540 |
+
msgid ""
|
541 |
+
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
|
542 |
+
"yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>."
|
543 |
+
msgstr ""
|
544 |
+
|
545 |
+
#: ../plugin-fw/lib/yit-upgrade.php:416
|
546 |
+
#, php-format
|
547 |
+
msgid ""
|
548 |
+
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
|
549 |
+
"yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. <em>You "
|
550 |
+
"have to activate the plugin on a single site of the network to benefit from "
|
551 |
+
"automatic updates.</em>"
|
552 |
+
msgstr ""
|
553 |
+
|
554 |
+
#: ../plugin-fw/lib/yit-upgrade.php:418
|
555 |
+
#, php-format
|
556 |
+
msgid ""
|
557 |
+
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
|
558 |
+
"yit-changelog-button\" title=\"%3$s\">View version %4$s details</a>. "
|
559 |
+
"<em>Automatic update is unavailable for this plugin, please <a href=\"%5$s\" "
|
560 |
+
"title=\"Licence activation\">activate</a> your copy of %6s.</em>"
|
561 |
+
msgstr ""
|
562 |
+
|
563 |
+
#: ../plugin-fw/lib/yit-upgrade.php:420
|
564 |
+
#, php-format
|
565 |
+
msgid ""
|
566 |
+
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox "
|
567 |
+
"yit-changelog-button\" title=\"%3$s\">View version %4$s details</a> or <a "
|
568 |
+
"href=\"%5$s\">update now</a>."
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: ../plugin-fw/lib/yit-upgrade.php:493
|
572 |
+
msgid "You can't update the plugins for this site."
|
573 |
+
msgstr ""
|
574 |
+
|
575 |
+
#: ../plugin-fw/lib/yit-upgrade.php:497
|
576 |
+
msgid ""
|
577 |
+
"You do not have sufficient permissions to update the plugins for this site."
|
578 |
+
msgstr ""
|
579 |
+
|
580 |
+
#: ../plugin-fw/lib/yit-upgrade.php:504
|
581 |
+
msgid "Update Plugin"
|
582 |
+
msgstr ""
|
583 |
+
|
584 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:156
|
585 |
+
#, php-format
|
586 |
+
msgid "%field% field cannot be empty"
|
587 |
+
msgstr ""
|
588 |
+
|
589 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:157
|
590 |
+
msgid "%field_1% and %field_2% fields cannot be empty"
|
591 |
+
msgstr ""
|
592 |
+
|
593 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:158
|
594 |
+
msgid "Unable to contact the remote server, please try again later. Thanks!"
|
595 |
+
msgstr ""
|
596 |
+
|
597 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:537
|
598 |
+
msgid "Invalid Request"
|
599 |
+
msgstr ""
|
600 |
+
|
601 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:538
|
602 |
+
msgid "Invalid licence key"
|
603 |
+
msgstr ""
|
604 |
+
|
605 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:539
|
606 |
+
msgid "Software has been deactivated"
|
607 |
+
msgstr ""
|
608 |
+
|
609 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:540
|
610 |
+
msgid "Maximum number of activations exceeded"
|
611 |
+
msgstr ""
|
612 |
+
|
613 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:541
|
614 |
+
msgid "Invalid instance ID"
|
615 |
+
msgstr ""
|
616 |
+
|
617 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:542
|
618 |
+
msgid "Invalid security key"
|
619 |
+
msgstr ""
|
620 |
+
|
621 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:543
|
622 |
+
msgid "Licence key has expired"
|
623 |
+
msgstr ""
|
624 |
+
|
625 |
+
#: ../plugin-fw/licence/lib/yit-licence.php:544
|
626 |
+
msgid "Licence key has been banned"
|
627 |
+
msgstr ""
|
628 |
+
|
629 |
+
#: ../plugin-fw/licence/lib/yit-plugin-licence.php:63
|
630 |
+
#: ../plugin-fw/licence/lib/yit-plugin-licence.php:64
|
631 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:63
|
632 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:64
|
633 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:106
|
634 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:107
|
635 |
+
msgid "Licence Activation"
|
636 |
+
msgstr ""
|
637 |
+
|
638 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:114
|
639 |
+
#: ../plugin-fw/licence/lib/yit-theme-licence.php:115
|
640 |
+
#, php-format
|
641 |
+
msgid "%s"
|
642 |
+
msgstr ""
|
643 |
+
|
644 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:19
|
645 |
+
msgid "Yithemes Licence Activation"
|
646 |
+
msgstr ""
|
647 |
+
|
648 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:23
|
649 |
+
msgid ""
|
650 |
+
"Have you updated your licenses? Have you asked for an extension? Update "
|
651 |
+
"information concerning your products."
|
652 |
+
msgstr ""
|
653 |
+
|
654 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:25
|
655 |
+
msgid "Update licence information"
|
656 |
+
msgstr ""
|
657 |
+
|
658 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:35
|
659 |
+
msgid "Products to be activated"
|
660 |
+
msgstr ""
|
661 |
+
|
662 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:54
|
663 |
+
msgid "Activate"
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:73
|
667 |
+
msgid "Activated"
|
668 |
+
msgstr ""
|
669 |
+
|
670 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:77
|
671 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:109
|
672 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:133
|
673 |
+
msgid "Product Name"
|
674 |
+
msgstr ""
|
675 |
+
|
676 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:78
|
677 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:110
|
678 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:134
|
679 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:145
|
680 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:337
|
681 |
+
msgid "Email"
|
682 |
+
msgstr ""
|
683 |
+
|
684 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:79
|
685 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:111
|
686 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:135
|
687 |
+
msgid "Licence Key"
|
688 |
+
msgstr ""
|
689 |
+
|
690 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:80
|
691 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:136
|
692 |
+
msgid "Expires"
|
693 |
+
msgstr ""
|
694 |
+
|
695 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:81
|
696 |
+
msgid "Remaining"
|
697 |
+
msgstr ""
|
698 |
+
|
699 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:82
|
700 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:95
|
701 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:137
|
702 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:147
|
703 |
+
msgid "Renew"
|
704 |
+
msgstr ""
|
705 |
+
|
706 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:93
|
707 |
+
#, php-format
|
708 |
+
msgid "%1s out of %2s"
|
709 |
+
msgstr ""
|
710 |
+
|
711 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:105
|
712 |
+
msgid "Banned"
|
713 |
+
msgstr ""
|
714 |
+
|
715 |
+
#: ../plugin-fw/licence/templates/panel/activation/activation-panel.php:129
|
716 |
+
msgid "Expired"
|
717 |
+
msgstr ""
|
718 |
+
|
719 |
+
#: ../plugin-fw/templates/metaboxes/types/ajax-products.php:23
|
720 |
+
msgid "Search for a product"
|
721 |
+
msgstr ""
|
722 |
+
|
723 |
+
#: ../plugin-fw/templates/metaboxes/types/categories.php:36
|
724 |
+
msgid "No categories."
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: ../plugin-fw/templates/metaboxes/types/categories.php:42
|
728 |
+
msgid "+ Add New Category"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:5
|
732 |
+
msgid "Text Input"
|
733 |
+
msgstr ""
|
734 |
+
|
735 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:6
|
736 |
+
msgid "Checkbox"
|
737 |
+
msgstr ""
|
738 |
+
|
739 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:7
|
740 |
+
msgid "Select"
|
741 |
+
msgstr ""
|
742 |
+
|
743 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:8
|
744 |
+
msgid "Textarea"
|
745 |
+
msgstr ""
|
746 |
+
|
747 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:9
|
748 |
+
msgid "Radio Input"
|
749 |
+
msgstr ""
|
750 |
+
|
751 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:10
|
752 |
+
msgid "Password Field"
|
753 |
+
msgstr ""
|
754 |
+
|
755 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:11
|
756 |
+
msgid "File Upload"
|
757 |
+
msgstr ""
|
758 |
+
|
759 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:45
|
760 |
+
msgid "Theme Icon"
|
761 |
+
msgstr ""
|
762 |
+
|
763 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:46
|
764 |
+
msgid "Custom Icon"
|
765 |
+
msgstr ""
|
766 |
+
|
767 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:47
|
768 |
+
#: ../plugin-fw/templates/metaboxes/types/responsivesliders.php:24
|
769 |
+
msgid "None"
|
770 |
+
msgstr ""
|
771 |
+
|
772 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:57
|
773 |
+
msgid "Add field"
|
774 |
+
msgstr ""
|
775 |
+
|
776 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:66
|
777 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:258
|
778 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:37
|
779 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:82
|
780 |
+
msgid "Remove"
|
781 |
+
msgstr ""
|
782 |
+
|
783 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:67
|
784 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:259
|
785 |
+
msgid "Click to toggle"
|
786 |
+
msgstr ""
|
787 |
+
|
788 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:74
|
789 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:266
|
790 |
+
msgid "Title Field"
|
791 |
+
msgstr ""
|
792 |
+
|
793 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:78
|
794 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:270
|
795 |
+
msgid "Insert the title for the field."
|
796 |
+
msgstr ""
|
797 |
+
|
798 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:83
|
799 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:275
|
800 |
+
msgid "Data Name"
|
801 |
+
msgstr ""
|
802 |
+
|
803 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:87
|
804 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:279
|
805 |
+
msgid ""
|
806 |
+
"REQUIRED: Field identification name to be entered into email body. "
|
807 |
+
"<strong>Note:</strong>Use only lowercase characters and underscores."
|
808 |
+
msgstr ""
|
809 |
+
|
810 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:92
|
811 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:284
|
812 |
+
msgid "Type field"
|
813 |
+
msgstr ""
|
814 |
+
|
815 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:100
|
816 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:292
|
817 |
+
msgid "Select the type for this field."
|
818 |
+
msgstr ""
|
819 |
+
|
820 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:105
|
821 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:297
|
822 |
+
msgid "Checked"
|
823 |
+
msgstr ""
|
824 |
+
|
825 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:109
|
826 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:301
|
827 |
+
msgid "Select this option if you want this field appears as already checked."
|
828 |
+
msgstr ""
|
829 |
+
|
830 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:114
|
831 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:306
|
832 |
+
msgid "Add options "
|
833 |
+
msgstr ""
|
834 |
+
|
835 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:115
|
836 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:307
|
837 |
+
msgid "Add option"
|
838 |
+
msgstr ""
|
839 |
+
|
840 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:118
|
841 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:310
|
842 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:432
|
843 |
+
msgid "Selected"
|
844 |
+
msgstr ""
|
845 |
+
|
846 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:121
|
847 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:313
|
848 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:432
|
849 |
+
msgid "Delete option"
|
850 |
+
msgstr ""
|
851 |
+
|
852 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:127
|
853 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:319
|
854 |
+
msgid "Error Message"
|
855 |
+
msgstr ""
|
856 |
+
|
857 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:131
|
858 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:323
|
859 |
+
msgid "Insert the error message for validation."
|
860 |
+
msgstr ""
|
861 |
+
|
862 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:136
|
863 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:328
|
864 |
+
msgid "Required"
|
865 |
+
msgstr ""
|
866 |
+
|
867 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:140
|
868 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:332
|
869 |
+
msgid "Select this option if it must be required."
|
870 |
+
msgstr ""
|
871 |
+
|
872 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:149
|
873 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:341
|
874 |
+
msgid "Select this option if the email must be valid."
|
875 |
+
msgstr ""
|
876 |
+
|
877 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:154
|
878 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:346
|
879 |
+
msgid "Reply To"
|
880 |
+
msgstr ""
|
881 |
+
|
882 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:158
|
883 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:350
|
884 |
+
msgid "Select this if it is the email you can reply to."
|
885 |
+
msgstr ""
|
886 |
+
|
887 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:163
|
888 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:355
|
889 |
+
msgid "Class"
|
890 |
+
msgstr ""
|
891 |
+
|
892 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:167
|
893 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:359
|
894 |
+
msgid ""
|
895 |
+
"Insert additional class(es) (separated by commas) for more personalization."
|
896 |
+
msgstr ""
|
897 |
+
|
898 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:172
|
899 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:364
|
900 |
+
msgid "Icon"
|
901 |
+
msgstr ""
|
902 |
+
|
903 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:200
|
904 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:388
|
905 |
+
#: ../plugin-fw/templates/metaboxes/types/icon-list.php:69
|
906 |
+
#: ../plugin-fw/templates/metaboxes/types/select-icon.php:33
|
907 |
+
#: ../plugin-fw/templates/metaboxes/types/upload.php:21
|
908 |
+
#: ../plugin-fw/templates/panel/types/upload.php:31
|
909 |
+
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-upload.php:35
|
910 |
+
msgid "Upload"
|
911 |
+
msgstr ""
|
912 |
+
|
913 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:206
|
914 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:394
|
915 |
+
#: ../plugin-fw/templates/metaboxes/types/icon-list.php:75
|
916 |
+
#: ../plugin-fw/templates/metaboxes/types/select-icon.php:39
|
917 |
+
msgid "Image preview"
|
918 |
+
msgstr ""
|
919 |
+
|
920 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:214
|
921 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:402
|
922 |
+
msgid "Insert an icon for more personalization."
|
923 |
+
msgstr ""
|
924 |
+
|
925 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:219
|
926 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:406
|
927 |
+
msgid "Width"
|
928 |
+
msgstr ""
|
929 |
+
|
930 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:244
|
931 |
+
#: ../plugin-fw/templates/metaboxes/types/contactform.php:418
|
932 |
+
msgid "Set field length."
|
933 |
+
msgstr ""
|
934 |
+
|
935 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:28
|
936 |
+
msgid "Close all"
|
937 |
+
msgstr ""
|
938 |
+
|
939 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:28
|
940 |
+
msgid "Expand all"
|
941 |
+
msgstr ""
|
942 |
+
|
943 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:52
|
944 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:95
|
945 |
+
msgid "Value"
|
946 |
+
msgstr ""
|
947 |
+
|
948 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:53
|
949 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:96
|
950 |
+
msgid "Content of the tab. (HTML is supported)"
|
951 |
+
msgstr ""
|
952 |
+
|
953 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:65
|
954 |
+
msgid "Add custom product tab"
|
955 |
+
msgstr ""
|
956 |
+
|
957 |
+
#: ../plugin-fw/templates/metaboxes/types/customtabs.php:107
|
958 |
+
msgid "Do you want to remove the custom tab?"
|
959 |
+
msgstr ""
|
960 |
+
|
961 |
+
#: ../plugin-fw/templates/metaboxes/types/icon-list.php:89
|
962 |
+
#, php-format
|
963 |
+
msgid "(Default: %s <img src=\"%s\"/>)"
|
964 |
+
msgstr ""
|
965 |
+
|
966 |
+
#: ../plugin-fw/templates/metaboxes/types/icon-list.php:91
|
967 |
+
#, php-format
|
968 |
+
msgid "(Default: <i %s></i> )"
|
969 |
+
msgstr ""
|
970 |
+
|
971 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:35
|
972 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:40
|
973 |
+
#: ../plugin-fw/templates/metaboxes/types/images.php:33
|
974 |
+
#: ../plugin-fw/templates/metaboxes/types/images.php:59
|
975 |
+
msgid "Delete image"
|
976 |
+
msgstr ""
|
977 |
+
|
978 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:40
|
979 |
+
msgid "Add Images to Gallery"
|
980 |
+
msgstr ""
|
981 |
+
|
982 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:40
|
983 |
+
msgid "Add to gallery"
|
984 |
+
msgstr ""
|
985 |
+
|
986 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:40
|
987 |
+
msgid "Add images"
|
988 |
+
msgstr ""
|
989 |
+
|
990 |
+
#: ../plugin-fw/templates/metaboxes/types/image-gallery.php:40
|
991 |
+
msgid "Delete"
|
992 |
+
msgstr ""
|
993 |
+
|
994 |
+
#: ../plugin-fw/templates/metaboxes/types/images.php:37
|
995 |
+
msgid "Upload new images"
|
996 |
+
msgstr ""
|
997 |
+
|
998 |
+
#: ../plugin-fw/templates/metaboxes/types/images.php:70
|
999 |
+
msgid "Are you sure you want to remove this image?"
|
1000 |
+
msgstr ""
|
1001 |
+
|
1002 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebar-layout.php:25
|
1003 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:36
|
1004 |
+
msgid "Left sidebar"
|
1005 |
+
msgstr ""
|
1006 |
+
|
1007 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebar-layout.php:28
|
1008 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:42
|
1009 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:45
|
1010 |
+
msgid "No sidebar"
|
1011 |
+
msgstr ""
|
1012 |
+
|
1013 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebar-layout.php:31
|
1014 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:39
|
1015 |
+
msgid "Right sidebar"
|
1016 |
+
msgstr ""
|
1017 |
+
|
1018 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebar-layout.php:34
|
1019 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:53
|
1020 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:64
|
1021 |
+
msgid "Choose a sidebar"
|
1022 |
+
msgstr ""
|
1023 |
+
|
1024 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:51
|
1025 |
+
msgid "Left Sidebar"
|
1026 |
+
msgstr ""
|
1027 |
+
|
1028 |
+
#: ../plugin-fw/templates/metaboxes/types/sidebars.php:62
|
1029 |
+
msgid "Right Sidebar"
|
1030 |
+
msgstr ""
|
1031 |
+
|
1032 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:42
|
1033 |
+
msgid "px"
|
1034 |
+
msgstr ""
|
1035 |
+
|
1036 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:43
|
1037 |
+
msgid "em"
|
1038 |
+
msgstr ""
|
1039 |
+
|
1040 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:44
|
1041 |
+
msgid "pt"
|
1042 |
+
msgstr ""
|
1043 |
+
|
1044 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:45
|
1045 |
+
msgid "rem"
|
1046 |
+
msgstr ""
|
1047 |
+
|
1048 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:59
|
1049 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:153
|
1050 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:217
|
1051 |
+
msgid "Web fonts"
|
1052 |
+
msgstr ""
|
1053 |
+
|
1054 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:71
|
1055 |
+
msgid "Google fonts"
|
1056 |
+
msgstr ""
|
1057 |
+
|
1058 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:96
|
1059 |
+
msgid "Regular"
|
1060 |
+
msgstr ""
|
1061 |
+
|
1062 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:97
|
1063 |
+
msgid "Bold"
|
1064 |
+
msgstr ""
|
1065 |
+
|
1066 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:98
|
1067 |
+
msgid "Extra bold"
|
1068 |
+
msgstr ""
|
1069 |
+
|
1070 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:99
|
1071 |
+
msgid "Italic"
|
1072 |
+
msgstr ""
|
1073 |
+
|
1074 |
+
#: ../plugin-fw/templates/metaboxes/types/typography.php:100
|
1075 |
+
msgid "Italic bold"
|
1076 |
+
msgstr ""
|
1077 |
+
|
1078 |
+
#: ../plugin-fw/templates/panel/woocommerce/woocommerce-form.php:10
|
1079 |
+
msgid "Reset Defaults"
|
1080 |
+
msgstr ""
|
1081 |
+
|
1082 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:14
|
1083 |
+
msgid "Message Settings"
|
1084 |
+
msgstr ""
|
1085 |
+
|
1086 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:23
|
1087 |
+
msgid "Message Type"
|
1088 |
+
msgstr ""
|
1089 |
+
|
1090 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:24
|
1091 |
+
msgid "Choose the type of the message"
|
1092 |
+
msgstr ""
|
1093 |
+
|
1094 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:34
|
1095 |
+
msgid ""
|
1096 |
+
"You can edit the text using the following placeholder: <br>\n"
|
1097 |
+
"{remaining_amount} indicates the remaining amount to reach the minimum order "
|
1098 |
+
"amount;<br>\n"
|
1099 |
+
"{products} specifies which of the listed product is in the cart;<br>\n"
|
1100 |
+
"{required_quantity} states the exact number of product to purchase."
|
1101 |
+
msgstr ""
|
1102 |
+
|
1103 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:47
|
1104 |
+
msgid "Required quantity"
|
1105 |
+
msgstr ""
|
1106 |
+
|
1107 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:48
|
1108 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:59
|
1109 |
+
msgid "The minimum total amount of above selected products."
|
1110 |
+
msgstr ""
|
1111 |
+
|
1112 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:58
|
1113 |
+
msgid "Threshold amount"
|
1114 |
+
msgstr ""
|
1115 |
+
|
1116 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:70
|
1117 |
+
msgid "Select products"
|
1118 |
+
msgstr ""
|
1119 |
+
|
1120 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:86
|
1121 |
+
msgid ""
|
1122 |
+
"You can edit the message using <br>{categories} to state the list of "
|
1123 |
+
"categories."
|
1124 |
+
msgstr ""
|
1125 |
+
|
1126 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:97
|
1127 |
+
msgid "Select categories"
|
1128 |
+
msgstr ""
|
1129 |
+
|
1130 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:114
|
1131 |
+
msgid "Edit the message"
|
1132 |
+
msgstr ""
|
1133 |
+
|
1134 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:127
|
1135 |
+
msgid "Button Text (optional)"
|
1136 |
+
msgstr ""
|
1137 |
+
|
1138 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:128
|
1139 |
+
msgid ""
|
1140 |
+
"The text of the button for the action call. Leave it empty if you do not "
|
1141 |
+
"want to show it."
|
1142 |
+
msgstr ""
|
1143 |
+
|
1144 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:133
|
1145 |
+
msgid "Button URL (optional)"
|
1146 |
+
msgstr ""
|
1147 |
+
|
1148 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:134
|
1149 |
+
msgid "The URL of the button of the call to action"
|
1150 |
+
msgstr ""
|
1151 |
+
|
1152 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:139
|
1153 |
+
msgid "Expire date (optional)"
|
1154 |
+
msgstr ""
|
1155 |
+
|
1156 |
+
#: ../plugin-options/metabox/ywcm_metabox.php:140
|
1157 |
+
msgid "Choose a date until this message will appear"
|
1158 |
+
msgstr ""
|
1159 |
+
|
1160 |
+
#: ../plugin-options/settings-options.php:22
|
1161 |
+
msgid "Upgrade to the PREMIUM VERSION"
|
1162 |
+
msgstr ""
|
1163 |
+
|
1164 |
+
#: ../plugin-options/settings-options.php:26
|
1165 |
+
msgid "Discover the Advanced Features"
|
1166 |
+
msgstr ""
|
1167 |
+
|
1168 |
+
#: ../plugin-options/settings-options.php:27
|
1169 |
+
msgid ""
|
1170 |
+
"Upgrade to the PREMIUM VERSION\n"
|
1171 |
+
"of YITH WooCommerce Cart Messages to benefit from all features!"
|
1172 |
+
msgstr ""
|
1173 |
+
|
1174 |
+
#: ../plugin-options/settings-options.php:35
|
1175 |
+
msgid "Get Support and Pro Features"
|
1176 |
+
msgstr ""
|
1177 |
+
|
1178 |
+
#: ../plugin-options/settings-options.php:36
|
1179 |
+
msgid ""
|
1180 |
+
"By purchasing the premium version of the plugin, you will take advantage of "
|
1181 |
+
"the advanced features of the product and you will get one year of free "
|
1182 |
+
"updates and support through our platform available 24h/24."
|
1183 |
+
msgstr ""
|
1184 |
+
|
1185 |
+
#: ../plugin-options/settings-options.php:46
|
1186 |
+
msgid "General settings"
|
1187 |
+
msgstr ""
|
1188 |
+
|
1189 |
+
#: ../plugin-options/settings-options.php:52
|
1190 |
+
msgid "Show in cart"
|
1191 |
+
msgstr ""
|
1192 |
+
|
1193 |
+
#: ../plugin-options/settings-options.php:60
|
1194 |
+
msgid "Show in checkout"
|
1195 |
+
msgstr ""
|
1196 |
+
|
1197 |
+
#: ../yith-cart-messages-functions.php:11
|
1198 |
+
msgid "All categories"
|
1199 |
+
msgstr ""
|
1200 |
+
|
1201 |
+
#: ../yith-cart-messages.php:27
|
1202 |
+
msgid ""
|
1203 |
+
"You can't activate the free version of YITH WooCommerce Cart Messages while "
|
1204 |
+
"you are using the premium one."
|
1205 |
+
msgstr ""
|
1206 |
+
|
1207 |
+
#: ../yith-cart-messages.php:82
|
1208 |
+
msgid ""
|
1209 |
+
"YITH WooCommerce Cart Messages is enabled but not effective. It requires "
|
1210 |
+
"Woocommerce in order to work."
|
1211 |
+
msgstr ""
|
modules/yith-woocommerce-cart-messages/plugin-options/metabox/ywcm_metabox.php
CHANGED
@@ -11,17 +11,17 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
11 |
} // Exit if accessed directly
|
12 |
|
13 |
return array(
|
14 |
-
'label' => __( 'Message Settings', '
|
15 |
'pages' => 'ywcm_message', //or array( 'post-type1', 'post-type2')
|
16 |
'context' => 'normal', //('normal', 'advanced', or 'side')
|
17 |
'priority' => 'default',
|
18 |
'tabs' => array(
|
19 |
'settings' => array(
|
20 |
-
'label' => __( 'Settings', '
|
21 |
'fields' => apply_filters( 'ywcm_message_metabox', array(
|
22 |
'ywcm_message_type' => array(
|
23 |
-
'label' => __( 'Message Type', '
|
24 |
-
'desc' => __( 'Choose the type of the message', '
|
25 |
'type' => 'select',
|
26 |
'options' => YWCM_Cart_Message()->get_types(),
|
27 |
'std' => 'minimum_amount' ),
|
@@ -30,11 +30,11 @@ return array(
|
|
30 |
/* Products in Cart ____________________________________________________________________________*/
|
31 |
|
32 |
'ywcm_message_products_cart_text' => array(
|
33 |
-
'label' => __( 'Message', '
|
34 |
'desc' => __( 'You can edit the text using the following placeholder: <br>
|
35 |
{remaining_amount} indicates the remaining amount to reach the minimum order amount;<br>
|
36 |
{products} specifies which of the listed product is in the cart;<br>
|
37 |
-
{required_quantity} states the exact number of product to purchase.', '
|
38 |
'type' => 'textarea',
|
39 |
'std' => 'To benefit from free shipping, add <strong>{remaining_quantity}</strong> quantity more of <strong>{products}</strong>!',
|
40 |
'deps' => array(
|
@@ -44,8 +44,8 @@ return array(
|
|
44 |
),
|
45 |
|
46 |
'ywcm_message_products_cart_minimum' => array(
|
47 |
-
'label' => __( 'Required quantity', '
|
48 |
-
'desc' => __( 'The minimum total amount of above selected products.', '
|
49 |
'type' => 'text',
|
50 |
'std' => '',
|
51 |
'deps' => array(
|
@@ -55,8 +55,8 @@ return array(
|
|
55 |
),
|
56 |
|
57 |
'ywcm_products_cart_threshold_quantity' => array(
|
58 |
-
'label' => __( 'Threshold amount', '
|
59 |
-
'desc' => __( 'The minimum total amount of above selected products.', '
|
60 |
'type' => 'text',
|
61 |
'std' => '',
|
62 |
'deps' => array(
|
@@ -67,7 +67,7 @@ return array(
|
|
67 |
|
68 |
|
69 |
'ywcm_products_cart_products' => array(
|
70 |
-
'label' => __( 'Select products', '
|
71 |
'desc' => '',
|
72 |
'type' => 'ajax-products',
|
73 |
'multiple' => true,
|
@@ -82,8 +82,8 @@ return array(
|
|
82 |
|
83 |
/* Category in Cart ___________________________________________________________________________*/
|
84 |
'ywcm_message_categories_cart_text' => array(
|
85 |
-
'label' => __( 'Message', '
|
86 |
-
'desc' => __( 'You can edit the message using <br>{categories} to state the list of categories.', '
|
87 |
'type' => 'textarea',
|
88 |
'std' => 'Do you like <strong>{categories}</strong>? Discovery our outlet!',
|
89 |
'deps' => array(
|
@@ -94,7 +94,7 @@ return array(
|
|
94 |
|
95 |
|
96 |
'ywcm_message_category_cart_categories' => array(
|
97 |
-
'label' => __( 'Select categories', '
|
98 |
'desc' => '',
|
99 |
'type' => 'chosen',
|
100 |
'multiple' => true,
|
@@ -110,8 +110,8 @@ return array(
|
|
110 |
|
111 |
/* Simple message ____________________________________________________________________________*/
|
112 |
'ywcm_message_simple_message_text' => array(
|
113 |
-
'label' => __( 'Message', '
|
114 |
-
'desc' => __( 'Edit the message', '
|
115 |
'type' => 'textarea',
|
116 |
'std' => '',
|
117 |
'deps' => array(
|
@@ -124,20 +124,20 @@ return array(
|
|
124 |
|
125 |
/* Common options ____________________________________________________________________________*/
|
126 |
'ywcm_message_button' => array(
|
127 |
-
'label' => __( 'Button Text (optional)', '
|
128 |
-
'desc' => __( 'The text of the button for the action call. Leave it empty if you do not want to show it.', '
|
129 |
'type' => 'text',
|
130 |
'std' => '' ),
|
131 |
|
132 |
'ywcm_message_button_url' => array(
|
133 |
-
'label' => __( 'Button URL (optional)', '
|
134 |
-
'desc' => __( 'The URL of the button of the call to action', '
|
135 |
'type' => 'text',
|
136 |
'std' => '' ),
|
137 |
|
138 |
'ywcm_message_expire' => array(
|
139 |
-
'label' => __( 'Expire date (optional)', '
|
140 |
-
'desc' => __( 'Choose a date until this message will appear', '
|
141 |
'type' => 'datepicker',
|
142 |
'std' => '' ),
|
143 |
|
11 |
} // Exit if accessed directly
|
12 |
|
13 |
return array(
|
14 |
+
'label' => __( 'Message Settings', 'yith-woocommerce-cart-messages' ),
|
15 |
'pages' => 'ywcm_message', //or array( 'post-type1', 'post-type2')
|
16 |
'context' => 'normal', //('normal', 'advanced', or 'side')
|
17 |
'priority' => 'default',
|
18 |
'tabs' => array(
|
19 |
'settings' => array(
|
20 |
+
'label' => __( 'Settings', 'yith-woocommerce-cart-messages' ),
|
21 |
'fields' => apply_filters( 'ywcm_message_metabox', array(
|
22 |
'ywcm_message_type' => array(
|
23 |
+
'label' => __( 'Message Type', 'yith-woocommerce-cart-messages' ),
|
24 |
+
'desc' => __( 'Choose the type of the message', 'yith-woocommerce-cart-messages' ),
|
25 |
'type' => 'select',
|
26 |
'options' => YWCM_Cart_Message()->get_types(),
|
27 |
'std' => 'minimum_amount' ),
|
30 |
/* Products in Cart ____________________________________________________________________________*/
|
31 |
|
32 |
'ywcm_message_products_cart_text' => array(
|
33 |
+
'label' => __( 'Message', 'yith-woocommerce-cart-messages' ),
|
34 |
'desc' => __( 'You can edit the text using the following placeholder: <br>
|
35 |
{remaining_amount} indicates the remaining amount to reach the minimum order amount;<br>
|
36 |
{products} specifies which of the listed product is in the cart;<br>
|
37 |
+
{required_quantity} states the exact number of product to purchase.', 'yith-woocommerce-cart-messages' ),
|
38 |
'type' => 'textarea',
|
39 |
'std' => 'To benefit from free shipping, add <strong>{remaining_quantity}</strong> quantity more of <strong>{products}</strong>!',
|
40 |
'deps' => array(
|
44 |
),
|
45 |
|
46 |
'ywcm_message_products_cart_minimum' => array(
|
47 |
+
'label' => __( 'Required quantity', 'yith-woocommerce-cart-messages' ),
|
48 |
+
'desc' => __( 'The minimum total amount of above selected products.', 'yith-woocommerce-cart-messages' ),
|
49 |
'type' => 'text',
|
50 |
'std' => '',
|
51 |
'deps' => array(
|
55 |
),
|
56 |
|
57 |
'ywcm_products_cart_threshold_quantity' => array(
|
58 |
+
'label' => __( 'Threshold amount', 'yith-woocommerce-cart-messages' ),
|
59 |
+
'desc' => __( 'The minimum total amount of above selected products.', 'yith-woocommerce-cart-messages' ),
|
60 |
'type' => 'text',
|
61 |
'std' => '',
|
62 |
'deps' => array(
|
67 |
|
68 |
|
69 |
'ywcm_products_cart_products' => array(
|
70 |
+
'label' => __( 'Select products', 'yith-woocommerce-cart-messages' ),
|
71 |
'desc' => '',
|
72 |
'type' => 'ajax-products',
|
73 |
'multiple' => true,
|
82 |
|
83 |
/* Category in Cart ___________________________________________________________________________*/
|
84 |
'ywcm_message_categories_cart_text' => array(
|
85 |
+
'label' => __( 'Message', 'yith-woocommerce-cart-messages' ),
|
86 |
+
'desc' => __( 'You can edit the message using <br>{categories} to state the list of categories.', 'yith-woocommerce-cart-messages' ),
|
87 |
'type' => 'textarea',
|
88 |
'std' => 'Do you like <strong>{categories}</strong>? Discovery our outlet!',
|
89 |
'deps' => array(
|
94 |
|
95 |
|
96 |
'ywcm_message_category_cart_categories' => array(
|
97 |
+
'label' => __( 'Select categories', 'yith-woocommerce-cart-messages' ),
|
98 |
'desc' => '',
|
99 |
'type' => 'chosen',
|
100 |
'multiple' => true,
|
110 |
|
111 |
/* Simple message ____________________________________________________________________________*/
|
112 |
'ywcm_message_simple_message_text' => array(
|
113 |
+
'label' => __( 'Message', 'yith-woocommerce-cart-messages' ),
|
114 |
+
'desc' => __( 'Edit the message', 'yith-woocommerce-cart-messages' ),
|
115 |
'type' => 'textarea',
|
116 |
'std' => '',
|
117 |
'deps' => array(
|
124 |
|
125 |
/* Common options ____________________________________________________________________________*/
|
126 |
'ywcm_message_button' => array(
|
127 |
+
'label' => __( 'Button Text (optional)', 'yith-woocommerce-cart-messages' ),
|
128 |
+
'desc' => __( 'The text of the button for the action call. Leave it empty if you do not want to show it.', 'yith-woocommerce-cart-messages' ),
|
129 |
'type' => 'text',
|
130 |
'std' => '' ),
|
131 |
|
132 |
'ywcm_message_button_url' => array(
|
133 |
+
'label' => __( 'Button URL (optional)', 'yith-woocommerce-cart-messages' ),
|
134 |
+
'desc' => __( 'The URL of the button of the call to action', 'yith-woocommerce-cart-messages' ),
|
135 |
'type' => 'text',
|
136 |
'std' => '' ),
|
137 |
|
138 |
'ywcm_message_expire' => array(
|
139 |
+
'label' => __( 'Expire date (optional)', 'yith-woocommerce-cart-messages' ),
|
140 |
+
'desc' => __( 'Choose a date until this message will appear', 'yith-woocommerce-cart-messages' ),
|
141 |
'type' => 'datepicker',
|
142 |
'std' => '' ),
|
143 |
|
modules/yith-woocommerce-cart-messages/plugin-options/settings-options.php
CHANGED
@@ -19,21 +19,21 @@ return array(
|
|
19 |
'settings' => array(
|
20 |
|
21 |
'section_general_settings_videobox' => array(
|
22 |
-
'name' => __( 'Upgrade to the PREMIUM VERSION', '
|
23 |
'type' => 'videobox',
|
24 |
'default' => array(
|
25 |
-
'plugin_name' => __( 'YITH WooCommerce Cart Messages', '
|
26 |
-
'title_first_column' => __( 'Discover the Advanced Features', '
|
27 |
'description_first_column' => __('Upgrade to the PREMIUM VERSION
|
28 |
-
of YITH WooCommerce Cart Messages to benefit from all features!', '
|
29 |
|
30 |
'video' => array(
|
31 |
'video_id' => '118792418',
|
32 |
'video_image_url' => YITH_YWCM_ASSETS_URL.'/images/yith-woocommerce-cart-messages.jpg',
|
33 |
'video_description' => __( 'YITH WooCommerce Cart Messages', 'yit' ),
|
34 |
),
|
35 |
-
'title_second_column' => __( 'Get Support and Pro Features', '
|
36 |
-
'description_second_column' => __('By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', '
|
37 |
'button' => array(
|
38 |
'href' => $YWCM_Instance->get_premium_landing_uri(),
|
39 |
'title' => 'Get Support and Pro Features'
|
@@ -43,13 +43,13 @@ of YITH WooCommerce Cart Messages to benefit from all features!', 'ywcm'),
|
|
43 |
),
|
44 |
|
45 |
'section_general_settings' => array(
|
46 |
-
'name' => __( 'General settings', '
|
47 |
'type' => 'title',
|
48 |
'id' => 'ywcm_section_general'
|
49 |
),
|
50 |
|
51 |
'show_in_cart' => array(
|
52 |
-
'name' => __( 'Show in cart', '
|
53 |
'desc' => '',
|
54 |
'id' => 'ywcm_show_in_cart',
|
55 |
'default' => 'yes',
|
@@ -57,7 +57,7 @@ of YITH WooCommerce Cart Messages to benefit from all features!', 'ywcm'),
|
|
57 |
),
|
58 |
|
59 |
'show_in_checkout' => array(
|
60 |
-
'name' => __( 'Show in checkout', '
|
61 |
'desc' => '',
|
62 |
'id' => 'ywcm_show_in_checkout',
|
63 |
'default' => 'yes',
|
19 |
'settings' => array(
|
20 |
|
21 |
'section_general_settings_videobox' => array(
|
22 |
+
'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-woocommerce-cart-messages' ),
|
23 |
'type' => 'videobox',
|
24 |
'default' => array(
|
25 |
+
'plugin_name' => __( 'YITH WooCommerce Cart Messages', 'yith-woocommerce-cart-messages' ),
|
26 |
+
'title_first_column' => __( 'Discover the Advanced Features', 'yith-woocommerce-cart-messages' ),
|
27 |
'description_first_column' => __('Upgrade to the PREMIUM VERSION
|
28 |
+
of YITH WooCommerce Cart Messages to benefit from all features!', 'yith-woocommerce-cart-messages'),
|
29 |
|
30 |
'video' => array(
|
31 |
'video_id' => '118792418',
|
32 |
'video_image_url' => YITH_YWCM_ASSETS_URL.'/images/yith-woocommerce-cart-messages.jpg',
|
33 |
'video_description' => __( 'YITH WooCommerce Cart Messages', 'yit' ),
|
34 |
),
|
35 |
+
'title_second_column' => __( 'Get Support and Pro Features', 'yith-woocommerce-cart-messages' ),
|
36 |
+
'description_second_column' => __('By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yith-woocommerce-cart-messages'),
|
37 |
'button' => array(
|
38 |
'href' => $YWCM_Instance->get_premium_landing_uri(),
|
39 |
'title' => 'Get Support and Pro Features'
|
43 |
),
|
44 |
|
45 |
'section_general_settings' => array(
|
46 |
+
'name' => __( 'General settings', 'yith-woocommerce-cart-messages' ),
|
47 |
'type' => 'title',
|
48 |
'id' => 'ywcm_section_general'
|
49 |
),
|
50 |
|
51 |
'show_in_cart' => array(
|
52 |
+
'name' => __( 'Show in cart', 'yith-woocommerce-cart-messages' ),
|
53 |
'desc' => '',
|
54 |
'id' => 'ywcm_show_in_cart',
|
55 |
'default' => 'yes',
|
57 |
),
|
58 |
|
59 |
'show_in_checkout' => array(
|
60 |
+
'name' => __( 'Show in checkout', 'yith-woocommerce-cart-messages' ),
|
61 |
'desc' => '',
|
62 |
'id' => 'ywcm_show_in_checkout',
|
63 |
'default' => 'yes',
|
modules/yith-woocommerce-cart-messages/templates/admin/premium.php
CHANGED
@@ -196,12 +196,11 @@
|
|
196 |
<div class="landing-container">
|
197 |
<div class="premium-cta">
|
198 |
<p>
|
199 |
-
Upgrade to the <span class="highlight">
|
200 |
-
of <span class="highlight">YITH WooCommerce Cart Messages</span> to benefit from all features!
|
201 |
</p>
|
202 |
<a href="<?php echo $YWCM_Instance->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
203 |
-
<span class="highlight"
|
204 |
-
<span
|
205 |
</a>
|
206 |
</div>
|
207 |
</div>
|
@@ -210,14 +209,14 @@
|
|
210 |
<h1>Premium Features</h1>
|
211 |
<div class="landing-container">
|
212 |
<div class="col-1">
|
213 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/01.png" alt
|
214 |
</div>
|
215 |
<div class="col-2">
|
216 |
<div class="section-title">
|
217 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/01-icon.png" alt="
|
218 |
-
<h2
|
219 |
</div>
|
220 |
-
<p
|
221 |
</div>
|
222 |
</div>
|
223 |
</div>
|
@@ -225,27 +224,27 @@
|
|
225 |
<div class="landing-container">
|
226 |
<div class="col-2">
|
227 |
<div class="section-title">
|
228 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/02-icon.png" alt="
|
229 |
-
<h2
|
230 |
</div>
|
231 |
-
<p
|
232 |
</div>
|
233 |
<div class="col-1">
|
234 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/02.png" alt
|
235 |
</div>
|
236 |
</div>
|
237 |
</div>
|
238 |
<div class="section section-even clear" style="background: url(<?php echo YITH_YWCM_ASSETS_URL ?>/images/03-bg.png) no-repeat #fff; background-position: 85% 100%">
|
239 |
<div class="landing-container">
|
240 |
<div class="col-1">
|
241 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/03.png" alt
|
242 |
</div>
|
243 |
<div class="col-2">
|
244 |
<div class="section-title">
|
245 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/03-icon.png" alt="
|
246 |
-
<h2
|
247 |
</div>
|
248 |
-
<p
|
249 |
</div>
|
250 |
</div>
|
251 |
</div>
|
@@ -253,27 +252,27 @@
|
|
253 |
<div class="landing-container">
|
254 |
<div class="col-2">
|
255 |
<div class="section-title">
|
256 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/04-icon.png" alt="
|
257 |
-
<h2
|
258 |
</div>
|
259 |
-
<p
|
260 |
</div>
|
261 |
<div class="col-1">
|
262 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/04.png" alt
|
263 |
</div>
|
264 |
</div>
|
265 |
</div>
|
266 |
<div class="section section-even clear" style="background: url(<?php echo YITH_YWCM_ASSETS_URL ?>/images/05-bg.png) no-repeat #fff; background-position: 85% 100%">
|
267 |
<div class="landing-container">
|
268 |
<div class="col-1">
|
269 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/05.png" alt
|
270 |
</div>
|
271 |
<div class="col-2">
|
272 |
<div class="section-title">
|
273 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL?>/images/05-icon.png" alt="
|
274 |
-
<h2
|
275 |
</div>
|
276 |
-
<p
|
277 |
</div>
|
278 |
</div>
|
279 |
</div>
|
@@ -281,13 +280,13 @@
|
|
281 |
<div class="landing-container">
|
282 |
<div class="col-2">
|
283 |
<div class="section-title">
|
284 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/06-icon.png" alt="
|
285 |
-
<h2
|
286 |
</div>
|
287 |
-
<p
|
288 |
</div>
|
289 |
<div class="col-1">
|
290 |
-
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/06.png" alt
|
291 |
</div>
|
292 |
</div>
|
293 |
</div>
|
@@ -295,12 +294,11 @@
|
|
295 |
<div class="landing-container">
|
296 |
<div class="premium-cta">
|
297 |
<p>
|
298 |
-
Upgrade to the <span class="highlight">
|
299 |
-
of <span class="highlight">YITH WooCommerce Cart Messages</span> to benefit from all features!
|
300 |
</p>
|
301 |
<a href="<?php echo $YWCM_Instance->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
302 |
-
<span class="highlight"
|
303 |
-
<span
|
304 |
</a>
|
305 |
</div>
|
306 |
</div>
|
196 |
<div class="landing-container">
|
197 |
<div class="premium-cta">
|
198 |
<p>
|
199 |
+
<?php echo sprintf(__('Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Cart Messages%2$s to benefit from all features!','yith-woocommerce-cart-messages'),'<span class="highlight">','</span>');?>
|
|
|
200 |
</p>
|
201 |
<a href="<?php echo $YWCM_Instance->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
202 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-cart-messages');?></span>
|
203 |
+
<span><?php _e('to the premium version','yith-woocommerce-cart-messages');?></span>
|
204 |
</a>
|
205 |
</div>
|
206 |
</div>
|
209 |
<h1>Premium Features</h1>
|
210 |
<div class="landing-container">
|
211 |
<div class="col-1">
|
212 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/01.png" alt=<?php _e('create message regarding','yith-woocommerce-cart-messages');?> />
|
213 |
</div>
|
214 |
<div class="col-2">
|
215 |
<div class="section-title">
|
216 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/01-icon.png" alt="icon-01"/>
|
217 |
+
<h2><?php _e('CREATE MESSAGES REGARDING A MINIMUM AMOUNT TO SPEND','yith-woocommerce-cart-messages');?></h2>
|
218 |
</div>
|
219 |
+
<p><?php echo sprintf(__('It encourages users to exceed a certain amount of purchases to get a benefit for example, %1$sif you spend more than $100 you will get free shipping%2$s, and it also shows the amount needed to fill the gap.','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
220 |
</div>
|
221 |
</div>
|
222 |
</div>
|
224 |
<div class="landing-container">
|
225 |
<div class="col-2">
|
226 |
<div class="section-title">
|
227 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/02-icon.png" alt="icon-02" />
|
228 |
+
<h2><?php _e('ANALYZE THE REFERRER');?></h2>
|
229 |
</div>
|
230 |
+
<p><?php echo sprintf(__('It shows a notification based on the source site. For example, %1$sif users come from Google%2$s, you can let them see an additional %1$sdiscount message%2$s.','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
231 |
</div>
|
232 |
<div class="col-1">
|
233 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/02.png" alt=<?php _e('analyze the referrer','yith-woocommerce-cart-messages');?> />
|
234 |
</div>
|
235 |
</div>
|
236 |
</div>
|
237 |
<div class="section section-even clear" style="background: url(<?php echo YITH_YWCM_ASSETS_URL ?>/images/03-bg.png) no-repeat #fff; background-position: 85% 100%">
|
238 |
<div class="landing-container">
|
239 |
<div class="col-1">
|
240 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/03.png" alt=<?php _e('create message deadline','yith-woocommerce-cart-messages');?> />
|
241 |
</div>
|
242 |
<div class="col-2">
|
243 |
<div class="section-title">
|
244 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/03-icon.png" alt="icon-03" />
|
245 |
+
<h2><?php _e('CREATE MESSAGES WITH A DEADLINE','yith-woocommerce-cart-messages');?></h2>
|
246 |
</div>
|
247 |
+
<p><?php echo sprintf(__('It lets you set messages with a time limit, for example: %1$s"if you make a purchase before 6 p.m., your order will be shipped today"%2$s.','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
248 |
</div>
|
249 |
</div>
|
250 |
</div>
|
252 |
<div class="landing-container">
|
253 |
<div class="col-2">
|
254 |
<div class="section-title">
|
255 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/04-icon.png" alt="icon-04" />
|
256 |
+
<h2><?php _e('CHOOSE AMONG DIFFERENT LAYOUTS AND CUSTOMIZE THEM QUICKLY AND EASILY','yith-woocommerce-cart-messages');?></h2>
|
257 |
</div>
|
258 |
+
<p><?php echo sprintf(__('You have %1$s6 different layouts%2$s to give the style you want to your messages from the %1$sadministration panel.%2$s','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
259 |
</div>
|
260 |
<div class="col-1">
|
261 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/04.png" alt=<?php _e('choose amoung different','yith-woocommerce-cart-messages');?> />
|
262 |
</div>
|
263 |
</div>
|
264 |
</div>
|
265 |
<div class="section section-even clear" style="background: url(<?php echo YITH_YWCM_ASSETS_URL ?>/images/05-bg.png) no-repeat #fff; background-position: 85% 100%">
|
266 |
<div class="landing-container">
|
267 |
<div class="col-1">
|
268 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/05.png" alt=<?php _e('choose who can see','yith-woocommerce-cart-messages');?> />
|
269 |
</div>
|
270 |
<div class="col-2">
|
271 |
<div class="section-title">
|
272 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL?>/images/05-icon.png" alt="icon-05" />
|
273 |
+
<h2><?php _e('CHOOSE WHO CAN SEE YOUR MESSAGES','yith-woocommerce-cart-messages');?></h2>
|
274 |
</div>
|
275 |
+
<p><?php echo sprintf(__('You can show a message to your %1$sclients,%2$s or decide to show it only to %1$sguests%2$s or to logged in %1$susers.%2$s','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
276 |
</div>
|
277 |
</div>
|
278 |
</div>
|
280 |
<div class="landing-container">
|
281 |
<div class="col-2">
|
282 |
<div class="section-title">
|
283 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/06-icon.png" alt="icon-06" />
|
284 |
+
<h2><?php _e('DECIDE THE PAGES WHERE TO SHOW YOUR MESSAGES','yith-woocommerce-cart-messages');?></h2>
|
285 |
</div>
|
286 |
+
<p><?php echo sprintf(__('You can freely decide where to show every single message %1$s(single page, shop, cart, checkout).%2$s','yith-woocommerce-cart-messages'),'<b>','</b>');?></p>
|
287 |
</div>
|
288 |
<div class="col-1">
|
289 |
+
<img src="<?php echo YITH_YWCM_ASSETS_URL ?>/images/06.png" alt=<?php _e('decide the pages where to','yith-woocommerce-cart-messages');?> />
|
290 |
</div>
|
291 |
</div>
|
292 |
</div>
|
294 |
<div class="landing-container">
|
295 |
<div class="premium-cta">
|
296 |
<p>
|
297 |
+
<?php echo sprintf(__('Upgrade to the premium version of YITH WooCommerce Cart Messages to benefit from all features!','yith-woocommerce-cart-messages'),'<span class="highlight">');?>
|
|
|
298 |
</p>
|
299 |
<a href="<?php echo $YWCM_Instance->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
300 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-cart-messages');?></span>
|
301 |
+
<span><?php _e('to the premium version','yith-woocommerce-cart-messages');?></span>
|
302 |
</a>
|
303 |
</div>
|
304 |
</div>
|
modules/yith-woocommerce-cart-messages/yith-cart-messages-functions.php
CHANGED
@@ -8,7 +8,7 @@ if ( !function_exists( 'ywcm_get_shop_categories' ) ) {
|
|
8 |
|
9 |
$categories = array();
|
10 |
if ( $show_all ) {
|
11 |
-
$categories['0'] = __( 'All categories', '
|
12 |
}
|
13 |
if ( $terms ) {
|
14 |
foreach ( $terms as $cat ) {
|
8 |
|
9 |
$categories = array();
|
10 |
if ( $show_all ) {
|
11 |
+
$categories['0'] = __( 'All categories', 'yith-woocommerce-cart-messages' );
|
12 |
}
|
13 |
if ( $terms ) {
|
14 |
foreach ( $terms as $cat ) {
|
modules/yith-woocommerce-cart-messages/yith-cart-messages.php
CHANGED
@@ -4,8 +4,8 @@ Plugin Name: YITH WooCommerce Cart Messages
|
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-cart-messages
|
5 |
Description: WooCommerce plugin for add custom messages to your customers
|
6 |
Author: Yithemes
|
7 |
-
Text Domain:
|
8 |
-
Version: 1.1.
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
@@ -24,7 +24,7 @@ if ( defined( 'YITH_YWCM_PREMIUM' ) ) {
|
|
24 |
function yith_ywcm_install_free_admin_notice() {
|
25 |
?>
|
26 |
<div class="error">
|
27 |
-
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Cart Messages while you are using the premium one.', '
|
28 |
</div>
|
29 |
<?php
|
30 |
}
|
@@ -45,7 +45,7 @@ register_activation_hook( __FILE__, 'yith_plugin_registration_hook' );
|
|
45 |
if ( defined( 'YITH_YWCM_VERSION' ) ) {
|
46 |
return;
|
47 |
}else{
|
48 |
-
define( 'YITH_YWCM_VERSION', '1.1.
|
49 |
}
|
50 |
|
51 |
if ( ! defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
@@ -79,7 +79,7 @@ function yith_ywcm_constructor(){
|
|
79 |
function yith_ywcm_install_woocommerce_admin_notice() {
|
80 |
?>
|
81 |
<div class="error">
|
82 |
-
<p><?php _e( 'YITH WooCommerce Cart Messages is enabled but not effective. It requires WooCommerce in order to work.', '
|
83 |
</div>
|
84 |
<?php
|
85 |
}
|
@@ -89,7 +89,7 @@ function yith_ywcm_constructor(){
|
|
89 |
}
|
90 |
|
91 |
/* Load YITH_YWCM text domain */
|
92 |
-
load_plugin_textdomain( '
|
93 |
|
94 |
// Load required classes and functions
|
95 |
require_once( YITH_YWCM_DIR . 'yith-cart-messages-functions.php' );
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-cart-messages
|
5 |
Description: WooCommerce plugin for add custom messages to your customers
|
6 |
Author: Yithemes
|
7 |
+
Text Domain: yith-woocommerce-cart-messages
|
8 |
+
Version: 1.1.2
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
24 |
function yith_ywcm_install_free_admin_notice() {
|
25 |
?>
|
26 |
<div class="error">
|
27 |
+
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Cart Messages while you are using the premium one.', 'yith-woocommerce-cart-messages' ); ?></p>
|
28 |
</div>
|
29 |
<?php
|
30 |
}
|
45 |
if ( defined( 'YITH_YWCM_VERSION' ) ) {
|
46 |
return;
|
47 |
}else{
|
48 |
+
define( 'YITH_YWCM_VERSION', '1.1.2' );
|
49 |
}
|
50 |
|
51 |
if ( ! defined( 'YITH_YWCM_FREE_INIT' ) ) {
|
79 |
function yith_ywcm_install_woocommerce_admin_notice() {
|
80 |
?>
|
81 |
<div class="error">
|
82 |
+
<p><?php _e( 'YITH WooCommerce Cart Messages is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-cart-messages' ); ?></p>
|
83 |
</div>
|
84 |
<?php
|
85 |
}
|
89 |
}
|
90 |
|
91 |
/* Load YITH_YWCM text domain */
|
92 |
+
load_plugin_textdomain( 'yith-woocommerce-cart-messages', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
93 |
|
94 |
// Load required classes and functions
|
95 |
require_once( YITH_YWCM_DIR . 'yith-cart-messages-functions.php' );
|
modules/yith-woocommerce-catalog-mode/class.yith-woocommerce-catalog-mode.php
CHANGED
@@ -599,22 +599,22 @@ class YITH_WC_Catalog_Mode {
|
|
599 |
}
|
600 |
|
601 |
$admin_tabs = array(
|
602 |
-
'settings' => __( 'Settings', '
|
603 |
);
|
604 |
|
605 |
if ( defined( 'YWCTM_PREMIUM' ) ) {
|
606 |
-
$admin_tabs['premium'] = __( 'Premium Settings', '
|
607 |
-
$admin_tabs['exclusions'] = __( 'Exclusion List', '
|
608 |
}
|
609 |
else {
|
610 |
-
$admin_tabs['premium-landing'] = __( 'Premium Version', '
|
611 |
}
|
612 |
|
613 |
$args = array(
|
614 |
'create_menu_page' => true,
|
615 |
'parent_slug' => '',
|
616 |
-
'page_title' => __( 'Catalog Mode', '
|
617 |
-
'menu_title' => __( 'Catalog Mode', '
|
618 |
'capability' => 'manage_options',
|
619 |
'parent' => '',
|
620 |
'parent_page' => 'yit_plugin_panel',
|
@@ -668,10 +668,10 @@ class YITH_WC_Catalog_Mode {
|
|
668 |
*/
|
669 |
public function action_links( $links ) {
|
670 |
|
671 |
-
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', '
|
672 |
|
673 |
if ( defined( 'YWCTM_FREE_INIT' ) ) {
|
674 |
-
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', '
|
675 |
}
|
676 |
|
677 |
return $links;
|
@@ -697,7 +697,7 @@ class YITH_WC_Catalog_Mode {
|
|
697 |
( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
|
698 |
) {
|
699 |
|
700 |
-
$plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', '
|
701 |
}
|
702 |
|
703 |
return $plugin_meta;
|
599 |
}
|
600 |
|
601 |
$admin_tabs = array(
|
602 |
+
'settings' => __( 'Settings', 'yith-woocommerce-catalog-mode' ),
|
603 |
);
|
604 |
|
605 |
if ( defined( 'YWCTM_PREMIUM' ) ) {
|
606 |
+
$admin_tabs['premium'] = __( 'Premium Settings', 'yith-woocommerce-catalog-mode' );
|
607 |
+
$admin_tabs['exclusions'] = __( 'Exclusion List', 'yith-woocommerce-catalog-mode' );
|
608 |
}
|
609 |
else {
|
610 |
+
$admin_tabs['premium-landing'] = __( 'Premium Version', 'yith-woocommerce-catalog-mode' );
|
611 |
}
|
612 |
|
613 |
$args = array(
|
614 |
'create_menu_page' => true,
|
615 |
'parent_slug' => '',
|
616 |
+
'page_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
617 |
+
'menu_title' => __( 'Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
618 |
'capability' => 'manage_options',
|
619 |
'parent' => '',
|
620 |
'parent_page' => 'yit_plugin_panel',
|
668 |
*/
|
669 |
public function action_links( $links ) {
|
670 |
|
671 |
+
$links[] = '<a href="' . admin_url( "admin.php?page={$this->_panel_page}" ) . '">' . __( 'Settings', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
672 |
|
673 |
if ( defined( 'YWCTM_FREE_INIT' ) ) {
|
674 |
+
$links[] = '<a href="' . $this->get_premium_landing_uri() . '" target="_blank">' . __( 'Premium Version', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
675 |
}
|
676 |
|
677 |
return $links;
|
697 |
( defined( 'YWCTM_FREE_INIT' ) && ( YWCTM_FREE_INIT == $plugin_file ) )
|
698 |
) {
|
699 |
|
700 |
+
$plugin_meta[] = '<a href="' . $this->_official_documentation . '" target="_blank">' . __( 'Plugin Documentation', 'yith-woocommerce-catalog-mode' ) . '</a>';
|
701 |
}
|
702 |
|
703 |
return $plugin_meta;
|
modules/yith-woocommerce-catalog-mode/init.php
CHANGED
@@ -4,8 +4,8 @@ Plugin Name: YITH WooCommerce Catalog Mode
|
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
|
5 |
Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
|
6 |
Author: Yithemes
|
7 |
-
Text Domain:
|
8 |
-
Version: 1.1.
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
@@ -20,7 +20,7 @@ if ( ! function_exists( 'is_plugin_active' ) ) {
|
|
20 |
function ywctm_install_woocommerce_admin_notice() {
|
21 |
?>
|
22 |
<div class="error">
|
23 |
-
<p><?php _e( 'YITH WooCommerce Catalog Mode is enabled but not effective. It requires WooCommerce in order to work.', '
|
24 |
</div>
|
25 |
<?php
|
26 |
}
|
@@ -28,13 +28,13 @@ function ywctm_install_woocommerce_admin_notice() {
|
|
28 |
function ywctm_install_free_admin_notice() {
|
29 |
?>
|
30 |
<div class="error">
|
31 |
-
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Catalog Mode while you are using the premium one.', '
|
32 |
</div>
|
33 |
<?php
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
37 |
-
define( 'YWCTM_VERSION', '1.1.
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
@@ -64,7 +64,7 @@ if ( ! defined( 'YWCTM_TEMPLATE_PATH' ) ) {
|
|
64 |
function ywctm_init() {
|
65 |
|
66 |
/* Load YWCTM text domain */
|
67 |
-
load_plugin_textdomain( '
|
68 |
|
69 |
global $YITH_WC_Catalog_Mode;
|
70 |
$YITH_WC_Catalog_Mode = new YITH_WC_Catalog_Mode();
|
4 |
Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-catalog-mode/
|
5 |
Description: YITH Woocommerce Catalog Mode allows you to disable shop functions.
|
6 |
Author: Yithemes
|
7 |
+
Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
Version: 1.1.4
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
20 |
function ywctm_install_woocommerce_admin_notice() {
|
21 |
?>
|
22 |
<div class="error">
|
23 |
+
<p><?php _e( 'YITH WooCommerce Catalog Mode is enabled but not effective. It requires WooCommerce in order to work.', 'yith-woocommerce-catalog-mode' ); ?></p>
|
24 |
</div>
|
25 |
<?php
|
26 |
}
|
28 |
function ywctm_install_free_admin_notice() {
|
29 |
?>
|
30 |
<div class="error">
|
31 |
+
<p><?php _e( 'You can\'t activate the free version of YITH WooCommerce Catalog Mode while you are using the premium one.', 'yith-woocommerce-catalog-mode' ); ?></p>
|
32 |
</div>
|
33 |
<?php
|
34 |
}
|
35 |
|
36 |
if ( ! defined( 'YWCTM_VERSION' ) ) {
|
37 |
+
define( 'YWCTM_VERSION', '1.1.4' );
|
38 |
}
|
39 |
|
40 |
if ( ! defined( 'YWCTM_FREE_INIT' ) ) {
|
64 |
function ywctm_init() {
|
65 |
|
66 |
/* Load YWCTM text domain */
|
67 |
+
load_plugin_textdomain( 'yith-woocommerce-catalog-mode', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
68 |
|
69 |
global $YITH_WC_Catalog_Mode;
|
70 |
$YITH_WC_Catalog_Mode = new YITH_WC_Catalog_Mode();
|
modules/yith-woocommerce-catalog-mode/languages/yith-woocommerce-catalog-mode.pot
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: YITH WooCommerce Catalog Mode\n"
|
4 |
+
"POT-Creation-Date: 2015-10-02 09:48+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-10-02 09:48+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
+
"Language: en\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.7.4\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;__ngettext:1,2;"
|
14 |
+
"__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;"
|
15 |
+
"_nx_noop:4c,1,2\n"
|
16 |
+
"X-Poedit-Basepath: .\n"
|
17 |
+
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
18 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
19 |
+
"X-Poedit-SearchPath-0: ..\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
21 |
+
|
22 |
+
#: ../class.yith-woocommerce-catalog-mode.php:602
|
23 |
+
#: ../class.yith-woocommerce-catalog-mode.php:671
|
24 |
+
msgid "Settings"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: ../class.yith-woocommerce-catalog-mode.php:606
|
28 |
+
msgid "Premium Settings"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: ../class.yith-woocommerce-catalog-mode.php:607
|
32 |
+
msgid "Exclusion List"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: ../class.yith-woocommerce-catalog-mode.php:610
|
36 |
+
#: ../class.yith-woocommerce-catalog-mode.php:674
|
37 |
+
msgid "Premium Version"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../class.yith-woocommerce-catalog-mode.php:616
|
41 |
+
#: ../class.yith-woocommerce-catalog-mode.php:617
|
42 |
+
msgid "Catalog Mode"
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: ../class.yith-woocommerce-catalog-mode.php:700
|
46 |
+
msgid "Plugin Documentation"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: ../init.php:23
|
50 |
+
msgid ""
|
51 |
+
"YITH WooCommerce Catalog Mode is enabled but not effective. It requires "
|
52 |
+
"WooCommerce in order to work."
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: ../init.php:31
|
56 |
+
msgid ""
|
57 |
+
"You can't activate the free version of YITH WooCommerce Catalog Mode while "
|
58 |
+
"you are using the premium one."
|
59 |
+
msgstr ""
|
60 |
+
|
61 |
+
#: ../plugin-options/settings-options.php:18
|
62 |
+
msgid "Upgrade to the PREMIUM VERSION"
|
63 |
+
msgstr ""
|
64 |
+
|
65 |
+
#: ../plugin-options/settings-options.php:21
|
66 |
+
#: ../plugin-options/settings-options.php:27
|
67 |
+
msgid "YITH WooCommerce Catalog Mode"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: ../plugin-options/settings-options.php:22
|
71 |
+
msgid "Discover the Advanced Features"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: ../plugin-options/settings-options.php:23
|
75 |
+
msgid ""
|
76 |
+
"Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit "
|
77 |
+
"from all features!"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: ../plugin-options/settings-options.php:29
|
81 |
+
msgid "Get Support and Pro Features"
|
82 |
+
msgstr ""
|
83 |
+
|
84 |
+
#: ../plugin-options/settings-options.php:30
|
85 |
+
msgid ""
|
86 |
+
"By purchasing the premium version of the plugin, you will take advantage of "
|
87 |
+
"the advanced features of the product and you will get one year of free "
|
88 |
+
"updates and support through our platform available 24h/24."
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: ../plugin-options/settings-options.php:40
|
92 |
+
#: ../plugin-options/settings-options.php:49
|
93 |
+
#: ../plugin-options/settings-options.php:99
|
94 |
+
#: ../plugin-options/settings-options.php:107
|
95 |
+
msgid "\"Add to cart\" button"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: ../plugin-options/settings-options.php:42
|
99 |
+
msgid "Exclude selected products (See \"Exclusions\" tab)"
|
100 |
+
msgstr ""
|
101 |
+
|
102 |
+
#: ../plugin-options/settings-options.php:51
|
103 |
+
msgid "Reverse Exclusion List (Restrict Catalog Mode to selected items only)"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: ../plugin-options/settings-options.php:58
|
107 |
+
msgid "Variable products"
|
108 |
+
msgstr ""
|
109 |
+
|
110 |
+
#: ../plugin-options/settings-options.php:60
|
111 |
+
msgid "Hide product variations"
|
112 |
+
msgstr ""
|
113 |
+
|
114 |
+
#: ../plugin-options/settings-options.php:71
|
115 |
+
msgid "General Settings"
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: ../plugin-options/settings-options.php:76
|
119 |
+
msgid "Enable YITH Woocommerce Catalog Mode"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: ../plugin-options/settings-options.php:83
|
123 |
+
msgid "Admin View"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: ../plugin-options/settings-options.php:85
|
127 |
+
msgid "Enable Catalog Mode also for administrators"
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: ../plugin-options/settings-options.php:94
|
131 |
+
msgid "Catalog Mode Settings"
|
132 |
+
msgstr ""
|
133 |
+
|
134 |
+
#: ../plugin-options/settings-options.php:101
|
135 |
+
msgid "Hide in product details page"
|
136 |
+
msgstr ""
|
137 |
+
|
138 |
+
#: ../plugin-options/settings-options.php:109
|
139 |
+
msgid "Hide in other pages"
|
140 |
+
msgstr ""
|
141 |
+
|
142 |
+
#: ../plugin-options/settings-options.php:118
|
143 |
+
msgid "\"Cart\" and \"Checkout\" pages"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: ../plugin-options/settings-options.php:120
|
147 |
+
msgid "Hide and disable all shop features"
|
148 |
+
msgstr ""
|
149 |
+
|
150 |
+
#: ../templates/admin/premium.php:226 ../templates/admin/premium.php:352
|
151 |
+
#, php-format
|
152 |
+
msgid ""
|
153 |
+
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s "
|
154 |
+
"to benefit from all features!"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: ../templates/admin/premium.php:229 ../templates/admin/premium.php:355
|
158 |
+
msgid "UPGRADE"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: ../templates/admin/premium.php:230 ../templates/admin/premium.php:356
|
162 |
+
msgid "to the premium version"
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: ../templates/admin/premium.php:236
|
166 |
+
msgid "Premium Features"
|
167 |
+
msgstr ""
|
168 |
+
|
169 |
+
#: ../templates/admin/premium.php:244
|
170 |
+
msgid "Hide price"
|
171 |
+
msgstr ""
|
172 |
+
|
173 |
+
#: ../templates/admin/premium.php:247
|
174 |
+
#, php-format
|
175 |
+
msgid ""
|
176 |
+
"Hide the price of products in your shop and replace it with a text. Decide "
|
177 |
+
"if some of the products have to be excluded and if %1$shiding price%2$s has "
|
178 |
+
"to be applied to all or restricted only to unlogged users."
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: ../templates/admin/premium.php:257
|
182 |
+
msgid "Inquiry form"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: ../templates/admin/premium.php:260
|
186 |
+
#, php-format
|
187 |
+
msgid ""
|
188 |
+
"Improve single product page by adding a tab with an %1$sinquiry form%2$s "
|
189 |
+
"explicitly thought to let them send messages to site administrator."
|
190 |
+
msgstr ""
|
191 |
+
|
192 |
+
#: ../templates/admin/premium.php:276
|
193 |
+
msgid "Custom button"
|
194 |
+
msgstr ""
|
195 |
+
|
196 |
+
#: ../templates/admin/premium.php:279
|
197 |
+
#, php-format
|
198 |
+
msgid ""
|
199 |
+
"Add a button in single product page to call users to a specific %1$saction"
|
200 |
+
"%2$s, depending on the specified %1$slink%2$s (email sending, skype call, "
|
201 |
+
"telephone call)."
|
202 |
+
msgstr ""
|
203 |
+
|
204 |
+
#: ../templates/admin/premium.php:289
|
205 |
+
msgid "Product reviews"
|
206 |
+
msgstr ""
|
207 |
+
|
208 |
+
#: ../templates/admin/premium.php:292
|
209 |
+
#, php-format
|
210 |
+
msgid ""
|
211 |
+
"You can disable product %1$sreviewing system%2$s of your shop and decide if "
|
212 |
+
"applying it to all users or just to unlogged ones."
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: ../templates/admin/premium.php:308
|
216 |
+
msgid "Exclusion list"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: ../templates/admin/premium.php:311
|
220 |
+
#, php-format
|
221 |
+
msgid ""
|
222 |
+
"Set plugin options, but if you want that options concerning price visibility "
|
223 |
+
"and ‘Add to cart’ do not apply to specific products, add them to "
|
224 |
+
"%1$sexclusion list%2$s and, voilà, problem solved."
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: ../templates/admin/premium.php:321
|
228 |
+
msgid "REVERSE EXCLUSION LIST"
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: ../templates/admin/premium.php:324
|
232 |
+
#, php-format
|
233 |
+
msgid ""
|
234 |
+
"Apply Catalog Mode to some items only: add them to the \"Exclusion List\" "
|
235 |
+
"and %1$smake it work in the opposite way as usual%2$s. All items in the shop "
|
236 |
+
"show price and “Add to Cart” button, while items in the list don’t."
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: ../templates/admin/premium.php:340
|
240 |
+
msgid "Source page of the request"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: ../templates/admin/premium.php:343
|
244 |
+
#, php-format
|
245 |
+
msgid ""
|
246 |
+
"Thanks to the %1$s\"Product Permalink\"%2$s option you will be able to know "
|
247 |
+
"from which page your users have generated the request.%3$sThe email "
|
248 |
+
"generated from the request form will include the address of the page: "
|
249 |
+
"another important information that can be really useful for you."
|
250 |
+
msgstr ""
|
modules/yith-woocommerce-catalog-mode/plugin-options/settings-options.php
CHANGED
@@ -15,19 +15,19 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
15 |
global $YITH_WC_Catalog_Mode;
|
16 |
|
17 |
$videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
18 |
-
'name' => __( 'Upgrade to the PREMIUM VERSION', '
|
19 |
'type' => 'videobox',
|
20 |
'default' => array(
|
21 |
-
'plugin_name' => __( 'YITH WooCommerce Catalog Mode', '
|
22 |
-
'title_first_column' => __( 'Discover the Advanced Features', '
|
23 |
-
'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', '
|
24 |
'video' => array(
|
25 |
'video_id' => '120697979',
|
26 |
'video_image_url' => YWCTM_ASSETS_URL . '/images/yith-woocommerce-catalog-mode.jpg',
|
27 |
-
'video_description' => __( 'YITH WooCommerce Catalog Mode', '
|
28 |
),
|
29 |
-
'title_second_column' => __( 'Get Support and Pro Features', '
|
30 |
-
'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', '
|
31 |
'button' => array(
|
32 |
'href' => $YITH_WC_Catalog_Mode->get_premium_landing_uri(),
|
33 |
'title' => 'Get Support and Pro Features'
|
@@ -37,27 +37,27 @@ $videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
|
37 |
);
|
38 |
|
39 |
$exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
40 |
-
'name' => __( '"Add to cart" button', '
|
41 |
'type' => 'checkbox',
|
42 |
-
'desc' => __( 'Exclude selected products (See "Exclusions" tab)', '
|
43 |
'id' => 'ywctm_exclude_hide_add_to_cart',
|
44 |
'default' => 'no',
|
45 |
'checkboxgroup' => ''
|
46 |
);
|
47 |
|
48 |
$reverse_exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
49 |
-
'name' => __( '"Add to cart" button', '
|
50 |
'type' => 'checkbox',
|
51 |
-
'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', '
|
52 |
'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
|
53 |
'default' => 'no',
|
54 |
'checkboxgroup' => ''
|
55 |
);
|
56 |
|
57 |
$product_variations = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
58 |
-
'name' => __( 'Variable products', '
|
59 |
'type' => 'checkbox',
|
60 |
-
'desc' => __( 'Hide product variations', '
|
61 |
'id' => 'ywctm_hide_variations',
|
62 |
'default' => 'no',
|
63 |
'checkboxgroup' => 'end'
|
@@ -68,21 +68,21 @@ return array(
|
|
68 |
'section_general_settings_videobox' => $videobox,
|
69 |
|
70 |
'catalog_mode_general_title' => array(
|
71 |
-
'name' => __( 'General Settings', '
|
72 |
'type' => 'title',
|
73 |
'desc' => '',
|
74 |
),
|
75 |
'catalog_mode_general_enable_plugin' => array(
|
76 |
-
'name' => __( 'Enable YITH Woocommerce Catalog Mode', '
|
77 |
'type' => 'checkbox',
|
78 |
'desc' => '',
|
79 |
'id' => 'ywctm_enable_plugin',
|
80 |
'default' => 'yes',
|
81 |
),
|
82 |
'catalog_mode_general_admin_view' => array(
|
83 |
-
'name' => __( 'Admin View', '
|
84 |
'type' => 'checkbox',
|
85 |
-
'desc' => __( 'Enable Catalog Mode also for administrators', '
|
86 |
'id' => 'ywctm_admin_view',
|
87 |
'default' => 'yes',
|
88 |
),
|
@@ -91,22 +91,22 @@ return array(
|
|
91 |
),
|
92 |
|
93 |
'catalog_mode_section_title' => array(
|
94 |
-
'name' => __( 'Catalog Mode Settings', '
|
95 |
'type' => 'title',
|
96 |
'desc' => '',
|
97 |
),
|
98 |
'catalog_mode_settings_disable_add_to_cart_single' => array(
|
99 |
-
'name' => __( '"Add to cart" button', '
|
100 |
'type' => 'checkbox',
|
101 |
-
'desc' => __( 'Hide in product details page', '
|
102 |
'id' => 'ywctm_hide_add_to_cart_single',
|
103 |
'default' => 'no',
|
104 |
'checkboxgroup' => 'start'
|
105 |
),
|
106 |
'catalog_mode_settings_disable_add_to_cart_loop' => array(
|
107 |
-
'name' => __( '"Add to cart" button', '
|
108 |
'type' => 'checkbox',
|
109 |
-
'desc' => __( 'Hide in other pages', '
|
110 |
'id' => 'ywctm_hide_add_to_cart_loop',
|
111 |
'default' => 'no',
|
112 |
'checkboxgroup' => !defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
|
@@ -115,9 +115,9 @@ return array(
|
|
115 |
'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
|
116 |
'catalog_mode_settings_variable_products' => $product_variations,
|
117 |
'catalog_mode_settings_disable_cart_in_header' => array(
|
118 |
-
'name' => __( '"Cart" and "Checkout" pages', '
|
119 |
'type' => 'checkbox',
|
120 |
-
'desc' => __( 'Hide and disable all shop features', '
|
121 |
'id' => 'ywctm_hide_cart_header',
|
122 |
'default' => 'no',
|
123 |
),
|
15 |
global $YITH_WC_Catalog_Mode;
|
16 |
|
17 |
$videobox = defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
18 |
+
'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-woocommerce-catalog-mode' ),
|
19 |
'type' => 'videobox',
|
20 |
'default' => array(
|
21 |
+
'plugin_name' => __( 'YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
22 |
+
'title_first_column' => __( 'Discover the Advanced Features', 'yith-woocommerce-catalog-mode' ),
|
23 |
+
'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit from all features!', 'yith-woocommerce-catalog-mode' ),
|
24 |
'video' => array(
|
25 |
'video_id' => '120697979',
|
26 |
'video_image_url' => YWCTM_ASSETS_URL . '/images/yith-woocommerce-catalog-mode.jpg',
|
27 |
+
'video_description' => __( 'YITH WooCommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
28 |
),
|
29 |
+
'title_second_column' => __( 'Get Support and Pro Features', 'yith-woocommerce-catalog-mode' ),
|
30 |
+
'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yith-woocommerce-catalog-mode' ),
|
31 |
'button' => array(
|
32 |
'href' => $YITH_WC_Catalog_Mode->get_premium_landing_uri(),
|
33 |
'title' => 'Get Support and Pro Features'
|
37 |
);
|
38 |
|
39 |
$exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
40 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
41 |
'type' => 'checkbox',
|
42 |
+
'desc' => __( 'Exclude selected products (See "Exclusions" tab)', 'yith-woocommerce-catalog-mode' ),
|
43 |
'id' => 'ywctm_exclude_hide_add_to_cart',
|
44 |
'default' => 'no',
|
45 |
'checkboxgroup' => ''
|
46 |
);
|
47 |
|
48 |
$reverse_exclusion = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
49 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
50 |
'type' => 'checkbox',
|
51 |
+
'desc' => __( 'Reverse Exclusion List (Restrict Catalog Mode to selected items only)', 'yith-woocommerce-catalog-mode' ),
|
52 |
'id' => 'ywctm_exclude_hide_add_to_cart_reverse',
|
53 |
'default' => 'no',
|
54 |
'checkboxgroup' => ''
|
55 |
);
|
56 |
|
57 |
$product_variations = !defined( 'YWCTM_PREMIUM' ) ? '' : array(
|
58 |
+
'name' => __( 'Variable products', 'yith-woocommerce-catalog-mode' ),
|
59 |
'type' => 'checkbox',
|
60 |
+
'desc' => __( 'Hide product variations', 'yith-woocommerce-catalog-mode' ),
|
61 |
'id' => 'ywctm_hide_variations',
|
62 |
'default' => 'no',
|
63 |
'checkboxgroup' => 'end'
|
68 |
'section_general_settings_videobox' => $videobox,
|
69 |
|
70 |
'catalog_mode_general_title' => array(
|
71 |
+
'name' => __( 'General Settings', 'yith-woocommerce-catalog-mode' ),
|
72 |
'type' => 'title',
|
73 |
'desc' => '',
|
74 |
),
|
75 |
'catalog_mode_general_enable_plugin' => array(
|
76 |
+
'name' => __( 'Enable YITH Woocommerce Catalog Mode', 'yith-woocommerce-catalog-mode' ),
|
77 |
'type' => 'checkbox',
|
78 |
'desc' => '',
|
79 |
'id' => 'ywctm_enable_plugin',
|
80 |
'default' => 'yes',
|
81 |
),
|
82 |
'catalog_mode_general_admin_view' => array(
|
83 |
+
'name' => __( 'Admin View', 'yith-woocommerce-catalog-mode' ),
|
84 |
'type' => 'checkbox',
|
85 |
+
'desc' => __( 'Enable Catalog Mode also for administrators', 'yith-woocommerce-catalog-mode' ),
|
86 |
'id' => 'ywctm_admin_view',
|
87 |
'default' => 'yes',
|
88 |
),
|
91 |
),
|
92 |
|
93 |
'catalog_mode_section_title' => array(
|
94 |
+
'name' => __( 'Catalog Mode Settings', 'yith-woocommerce-catalog-mode' ),
|
95 |
'type' => 'title',
|
96 |
'desc' => '',
|
97 |
),
|
98 |
'catalog_mode_settings_disable_add_to_cart_single' => array(
|
99 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
100 |
'type' => 'checkbox',
|
101 |
+
'desc' => __( 'Hide in product details page', 'yith-woocommerce-catalog-mode' ),
|
102 |
'id' => 'ywctm_hide_add_to_cart_single',
|
103 |
'default' => 'no',
|
104 |
'checkboxgroup' => 'start'
|
105 |
),
|
106 |
'catalog_mode_settings_disable_add_to_cart_loop' => array(
|
107 |
+
'name' => __( '"Add to cart" button', 'yith-woocommerce-catalog-mode' ),
|
108 |
'type' => 'checkbox',
|
109 |
+
'desc' => __( 'Hide in other pages', 'yith-woocommerce-catalog-mode' ),
|
110 |
'id' => 'ywctm_hide_add_to_cart_loop',
|
111 |
'default' => 'no',
|
112 |
'checkboxgroup' => !defined( 'YWCTM_PREMIUM' ) ? 'end' : ''
|
115 |
'catalog_mode_settings_exclude_products_reverse' => $reverse_exclusion,
|
116 |
'catalog_mode_settings_variable_products' => $product_variations,
|
117 |
'catalog_mode_settings_disable_cart_in_header' => array(
|
118 |
+
'name' => __( '"Cart" and "Checkout" pages', 'yith-woocommerce-catalog-mode' ),
|
119 |
'type' => 'checkbox',
|
120 |
+
'desc' => __( 'Hide and disable all shop features', 'yith-woocommerce-catalog-mode' ),
|
121 |
'id' => 'ywctm_hide_cart_header',
|
122 |
'default' => 'no',
|
123 |
),
|
modules/yith-woocommerce-catalog-mode/templates/admin/premium.php
CHANGED
@@ -223,17 +223,17 @@
|
|
223 |
<div class="landing-container">
|
224 |
<div class="premium-cta">
|
225 |
<p>
|
226 |
-
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','
|
227 |
</p>
|
228 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
229 |
-
<span class="highlight"><?php _e('UPGRADE','
|
230 |
-
<span><?php _e('to the premium version','
|
231 |
</a>
|
232 |
</div>
|
233 |
</div>
|
234 |
</div>
|
235 |
<div class="one section section-even clear">
|
236 |
-
<h1><?php _e('Premium Features','
|
237 |
<div class="landing-container">
|
238 |
<div class="col-1">
|
239 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01.png" alt="Hide price" />
|
@@ -241,10 +241,10 @@
|
|
241 |
<div class="col-2">
|
242 |
<div class="section-title">
|
243 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01-icon.png" alt="icon 01"/>
|
244 |
-
<h2><?php _e('Hide price','
|
245 |
</div>
|
246 |
<p>
|
247 |
-
<?php echo sprintf(__('Hide the price of products in your shop and replace it with a text. Decide if some of the products have to be excluded and if %1$shiding price%2$s has to be applied to all or restricted only to unlogged users.', '
|
248 |
</p>
|
249 |
</div>
|
250 |
</div>
|
@@ -254,10 +254,10 @@
|
|
254 |
<div class="col-2">
|
255 |
<div class="section-title">
|
256 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/02-icon.png" alt="icon 02" />
|
257 |
-
<h2><?php _e('Inquiry form','
|
258 |
</div>
|
259 |
<p>
|
260 |
-
<?php echo sprintf(__('Improve single product page by adding a tab with an %1$sinquiry form%2$s explicitly thought to let them send messages to site administrator.', '
|
261 |
</p>
|
262 |
</div>
|
263 |
<div class="col-1">
|
@@ -273,10 +273,10 @@
|
|
273 |
<div class="col-2">
|
274 |
<div class="section-title">
|
275 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/03-icon.png" alt="icon 03" />
|
276 |
-
<h2><?php _e( 'Custom button','
|
277 |
</div>
|
278 |
<p>
|
279 |
-
<?php echo sprintf(__('Add a button in single product page to call users to a specific %1$saction%2$s, depending on the specified %1$slink%2$s (email sending, skype call, telephone call).', '
|
280 |
</p>
|
281 |
</div>
|
282 |
</div>
|
@@ -286,10 +286,10 @@
|
|
286 |
<div class="col-2">
|
287 |
<div class="section-title">
|
288 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/04-icon.png" alt="icon 04" />
|
289 |
-
<h2><?php _e('Product reviews','
|
290 |
</div>
|
291 |
<p>
|
292 |
-
<?php echo sprintf(__('You can disable product %1$sreviewing system%2$s of your shop and decide if applying it to all users or just to unlogged ones.', '
|
293 |
</p>
|
294 |
</div>
|
295 |
<div class="col-1">
|
@@ -305,10 +305,10 @@
|
|
305 |
<div class="col-2">
|
306 |
<div class="section-title">
|
307 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/05-icon.png" alt="icon 05" />
|
308 |
-
<h2><?php _e('Exclusion list','
|
309 |
</div>
|
310 |
<p>
|
311 |
-
<?php echo sprintf( __('Set plugin options, but if you want that options concerning price visibility and ‘Add to cart’ do not apply to specific products, add them to %1$sexclusion list%2$s and, voilà, problem solved.','
|
312 |
</p>
|
313 |
</div>
|
314 |
</div>
|
@@ -318,10 +318,10 @@
|
|
318 |
<div class="col-2">
|
319 |
<div class="section-title">
|
320 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/06-icon.png" alt="icon 06" />
|
321 |
-
<h2><?php _e('REVERSE EXCLUSION LIST','
|
322 |
</div>
|
323 |
<p>
|
324 |
-
<?php echo sprintf( __( 'Apply Catalog Mode to some items only: add them to the "Exclusion List" and %1$smake it work in the opposite way as usual%2$s. All items in the shop show price and “Add to Cart” button, while items in the list don’t.','
|
325 |
</p>
|
326 |
</div>
|
327 |
<div class="col-1">
|
@@ -337,10 +337,10 @@
|
|
337 |
<div class="col-2">
|
338 |
<div class="section-title">
|
339 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/07-icon.png" alt="icon 05" />
|
340 |
-
<h2><?php _e('Source page of the request','
|
341 |
</div>
|
342 |
<p>
|
343 |
-
<?php echo sprintf( __('Thanks to the %1$s"Product Permalink"%2$s option you will be able to know from which page your users have generated the request.%3$sThe email generated from the request form will include the address of the page: another important information that can be really useful for you.','
|
344 |
</p>
|
345 |
</div>
|
346 |
</div>
|
@@ -349,11 +349,11 @@
|
|
349 |
<div class="landing-container">
|
350 |
<div class="premium-cta">
|
351 |
<p>
|
352 |
-
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','
|
353 |
</p>
|
354 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
355 |
-
<span class="highlight"><?php _e('UPGRADE','
|
356 |
-
<span><?php _e('to the premium version','
|
357 |
</a>
|
358 |
</div>
|
359 |
</div>
|
223 |
<div class="landing-container">
|
224 |
<div class="premium-cta">
|
225 |
<p>
|
226 |
+
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','yith-woocommerce-catalog-mode'),'<span class="highlight">','</span>' );?>
|
227 |
</p>
|
228 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
229 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-catalog-mode');?></span>
|
230 |
+
<span><?php _e('to the premium version','yith-woocommerce-catalog-mode');?></span>
|
231 |
</a>
|
232 |
</div>
|
233 |
</div>
|
234 |
</div>
|
235 |
<div class="one section section-even clear">
|
236 |
+
<h1><?php _e('Premium Features','yith-woocommerce-catalog-mode');?></h1>
|
237 |
<div class="landing-container">
|
238 |
<div class="col-1">
|
239 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01.png" alt="Hide price" />
|
241 |
<div class="col-2">
|
242 |
<div class="section-title">
|
243 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/01-icon.png" alt="icon 01"/>
|
244 |
+
<h2><?php _e('Hide price','yith-woocommerce-catalog-mode');?></h2>
|
245 |
</div>
|
246 |
<p>
|
247 |
+
<?php echo sprintf(__('Hide the price of products in your shop and replace it with a text. Decide if some of the products have to be excluded and if %1$shiding price%2$s has to be applied to all or restricted only to unlogged users.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
248 |
</p>
|
249 |
</div>
|
250 |
</div>
|
254 |
<div class="col-2">
|
255 |
<div class="section-title">
|
256 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/02-icon.png" alt="icon 02" />
|
257 |
+
<h2><?php _e('Inquiry form','yith-woocommerce-catalog-mode');?></h2>
|
258 |
</div>
|
259 |
<p>
|
260 |
+
<?php echo sprintf(__('Improve single product page by adding a tab with an %1$sinquiry form%2$s explicitly thought to let them send messages to site administrator.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
261 |
</p>
|
262 |
</div>
|
263 |
<div class="col-1">
|
273 |
<div class="col-2">
|
274 |
<div class="section-title">
|
275 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/03-icon.png" alt="icon 03" />
|
276 |
+
<h2><?php _e( 'Custom button','yith-woocommerce-catalog-mode');?></h2>
|
277 |
</div>
|
278 |
<p>
|
279 |
+
<?php echo sprintf(__('Add a button in single product page to call users to a specific %1$saction%2$s, depending on the specified %1$slink%2$s (email sending, skype call, telephone call).', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
280 |
</p>
|
281 |
</div>
|
282 |
</div>
|
286 |
<div class="col-2">
|
287 |
<div class="section-title">
|
288 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/04-icon.png" alt="icon 04" />
|
289 |
+
<h2><?php _e('Product reviews','yith-woocommerce-catalog-mode');?></h2>
|
290 |
</div>
|
291 |
<p>
|
292 |
+
<?php echo sprintf(__('You can disable product %1$sreviewing system%2$s of your shop and decide if applying it to all users or just to unlogged ones.', 'yith-woocommerce-catalog-mode'), '<b>', '</b>');?>
|
293 |
</p>
|
294 |
</div>
|
295 |
<div class="col-1">
|
305 |
<div class="col-2">
|
306 |
<div class="section-title">
|
307 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/05-icon.png" alt="icon 05" />
|
308 |
+
<h2><?php _e('Exclusion list','yith-woocommerce-catalog-mode');?></h2>
|
309 |
</div>
|
310 |
<p>
|
311 |
+
<?php echo sprintf( __('Set plugin options, but if you want that options concerning price visibility and ‘Add to cart’ do not apply to specific products, add them to %1$sexclusion list%2$s and, voilà, problem solved.','yith-woocommerce-catalog-mode'),'<b>','</b>'); ?>
|
312 |
</p>
|
313 |
</div>
|
314 |
</div>
|
318 |
<div class="col-2">
|
319 |
<div class="section-title">
|
320 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/06-icon.png" alt="icon 06" />
|
321 |
+
<h2><?php _e('REVERSE EXCLUSION LIST','yith-woocommerce-catalog-mode');?></h2>
|
322 |
</div>
|
323 |
<p>
|
324 |
+
<?php echo sprintf( __( 'Apply Catalog Mode to some items only: add them to the "Exclusion List" and %1$smake it work in the opposite way as usual%2$s. All items in the shop show price and “Add to Cart” button, while items in the list don’t.','yith-woocommerce-catalog-mode' ),'<b>','</b>' ) ?>
|
325 |
</p>
|
326 |
</div>
|
327 |
<div class="col-1">
|
337 |
<div class="col-2">
|
338 |
<div class="section-title">
|
339 |
<img src="<?php echo YWCTM_ASSETS_URL?>/images/07-icon.png" alt="icon 05" />
|
340 |
+
<h2><?php _e('Source page of the request','yith-woocommerce-catalog-mode');?></h2>
|
341 |
</div>
|
342 |
<p>
|
343 |
+
<?php echo sprintf( __('Thanks to the %1$s"Product Permalink"%2$s option you will be able to know from which page your users have generated the request.%3$sThe email generated from the request form will include the address of the page: another important information that can be really useful for you.','yith-woocommerce-catalog-mode'),'<b>','</b>','<br>'); ?>
|
344 |
</p>
|
345 |
</div>
|
346 |
</div>
|
349 |
<div class="landing-container">
|
350 |
<div class="premium-cta">
|
351 |
<p>
|
352 |
+
<?php echo sprintf( __('Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s to benefit from all features!','yith-woocommerce-catalog-mode'),'<span class="highlight">','</span>' );?>
|
353 |
</p>
|
354 |
<a href="<?php echo $this->get_premium_landing_uri() ?>" target="_blank" class="premium-cta-button button btn">
|
355 |
+
<span class="highlight"><?php _e('UPGRADE','yith-woocommerce-catalog-mode');?></span>
|
356 |
+
<span><?php _e('to the premium version','yith-woocommerce-catalog-mode');?></span>
|
357 |
</a>
|
358 |
</div>
|
359 |
</div>
|
modules/yith-woocommerce-colors-labels-variations/changelog.txt
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== 1.2.1 ===
|
2 |
+
Fixed: Issue with default variation attributes
|
3 |
+
|
4 |
+
=== 1.2.0 ===
|
5 |
+
Fixed: Error with WooCommerce 2.3.x
|
6 |
+
|
7 |
+
=== 1.1.9 ===
|
8 |
+
Added: ITA Language
|
9 |
+
Fixed: Error with attributes created directly from edit product page
|
10 |
+
|
11 |
+
=== 1.1.8 ===
|
12 |
+
Fixed: Missing attributes when adding to cart variation
|
13 |
+
|
14 |
+
=== 1.1.7 ===
|
15 |
+
Added: Support Wordpress 4.3
|
16 |
+
Fixed: WooCommerce variation issue
|
17 |
+
|
18 |
+
=== 1.1.6 ===
|
19 |
+
Added: Support to WooCommerce 2.4
|
20 |
+
Updated: Templare variable-wccl to 2.4 wc version
|
21 |
+
Updated: Plugin Core Framework
|
22 |
+
|
23 |
+
=== 1.1.5 ===
|
24 |
+
Added: Support to wordpress 4.2
|
25 |
+
Updated Plugin Core Framework
|
26 |
+
|
27 |
+
=== 1.1.4 ===
|
28 |
+
Added: Support to WooCommerce 2.3.8
|
29 |
+
Fixed: add_query_arg() and remove_query_arg() usage
|
30 |
+
Updated: Plugin Core Framework
|
31 |
+
|
32 |
+
=== 1.1.3 ===
|
33 |
+
Added: Support to WooCommerce 2.3.x
|
34 |
+
Fixed: Issue with variations when the attributes are inserted inside the edit product page
|
35 |
+
|
36 |
+
=== 1.1.2 ===
|
37 |
+
|
38 |
+
Added: Support to WooCommerce 2.2.2
|
39 |
+
Updated: Plugin Core Framework
|
40 |
+
Fixed: name parameter not defined
|
41 |
+
|
42 |
+
=== 1.1.1 ===
|
43 |
+
|
44 |
+
Updated: Plugin core framework
|
45 |
+
|
46 |
+
=== 1.1.0 ===
|
47 |
+
|
48 |
+
Added: Support to WooCommerce 2.1.x
|
49 |
+
Fixed: Various bugs
|
50 |
+
|
51 |
+
=== 1.0.0 ===
|
52 |
+
Initial Release
|
modules/yith-woocommerce-product-vendors/assets/css/admin.css
CHANGED
@@ -78,6 +78,7 @@ select#tax-input-yith_shop_vendor {
|
|
78 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-commission_rate,
|
79 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-registration_date,
|
80 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-posts,
|
|
|
81 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-actions{
|
82 |
border-bottom: 1px solid #e1e1e1;
|
83 |
}
|
@@ -99,7 +100,9 @@ select#tax-input-yith_shop_vendor {
|
|
99 |
|
100 |
.widefat .column-user_actions .action-link mark,
|
101 |
.widefat .column-commission_status mark,
|
102 |
-
.widefat .column-enable_sales mark
|
|
|
|
|
103 |
display: block;
|
104 |
text-indent: -9999px;
|
105 |
position: relative;
|
@@ -140,7 +143,9 @@ select#tax-input-yith_shop_vendor {
|
|
140 |
.widefat .column-commission_status mark.pending:after,
|
141 |
.widefat .column-commission_status mark.refunded:after,
|
142 |
.widefat .column-commission_status mark.processing:after,
|
143 |
-
.widefat .column-enable_sales mark:after
|
|
|
|
|
144 |
font-family: WooCommerce;
|
145 |
speak: none;
|
146 |
font-weight: 400;
|
@@ -158,6 +163,14 @@ select#tax-input-yith_shop_vendor {
|
|
158 |
text-align: center
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
.widefat .column-user_actions .action-link mark.pending:after,
|
162 |
.widefat .column-commission_status mark.pending:after {
|
163 |
content: "\e033";
|
@@ -201,6 +214,59 @@ select#tax-input-yith_shop_vendor {
|
|
201 |
color: #73a724;
|
202 |
}
|
203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
204 |
.widefat .column-user_actions .action-link mark {
|
205 |
opacity: 0.5;
|
206 |
transition: all 0.3s ease;
|
@@ -211,6 +277,17 @@ select#tax-input-yith_shop_vendor {
|
|
211 |
opacity: 1;
|
212 |
}
|
213 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
#commissions-filter .tablenav .actions.bulkactions {
|
215 |
padding: 0;
|
216 |
}
|
@@ -291,3 +368,17 @@ select#tax-input-yith_shop_vendor {
|
|
291 |
font-size: 1.3em!important;
|
292 |
}
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-commission_rate,
|
79 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-registration_date,
|
80 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-posts,
|
81 |
+
.taxonomy-yith_shop_vendor table.wp-list-table .column-owner,
|
82 |
.taxonomy-yith_shop_vendor table.wp-list-table .column-actions{
|
83 |
border-bottom: 1px solid #e1e1e1;
|
84 |
}
|
100 |
|
101 |
.widefat .column-user_actions .action-link mark,
|
102 |
.widefat .column-commission_status mark,
|
103 |
+
.widefat .column-enable_sales mark,
|
104 |
+
.widefat .column-suborder mark,
|
105 |
+
.single-orders.suborders-list .suborder-info mark {
|
106 |
display: block;
|
107 |
text-indent: -9999px;
|
108 |
position: relative;
|
143 |
.widefat .column-commission_status mark.pending:after,
|
144 |
.widefat .column-commission_status mark.refunded:after,
|
145 |
.widefat .column-commission_status mark.processing:after,
|
146 |
+
.widefat .column-enable_sales mark:after,
|
147 |
+
.widefat .column-suborder mark:after,
|
148 |
+
.single-orders.suborders-list .suborder-info mark:after {
|
149 |
font-family: WooCommerce;
|
150 |
speak: none;
|
151 |
font-weight: 400;
|
163 |
text-align: center
|
164 |
}
|
165 |
|
166 |
+
.widefat .column-suborder mark,
|
167 |
+
.single-orders.suborders-list .suborder-info mark {
|
168 |
+
float: left;
|
169 |
+
margin-right: 8px;
|
170 |
+
font-size: 1.1em;
|
171 |
+
margin-top: 2px;
|
172 |
+
}
|
173 |
+
|
174 |
.widefat .column-user_actions .action-link mark.pending:after,
|
175 |
.widefat .column-commission_status mark.pending:after {
|
176 |
content: "\e033";
|
214 |
color: #73a724;
|
215 |
}
|
216 |
|
217 |
+
.widefat .column-enable_sales mark.no-owner:after {
|
218 |
+
content: "\e016";
|
219 |
+
color: #2ea2cc;
|
220 |
+
}
|
221 |
+
|
222 |
+
/* Suborder Icon */
|
223 |
+
|
224 |
+
.widefat .column-suborder mark.pending:after,
|
225 |
+
.single-orders.suborders-list .suborder-info mark.pending:after {
|
226 |
+
content: "\e012";
|
227 |
+
color: #ffba00
|
228 |
+
}
|
229 |
+
|
230 |
+
.widefat .column-suborder mark.completed:after,
|
231 |
+
.single-orders.suborders-list .suborder-info mark.completed:after {
|
232 |
+
content: "\e015";
|
233 |
+
color: #2ea2cc
|
234 |
+
}
|
235 |
+
|
236 |
+
.widefat .column-suborder mark.on-hold:after,
|
237 |
+
.single-orders.suborders-list .suborder-info mark.on-hold:after {
|
238 |
+
content: "\e033";
|
239 |
+
color: #999
|
240 |
+
}
|
241 |
+
|
242 |
+
.widefat .column-suborder mark.failed:after,
|
243 |
+
.single-orders.suborders-list .suborder-info mark.failed:after {
|
244 |
+
content: "\e016";
|
245 |
+
color: #d0c21f
|
246 |
+
}
|
247 |
+
|
248 |
+
.widefat .column-suborder mark.cancelled:after,
|
249 |
+
.single-orders.suborders-list .suborder-info mark.cancelled:after {
|
250 |
+
content: "\e013";
|
251 |
+
color: #a00
|
252 |
+
}
|
253 |
+
|
254 |
+
.widefat .column-suborder mark.processing:after,
|
255 |
+
.single-orders.suborders-list .suborder-info mark.processing:after {
|
256 |
+
content: "\e011";
|
257 |
+
color: #73a724
|
258 |
+
}
|
259 |
+
|
260 |
+
.widefat .column-suborder mark.refunded:after,
|
261 |
+
.single-orders.suborders-list .suborder-info mark.refunded:after {
|
262 |
+
content: "\e014";
|
263 |
+
color: #999
|
264 |
+
}
|
265 |
+
|
266 |
+
small.yith-wcmv-suborder-owner:not(.single-order) {
|
267 |
+
display: block;
|
268 |
+
}
|
269 |
+
|
270 |
.widefat .column-user_actions .action-link mark {
|
271 |
opacity: 0.5;
|
272 |
transition: all 0.3s ease;
|
277 |
opacity: 1;
|
278 |
}
|
279 |
|
280 |
+
.wp-list-table a.set-an-owner{
|
281 |
+
text-transform: uppercase;
|
282 |
+
color: #d30000;
|
283 |
+
font-size: 11px;
|
284 |
+
font-weight: bold;
|
285 |
+
}
|
286 |
+
|
287 |
+
.wp-list-table a.set-an-owner:hover {
|
288 |
+
color: #f30404;
|
289 |
+
}
|
290 |
+
|
291 |
#commissions-filter .tablenav .actions.bulkactions {
|
292 |
padding: 0;
|
293 |
}
|
368 |
font-size: 1.3em!important;
|
369 |
}
|
370 |
|
371 |
+
/* Orders */
|
372 |
+
body.vendor_limited_access .woocommerce_order_items_wrapper table.woocommerce_order_items td.line_tax .delete-order-tax,
|
373 |
+
body.vendor_limited_access .woocommerce_order_items_wrapper table.woocommerce_order_items th.line_tax .delete-order-tax,
|
374 |
+
body.vendor_limited_access .wc-order-items-editable .wc-order-edit-line-item-actions,
|
375 |
+
body.vendor_limited_access #woocommerce-order-items .add-items .button.refund-items,
|
376 |
+
body.vendor_limited_access #woocommerce-order-items .add-items .description,
|
377 |
+
body.vendor_super_user.vendor_suborder_detail .woocommerce_order_items_wrapper table.woocommerce_order_items td.line_tax .delete-order-tax,
|
378 |
+
body.vendor_super_user.vendor_suborder_detail .woocommerce_order_items_wrapper table.woocommerce_order_items th.line_tax .delete-order-tax,
|
379 |
+
body.vendor_super_user.vendor_suborder_detail .wc-order-items-editable .wc-order-edit-line-item-actions,
|
380 |
+
body.vendor_super_user.vendor_suborder_detail #woocommerce-order-items .add-items .button.refund-items,
|
381 |
+
body.vendor_super_user.vendor_suborder_detail #woocommerce-order-items .add-items .description {
|
382 |
+
display: none;
|
383 |
+
}
|
384 |
+
|
modules/yith-woocommerce-product-vendors/assets/js/admin.js
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function ($) {
|
2 |
+
|
3 |
+
/* WooCommerce Options Deps */
|
4 |
+
$.fn.yith_wpv_option_deps = function( dep, type, disabled_value, readonly ){
|
5 |
+
|
6 |
+
var main_option = $(this),
|
7 |
+
disable = $(dep).parents('tr'),
|
8 |
+
get_value = function( type ){
|
9 |
+
if (type == 'checkbox') {
|
10 |
+
return main_option.attr('checked');
|
11 |
+
}
|
12 |
+
|
13 |
+
if (type == 'select') {
|
14 |
+
return main_option.val();
|
15 |
+
}
|
16 |
+
},
|
17 |
+
|
18 |
+
value = get_value( type );
|
19 |
+
|
20 |
+
var disable_opt = function(){
|
21 |
+
disable.css('opacity', '0.3');
|
22 |
+
disable.css( 'pointer-events', 'none' );
|
23 |
+
if( readonly ){
|
24 |
+
disable.attr( 'readonly', 'readonly' );
|
25 |
+
}
|
26 |
+
},
|
27 |
+
|
28 |
+
enable_opt = function(){
|
29 |
+
disable.css('opacity', '1');
|
30 |
+
disable.css( 'pointer-events', 'auto' );
|
31 |
+
if( readonly ){
|
32 |
+
disable.removeAttr( 'readonly' );
|
33 |
+
}
|
34 |
+
};
|
35 |
+
|
36 |
+
if (value == disabled_value) {
|
37 |
+
disable_opt();
|
38 |
+
}
|
39 |
+
|
40 |
+
main_option.on('change', function () {
|
41 |
+
value = get_value( type );
|
42 |
+
if (value != disabled_value) {
|
43 |
+
enable_opt();
|
44 |
+
}
|
45 |
+
|
46 |
+
else {
|
47 |
+
disable_opt();
|
48 |
+
}
|
49 |
+
});
|
50 |
+
}
|
51 |
+
|
52 |
+
//Vendors options deps
|
53 |
+
$('#yith_wpv_vendors_option_order_management').yith_wpv_option_deps( '#yith_wpv_vendors_option_order_synchronization', 'checkbox', undefined, false );
|
54 |
+
}(jQuery));
|
modules/yith-woocommerce-product-vendors/includes/class.yith-commissions.php
CHANGED
@@ -89,7 +89,7 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
89 |
* @since 1.0
|
90 |
* @access protected
|
91 |
*/
|
92 |
-
protected static $_db_version =
|
93 |
|
94 |
/**
|
95 |
* Status changing capabilities
|
@@ -136,7 +136,7 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
136 |
add_action( 'init', array( $this, 'add_commissions_table_wpdb' ), 0 );
|
137 |
add_action( 'switch_blog', array( $this, 'add_commissions_table_wpdb' ), 0 );
|
138 |
|
139 |
-
add_action( '
|
140 |
add_action( 'woocommerce_order_status_changed', array( $this, 'manage_status_changing' ), 10, 3 );
|
141 |
add_action( 'woocommerce_refund_created', array( $this, 'register_commission_refund' ) );
|
142 |
add_action( 'before_delete_post', array( $this, 'remove_refund_commission_helper' ) );
|
@@ -191,7 +191,6 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
191 |
return $this->_screen;
|
192 |
}
|
193 |
|
194 |
-
|
195 |
/**
|
196 |
* Define the list of status
|
197 |
*
|
@@ -280,7 +279,7 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
280 |
'menu_slug' => $this->_screen,
|
281 |
'function' => array( $this, 'commissions_details_page' ),
|
282 |
'icon' => 'dashicons-tickets',
|
283 |
-
'position' =>
|
284 |
)
|
285 |
);
|
286 |
|
@@ -380,7 +379,7 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
380 |
user_id bigint(20) NOT NULL,
|
381 |
vendor_id bigint(20) NOT NULL,
|
382 |
line_item_id bigint(20) NOT NULL,
|
383 |
-
rate decimal(
|
384 |
amount double(15,4) NOT NULL,
|
385 |
status varchar(100) NOT NULL,
|
386 |
last_edit DATETIME NOT NULL DEFAULT '000-00-00 00:00:00',
|
@@ -691,7 +690,7 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
691 |
*
|
692 |
* @since 1.0
|
693 |
*/
|
694 |
-
public function register_commissions( $order_id
|
695 |
|
696 |
// Only process commissions once
|
697 |
$processed = get_post_meta( $order_id, '_commissions_processed', true );
|
@@ -732,9 +731,10 @@ if ( ! class_exists( 'YITH_Commissions' ) ) {
|
|
732 |
// add commission in pending
|
733 |
$commission_id = YITH_Commission()->add( $args );
|
734 |
|
735 |
-
// add line item to retrieve simply the commission associated
|
736 |
wc_add_order_item_meta( $item_id, '_commission_id', $commission_id );
|
737 |
|
|
|
738 |
}
|
739 |
}
|
740 |
|
89 |
* @since 1.0
|
90 |
* @access protected
|
91 |
*/
|
92 |
+
protected static $_db_version = YITH_WPV_DB_VERSION;
|
93 |
|
94 |
/**
|
95 |
* Status changing capabilities
|
136 |
add_action( 'init', array( $this, 'add_commissions_table_wpdb' ), 0 );
|
137 |
add_action( 'switch_blog', array( $this, 'add_commissions_table_wpdb' ), 0 );
|
138 |
|
139 |
+
add_action( 'yith_wcmv_checkout_order_processed', array( $this, 'register_commissions' ), 10, 1 );
|
140 |
add_action( 'woocommerce_order_status_changed', array( $this, 'manage_status_changing' ), 10, 3 );
|
141 |
add_action( 'woocommerce_refund_created', array( $this, 'register_commission_refund' ) );
|
142 |
add_action( 'before_delete_post', array( $this, 'remove_refund_commission_helper' ) );
|
191 |
return $this->_screen;
|
192 |
}
|
193 |
|
|
|
194 |
/**
|
195 |
* Define the list of status
|
196 |
*
|
279 |
'menu_slug' => $this->_screen,
|
280 |
'function' => array( $this, 'commissions_details_page' ),
|
281 |
'icon' => 'dashicons-tickets',
|
282 |
+
'position' => 58 /* After WC Products */
|
283 |
)
|
284 |
);
|
285 |
|
379 |
user_id bigint(20) NOT NULL,
|
380 |
vendor_id bigint(20) NOT NULL,
|
381 |
line_item_id bigint(20) NOT NULL,
|
382 |
+
rate decimal(5,4) NOT NULL,
|
383 |
amount double(15,4) NOT NULL,
|
384 |
status varchar(100) NOT NULL,
|
385 |
last_edit DATETIME NOT NULL DEFAULT '000-00-00 00:00:00',
|
690 |
*
|
691 |
* @since 1.0
|
692 |
*/
|
693 |
+
public function register_commissions( $order_id ) {
|
694 |
|
695 |
// Only process commissions once
|
696 |
$processed = get_post_meta( $order_id, '_commissions_processed', true );
|
731 |
// add commission in pending
|
732 |
$commission_id = YITH_Commission()->add( $args );
|
733 |
|
734 |
+
// add line item to retrieve simply the commission associated (parent order)
|
735 |
wc_add_order_item_meta( $item_id, '_commission_id', $commission_id );
|
736 |
|
737 |
+
do_action( 'yith_wcmv_after_single_register_commission', $commission_id, $item_id, '_commission_id', $order );
|
738 |
}
|
739 |
}
|
740 |
|
modules/yith-woocommerce-product-vendors/includes/class.yith-orders.php
ADDED
@@ -0,0 +1,1619 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* This file belongs to the YIT Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*/
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit( 'Direct access forbidden.' );
|
12 |
+
}
|
13 |
+
|
14 |
+
/**
|
15 |
+
*
|
16 |
+
*
|
17 |
+
* @class YITH_Orders
|
18 |
+
* @package Yithemes
|
19 |
+
* @since Version 1.6
|
20 |
+
* @author Your Inspiration Themes
|
21 |
+
*
|
22 |
+
*/
|
23 |
+
if ( ! class_exists( 'YITH_Orders' ) ) {
|
24 |
+
|
25 |
+
class YITH_Orders {
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Main instance
|
29 |
+
*
|
30 |
+
* @var string
|
31 |
+
* @since 1.4.0
|
32 |
+
*/
|
33 |
+
protected static $_instance = null;
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Constructor
|
37 |
+
*/
|
38 |
+
public function __construct() {
|
39 |
+
add_action( 'woocommerce_checkout_update_order_meta', array( $this, 'check_suborder' ), 10, 2 );
|
40 |
+
|
41 |
+
/* Prevent Multiple Email Notifications for Suborders */
|
42 |
+
add_filter( 'woocommerce_email_enabled_new_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
43 |
+
add_filter( 'woocommerce_email_enabled_cancelled_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
44 |
+
add_filter( 'woocommerce_email_enabled_customer_processing_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
45 |
+
add_filter( 'woocommerce_email_enabled_customer_completed_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
46 |
+
add_filter( 'woocommerce_email_enabled_customer_partially_refunded_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
47 |
+
add_filter( 'woocommerce_email_enabled_customer_refunded_order', array( $this, 'woocommerce_email_enabled_new_order' ), 10, 2 );
|
48 |
+
|
49 |
+
add_action( 'woocommerce_order_refunded', array( $this, 'order_refunded' ), 10, 2 );
|
50 |
+
add_action( 'woocommerce_refund_deleted', array( $this, 'refund_deleted' ), 10, 2 );
|
51 |
+
|
52 |
+
add_filter( 'woocommerce_attribute_label', array( $this, 'commissions_attribute_label' ), 10, 3 );
|
53 |
+
|
54 |
+
/* Single Order Page for Vendor */
|
55 |
+
add_filter( 'wc_order_is_editable', array( $this, 'vendor_single_order_page' ) );
|
56 |
+
|
57 |
+
add_filter( 'woocommerce_attribute_label', array( $this, 'commissions_attribute_label' ), 10, 3 );
|
58 |
+
|
59 |
+
/* Single Order Page for Vendor */
|
60 |
+
add_filter( 'wc_order_is_editable', array( $this, 'vendor_single_order_page' ) );
|
61 |
+
|
62 |
+
/* Order Item Meta */
|
63 |
+
add_action( 'woocommerce_hidden_order_itemmeta', array( $this, 'hidden_order_itemmeta' ) );
|
64 |
+
|
65 |
+
/* Order Table */
|
66 |
+
add_filter( 'manage_shop_order_posts_columns', array( $this, 'shop_order_columns' ) );
|
67 |
+
add_action( 'manage_shop_order_posts_custom_column', array( $this, 'render_shop_order_columns' ) );
|
68 |
+
|
69 |
+
/* Order MetaBoxes */
|
70 |
+
add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ), 30 );
|
71 |
+
|
72 |
+
$sync_enabled = get_option( 'yith_wpv_vendors_option_order_synchronization', 'yes' );
|
73 |
+
|
74 |
+
if( $sync_enabled ){
|
75 |
+
/* SubOrder Sync */
|
76 |
+
add_action( 'woocommerce_order_status_changed', array( $this, 'suborder_status_synchronization' ), 10, 3 );
|
77 |
+
/* Order Meta Synchronization */
|
78 |
+
add_action( 'woocommerce_process_shop_order_meta', array( $this, 'suborder_meta_synchronization' ), 65, 2 );
|
79 |
+
/* Commission Synchronization */
|
80 |
+
add_action( 'yith_wcmv_after_single_register_commission', array( $this, 'register_commission_to_parent_order' ), 10, 4 );
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Other Ajax Action:
|
84 |
+
*
|
85 |
+
* load_order_items
|
86 |
+
* woocommerce_EVENT => nopriv
|
87 |
+
*/
|
88 |
+
$ajax_events = array(
|
89 |
+
'add_order_item' => false,
|
90 |
+
/*'add_order_fee' => false,*/
|
91 |
+
/*'add_order_shipping' => false,*/
|
92 |
+
'add_order_tax' => false,
|
93 |
+
'remove_order_item' => false,
|
94 |
+
'remove_order_tax' => false,
|
95 |
+
'reduce_order_item_stock' => false,
|
96 |
+
'increase_order_item_stock' => false,
|
97 |
+
/*'add_order_item_meta' => false, */
|
98 |
+
'remove_order_item_meta' => false,
|
99 |
+
'calc_line_taxes' => false,
|
100 |
+
'save_order_items' => false,
|
101 |
+
'add_order_note' => false,
|
102 |
+
'delete_order_note' => false,
|
103 |
+
);
|
104 |
+
|
105 |
+
foreach ( $ajax_events as $ajax_event => $nopriv ) {
|
106 |
+
add_action( "wp_ajax_woocommerce_{$ajax_event}", array( __CLASS__, $ajax_event ), 5 );
|
107 |
+
$nopriv && add_action( "wp_ajax_nopriv_woocommerce_{$ajax_event}", array( __CLASS__, $ajax_event, 5 ) );
|
108 |
+
}
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Check for vendor sub-order
|
114 |
+
*
|
115 |
+
* $parent_order_id string The parent order id
|
116 |
+
* $posted mixed Array of posted form data.
|
117 |
+
*
|
118 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
119 |
+
* @since 1.6
|
120 |
+
* @return void
|
121 |
+
*/
|
122 |
+
public function check_suborder( $parent_order_id, $posted ) {
|
123 |
+
$parent_order = wc_get_order( $parent_order_id );
|
124 |
+
$items = $parent_order->get_items();
|
125 |
+
$products_by_vendor = array();
|
126 |
+
$suborder_ids = array();
|
127 |
+
|
128 |
+
//check for vendor product
|
129 |
+
foreach ( $items as $item ) {
|
130 |
+
$vendor = yith_get_vendor( $item['product_id'], 'product' );
|
131 |
+
if ( $vendor->is_valid() ) {
|
132 |
+
$products_by_vendor[$vendor->id][] = $item;
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
$vendor_count = count( $products_by_vendor );
|
137 |
+
|
138 |
+
//Vendor's items ? NO
|
139 |
+
if ( $vendor_count == 0 ) {
|
140 |
+
return false;
|
141 |
+
}
|
142 |
+
|
143 |
+
//Vendor's items ? YES
|
144 |
+
else {
|
145 |
+
//add sub-order to parent
|
146 |
+
update_post_meta( $parent_order_id, 'has_sub_order', true );
|
147 |
+
|
148 |
+
foreach ( $products_by_vendor as $vendor_id => $vendor_products ) {
|
149 |
+
//create sub-orders
|
150 |
+
$suborder_ids[] = $this->create_suborder( $parent_order, $vendor_id, $vendor_products, $posted );
|
151 |
+
}
|
152 |
+
|
153 |
+
if( ! empty( $suborder_ids ) ){
|
154 |
+
foreach( $suborder_ids as $suborder_id ){
|
155 |
+
do_action( 'yith_wcmv_checkout_order_processed', $suborder_id );
|
156 |
+
}
|
157 |
+
}
|
158 |
+
}
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* Create vendor sub-order
|
163 |
+
*
|
164 |
+
*
|
165 |
+
* @param $parent_order WC_Order
|
166 |
+
* @param $vendor_id
|
167 |
+
* @param $vendor_products
|
168 |
+
* @param $posted
|
169 |
+
*
|
170 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
171 |
+
* @since 1.6
|
172 |
+
* @return void
|
173 |
+
*/
|
174 |
+
public function create_suborder( $parent_order, $vendor_id, $vendor_products, $posted ) {
|
175 |
+
/** @var $parent_order WC_Order */
|
176 |
+
$vendor = yith_get_vendor( $vendor_id, 'vendor' );
|
177 |
+
$order_data = apply_filters( 'woocommerce_new_order_data', array(
|
178 |
+
'post_type' => 'shop_order',
|
179 |
+
'post_title' => sprintf( __( 'Order – %s', 'woocommerce' ), strftime( _x( '%b %d, %Y @ %I:%M %p', 'Order date parsed by strftime', 'woocommerce' ) ) ),
|
180 |
+
'post_status' => 'wc-' . apply_filters( 'woocommerce_default_order_status', 'pending' ),
|
181 |
+
'ping_status' => 'closed',
|
182 |
+
'post_excerpt' => isset( $posted['order_comments'] ) ? $posted['order_comments'] : '',
|
183 |
+
'post_author' => $vendor->get_owner(),
|
184 |
+
'post_parent' => $parent_order->id,
|
185 |
+
'post_password' => uniqid( 'order_' ) // Protects the post just in case
|
186 |
+
)
|
187 |
+
);
|
188 |
+
|
189 |
+
$suborder_id = wp_insert_post( $order_data );
|
190 |
+
$suborder = wc_get_order( $suborder_id );
|
191 |
+
$parent_line_items = $parent_order->get_items( 'line_item' );
|
192 |
+
|
193 |
+
if ( ! empty( $suborder_id ) && ! is_wp_error( $suborder_id ) ) {
|
194 |
+
$order_total = $order_tax = $discount = 0;
|
195 |
+
$product_ids = array();
|
196 |
+
|
197 |
+
// now insert line items
|
198 |
+
foreach ( $vendor_products as $item ) {
|
199 |
+
$order_total += (float) $item['line_total'];
|
200 |
+
$order_tax += (float) $item['line_tax'];
|
201 |
+
$product_ids[] = $item['product_id'];
|
202 |
+
|
203 |
+
$item_id = wc_add_order_item( $suborder_id, array(
|
204 |
+
'order_item_name' => $item['name'],
|
205 |
+
'order_item_type' => 'line_item'
|
206 |
+
)
|
207 |
+
);
|
208 |
+
|
209 |
+
if ( $item_id ) {
|
210 |
+
$metakeys = array(
|
211 |
+
'qty',
|
212 |
+
'tax_class',
|
213 |
+
'product_id',
|
214 |
+
'variation_id',
|
215 |
+
'line_subtotal',
|
216 |
+
'line_total',
|
217 |
+
'line_tax',
|
218 |
+
'line_subtotal_tax',
|
219 |
+
'line_tax_data'
|
220 |
+
);
|
221 |
+
|
222 |
+
foreach ( $metakeys as $key ) {
|
223 |
+
/**
|
224 |
+
* Use maybe_unserialize() because wc_add_order_item_meta()
|
225 |
+
* use maybe_serialize() that reserialize the serialized string
|
226 |
+
* for backward compatibility and to prevent the end of the world.
|
227 |
+
*
|
228 |
+
* @see wp-includes/functions.php:382
|
229 |
+
* @see woocommerce/includes/wc-order-functions.php:449
|
230 |
+
* @use wp-includes/meta.php:31
|
231 |
+
*/
|
232 |
+
wc_add_order_item_meta( $item_id, "_{$key}", maybe_unserialize( $item[$key] ) );
|
233 |
+
if ( 'product_id' == $key ) {
|
234 |
+
foreach ( $parent_line_items as $line_item_id => $line_item_value ) {
|
235 |
+
//@internal $key == 'product_id'
|
236 |
+
if ( $item[$key] == $line_item_value[$key] ) {
|
237 |
+
// add line item to retrieve simply the parent line_item_id
|
238 |
+
wc_add_order_item_meta( $item_id, '_parent_line_item_id', $line_item_id );
|
239 |
+
break;
|
240 |
+
}
|
241 |
+
}
|
242 |
+
}
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
//Calculate Discount
|
247 |
+
$discount += ( $item['line_subtotal'] - $item['line_total'] );
|
248 |
+
}
|
249 |
+
|
250 |
+
//Billing order meta
|
251 |
+
$billing_order_meta = array(
|
252 |
+
'billing_country',
|
253 |
+
'billing_first_name',
|
254 |
+
'billing_last_name',
|
255 |
+
'billing_company',
|
256 |
+
'billing_address_1',
|
257 |
+
'billing_address_2',
|
258 |
+
'billing_city',
|
259 |
+
'billing_state',
|
260 |
+
'billing_postcode',
|
261 |
+
'billing_email',
|
262 |
+
'billing_phone'
|
263 |
+
);
|
264 |
+
|
265 |
+
foreach ( $billing_order_meta as $order_meta_key ) {
|
266 |
+
$meta_key = '_' . $order_meta_key;
|
267 |
+
update_post_meta( $suborder_id, $meta_key, $parent_order->$order_meta_key );
|
268 |
+
}
|
269 |
+
|
270 |
+
//Shipping order meta
|
271 |
+
$shipping_order_meta = array(
|
272 |
+
'shipping_country',
|
273 |
+
'shipping_first_name',
|
274 |
+
'shipping_last_name',
|
275 |
+
'shipping_company',
|
276 |
+
'shipping_address_1',
|
277 |
+
'shipping_address_2',
|
278 |
+
'shipping_city',
|
279 |
+
'shipping_state',
|
280 |
+
'shipping_postcode'
|
281 |
+
);
|
282 |
+
|
283 |
+
foreach ( $shipping_order_meta as $order_meta_key ) {
|
284 |
+
$meta_key = '_' . $order_meta_key;
|
285 |
+
update_post_meta( $suborder_id, $meta_key, $parent_order->$order_meta_key );
|
286 |
+
}
|
287 |
+
|
288 |
+
//Shipping
|
289 |
+
//TODO: to add when vendor can manage shipping
|
290 |
+
$shipping_cost = 0;
|
291 |
+
|
292 |
+
//Coupons
|
293 |
+
$order_coupons = $parent_order->get_used_coupons();
|
294 |
+
if ( ! empty( $order_coupons ) ) {
|
295 |
+
foreach ( $order_coupons as $order_coupon ) {
|
296 |
+
$coupon = new WC_Coupon( $order_coupon );
|
297 |
+
|
298 |
+
if ( $coupon && in_array( $product_ids, $coupon->product_ids ) ) {
|
299 |
+
$order_item_id = wc_add_order_item( $suborder_id, array(
|
300 |
+
'order_item_name' => $order_coupon,
|
301 |
+
'order_item_type' => 'coupon'
|
302 |
+
)
|
303 |
+
);
|
304 |
+
|
305 |
+
// Add line item meta
|
306 |
+
if ( $order_item_id ) {
|
307 |
+
$order_item_value = isset( WC()->cart->coupon_discount_amounts[$order_coupon] ) ? WC()->cart->coupon_discount_amounts[$order_coupon] : 0;
|
308 |
+
$meta_key = 'discount_amount';
|
309 |
+
wc_add_order_item_meta( $order_item_id, $meta_key, $order_item_value );
|
310 |
+
}
|
311 |
+
}
|
312 |
+
}
|
313 |
+
}
|
314 |
+
|
315 |
+
//Calculate Total
|
316 |
+
$order_in_total = $order_total + $shipping_cost + $order_tax;
|
317 |
+
|
318 |
+
$totals = array(
|
319 |
+
'shipping' => wc_format_decimal( $shipping_cost ),
|
320 |
+
'cart_discount' => wc_format_decimal( $discount ),
|
321 |
+
'cart_discount_tax' => 0,
|
322 |
+
'tax' => wc_format_decimal( $order_tax ),
|
323 |
+
'order_shipping_tax' => 0,
|
324 |
+
'total' => wc_format_decimal( $order_in_total ),
|
325 |
+
);
|
326 |
+
|
327 |
+
//Set tax. N.B.: needs total to works
|
328 |
+
if ( function_exists( 'WC' ) && is_a( WC()->cart, 'WC_Cart' ) ) {
|
329 |
+
/** @var WC_Cart $cart */
|
330 |
+
$_cart = WC()->cart;
|
331 |
+
foreach ( array_keys( $_cart->taxes + $_cart->shipping_taxes ) as $tax_rate_id ) {
|
332 |
+
if ( $_cart && $tax_rate_id && apply_filters( 'woocommerce_cart_remove_taxes_zero_rate_id', 'zero-rated' ) !== $tax_rate_id ) {
|
333 |
+
$suborder->add_tax( $tax_rate_id, $totals['tax'], $totals['order_shipping_tax'] );
|
334 |
+
}
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
//Set totals
|
339 |
+
foreach ( $totals as $meta_key => $meta_value ) {
|
340 |
+
$suborder->set_total( $meta_value, $meta_key );
|
341 |
+
}
|
342 |
+
|
343 |
+
//Set other order meta
|
344 |
+
$order_meta = array(
|
345 |
+
'_payment_method' => $parent_order->payment_method,
|
346 |
+
'_payment_method_title' => $parent_order->payment_method_title,
|
347 |
+
'_order_key' => apply_filters( 'woocommerce_generate_order_key', uniqid( 'order_' ) ),
|
348 |
+
'_customer_user' => $parent_order->customer_user,
|
349 |
+
'_prices_include_tax' => $parent_order->prices_include_tax,
|
350 |
+
'_order_currency' => get_post_meta( $parent_order->id, '_order_currency', true ),
|
351 |
+
'_customer_ip_address' => get_post_meta( $parent_order->id, '_customer_ip_address', true ),
|
352 |
+
'_customer_user_agent' => get_post_meta( $parent_order->id, '_customer_user_agent', true )
|
353 |
+
);
|
354 |
+
|
355 |
+
foreach ( $order_meta as $meta_key => $meta_value ) {
|
356 |
+
update_post_meta( $suborder_id, $meta_key, $meta_value );
|
357 |
+
}
|
358 |
+
}
|
359 |
+
|
360 |
+
return $suborder_id;
|
361 |
+
}
|
362 |
+
|
363 |
+
/**
|
364 |
+
* Parent to Child synchronization
|
365 |
+
*
|
366 |
+
*
|
367 |
+
* @param $parent_order_id The parent id order
|
368 |
+
* @param $old_status Old Status
|
369 |
+
* @param $new_status New Status
|
370 |
+
*
|
371 |
+
* @internal param \WC_Order $parent_order
|
372 |
+
*
|
373 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
374 |
+
* @since 1.6
|
375 |
+
* @return void
|
376 |
+
*/
|
377 |
+
public function suborder_status_synchronization( $parent_order_id, $old_status, $new_status ) {
|
378 |
+
//Check if order have sub-order
|
379 |
+
if ( wp_get_post_parent_id( $parent_order_id ) ) {
|
380 |
+
return false;
|
381 |
+
}
|
382 |
+
|
383 |
+
$suborder_ids = self::get_suborder( $parent_order_id );
|
384 |
+
if ( ! empty( $suborder_ids ) ) {
|
385 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
386 |
+
/** @var $suborder WC_Order */
|
387 |
+
$suborder = wc_get_order( $suborder_id );
|
388 |
+
$suborder->update_status( $new_status, _x( 'Website owner update: ', 'Order note', 'yith_wc_product_vendors' ) );
|
389 |
+
}
|
390 |
+
}
|
391 |
+
}
|
392 |
+
|
393 |
+
/**
|
394 |
+
* Parent to Child synchronization
|
395 |
+
*
|
396 |
+
*
|
397 |
+
* @param $parent_order_id The parent id order
|
398 |
+
* @param $parent_order The parent order
|
399 |
+
*
|
400 |
+
* @internal param \WC_Order $parent_order
|
401 |
+
*
|
402 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
403 |
+
* @since 1.6
|
404 |
+
* @return void
|
405 |
+
*/
|
406 |
+
public function suborder_meta_synchronization( $parent_order_id, $parent_order ) {
|
407 |
+
//Check if order have sub-order
|
408 |
+
if ( wp_get_post_parent_id( $parent_order_id ) ) {
|
409 |
+
return false;
|
410 |
+
}
|
411 |
+
|
412 |
+
/** @var $suborder WC_Order */
|
413 |
+
/** @var $parent_order WC_Order */
|
414 |
+
$suborder_ids = self::get_suborder( $parent_order_id );
|
415 |
+
$parent_order = wc_get_order( $parent_order_id );
|
416 |
+
if ( ! empty( $suborder_ids ) ) {
|
417 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
418 |
+
$suborder = wc_get_order( $suborder_id );
|
419 |
+
$child_items = array_keys( $suborder->get_items() );
|
420 |
+
$_post = $_POST;
|
421 |
+
$_post['order_item_id'] = $child_items;
|
422 |
+
$suborder_line_total = 0;
|
423 |
+
|
424 |
+
foreach ( $child_items as $child_items_id ) {
|
425 |
+
$parent_item_id = $suborder->get_item_meta( $child_items_id, '_parent_line_item_id' );
|
426 |
+
$parent_item_id = absint( array_shift( $parent_item_id ) );
|
427 |
+
foreach ( $_post as $meta_key => $meta_value ) {
|
428 |
+
//TODO: Shipping Cost
|
429 |
+
switch ( $meta_key ) {
|
430 |
+
case 'line_total':
|
431 |
+
case 'line_subtotal':
|
432 |
+
case 'order_item_tax_class':
|
433 |
+
case 'order_item_qty':
|
434 |
+
case 'refund_line_total':
|
435 |
+
case 'refund_order_item_qty':
|
436 |
+
if ( isset( $_post[$meta_key][$parent_item_id] ) ) {
|
437 |
+
$_post[$meta_key][$child_items_id] = $_post[$meta_key][$parent_item_id];
|
438 |
+
unset( $_post[$meta_key][$parent_item_id] );
|
439 |
+
}
|
440 |
+
break;
|
441 |
+
|
442 |
+
case 'shipping_cost':
|
443 |
+
if ( isset( $_post[$meta_key][$parent_item_id] ) ) {
|
444 |
+
$_post[$meta_key][$child_items_id] = 0;
|
445 |
+
unset( $_post[$meta_key][$parent_item_id] );
|
446 |
+
}
|
447 |
+
break;
|
448 |
+
default: //nothing to do
|
449 |
+
break;
|
450 |
+
}
|
451 |
+
}
|
452 |
+
|
453 |
+
//Calculate Order Total
|
454 |
+
if ( isset( $_post['line_total'][$child_items_id] ) ) {
|
455 |
+
$suborder_line_total += wc_format_decimal( $_post['line_total'][$child_items_id] );
|
456 |
+
}
|
457 |
+
}
|
458 |
+
|
459 |
+
//New Order Total
|
460 |
+
$_post['_order_total'] = wc_format_decimal( $suborder_line_total );
|
461 |
+
|
462 |
+
/**
|
463 |
+
* Don't use save method by WC_Meta_Box_Order_Items class because I need to filter the POST information
|
464 |
+
* use wc_save_order_items( $order_id, $items ) function directly.
|
465 |
+
* @see WC_Meta_Box_Order_Items::save( $suborder_id, $suborder ); in woocommerce\includes\admin\meta-boxes\class-wc-meta-box-order-items.php:45
|
466 |
+
* @see wc_save_order_items( $order_id, $items ); in woocommerce\includes\admin\wc-admin-functions.php:176
|
467 |
+
*/
|
468 |
+
wc_save_order_items( $suborder_id, $_post );
|
469 |
+
WC_Meta_Box_Order_Downloads::save( $suborder_id, $suborder );
|
470 |
+
WC_Meta_Box_Order_Data::save( $suborder_id, $suborder );
|
471 |
+
WC_Meta_Box_Order_Actions::save( $suborder_id, $suborder );
|
472 |
+
}
|
473 |
+
}
|
474 |
+
}
|
475 |
+
|
476 |
+
/**
|
477 |
+
* Get suborder from parent_order_id
|
478 |
+
*
|
479 |
+
*
|
480 |
+
* @param bool|int $parent_order_id The parent id order
|
481 |
+
*
|
482 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
483 |
+
* @since 1.6
|
484 |
+
* @return void
|
485 |
+
*/
|
486 |
+
public static function get_suborder( $parent_order_id = false ) {
|
487 |
+
$suborder_ids = array();
|
488 |
+
if ( $parent_order_id ) {
|
489 |
+
global $wpdb;
|
490 |
+
$suborder_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM {$wpdb->posts} WHERE post_parent=%d AND post_type=%s", absint( $parent_order_id ), 'shop_order' ) );
|
491 |
+
}
|
492 |
+
|
493 |
+
return $suborder_ids;
|
494 |
+
}
|
495 |
+
|
496 |
+
/**
|
497 |
+
* Get parent item id from child item id
|
498 |
+
*
|
499 |
+
*
|
500 |
+
* @param $suborder The suborder object
|
501 |
+
* @param $child_item_id The child item id
|
502 |
+
*
|
503 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
504 |
+
* @since 1.6
|
505 |
+
* @return int|bool The parent item id if exist, false otherwise
|
506 |
+
*/
|
507 |
+
public static function get_parent_item_id( $suborder = false, $child_item_id ) {
|
508 |
+
global$wpdb;
|
509 |
+
$parent_item_id = false;
|
510 |
+
|
511 |
+
if( ! $suborder ){
|
512 |
+
$parent_item_id = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT order_item_id FROM {$wpdb->order_itemmeta} WHERE meta_id=%d", $child_item_id ) );
|
513 |
+
$parent_item_id = ! empty( $parent_item_id ) ? $parent_item_id : false;
|
514 |
+
}
|
515 |
+
|
516 |
+
else {
|
517 |
+
$parent_item_id = $suborder->get_item_meta( $child_item_id, '_parent_line_item_id' );
|
518 |
+
$parent_item_id = ! empty( $parent_item_id ) ? absint( array_shift( $parent_item_id ) ) : false;
|
519 |
+
}
|
520 |
+
|
521 |
+
|
522 |
+
return $parent_item_id;
|
523 |
+
}
|
524 |
+
|
525 |
+
/**
|
526 |
+
* Get parent item id from child item id
|
527 |
+
*
|
528 |
+
* @param $parent_item_id
|
529 |
+
*
|
530 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
531 |
+
* @since 1.6
|
532 |
+
* @return int|bool The parent item id if exist, false otherwise
|
533 |
+
*/
|
534 |
+
public static function get_child_item_id( $parent_item_id ) {
|
535 |
+
global $wpdb;
|
536 |
+
$child_item_id = $wpdb->get_var( $wpdb->prepare( "SELECT order_item_id FROM {$wpdb->order_itemmeta} WHERE meta_key=%s AND meta_value=%d", '_parent_line_item_id', absint( $parent_item_id ) ) );
|
537 |
+
return $child_item_id;
|
538 |
+
}
|
539 |
+
|
540 |
+
/**
|
541 |
+
* Get line item id from parent item id
|
542 |
+
*
|
543 |
+
* @param $order_item_id The parent order_item_id
|
544 |
+
*
|
545 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
546 |
+
* @since 1.6
|
547 |
+
* @return int|bool The child item id if exist, false otherwise
|
548 |
+
*/
|
549 |
+
public static function get_line_item_id_from_parent( $order_item_id ){
|
550 |
+
global $wpdb;
|
551 |
+
return $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT order_item_id FROM {$wpdb->order_itemmeta} WHERE meta_key=%s AND meta_value=%d", '_parent_line_item_id', $order_item_id ) );
|
552 |
+
}
|
553 |
+
|
554 |
+
/**
|
555 |
+
* Save order items ajax sync
|
556 |
+
*
|
557 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
558 |
+
* @since 1.6
|
559 |
+
* @return void
|
560 |
+
* @access public static
|
561 |
+
*/
|
562 |
+
public static function save_order_items() {
|
563 |
+
check_ajax_referer( 'order-item', 'security' );
|
564 |
+
|
565 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
566 |
+
die( - 1 );
|
567 |
+
}
|
568 |
+
|
569 |
+
if ( isset( $_POST['order_id'] ) && isset( $_POST['items'] ) ) {
|
570 |
+
$parent_order_id = absint( $_POST['order_id'] );
|
571 |
+
//Check if order have sub-order
|
572 |
+
if ( ! wp_get_post_parent_id( $parent_order_id ) ) {
|
573 |
+
global $wpdb;
|
574 |
+
// Parse the jQuery serialized items
|
575 |
+
$_post = $_POST;
|
576 |
+
parse_str( $_post['items'], $_post['items'] );
|
577 |
+
$suborder_ids = self::get_suborder( $parent_order_id );
|
578 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
579 |
+
$order_total = 0;
|
580 |
+
$suborder = wc_get_order( $suborder_id );
|
581 |
+
$child_items = array_keys( $suborder->get_items() );
|
582 |
+
$_post['items']['order_item_id'] = $child_items;
|
583 |
+
foreach ( $child_items as $child_item_id ) {
|
584 |
+
$parent_item_id = self::get_parent_item_id( $suborder, $child_item_id );
|
585 |
+
foreach ( $_post['items'] as $meta_key => $meta_value ) {
|
586 |
+
if ( ! in_array( $meta_key, array( 'order_item_id', '_order_total' ) ) && isset( $_post['items'][$meta_key][$parent_item_id] ) ) {
|
587 |
+
$_post['items'][$meta_key][$child_item_id] = $_post['items'][$meta_key][$parent_item_id];
|
588 |
+
unset( $_post['items'][$meta_key][$parent_item_id] );
|
589 |
+
}
|
590 |
+
}
|
591 |
+
|
592 |
+
/* === Calc Order Totals === */
|
593 |
+
if ( ! empty( $_post['items']['line_total'][$child_item_id] ) ) {
|
594 |
+
$order_total += wc_format_decimal( $_post['items']['line_total'][$child_item_id] );
|
595 |
+
if( isset( $_post['items']['line_tax'][$child_item_id] ) ){
|
596 |
+
$line_taxes = $_post['items']['line_tax'][$child_item_id];
|
597 |
+
foreach( $line_taxes as $line_tax ){
|
598 |
+
$order_total += wc_format_decimal( $line_tax );
|
599 |
+
}
|
600 |
+
}
|
601 |
+
}
|
602 |
+
|
603 |
+
/* === Calc Refund Totals === */
|
604 |
+
if ( ! empty( $_post['items']['refund_line_total'][$child_item_id] ) ) {
|
605 |
+
$order_total += wc_format_decimal( $_post['items']['refund_line_total'][$child_item_id] );
|
606 |
+
}
|
607 |
+
/* ======================== */
|
608 |
+
}
|
609 |
+
|
610 |
+
/* === Save Parent Meta === */
|
611 |
+
$meta_keys = isset( $_post['items']['meta_key'] ) ? $_post['items']['meta_key'] : array();
|
612 |
+
$meta_values = isset( $_post['items']['meta_value'] ) ? $_post['items']['meta_value'] : array();
|
613 |
+
foreach ( $meta_keys as $meta_id => $meta_key ) {
|
614 |
+
$meta_value = ( empty( $meta_values[$meta_id] ) && ! is_numeric( $meta_values[$meta_id] ) ) ? '' : $meta_values[$meta_id];
|
615 |
+
$parent_order_item_id = self::get_parent_item_id( false, $meta_id );
|
616 |
+
$child_order_item_id = self::get_child_item_id( $parent_order_item_id );
|
617 |
+
'_child__commission_id' != $meta_key && wc_update_order_item_meta( $child_order_item_id, '_parent_' . $meta_key, '_commission_id' != $meta_key ? $meta_id : $meta_values[ $meta_id ] );
|
618 |
+
}
|
619 |
+
/* ======================== */
|
620 |
+
|
621 |
+
// Add order total
|
622 |
+
$_post['items']['_order_total'] = $order_total;
|
623 |
+
|
624 |
+
// Save order items
|
625 |
+
wc_save_order_items( $suborder_id, $_post['items'] );
|
626 |
+
}
|
627 |
+
}
|
628 |
+
|
629 |
+
else {
|
630 |
+
//is suborder
|
631 |
+
//TODO: Suborder sub-routine
|
632 |
+
}
|
633 |
+
}
|
634 |
+
}
|
635 |
+
|
636 |
+
/**
|
637 |
+
* Remove order items ajax sync
|
638 |
+
*
|
639 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
640 |
+
* @since 1.6
|
641 |
+
* @return void
|
642 |
+
* @access public static
|
643 |
+
*/
|
644 |
+
public static function remove_order_item() {
|
645 |
+
check_ajax_referer( 'order-item', 'security' );
|
646 |
+
|
647 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
648 |
+
die( - 1 );
|
649 |
+
}
|
650 |
+
|
651 |
+
$order_item_ids = $_POST['order_item_ids'];
|
652 |
+
if ( ! is_array( $order_item_ids ) && is_numeric( $order_item_ids ) ) {
|
653 |
+
$order_item_ids = array( $order_item_ids );
|
654 |
+
}
|
655 |
+
//TODO: add check order_id if ( ! wp_get_post_parent_id( $parent_order_id ) ) {
|
656 |
+
if ( sizeof( $order_item_ids ) > 0 ) {
|
657 |
+
/** @var $wpdb wpdb */
|
658 |
+
global $wpdb;
|
659 |
+
foreach ( $order_item_ids as $order_item_id ) {
|
660 |
+
$product_id = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_value FROM {$wpdb->order_itemmeta} WHERE meta_key=%s AND order_item_id=%d", '_product_id', absint( $order_item_id ) ) );
|
661 |
+
$vendor = yith_get_vendor( $product_id, 'product' );
|
662 |
+
if ( $vendor->is_valid() ) {
|
663 |
+
$child_order_item_id = self::get_line_item_id_from_parent( $order_item_id );
|
664 |
+
! empty( $child_order_item_id ) && wc_delete_order_item( absint( $child_order_item_id ) );
|
665 |
+
}
|
666 |
+
}
|
667 |
+
}
|
668 |
+
}
|
669 |
+
|
670 |
+
/**
|
671 |
+
* Add WooCommerce order notes to suborder
|
672 |
+
*
|
673 |
+
* @since 1.6
|
674 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
675 |
+
* @return void
|
676 |
+
*/
|
677 |
+
public static function add_order_note() {
|
678 |
+
|
679 |
+
check_ajax_referer( 'add-order-note', 'security' );
|
680 |
+
|
681 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
682 |
+
die( - 1 );
|
683 |
+
}
|
684 |
+
|
685 |
+
$post_id = absint( $_POST['post_id'] );
|
686 |
+
$note = wp_kses_post( trim( stripslashes( $_POST['note'] ) ) );
|
687 |
+
$note_type = $_POST['note_type'];
|
688 |
+
|
689 |
+
$is_customer_note = $note_type == 'customer' ? 1 : 0;
|
690 |
+
|
691 |
+
if ( $post_id > 0 ) {
|
692 |
+
if ( ! wp_get_post_parent_id( $post_id ) ) {
|
693 |
+
//Add the order note to parent order
|
694 |
+
$order = wc_get_order( $post_id );
|
695 |
+
$parent_note_id = $order->add_order_note( $note, $is_customer_note, true );
|
696 |
+
|
697 |
+
echo '<li rel="' . esc_attr( $parent_note_id ) . '" class="note ';
|
698 |
+
if ( $is_customer_note ) {
|
699 |
+
echo 'customer-note';
|
700 |
+
}
|
701 |
+
echo '"><div class="note_content">';
|
702 |
+
echo wpautop( wptexturize( $note ) );
|
703 |
+
echo '</div><p class="meta"><a href="#" class="delete_note">' . __( 'Delete note', 'woocommerce' ) . '</a></p>';
|
704 |
+
echo '</li>';
|
705 |
+
|
706 |
+
$suborder_ids = self::get_suborder( $post_id );
|
707 |
+
if ( ! empty( $suborder_ids ) ) {
|
708 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
709 |
+
$suborder = wc_get_order( $suborder_id );
|
710 |
+
$note_id = $suborder->add_order_note( _x( 'Website owner update: ', 'Order note', 'yith_wc_product_vendors' ) . $note, $is_customer_note, true );
|
711 |
+
add_comment_meta( $note_id, 'parent_note_id', $parent_note_id );
|
712 |
+
}
|
713 |
+
}
|
714 |
+
/**
|
715 |
+
* Call die(); to prevent WooCommerce action.
|
716 |
+
* Updated Parent and Child orders
|
717 |
+
*/
|
718 |
+
die();
|
719 |
+
}
|
720 |
+
|
721 |
+
else {
|
722 |
+
//is suborder
|
723 |
+
//TODO: Suborder sub-routine
|
724 |
+
}
|
725 |
+
}
|
726 |
+
}
|
727 |
+
|
728 |
+
/**
|
729 |
+
* Remove WooCommerce order notes to suborder
|
730 |
+
*
|
731 |
+
* @since 1.6
|
732 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
733 |
+
* @return void
|
734 |
+
*/
|
735 |
+
public static function delete_order_note() {
|
736 |
+
check_ajax_referer( 'delete-order-note', 'security' );
|
737 |
+
|
738 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
739 |
+
die( - 1 );
|
740 |
+
}
|
741 |
+
|
742 |
+
global $wpdb;
|
743 |
+
$parent_note_id = absint( $_POST['note_id'] );
|
744 |
+
$note_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_id FROM {$wpdb->commentmeta} WHERE meta_key=%s AND meta_value=%d", 'parent_note_id', $parent_note_id ) );
|
745 |
+
|
746 |
+
if ( ! empty( $note_ids ) ) {
|
747 |
+
foreach( $note_ids as $note_id ){
|
748 |
+
wp_delete_comment( $note_id );
|
749 |
+
}
|
750 |
+
}
|
751 |
+
}
|
752 |
+
|
753 |
+
/**
|
754 |
+
* Reduce order item stock
|
755 |
+
*/
|
756 |
+
public static function reduce_order_item_stock() {
|
757 |
+
self::order_item_stock( 'reduce' );
|
758 |
+
}
|
759 |
+
|
760 |
+
/**
|
761 |
+
* Increase order item stock
|
762 |
+
*/
|
763 |
+
public static function increase_order_item_stock() {
|
764 |
+
self::order_item_stock( 'increase' );
|
765 |
+
}
|
766 |
+
|
767 |
+
/**
|
768 |
+
* Reduce order item stock
|
769 |
+
*/
|
770 |
+
public static function order_item_stock( $ajax_call_type ) {
|
771 |
+
check_ajax_referer( 'order-item', 'security' );
|
772 |
+
|
773 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
774 |
+
die( - 1 );
|
775 |
+
}
|
776 |
+
|
777 |
+
$order_id = absint( $_POST['order_id'] );
|
778 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
779 |
+
$order_item_ids = isset( $_POST['order_item_ids'] ) ? $_POST['order_item_ids'] : array();
|
780 |
+
$order_item_qty = isset( $_POST['order_item_qty'] ) ? $_POST['order_item_qty'] : array();
|
781 |
+
$order = wc_get_order( $order_id );
|
782 |
+
$order_items = $order->get_items();
|
783 |
+
|
784 |
+
if ( $order && ! empty( $order_items ) && sizeof( $order_item_ids ) > 0 ) {
|
785 |
+
|
786 |
+
foreach ( $order_items as $item_id => $order_item ) {
|
787 |
+
// Only reduce checked items
|
788 |
+
if ( ! in_array( $item_id, $order_item_ids ) ) {
|
789 |
+
continue;
|
790 |
+
}
|
791 |
+
|
792 |
+
$_product = $order->get_product_from_item( $order_item );
|
793 |
+
$vendor = yith_get_vendor( $_product, 'product' );
|
794 |
+
if ( $vendor->is_valid() && $_product->exists() && $_product->managing_stock() && isset( $order_item_qty[$item_id] ) && $order_item_qty[$item_id] > 0 ) {
|
795 |
+
global $wpdb;
|
796 |
+
|
797 |
+
$old_stock = $_product->get_stock_quantity();
|
798 |
+
$child_order_item_id = self::get_line_item_id_from_parent( $item_id );
|
799 |
+
$suborder_id = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT order_id FROM {$wpdb->prefix}woocommerce_order_items WHERE order_item_id=%d", absint( $child_order_item_id ) ) );
|
800 |
+
$suborder = wc_get_order( $suborder_id );
|
801 |
+
$note = '';
|
802 |
+
if( 'reduce' == $ajax_call_type ){
|
803 |
+
$stock_change = apply_filters( 'woocommerce_reduce_order_stock_quantity', $order_item_qty[$item_id], $item_id );
|
804 |
+
$new_stock = $old_stock - $stock_change;
|
805 |
+
$note = sprintf( __( 'Item #%s stock reduced from %s to %s.', 'woocommerce' ), $order_item['product_id'], $old_stock, $new_stock );
|
806 |
+
}
|
807 |
+
|
808 |
+
elseif( 'increase' == $ajax_call_type ) {
|
809 |
+
$stock_change = apply_filters( 'woocommerce_restore_order_stock_quantity', $order_item_qty[$item_id], $item_id );
|
810 |
+
$new_stock = $old_stock + $stock_change;
|
811 |
+
$note = sprintf( __( 'Item #%s stock increased from %s to %s.', 'woocommerce' ), $order_item['product_id'], $old_stock, $new_stock );
|
812 |
+
}
|
813 |
+
|
814 |
+
! empty( $note ) && $suborder->add_order_note( $note );
|
815 |
+
}
|
816 |
+
}
|
817 |
+
}
|
818 |
+
}
|
819 |
+
|
820 |
+
else {
|
821 |
+
//is suborder
|
822 |
+
//TODO: Suborder sub-routine
|
823 |
+
}
|
824 |
+
}
|
825 |
+
|
826 |
+
/**
|
827 |
+
* Remove order item meta
|
828 |
+
*/
|
829 |
+
public static function remove_order_item_meta(){
|
830 |
+
global $wpdb;
|
831 |
+
|
832 |
+
check_ajax_referer( 'order-item', 'security' );
|
833 |
+
|
834 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
835 |
+
die( - 1 );
|
836 |
+
}
|
837 |
+
|
838 |
+
$parent_meta_id = absint( $_POST['meta_id'] );
|
839 |
+
$parent_meta_key = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_key FROM {$wpdb->order_itemmeta} WHERE meta_id=%d", $parent_meta_id ) );
|
840 |
+
$child_meta_id = $wpdb->get_var( $wpdb->prepare( "SELECT DISTINCT meta_id FROM {$wpdb->order_itemmeta} WHERE meta_value=%d AND meta_key=%s", $parent_meta_id, '_parent_' . $parent_meta_key ) );
|
841 |
+
$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->order_itemmeta} WHERE meta_key=%s AND meta_id=%d", '_parent_' . $parent_meta_key, $child_meta_id ) );
|
842 |
+
}
|
843 |
+
|
844 |
+
/**
|
845 |
+
* Add order item via ajax
|
846 |
+
*/
|
847 |
+
public static function add_order_item() {
|
848 |
+
check_ajax_referer( 'order-item', 'security' );
|
849 |
+
|
850 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
851 |
+
die( - 1 );
|
852 |
+
}
|
853 |
+
|
854 |
+
$item_to_add = sanitize_text_field( $_POST['item_to_add'] );
|
855 |
+
$order_id = absint( $_POST['order_id'] );
|
856 |
+
|
857 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
858 |
+
// Find the item
|
859 |
+
if ( ! is_numeric( $item_to_add ) ) {
|
860 |
+
die();
|
861 |
+
}
|
862 |
+
|
863 |
+
$post = get_post( $item_to_add );
|
864 |
+
|
865 |
+
if ( ! $post || ( 'product' !== $post->post_type && 'product_variation' !== $post->post_type ) ) {
|
866 |
+
die();
|
867 |
+
}
|
868 |
+
|
869 |
+
$_product = wc_get_product( $post->ID );
|
870 |
+
$order = wc_get_order( $order_id );
|
871 |
+
$order_taxes = $order->get_taxes();
|
872 |
+
$class = 'new_row';
|
873 |
+
$suborders_id = 0;
|
874 |
+
|
875 |
+
$vendor = yith_get_vendor( $item_to_add, 'product' );
|
876 |
+
|
877 |
+
if ( $vendor->is_valid() ) {
|
878 |
+
$vendor_suborder_id = $vendor->get_orders( 'suborder' );
|
879 |
+
$suborders_ids = self::get_suborder( $order_id );
|
880 |
+
$suborder_id = array_intersect( $vendor_suborder_id, $suborders_ids );
|
881 |
+
|
882 |
+
if ( is_array( $suborder_id ) && count( $suborder_id ) == 1 ) {
|
883 |
+
$suborder_id = array_shift( $suborder_id );
|
884 |
+
}
|
885 |
+
}
|
886 |
+
|
887 |
+
// Set values
|
888 |
+
$item = array();
|
889 |
+
$item_ids = array();
|
890 |
+
|
891 |
+
$item['product_id'] = $_product->id;
|
892 |
+
$item['variation_id'] = isset( $_product->variation_id ) ? $_product->variation_id : '';
|
893 |
+
$item['variation_data'] = $item['variation_id'] ? $_product->get_variation_attributes() : '';
|
894 |
+
$item['name'] = $_product->get_title();
|
895 |
+
$item['tax_class'] = $_product->get_tax_class();
|
896 |
+
$item['qty'] = 1;
|
897 |
+
$item['line_subtotal'] = wc_format_decimal( $_product->get_price_excluding_tax() );
|
898 |
+
$item['line_subtotal_tax'] = '';
|
899 |
+
$item['line_total'] = wc_format_decimal( $_product->get_price_excluding_tax() );
|
900 |
+
$item['line_tax'] = '';
|
901 |
+
$item['type'] = 'line_item';
|
902 |
+
|
903 |
+
// Add line item
|
904 |
+
|
905 |
+
foreach ( array( 'parent_id' => $order_id, 'child_id' => $suborder_id ) as $type => $id ) {
|
906 |
+
$item_ids[$type] = wc_add_order_item( $id, array(
|
907 |
+
'order_item_name' => $item['name'],
|
908 |
+
'order_item_type' => 'line_item'
|
909 |
+
) );
|
910 |
+
}
|
911 |
+
|
912 |
+
wc_add_order_item_meta( $item_ids['child_id'], '_parent_line_item_id', $item_ids['parent_id'] );
|
913 |
+
|
914 |
+
foreach ( $item_ids as $key => $item_id ) {
|
915 |
+
// Add line item meta
|
916 |
+
if ( $item_id ) {
|
917 |
+
wc_add_order_item_meta( $item_id, '_qty', $item['qty'] );
|
918 |
+
wc_add_order_item_meta( $item_id, '_tax_class', $item['tax_class'] );
|
919 |
+
wc_add_order_item_meta( $item_id, '_product_id', $item['product_id'] );
|
920 |
+
wc_add_order_item_meta( $item_id, '_variation_id', $item['variation_id'] );
|
921 |
+
wc_add_order_item_meta( $item_id, '_line_subtotal', $item['line_subtotal'] );
|
922 |
+
wc_add_order_item_meta( $item_id, '_line_subtotal_tax', $item['line_subtotal_tax'] );
|
923 |
+
wc_add_order_item_meta( $item_id, '_line_total', $item['line_total'] );
|
924 |
+
wc_add_order_item_meta( $item_id, '_line_tax', $item['line_tax'] );
|
925 |
+
|
926 |
+
// Since 2.2
|
927 |
+
wc_add_order_item_meta( $item_id, '_line_tax_data', array( 'total' => array(), 'subtotal' => array() ) );
|
928 |
+
|
929 |
+
// Store variation data in meta
|
930 |
+
if ( $item['variation_data'] && is_array( $item['variation_data'] ) ) {
|
931 |
+
foreach ( $item['variation_data'] as $key => $value ) {
|
932 |
+
wc_add_order_item_meta( $item_id, str_replace( 'attribute_', '', $key ), $value );
|
933 |
+
}
|
934 |
+
}
|
935 |
+
|
936 |
+
do_action( 'woocommerce_ajax_add_order_item_meta', $item_id, $item );
|
937 |
+
}
|
938 |
+
}
|
939 |
+
|
940 |
+
$item['item_meta'] = $order->get_item_meta( $item_ids['parent_id'] );
|
941 |
+
$item['item_meta_array'] = $order->get_item_meta_array( $item_ids['parent_id'] );
|
942 |
+
$item = $order->expand_item_meta( $item );
|
943 |
+
$item = apply_filters( 'woocommerce_ajax_order_item', $item, $item_ids['parent_id'] );
|
944 |
+
|
945 |
+
/**
|
946 |
+
* WooCommerce Template Hack:
|
947 |
+
* Copy the parent item id into the variable $item_id
|
948 |
+
*/
|
949 |
+
$item_id = $item_ids['parent_id'];
|
950 |
+
include( WC()->plugin_path() . '/includes/admin/meta-boxes/views/html-order-item.php' );
|
951 |
+
|
952 |
+
/**
|
953 |
+
* Prevent call default WooCommerce add_order_item() method
|
954 |
+
*/
|
955 |
+
die();
|
956 |
+
}
|
957 |
+
|
958 |
+
else {
|
959 |
+
//is suborder
|
960 |
+
//TODO: Suborder sub-routine
|
961 |
+
}
|
962 |
+
}
|
963 |
+
|
964 |
+
/**
|
965 |
+
* Add commission id from parent to child order
|
966 |
+
*/
|
967 |
+
public function register_commission_to_parent_order( $commission_id, $child_item_id, $key, $suborder ){
|
968 |
+
// add line item to retrieve simply the commission associated (child order)
|
969 |
+
$parent_item_id = self::get_parent_item_id( $suborder, $child_item_id );
|
970 |
+
! empty( $parent_item_id ) && wc_add_order_item_meta( $parent_item_id, '_child_' . $key, $commission_id );
|
971 |
+
}
|
972 |
+
|
973 |
+
/**
|
974 |
+
* Add order tax column via ajax
|
975 |
+
*/
|
976 |
+
public static function add_order_tax() {
|
977 |
+
check_ajax_referer( 'order-item', 'security' );
|
978 |
+
|
979 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
980 |
+
die( - 1 );
|
981 |
+
}
|
982 |
+
|
983 |
+
$order_id = absint( $_POST['order_id'] );
|
984 |
+
|
985 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
986 |
+
$rate_id = absint( $_POST['rate_id'] );
|
987 |
+
$suborder_ids = self::get_suborder( $order_id );
|
988 |
+
|
989 |
+
foreach( $suborder_ids as $suborder_id ){
|
990 |
+
$suborder = ! empty( $suborder_id ) ? wc_get_order( absint( $suborder_id ) ) : false;
|
991 |
+
$suborder && $suborder->add_tax( $rate_id, 0, 0 );
|
992 |
+
}
|
993 |
+
}
|
994 |
+
|
995 |
+
else {
|
996 |
+
//is suborder
|
997 |
+
//TODO: Suborder sub-routine
|
998 |
+
}
|
999 |
+
}
|
1000 |
+
|
1001 |
+
/**
|
1002 |
+
* Calc line tax
|
1003 |
+
*/
|
1004 |
+
public static function calc_line_taxes() {
|
1005 |
+
check_ajax_referer( 'calc-totals', 'security' );
|
1006 |
+
|
1007 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
1008 |
+
die( - 1 );
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
$order_id = absint( $_POST['order_id'] );
|
1012 |
+
|
1013 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
1014 |
+
$_post = $_POST;
|
1015 |
+
$suborder_ids = self::get_suborder( $order_id );
|
1016 |
+
|
1017 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
1018 |
+
self::add_line_taxes( $suborder_id );
|
1019 |
+
}
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
else {
|
1023 |
+
//is suborder
|
1024 |
+
//TODO: Suborder sub-routine
|
1025 |
+
}
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
public static function add_line_taxes( $order_id ) {
|
1029 |
+
global $wpdb;
|
1030 |
+
|
1031 |
+
check_ajax_referer( 'calc-totals', 'security' );
|
1032 |
+
|
1033 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
1034 |
+
die( - 1 );
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
$tax = new WC_Tax();
|
1038 |
+
$items = array();
|
1039 |
+
$country = strtoupper( esc_attr( $_POST['country'] ) );
|
1040 |
+
$state = strtoupper( esc_attr( $_POST['state'] ) );
|
1041 |
+
$postcode = strtoupper( esc_attr( $_POST['postcode'] ) );
|
1042 |
+
$city = wc_clean( esc_attr( $_POST['city'] ) );
|
1043 |
+
$order = wc_get_order( absint( $order_id ) );
|
1044 |
+
$taxes = array();
|
1045 |
+
$shipping_taxes = array();
|
1046 |
+
|
1047 |
+
// Parse the jQuery serialized items
|
1048 |
+
parse_str( $_POST['items'], $items );
|
1049 |
+
|
1050 |
+
// Prevent undefined warnings
|
1051 |
+
if ( ! isset( $items['line_tax'] ) ) {
|
1052 |
+
$items['line_tax'] = array();
|
1053 |
+
}
|
1054 |
+
|
1055 |
+
if ( ! isset( $items['line_subtotal_tax'] ) ) {
|
1056 |
+
$items['line_subtotal_tax'] = array();
|
1057 |
+
}
|
1058 |
+
|
1059 |
+
$items['order_taxes'] = array();
|
1060 |
+
|
1061 |
+
// Action
|
1062 |
+
$items = apply_filters( 'woocommerce_ajax_calc_line_taxes', $items, $order_id, $country, $_POST );
|
1063 |
+
|
1064 |
+
// Get items and fees taxes
|
1065 |
+
if ( isset( $items['order_item_id'] ) ) {
|
1066 |
+
$line_total = $line_subtotal = $order_item_tax_class = array();
|
1067 |
+
foreach ( $items['order_item_id'] as $parent_item_id ) {
|
1068 |
+
$parent_item_id = absint( $parent_item_id );
|
1069 |
+
$item_id = self::get_child_item_id( $parent_item_id );
|
1070 |
+
|
1071 |
+
if( empty( $item_id ) ){
|
1072 |
+
//no current suborder items
|
1073 |
+
continue;
|
1074 |
+
}
|
1075 |
+
|
1076 |
+
$line_total[$item_id] = isset( $items['line_total'][$parent_item_id] ) ? wc_format_decimal( $items['line_total'][$parent_item_id] ) : 0;
|
1077 |
+
$line_subtotal[$item_id] = isset( $items['line_subtotal'][$parent_item_id] ) ? wc_format_decimal( $items['line_subtotal'][$parent_item_id] ) : $line_total[$parent_item_id];
|
1078 |
+
$order_item_tax_class[$item_id] = isset( $items['order_item_tax_class'][$parent_item_id] ) ? sanitize_text_field( $items['order_item_tax_class'][$parent_item_id] ) : '';
|
1079 |
+
$product_id = $order->get_item_meta( $item_id, '_product_id', true );
|
1080 |
+
|
1081 |
+
$vendor = yith_get_vendor( $product_id, 'product' );
|
1082 |
+
|
1083 |
+
if( ! $vendor->is_valid() ){
|
1084 |
+
// no vnedor products
|
1085 |
+
continue;
|
1086 |
+
}
|
1087 |
+
|
1088 |
+
$vendor_order_ids = $vendor->get_orders( 'suborder' );
|
1089 |
+
|
1090 |
+
if( ! in_array( $order_id, $vendor_order_ids ) ){
|
1091 |
+
// the current product isn't in the current suborder
|
1092 |
+
continue;
|
1093 |
+
}
|
1094 |
+
|
1095 |
+
// Get product details
|
1096 |
+
if ( get_post_type( $product_id ) == 'product' ) {
|
1097 |
+
$_product = wc_get_product( $product_id );
|
1098 |
+
$item_tax_status = $_product->get_tax_status();
|
1099 |
+
}
|
1100 |
+
else {
|
1101 |
+
$item_tax_status = 'taxable';
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
if ( '0' !== $order_item_tax_class[$item_id] && 'taxable' === $item_tax_status ) {
|
1105 |
+
$tax_rates = WC_Tax::find_rates( array(
|
1106 |
+
'country' => $country,
|
1107 |
+
'state' => $state,
|
1108 |
+
'postcode' => $postcode,
|
1109 |
+
'city' => $city,
|
1110 |
+
'tax_class' => $order_item_tax_class[$item_id]
|
1111 |
+
) );
|
1112 |
+
|
1113 |
+
$line_taxes = WC_Tax::calc_tax( $line_total[$item_id], $tax_rates, false );
|
1114 |
+
$line_subtotal_taxes = WC_Tax::calc_tax( $line_subtotal[$item_id], $tax_rates, false );
|
1115 |
+
|
1116 |
+
// Set the new line_tax
|
1117 |
+
foreach ( $line_taxes as $_tax_id => $_tax_value ) {
|
1118 |
+
$items['line_tax'][$item_id][$_tax_id] = $_tax_value;
|
1119 |
+
}
|
1120 |
+
|
1121 |
+
// Set the new line_subtotal_tax
|
1122 |
+
foreach ( $line_subtotal_taxes as $_tax_id => $_tax_value ) {
|
1123 |
+
$items['line_subtotal_tax'][$item_id][$_tax_id] = $_tax_value;
|
1124 |
+
}
|
1125 |
+
|
1126 |
+
// Sum the item taxes
|
1127 |
+
foreach ( array_keys( $taxes + $line_taxes ) as $key ) {
|
1128 |
+
$taxes[$key] = ( isset( $line_taxes[$key] ) ? $line_taxes[$key] : 0 ) + ( isset( $taxes[$key] ) ? $taxes[$key] : 0 );
|
1129 |
+
}
|
1130 |
+
}
|
1131 |
+
}
|
1132 |
+
}
|
1133 |
+
|
1134 |
+
// Get shipping taxes
|
1135 |
+
if ( isset( $items['shipping_method_id'] ) ) {
|
1136 |
+
$matched_tax_rates = array();
|
1137 |
+
|
1138 |
+
$tax_rates = WC_Tax::find_rates( array(
|
1139 |
+
'country' => $country,
|
1140 |
+
'state' => $state,
|
1141 |
+
'postcode' => $postcode,
|
1142 |
+
'city' => $city,
|
1143 |
+
'tax_class' => ''
|
1144 |
+
) );
|
1145 |
+
|
1146 |
+
if ( $tax_rates ) {
|
1147 |
+
foreach ( $tax_rates as $key => $rate ) {
|
1148 |
+
if ( isset( $rate['shipping'] ) && 'yes' == $rate['shipping'] ) {
|
1149 |
+
$matched_tax_rates[$key] = $rate;
|
1150 |
+
}
|
1151 |
+
}
|
1152 |
+
}
|
1153 |
+
|
1154 |
+
$shipping_cost = $shipping_taxes = array();
|
1155 |
+
|
1156 |
+
foreach ( $items['shipping_method_id'] as $item_id ) {
|
1157 |
+
$item_id = absint( $item_id );
|
1158 |
+
$shipping_cost[$item_id] = isset( $items['shipping_cost'][$parent_item_id] ) ? wc_format_decimal( $items['shipping_cost'][$parent_item_id] ) : 0;
|
1159 |
+
$_shipping_taxes = WC_Tax::calc_shipping_tax( $shipping_cost[$item_id], $matched_tax_rates );
|
1160 |
+
|
1161 |
+
// Set the new shipping_taxes
|
1162 |
+
foreach ( $_shipping_taxes as $_tax_id => $_tax_value ) {
|
1163 |
+
$items['shipping_taxes'][$item_id][$_tax_id] = $_tax_value;
|
1164 |
+
|
1165 |
+
$shipping_taxes[$_tax_id] = isset( $shipping_taxes[$_tax_id] ) ? $shipping_taxes[$_tax_id] + $_tax_value : $_tax_value;
|
1166 |
+
}
|
1167 |
+
}
|
1168 |
+
}
|
1169 |
+
|
1170 |
+
// Remove old tax rows
|
1171 |
+
$order->remove_order_items( 'tax' );
|
1172 |
+
|
1173 |
+
// Add tax rows
|
1174 |
+
foreach ( array_keys( $taxes + $shipping_taxes ) as $tax_rate_id ) {
|
1175 |
+
$order->add_tax( $tax_rate_id, isset( $taxes[$tax_rate_id] ) ? $taxes[$tax_rate_id] : 0, isset( $shipping_taxes[$tax_rate_id] ) ? $shipping_taxes[$tax_rate_id] : 0 );
|
1176 |
+
}
|
1177 |
+
|
1178 |
+
// Create the new order_taxes
|
1179 |
+
foreach ( $order->get_taxes() as $tax_id => $tax_item ) {
|
1180 |
+
$items['order_taxes'][$tax_id] = absint( $tax_item['rate_id'] );
|
1181 |
+
}
|
1182 |
+
|
1183 |
+
foreach ( $items as $meta_key => $meta_values ) {
|
1184 |
+
if ( is_array( $meta_values ) ) {
|
1185 |
+
foreach ( $meta_values as $key => $meta_value ) {
|
1186 |
+
if ( 'order_taxes' == $meta_key ) {
|
1187 |
+
continue;
|
1188 |
+
}
|
1189 |
+
|
1190 |
+
else if ( 'order_item_id' == $meta_key ) {
|
1191 |
+
$child_item_id = self::get_child_item_id( $meta_value );
|
1192 |
+
if ( $child_item_id ) {
|
1193 |
+
$items[$meta_key][$key] = $child_item_id;
|
1194 |
+
}
|
1195 |
+
|
1196 |
+
else {
|
1197 |
+
unset( $items[$meta_key][$key] );
|
1198 |
+
}
|
1199 |
+
}
|
1200 |
+
|
1201 |
+
else if ( 'meta_key' == $meta_key || 'meta_value' == $meta_key ) {
|
1202 |
+
unset( $items[$meta_key][$key] );
|
1203 |
+
}
|
1204 |
+
|
1205 |
+
else {
|
1206 |
+
if ( 'line_tax' == $meta_key || 'line_subtotal_tax' == $meta_key || 'refund_line_tax' == $meta_key ) {
|
1207 |
+
$line_tax_ids = $items[$meta_key];
|
1208 |
+
$child_item_ids = array_keys( $order->get_items() );
|
1209 |
+
foreach ( $line_tax_ids as $line_tax_id => $line_tax_value ) {
|
1210 |
+
if ( ! in_array( $line_tax_id, $child_item_ids ) ) {
|
1211 |
+
unset( $items[$meta_key][$line_tax_id] );
|
1212 |
+
}
|
1213 |
+
}
|
1214 |
+
}
|
1215 |
+
|
1216 |
+
else {
|
1217 |
+
$child_item_id = self::get_child_item_id( $meta_value );
|
1218 |
+
if ( $child_item_id ) {
|
1219 |
+
$items[$meta_key][$child_item_id] = $items[$meta_key][$key];
|
1220 |
+
unset( $items[$meta_key][$key] );
|
1221 |
+
}
|
1222 |
+
}
|
1223 |
+
}
|
1224 |
+
}
|
1225 |
+
}
|
1226 |
+
|
1227 |
+
else if ( '_order_total' == $meta_key ) {
|
1228 |
+
$items['_order_total'] = $order->get_total();
|
1229 |
+
}
|
1230 |
+
}
|
1231 |
+
|
1232 |
+
if( ! empty( $items['order_item_id'] ) ) {
|
1233 |
+
wc_save_order_items( $order_id, $items );
|
1234 |
+
}
|
1235 |
+
}
|
1236 |
+
|
1237 |
+
/**
|
1238 |
+
* Remove an order tax
|
1239 |
+
*/
|
1240 |
+
public static function remove_order_tax() {
|
1241 |
+
|
1242 |
+
check_ajax_referer( 'order-item', 'security' );
|
1243 |
+
|
1244 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
1245 |
+
die( - 1 );
|
1246 |
+
}
|
1247 |
+
|
1248 |
+
$order_id = absint( $_POST['order_id'] );
|
1249 |
+
|
1250 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
1251 |
+
$rate_id = absint( $_POST['rate_id'] );
|
1252 |
+
$parent_order = wc_get_order( $order_id );
|
1253 |
+
$parent_taxes = $parent_order->get_taxes();
|
1254 |
+
$suborder_ids = self::get_suborder( $order_id );
|
1255 |
+
$parent_tax_to_remove = $parent_taxes[ $rate_id ];
|
1256 |
+
|
1257 |
+
foreach( $suborder_ids as $suborder_id ){
|
1258 |
+
$suborder = wc_get_order( $suborder_id );
|
1259 |
+
$suborder_taxes = $suborder->get_taxes();
|
1260 |
+
foreach( $suborder_taxes as $suborder_tax_key => $suborder_tax_item ){
|
1261 |
+
$suborder_tax_item['rate_id'] == $parent_tax_to_remove['rate_id']
|
1262 |
+
&&
|
1263 |
+
$suborder_tax_item['name'] == $parent_tax_to_remove['name']
|
1264 |
+
&&
|
1265 |
+
$suborder_tax_item['label'] == $parent_tax_to_remove['label']
|
1266 |
+
&&
|
1267 |
+
wc_delete_order_item( $suborder_tax_key );
|
1268 |
+
}
|
1269 |
+
}
|
1270 |
+
}
|
1271 |
+
|
1272 |
+
else {
|
1273 |
+
//is suborder
|
1274 |
+
//TODO: Suborder sub-routine
|
1275 |
+
}
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
/**
|
1279 |
+
* Check for new order email
|
1280 |
+
*/
|
1281 |
+
public function woocommerce_email_enabled_new_order( $enabled, $object ){
|
1282 |
+
return $enabled && is_a( $object, 'WC_Order' ) && wp_get_post_parent_id( $object->id ) != 0 ? false: $enabled;
|
1283 |
+
}
|
1284 |
+
|
1285 |
+
/**
|
1286 |
+
* Handle a refund via the edit order screen.
|
1287 |
+
* Called after wp_ajax_woocommerce_refund_line_items action
|
1288 |
+
*
|
1289 |
+
* @use woocommerce_order_refunded action
|
1290 |
+
* @see woocommerce\includes\class-wc-ajax.php:2295
|
1291 |
+
*/
|
1292 |
+
public function order_refunded( $order_id, $parent_refund_id ) {
|
1293 |
+
|
1294 |
+
if ( ! wp_get_post_parent_id( $order_id ) ) {
|
1295 |
+
$create_refund = true;
|
1296 |
+
$refund = false;
|
1297 |
+
$parent_line_item_refund = 0;
|
1298 |
+
$refund_amount = wc_format_decimal( sanitize_text_field( $_POST['refund_amount'] ) );
|
1299 |
+
$refund_reason = sanitize_text_field($_POST['refund_reason']);
|
1300 |
+
$line_item_qtys = json_decode(sanitize_text_field(stripslashes($_POST['line_item_qtys'])), true);
|
1301 |
+
$line_item_totals = json_decode(sanitize_text_field(stripslashes($_POST['line_item_totals'])), true);
|
1302 |
+
$line_item_tax_totals = json_decode(sanitize_text_field(stripslashes($_POST['line_item_tax_totals'])), true);
|
1303 |
+
$api_refund = $_POST['api_refund'] === 'true' ? true : false;
|
1304 |
+
$restock_refunded_items = $_POST['restock_refunded_items'] === 'true' ? true : false;
|
1305 |
+
$order = wc_get_order( $order_id );
|
1306 |
+
$parent_order_total = wc_format_decimal( $order->get_total() );
|
1307 |
+
$suborder_ids = self::get_suborder( $order_id );
|
1308 |
+
|
1309 |
+
//calculate line items total from parent order
|
1310 |
+
foreach ($line_item_totals as $item_id => $total) {
|
1311 |
+
$parent_line_item_refund += wc_format_decimal($total);
|
1312 |
+
}
|
1313 |
+
|
1314 |
+
foreach( $suborder_ids as $suborder_id ){
|
1315 |
+
$suborder = wc_get_order( $suborder_id );
|
1316 |
+
$suborder_items_ids = array_keys( $suborder->get_items() );
|
1317 |
+
$suborder_total = wc_format_decimal( $suborder->get_total() );
|
1318 |
+
$max_refund = wc_format_decimal($suborder_total - $suborder->get_total_refunded());
|
1319 |
+
$child_line_item_refund = 0;
|
1320 |
+
|
1321 |
+
// Prepare line items which we are refunding
|
1322 |
+
$line_items = array();
|
1323 |
+
$item_ids = array_unique(array_merge(array_keys($line_item_qtys, $line_item_totals)));
|
1324 |
+
|
1325 |
+
foreach ($item_ids as $item_id) {
|
1326 |
+
$child_item_id = self::get_child_item_id( $item_id );
|
1327 |
+
if( $child_item_id && in_array( $child_item_id, $suborder_items_ids ) ){
|
1328 |
+
$line_items[$child_item_id] = array('qty' => 0, 'refund_total' => 0, 'refund_tax' => array());
|
1329 |
+
}
|
1330 |
+
}
|
1331 |
+
|
1332 |
+
foreach ($line_item_qtys as $item_id => $qty) {
|
1333 |
+
$child_item_id = self::get_child_item_id( $item_id );
|
1334 |
+
if( $child_item_id && in_array( $child_item_id, $suborder_items_ids ) ){
|
1335 |
+
$line_items[$child_item_id]['qty'] = max($qty, 0);
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
|
1339 |
+
foreach ($line_item_totals as $item_id => $total) {
|
1340 |
+
$child_item_id = self::get_child_item_id( $item_id );
|
1341 |
+
if( $child_item_id && in_array( $child_item_id, $suborder_items_ids ) ){
|
1342 |
+
$total = wc_format_decimal( $total );
|
1343 |
+
$child_line_item_refund += $total;
|
1344 |
+
$line_items[$child_item_id]['refund_total'] = $total;
|
1345 |
+
}
|
1346 |
+
}
|
1347 |
+
|
1348 |
+
foreach ($line_item_tax_totals as $item_id => $tax_totals) {
|
1349 |
+
$child_item_id = self::get_child_item_id( $item_id );
|
1350 |
+
if( $child_item_id && in_array( $child_item_id, $suborder_items_ids ) ){
|
1351 |
+
$line_items[$child_item_id]['refund_tax'] = array_map('wc_format_decimal', $tax_totals);
|
1352 |
+
}
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
//calculate refund amount percentage
|
1356 |
+
$suborder_refund_amount = ( ( ( $refund_amount - $parent_line_item_refund ) * $suborder_total ) / $parent_order_total );
|
1357 |
+
$suborder_total_refund = wc_format_decimal($child_line_item_refund + $suborder_refund_amount) ;
|
1358 |
+
|
1359 |
+
if ( ! $refund_amount || $max_refund < $suborder_total_refund || 0 > $suborder_total_refund) {
|
1360 |
+
/**
|
1361 |
+
* Invalid refund amount.
|
1362 |
+
* Check if suborder total != 0 create a partial refund, exit otherwise
|
1363 |
+
*/
|
1364 |
+
$surplus = wc_format_decimal( $suborder_total_refund - $max_refund );
|
1365 |
+
$suborder_total_refund = $suborder_total_refund - $surplus;
|
1366 |
+
$create_refund = $suborder_total_refund > 0 ? true : false;
|
1367 |
+
}
|
1368 |
+
|
1369 |
+
if( $create_refund ) {
|
1370 |
+
// Create the refund object
|
1371 |
+
$refund = wc_create_refund(array(
|
1372 |
+
'amount' => $suborder_total_refund,
|
1373 |
+
'reason' => $refund_reason,
|
1374 |
+
'order_id' => $suborder->id,
|
1375 |
+
'line_items' => $line_items
|
1376 |
+
)
|
1377 |
+
);
|
1378 |
+
|
1379 |
+
add_post_meta( $refund->id, '_parent_refund_id', $parent_refund_id );
|
1380 |
+
}
|
1381 |
+
}
|
1382 |
+
}
|
1383 |
+
|
1384 |
+
else{
|
1385 |
+
//is suborder
|
1386 |
+
//TODO: Suborder sub-routine
|
1387 |
+
}
|
1388 |
+
}
|
1389 |
+
|
1390 |
+
/**
|
1391 |
+
* Handle a refund via the edit order screen.
|
1392 |
+
* Called after wp_ajax_woocommerce_delete_refund action
|
1393 |
+
*
|
1394 |
+
* @use woocommerce_refund_deleted action
|
1395 |
+
* @see woocommerce\includes\class-wc-ajax.php:2328
|
1396 |
+
*/
|
1397 |
+
public static function refund_deleted( $refund_id, $parent_order_id ) {
|
1398 |
+
check_ajax_referer( 'order-item', 'security' );
|
1399 |
+
|
1400 |
+
if ( ! current_user_can( 'edit_shop_orders' ) ) {
|
1401 |
+
die(-1);
|
1402 |
+
}
|
1403 |
+
|
1404 |
+
if ( ! wp_get_post_parent_id( $parent_order_id ) ) {
|
1405 |
+
global $wpdb;
|
1406 |
+
$child_refund_ids = $wpdb->get_col( $wpdb->prepare( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key=%s AND meta_value=%s", '_parent_refund_id', $refund_id ) );
|
1407 |
+
|
1408 |
+
foreach( $child_refund_ids as $child_refund_id ){
|
1409 |
+
if ( $child_refund_id && 'shop_order_refund' === get_post_type( $child_refund_id ) ) {
|
1410 |
+
$order_id = wp_get_post_parent_id( $child_refund_id );
|
1411 |
+
wc_delete_shop_order_transients( $order_id );
|
1412 |
+
wp_delete_post( $child_refund_id );
|
1413 |
+
}
|
1414 |
+
}
|
1415 |
+
}
|
1416 |
+
|
1417 |
+
else{
|
1418 |
+
//is suborder
|
1419 |
+
//TODO: Suborder sub-routine
|
1420 |
+
}
|
1421 |
+
}
|
1422 |
+
|
1423 |
+
/**
|
1424 |
+
* Change commission label value
|
1425 |
+
*
|
1426 |
+
* @param $attribute_label The Label Value
|
1427 |
+
* @param $meta_key The Meta Key value
|
1428 |
+
* @param bool|\The $product The Product object
|
1429 |
+
*
|
1430 |
+
* @return string The label value
|
1431 |
+
*/
|
1432 |
+
public function commissions_attribute_label( $attribute_label, $meta_key, $product = false ) {
|
1433 |
+
global $pagenow;
|
1434 |
+
|
1435 |
+
if ( $product && 'post.php' == $pagenow && isset( $_GET['post'] ) && $order = wc_get_order( $_GET['post'] ) ) {
|
1436 |
+
$line_items = $order->get_items( 'line_item' );
|
1437 |
+
$item_meta_key = wp_get_post_parent_id( $order->id ) ? '_commission_id' : '_child__commission_id';
|
1438 |
+
foreach ( $line_items as $line_item_id => $line_item ) {
|
1439 |
+
if ( $line_item['product_id'] == $product->id ) {
|
1440 |
+
$commission_id = wc_get_order_item_meta( $line_item_id, $item_meta_key, true );
|
1441 |
+
$admin_url = YITH_Commission( $commission_id )->get_view_url( 'admin' );
|
1442 |
+
$attribute_label = $item_meta_key == $meta_key ? sprintf( "<a href='%s' class='%s'>" . __( 'commission_id', 'yith_wc_product_vendors' ) . '</a>', $admin_url, 'commission-id-label' ) : $attribute_label;
|
1443 |
+
}
|
1444 |
+
}
|
1445 |
+
}
|
1446 |
+
return $attribute_label;
|
1447 |
+
}
|
1448 |
+
|
1449 |
+
/**
|
1450 |
+
* Filter the edit order page for vendors
|
1451 |
+
*
|
1452 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1453 |
+
* @since 1.6
|
1454 |
+
* @param $check
|
1455 |
+
* @return bool
|
1456 |
+
*/
|
1457 |
+
public function vendor_single_order_page( $check ){
|
1458 |
+
global $theorder;
|
1459 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1460 |
+
$is_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
|
1461 |
+
$is_order_details = is_admin() && ! $is_ajax && 'shop_order' == get_current_screen()->id;
|
1462 |
+
|
1463 |
+
if( ( $vendor->is_valid() || ( $vendor->is_super_user() && is_object( $theorder ) && wp_get_post_parent_id( $theorder->id ) ) ) && $is_order_details && 'wc_order_is_editable' == current_filter() ){
|
1464 |
+
$check = false;
|
1465 |
+
}
|
1466 |
+
return $check;
|
1467 |
+
}
|
1468 |
+
/**
|
1469 |
+
* Filters meta to hide, to add to the list item order meta added by author class
|
1470 |
+
*
|
1471 |
+
* @param $to_hidden Array of order_item_meta meta_key to hide
|
1472 |
+
*
|
1473 |
+
* @return array New array of order item meta to hide
|
1474 |
+
* @since 1.0
|
1475 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1476 |
+
*/
|
1477 |
+
public function hidden_order_itemmeta( $to_hidden ) {
|
1478 |
+
if( ! defined( 'WP_DEBUG' ) ){
|
1479 |
+
$to_hidden[] = '_parent_line_item_id';
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
if ( ! apply_filters( 'yith_show_commissions_order_item_meta', YITH_Commissions()->show_order_item_meta ) ) {
|
1483 |
+
$to_hidden[] = '_commission_id';
|
1484 |
+
$to_hidden[] = '_parent__commission_id';
|
1485 |
+
}
|
1486 |
+
|
1487 |
+
return $to_hidden;
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
/**
|
1491 |
+
* Add and reorder order table column
|
1492 |
+
*
|
1493 |
+
* @param $order_columns The order table column
|
1494 |
+
*
|
1495 |
+
* @return string The label value
|
1496 |
+
*/
|
1497 |
+
public function shop_order_columns( $order_columns ) {
|
1498 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1499 |
+
if ( $vendor->is_super_user() ) {
|
1500 |
+
$suborder = array( 'suborder' => _x( 'Suborders', 'Admin: Order table column', 'yith_wc_product_vendors' ) );
|
1501 |
+
$ref_pos = array_search( 'order_title', array_keys( $order_columns ) );
|
1502 |
+
$order_columns = array_slice( $order_columns, 0, $ref_pos + 1, true ) + $suborder + array_slice( $order_columns, $ref_pos + 1, count( $order_columns ) - 1, true );
|
1503 |
+
}
|
1504 |
+
return $order_columns;
|
1505 |
+
}
|
1506 |
+
|
1507 |
+
/**
|
1508 |
+
* Output custom columns for coupons
|
1509 |
+
*
|
1510 |
+
* @param string $column
|
1511 |
+
*/
|
1512 |
+
public function render_shop_order_columns( $column ) {
|
1513 |
+
global $post, $the_order;
|
1514 |
+
|
1515 |
+
if ( empty( $the_order ) || $the_order->id != $post->ID ) {
|
1516 |
+
$_the_order = wc_get_order( $post->ID );
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
else {
|
1520 |
+
$_the_order = $the_order;
|
1521 |
+
}
|
1522 |
+
|
1523 |
+
switch ( $column ) {
|
1524 |
+
case 'suborder' :
|
1525 |
+
$suborder_ids = self::get_suborder( $the_order->id );
|
1526 |
+
|
1527 |
+
if ( $suborder_ids ) {
|
1528 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
1529 |
+
$suborder = wc_get_order( $suborder_id );
|
1530 |
+
$vendor = yith_get_vendor( $suborder->post->post_author, 'user' );
|
1531 |
+
$order_uri = esc_url( 'post.php?post=' . absint( $suborder_id ) . '&action=edit' );
|
1532 |
+
|
1533 |
+
printf( '<mark class="%s tips" data-tip="%s">%s</mark> <strong><a href="%s">#%s</a></strong> <small class="yith-wcmv-suborder-owner">(%s %s)</small><br/>',
|
1534 |
+
sanitize_title( $suborder->get_status() ),
|
1535 |
+
wc_get_order_status_name( $suborder->get_status() ),
|
1536 |
+
wc_get_order_status_name( $suborder->get_status() ),
|
1537 |
+
$order_uri,
|
1538 |
+
$suborder_id,
|
1539 |
+
__( 'in', 'Order table details', 'yith_wc_product_vendors' ),
|
1540 |
+
$vendor->name
|
1541 |
+
);
|
1542 |
+
}
|
1543 |
+
}
|
1544 |
+
|
1545 |
+
else {
|
1546 |
+
echo '<span class="na">–</span>';
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
break;
|
1550 |
+
}
|
1551 |
+
}
|
1552 |
+
|
1553 |
+
/**
|
1554 |
+
* Add suborder metaboxes for Vendors order
|
1555 |
+
*
|
1556 |
+
* @return void
|
1557 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1558 |
+
*/
|
1559 |
+
public function add_meta_boxes() {
|
1560 |
+
global $post;
|
1561 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1562 |
+
$has_suborder = self::get_suborder( absint( $post->ID ) );
|
1563 |
+
$is_suborder = wp_get_post_parent_id( absint( $post->ID ) );
|
1564 |
+
|
1565 |
+
if( $vendor->is_super_user() ){
|
1566 |
+
if( $has_suborder ){
|
1567 |
+
$metabox_suborder_description = _x( 'Suborders', 'Admin: Single order page. Suborder details box', 'yith_wc_product_vendors' ) . ' <span class="tips" data-tip="' . esc_attr__( 'Note: from this box you can monitor the status of suborders associated to individual vendors.', 'woocommerce' ) . '">[?]</span>';
|
1568 |
+
add_meta_box( 'woocommerce-suborders', $metabox_suborder_description, array( $this, 'output' ), 'shop_order', 'side', 'core', array( 'metabox' => 'suborders' ) );
|
1569 |
+
}
|
1570 |
+
|
1571 |
+
else if( $is_suborder ){
|
1572 |
+
$metabox_parent_order_description = _x( 'Parent order', 'Admin: Single order page. Parent order details box', 'yith_wc_product_vendors' );
|
1573 |
+
add_meta_box( 'woocommerce-parent-order', $metabox_parent_order_description, array( $this, 'output' ), 'shop_order', 'side', 'high', array( 'metabox' => 'parent-order' ) );
|
1574 |
+
}
|
1575 |
+
}
|
1576 |
+
}
|
1577 |
+
|
1578 |
+
/**
|
1579 |
+
* Output the suborder metaboxes
|
1580 |
+
*
|
1581 |
+
* @param $post The post object
|
1582 |
+
* @param $param Callback args
|
1583 |
+
*
|
1584 |
+
* @return void
|
1585 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1586 |
+
*/
|
1587 |
+
public function output( $post, $param ) {
|
1588 |
+
switch ( $param['args']['metabox'] ) {
|
1589 |
+
case 'suborders':
|
1590 |
+
$suborder_ids = self::get_suborder( absint( $post->ID ) );
|
1591 |
+
echo '<ul class="suborders-list single-orders">';
|
1592 |
+
foreach ( $suborder_ids as $suborder_id ) {
|
1593 |
+
$suborder = wc_get_order( absint( $suborder_id ) );
|
1594 |
+
$vendor = yith_get_vendor( $suborder->post->post_author, 'user' );
|
1595 |
+
$suborder_uri = esc_url( 'post.php?post=' . absint( $suborder_id ) . '&action=edit' );
|
1596 |
+
echo '<li class="suborder-info">';
|
1597 |
+
printf( '<mark class="%s tips" data-tip="%s">%s</mark> <strong><a href="%s">#%s</a></strong> <small class="single-order yith-wcmv-suborder-owner">%s %s</small><br/>',
|
1598 |
+
sanitize_title( $suborder->get_status() ),
|
1599 |
+
wc_get_order_status_name( $suborder->get_status() ),
|
1600 |
+
wc_get_order_status_name( $suborder->get_status() ),
|
1601 |
+
$suborder_uri,
|
1602 |
+
$suborder_id,
|
1603 |
+
__( 'in', 'Order table details', 'yith_wc_product_vendors' ),
|
1604 |
+
$vendor->name
|
1605 |
+
);
|
1606 |
+
echo '<li>';
|
1607 |
+
}
|
1608 |
+
echo '</ul>';
|
1609 |
+
break;
|
1610 |
+
|
1611 |
+
case 'parent-order':
|
1612 |
+
$parent_order_id = wp_get_post_parent_id( absint( $post->ID ) );
|
1613 |
+
$parent_order_uri = esc_url( 'post.php?post=' . absint( $parent_order_id ) . '&action=edit' );
|
1614 |
+
printf( '<a href="%s">← %s</a>', $parent_order_uri, _x( 'Return to main order', 'Admin: single order page. Link to parent order', 'yith_wc_product_vendors' ) );
|
1615 |
+
break;
|
1616 |
+
}
|
1617 |
+
}
|
1618 |
+
}
|
1619 |
+
}
|
modules/yith-woocommerce-product-vendors/includes/class.yith-vendor.php
CHANGED
@@ -13,269 +13,281 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
|
14 |
if ( ! class_exists( 'YITH_Vendor' ) ) {
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
class YITH_Vendor {
|
34 |
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
39 |
-
|
40 |
|
41 |
/** @public string The taxonomy of the vendor. */
|
42 |
public static $taxonomy;
|
43 |
|
44 |
-
|
45 |
-
|
46 |
|
47 |
-
|
48 |
-
|
49 |
|
50 |
/** @private array Indicate the change properties status. */
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
* @param mixed
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
179 |
protected static function _instance( $vendor_id = 0, $vendor_term = null ) {
|
180 |
-
if ( is_null( self::$_instance ) || ! isset( self::$_instance[
|
181 |
-
|
182 |
-
|
183 |
|
184 |
-
|
185 |
}
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
public function __construct( $vendor_id = 0, $term = null ) {
|
197 |
if ( empty( $vendor_id ) || empty( $term ) ) {
|
198 |
return;
|
199 |
}
|
200 |
|
201 |
-
$this->id
|
202 |
$this->term = $term;
|
203 |
|
204 |
-
|
205 |
return $this;
|
206 |
}
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
$this->name = $this->term->name;
|
215 |
-
|
216 |
-
|
217 |
|
218 |
$this->_changed = array();
|
219 |
add_action( 'shutdown', array( $this, 'save_data' ), 10 );
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
$value = get_woocommerce_term_meta( $this->id, $key );
|
234 |
-
|
235 |
-
// defaults
|
236 |
-
$defaults = array(
|
237 |
-
'payment_type' => 'instant',
|
238 |
-
'threshold' => 50
|
239 |
-
);
|
240 |
-
foreach ( $defaults as $std_key => $std_value ) {
|
241 |
-
$key == $std_key && ! isset( $this->$key ) && $value = $std_value;
|
242 |
-
}
|
243 |
-
|
244 |
-
// Get values or default if not set
|
245 |
-
if ( 'admins' === $key ) {
|
246 |
-
$value = $this->get_admins();
|
247 |
-
}
|
248 |
-
|
249 |
-
else if ( 'taxonomy' === $key ) {
|
250 |
-
$value = self::$taxonomy;
|
251 |
-
}
|
252 |
-
|
253 |
-
else if ( 'socials' === $key && empty( $value ) ) {
|
254 |
-
$value = array();
|
255 |
-
}
|
256 |
-
|
257 |
-
else if( 'registration_date' === $key && empty( $value ) ){
|
258 |
-
$owner_id = $this->get_owner();
|
259 |
-
if( ! empty( $owner_id ) ){
|
260 |
-
$owner = get_user_by( 'id', $owner_id );
|
261 |
-
$value = $owner->user_registered;
|
262 |
-
}
|
263 |
}
|
264 |
|
265 |
-
|
266 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
}
|
268 |
|
269 |
-
|
270 |
-
|
271 |
|
272 |
/**
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
if ( $this->_changed === false ) {
|
280 |
return;
|
281 |
}
|
@@ -288,25 +300,26 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
288 |
$value = 'no';
|
289 |
}
|
290 |
|
291 |
-
$this->_changed[
|
292 |
}
|
293 |
|
294 |
/**
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
|
302 |
// save the property to change in the term
|
303 |
$term_properties = array();
|
304 |
|
305 |
-
foreach( $this->_changed as $property => $value ){
|
306 |
$value = ! is_array( $value ) ? wc_clean( $value ) : $value;
|
307 |
if ( in_array( $property, array( 'name', 'slug', 'description' ) ) ) {
|
308 |
-
$term_properties[
|
309 |
-
}
|
|
|
310 |
update_woocommerce_term_meta( $this->id, $property, $value );
|
311 |
}
|
312 |
}
|
@@ -315,180 +328,181 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
315 |
if ( ! empty( $term_properties ) ) {
|
316 |
wp_update_term( $this->id, self::$taxonomy, $term_properties );
|
317 |
}
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
|
|
364 |
'meta_key' => self::$_usermetaOwner,
|
365 |
'meta_value' => $this->id,
|
366 |
'meta_compare' => '=',
|
367 |
'fields' => 'ids',
|
368 |
'number' => 1
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
* @param bool|int $user_id
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
$args = wp_parse_args( $extra, array(
|
479 |
'posts_per_page' => - 1,
|
480 |
'fields' => 'ids'
|
481 |
)
|
482 |
);
|
483 |
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
|
488 |
/**
|
489 |
* Check if the current object is a valid vendor
|
490 |
*
|
491 |
-
* @since
|
492 |
*
|
493 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
494 |
* @author Antonino Scarfi <antonino.scarfi@yithemes.com>
|
@@ -498,114 +512,119 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
498 |
return ! empty( $this->id ) && ! empty( $this->term );
|
499 |
}
|
500 |
|
501 |
-
|
502 |
* Check if the current user is the vendor owner
|
503 |
*
|
504 |
-
* @since
|
505 |
*
|
506 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
507 |
* @author Antonino Scarfi <antonino.scarfi@yithemes.com>
|
508 |
* @return bool
|
509 |
*/
|
510 |
public function is_owner( $user_id = false ) {
|
511 |
-
if( ! $user_id ) {
|
512 |
$user_id = get_current_user_id();
|
513 |
}
|
514 |
|
515 |
return get_user_meta( $user_id, self::$_usermetaOwner, true ) == $this->id;
|
516 |
}
|
517 |
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
|
|
526 |
|
527 |
-
|
528 |
$url = get_term_link( $this->term, self::$taxonomy );
|
529 |
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
|
|
|
|
552 |
|
553 |
$args = wp_parse_args( $extra_args, $args );
|
554 |
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
|
|
|
|
609 |
|
610 |
/**
|
611 |
* Get the registration date
|
@@ -616,22 +635,24 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
616 |
*
|
617 |
* @return string The registration date
|
618 |
*/
|
619 |
-
public function get_registration_date( $context = '', $format = '', $gmt = false ){
|
620 |
$registration_date = $gmt ? $this->registration_date_gmt : $this->registration_date;
|
621 |
|
622 |
-
if( 'timestamp' == $context ) {
|
623 |
return mysql2date( 'U', $registration_date );
|
624 |
}
|
625 |
|
626 |
-
else
|
627 |
-
if
|
628 |
-
|
|
|
|
|
|
|
629 |
}
|
630 |
-
return mysql2date( $format, $registration_date );
|
631 |
-
}
|
632 |
|
633 |
-
|
634 |
-
|
|
|
635 |
}
|
636 |
}
|
637 |
|
@@ -640,14 +661,13 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
640 |
*
|
641 |
* @return array The order ids
|
642 |
*/
|
643 |
-
public function get_orders( $type = '
|
644 |
global $wpdb;
|
645 |
$query = $wpdb->prepare( "SELECT DISTINCT order_id FROM {$wpdb->commissions} WHERE vendor_id = %d", $this->id );
|
646 |
|
647 |
-
if( 'suborder' == $type ){
|
648 |
-
$
|
649 |
-
|
650 |
-
if( $status ){
|
651 |
$query .= $wpdb->prepare( " AND post_status=%s", $status );
|
652 |
}
|
653 |
}
|
@@ -656,7 +676,7 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
656 |
return $order_id;
|
657 |
}
|
658 |
|
659 |
-
|
660 |
* get the reviews average
|
661 |
*
|
662 |
* @return array The review average and the product with reviews count
|
@@ -685,7 +705,7 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
685 |
);
|
686 |
}
|
687 |
|
688 |
-
|
689 |
* get the email vendor order table
|
690 |
*
|
691 |
* @return array The review average and the product with reviews count
|
@@ -714,16 +734,16 @@ if ( ! class_exists( 'YITH_Vendor' ) ) {
|
|
714 |
}
|
715 |
|
716 |
if ( ! function_exists( 'yith_get_vendor' ) ) {
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
function yith_get_vendor( $vendor = false, $obj = 'vendor' ) {
|
728 |
return YITH_Vendor::retrieve( $vendor, $obj );
|
729 |
}
|
13 |
|
14 |
if ( ! class_exists( 'YITH_Vendor' ) ) {
|
15 |
|
16 |
+
/**
|
17 |
+
* The main class for the Vendor
|
18 |
+
*
|
19 |
+
* @class YITH_Vendor
|
20 |
+
* @package Yithemes
|
21 |
+
* @since 1.0.0
|
22 |
+
* @author Your Inspiration Themes
|
23 |
+
*
|
24 |
+
* @property string $paypal_email
|
25 |
+
* @property string $enable_selling
|
26 |
+
* @property string $payment_type
|
27 |
+
* @property string $threshold
|
28 |
+
* @property string $registration_date
|
29 |
+
* @property string $registration_date_gmt
|
30 |
+
* @property array $admins
|
31 |
+
* @property int|string $commission
|
32 |
+
*/
|
33 |
class YITH_Vendor {
|
34 |
|
35 |
+
/** @public int The vendor ID. */
|
36 |
+
public $id = 0;
|
37 |
|
38 |
+
/** @public object Stores term data of vendor */
|
39 |
+
public $term = null;
|
40 |
|
41 |
/** @public string The taxonomy of the vendor. */
|
42 |
public static $taxonomy;
|
43 |
|
44 |
+
/** @protected string Stores term data of vendor */
|
45 |
+
protected static $_usermetaKey = '';
|
46 |
|
47 |
+
/** @protected string Stores term data of vendor */
|
48 |
+
protected static $_usermetaOwner = '';
|
49 |
|
50 |
/** @private array Indicate the change properties status. */
|
51 |
+
private $_changed = false;
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Main Instance
|
55 |
+
*
|
56 |
+
* @var string
|
57 |
+
* @since 1.0
|
58 |
+
* @access protected
|
59 |
+
*/
|
60 |
+
protected static $_instance = null;
|
61 |
+
|
62 |
+
/**
|
63 |
+
* Construct
|
64 |
+
*
|
65 |
+
* @param mixed $vendor The vendor object
|
66 |
+
* @param string $obj What object is if is numeric (vendor|user|product)
|
67 |
+
*
|
68 |
+
* @return bool|YITH_Vendor
|
69 |
+
*/
|
70 |
+
public static function retrieve( $vendor = false, $obj = 'vendor' ) {
|
71 |
+
self::$_usermetaKey = YITH_Vendors()->get_user_meta_key();
|
72 |
+
self::$_usermetaOwner = YITH_Vendors()->get_user_meta_owner();
|
73 |
+
self::$taxonomy = YITH_Vendors()->get_taxonomy_name();
|
74 |
+
|
75 |
+
// change value 'current' to false for $vendor, to make it more rock!
|
76 |
+
if ( 'current' == $vendor ) {
|
77 |
+
$vendor = false;
|
78 |
+
}
|
79 |
+
|
80 |
+
// Get by user
|
81 |
+
if ( 'user' == $obj ) {
|
82 |
+
|
83 |
+
// get vendor of actual user if nothind passed
|
84 |
+
if ( false === $vendor ) {
|
85 |
+
$vendor = get_user_meta( get_current_user_id(), self::$_usermetaKey, true );
|
86 |
+
}
|
87 |
+
|
88 |
+
// Get Vendor ID by user ID passed by $vendor and set the getter to 'vendor'
|
89 |
+
else {
|
90 |
+
$vendor = get_user_meta( $vendor, self::$_usermetaKey, true );
|
91 |
+
}
|
92 |
+
|
93 |
+
$obj = 'vendor';
|
94 |
+
}
|
95 |
+
|
96 |
+
// Get by product
|
97 |
+
elseif ( 'product' == $obj ) {
|
98 |
+
|
99 |
+
// get vendor of actual product if nothind passed
|
100 |
+
if ( false === $vendor ) {
|
101 |
+
global $post;
|
102 |
+
$vendor = $post->ID;
|
103 |
+
}
|
104 |
+
elseif ( $vendor instanceof WP_Post ) {
|
105 |
+
$vendor = $vendor->ID;
|
106 |
+
}
|
107 |
+
elseif ( $vendor instanceof WC_Product ) {
|
108 |
+
$vendor = $vendor->id;
|
109 |
+
}
|
110 |
+
|
111 |
+
$terms = wp_get_post_terms( $vendor, self::$taxonomy );
|
112 |
+
|
113 |
+
if ( empty( $terms ) ) {
|
114 |
+
return self::_instance();
|
115 |
+
}
|
116 |
+
|
117 |
+
$vendor_term = array_shift( $terms );
|
118 |
+
$vendor_id = $vendor_term->term_id;
|
119 |
+
|
120 |
+
return self::_instance( $vendor_id, $vendor_term );
|
121 |
+
|
122 |
+
}
|
123 |
+
|
124 |
+
// exit if any object is retrieved
|
125 |
+
if ( empty( $vendor ) ) {
|
126 |
+
return self::_instance();
|
127 |
+
}
|
128 |
+
|
129 |
+
// RETRIEVE OBJECT
|
130 |
+
// Get vendor by Vendor ID
|
131 |
+
if ( is_numeric( $vendor ) && 'vendor' == $obj ) {
|
132 |
+
$vendor_id = absint( $vendor );
|
133 |
+
$vendor_term = get_term_by( 'term_id', $vendor_id, self::$taxonomy );
|
134 |
+
}
|
135 |
+
|
136 |
+
// get vendor by Vendor slug or name
|
137 |
+
elseif ( is_string( $vendor ) ) {
|
138 |
+
$vendor_term = get_term_by( 'slug', $vendor, self::$taxonomy );
|
139 |
+
if ( empty( $vendor_term ) || is_wp_error( $vendor_term ) ) {
|
140 |
+
$vendor_term = get_term_by( 'name', $vendor, self::$taxonomy );
|
141 |
+
}
|
142 |
+
if ( empty( $vendor_term ) || is_wp_error( $vendor_term ) ) {
|
143 |
+
return self::_instance();
|
144 |
+
}
|
145 |
+
$vendor_id = $vendor_term->term_id;
|
146 |
+
}
|
147 |
+
|
148 |
+
// get vendor by object vendor
|
149 |
+
elseif ( $vendor instanceof YITH_Vendor ) {
|
150 |
+
$vendor_id = absint( $vendor->id );
|
151 |
+
$vendor_term = $vendor->term;
|
152 |
+
return self::_instance( $vendor_id, $vendor_term );
|
153 |
+
}
|
154 |
+
|
155 |
+
// get vendor by term object
|
156 |
+
elseif ( isset( $vendor->slug ) && term_exists( $vendor->slug, self::$taxonomy ) ) {
|
157 |
+
$vendor_id = absint( $vendor->term_id );
|
158 |
+
$vendor_term = $vendor;
|
159 |
+
}
|
160 |
+
|
161 |
+
// no vendor found
|
162 |
+
else {
|
163 |
+
return self::_instance();
|
164 |
+
}
|
165 |
+
|
166 |
+
// return false is there is a term associated
|
167 |
+
if ( empty( $vendor_term ) ) {
|
168 |
+
return self::_instance();
|
169 |
+
}
|
170 |
+
|
171 |
+
return self::_instance( $vendor_id, $vendor_term );
|
172 |
+
}
|
173 |
+
|
174 |
+
/**
|
175 |
+
* Get cached vendor instance by ID
|
176 |
+
*
|
177 |
+
* @param int $vendor_id
|
178 |
+
* @param null $vendor_term
|
179 |
+
*
|
180 |
+
* @return mixed
|
181 |
+
*/
|
182 |
protected static function _instance( $vendor_id = 0, $vendor_term = null ) {
|
183 |
+
if ( is_null( self::$_instance ) || ! isset( self::$_instance[$vendor_id] ) ) {
|
184 |
+
self::$_instance[$vendor_id] = new self( $vendor_id, $vendor_term );
|
185 |
+
}
|
186 |
|
187 |
+
return self::$_instance[$vendor_id];
|
188 |
}
|
189 |
|
190 |
+
/**
|
191 |
+
* Populate the instance with term data
|
192 |
+
*
|
193 |
+
* @param int $vendor_id
|
194 |
+
* @param null $term
|
195 |
+
*
|
196 |
+
* @internal param null $vendor_term
|
197 |
+
*
|
198 |
+
*/
|
199 |
public function __construct( $vendor_id = 0, $term = null ) {
|
200 |
if ( empty( $vendor_id ) || empty( $term ) ) {
|
201 |
return;
|
202 |
}
|
203 |
|
204 |
+
$this->id = $vendor_id;
|
205 |
$this->term = $term;
|
206 |
|
207 |
+
$this->_populate();
|
208 |
return $this;
|
209 |
}
|
210 |
|
211 |
+
/**
|
212 |
+
* Populate information of vendor
|
213 |
+
*
|
214 |
+
* @since 1.0
|
215 |
+
*/
|
216 |
+
protected function _populate() {
|
217 |
$this->name = $this->term->name;
|
218 |
+
$this->slug = $this->term->slug;
|
219 |
+
$this->description = $this->term->description;
|
220 |
|
221 |
$this->_changed = array();
|
222 |
add_action( 'shutdown', array( $this, 'save_data' ), 10 );
|
223 |
+
}
|
224 |
+
|
225 |
+
/**
|
226 |
+
* __get function.
|
227 |
+
*
|
228 |
+
* @param string $key
|
229 |
+
*
|
230 |
+
* @return mixed
|
231 |
+
*/
|
232 |
+
public function __get( $key ) {
|
233 |
+
if ( isset( $this->_changed[$key] ) ) {
|
234 |
+
return $this->_changed[$key];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
}
|
236 |
|
237 |
+
$value = get_woocommerce_term_meta( $this->id, $key );
|
238 |
+
|
239 |
+
// defaults
|
240 |
+
$defaults = array(
|
241 |
+
'payment_type' => 'instant',
|
242 |
+
'threshold' => 50
|
243 |
+
);
|
244 |
+
foreach ( $defaults as $std_key => $std_value ) {
|
245 |
+
$key == $std_key && ! isset( $this->$key ) && $value = $std_value;
|
246 |
+
}
|
247 |
+
|
248 |
+
// Get values or default if not set
|
249 |
+
if ( 'admins' === $key ) {
|
250 |
+
$value = $this->get_admins();
|
251 |
+
}
|
252 |
+
|
253 |
+
else {
|
254 |
+
if ( 'taxonomy' === $key ) {
|
255 |
+
$value = self::$taxonomy;
|
256 |
+
}
|
257 |
+
|
258 |
+
else {
|
259 |
+
if ( 'socials' === $key && empty( $value ) ) {
|
260 |
+
$value = array();
|
261 |
+
}
|
262 |
+
|
263 |
+
else {
|
264 |
+
if ( 'registration_date' === $key && empty( $value ) ) {
|
265 |
+
$owner_id = $this->get_owner();
|
266 |
+
if ( ! empty( $owner_id ) ) {
|
267 |
+
$owner = get_user_by( 'id', $owner_id );
|
268 |
+
$value = $owner->user_registered;
|
269 |
+
}
|
270 |
+
}
|
271 |
+
|
272 |
+
else {
|
273 |
+
if ( isset( $this->term->$key ) ) {
|
274 |
+
$value = $this->term->$key;
|
275 |
+
}
|
276 |
+
}
|
277 |
+
}
|
278 |
+
}
|
279 |
}
|
280 |
|
281 |
+
return $value;
|
282 |
+
}
|
283 |
|
284 |
/**
|
285 |
+
* __set function.
|
286 |
+
*
|
287 |
+
* @param mixed $property
|
288 |
+
* @param mixed $value
|
289 |
+
*/
|
290 |
+
public function __set( $property, $value ) {
|
291 |
if ( $this->_changed === false ) {
|
292 |
return;
|
293 |
}
|
300 |
$value = 'no';
|
301 |
}
|
302 |
|
303 |
+
$this->_changed[$property] = $value;
|
304 |
}
|
305 |
|
306 |
/**
|
307 |
+
* Save data function.
|
308 |
+
*/
|
309 |
+
public function save_data() {
|
310 |
+
if ( ! $this->is_valid() || empty( $this->_changed ) ) {
|
311 |
+
return;
|
312 |
+
}
|
313 |
|
314 |
// save the property to change in the term
|
315 |
$term_properties = array();
|
316 |
|
317 |
+
foreach ( $this->_changed as $property => $value ) {
|
318 |
$value = ! is_array( $value ) ? wc_clean( $value ) : $value;
|
319 |
if ( in_array( $property, array( 'name', 'slug', 'description' ) ) ) {
|
320 |
+
$term_properties[$property] = $value;
|
321 |
+
}
|
322 |
+
else {
|
323 |
update_woocommerce_term_meta( $this->id, $property, $value );
|
324 |
}
|
325 |
}
|
328 |
if ( ! empty( $term_properties ) ) {
|
329 |
wp_update_term( $this->id, self::$taxonomy, $term_properties );
|
330 |
}
|
331 |
+
}
|
332 |
+
|
333 |
+
/**
|
334 |
+
* __isset function.
|
335 |
+
*
|
336 |
+
* @param mixed $key
|
337 |
+
*
|
338 |
+
* @return bool
|
339 |
+
*/
|
340 |
+
public function __isset( $key ) {
|
341 |
+
return metadata_exists( 'woocommerce_term', $this->id, $key );
|
342 |
+
}
|
343 |
+
|
344 |
+
/**
|
345 |
+
* Get the vendor commission
|
346 |
+
*
|
347 |
+
* @Author Andrea Grillo <andrea.grillo@yithemes.com>
|
348 |
+
* @return string The vendor commission
|
349 |
+
* @fire yith_vendor_commission filter
|
350 |
+
*/
|
351 |
+
public function get_commission( $product_id = false ) {
|
352 |
+
$base_commission = YITH_Vendors()->get_base_commission();
|
353 |
+
return apply_filters( 'yith_vendor_commission', $base_commission, $this->id, $this );
|
354 |
+
}
|
355 |
+
|
356 |
+
/**
|
357 |
+
* Get the vendor's settings
|
358 |
+
*
|
359 |
+
* @param $key
|
360 |
+
* @param bool|string $default
|
361 |
+
*
|
362 |
+
* @return mixed
|
363 |
+
*/
|
364 |
+
public function get_setting( $key, $default = false ) {
|
365 |
+
$settings = get_option( 'yit_vendor_' . $this->id . '_options' );
|
366 |
+
return isset( $settings[$key] ) ? wc_clean( $settings[$key] ) : $default;
|
367 |
+
}
|
368 |
+
|
369 |
+
/**
|
370 |
+
* Get vendor owner
|
371 |
+
*
|
372 |
+
* @return int The owner user id
|
373 |
+
* @since 1.0
|
374 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
375 |
+
*/
|
376 |
+
public function get_owner() {
|
377 |
+
$args = array(
|
378 |
'meta_key' => self::$_usermetaOwner,
|
379 |
'meta_value' => $this->id,
|
380 |
'meta_compare' => '=',
|
381 |
'fields' => 'ids',
|
382 |
'number' => 1
|
383 |
+
);
|
384 |
+
$owner = get_users( $args );
|
385 |
+
|
386 |
+
return ! empty( $owner ) ? array_shift( $owner ) : 0;
|
387 |
+
}
|
388 |
+
|
389 |
+
/**
|
390 |
+
* Get admins for vendor
|
391 |
+
*
|
392 |
+
* @return Array of user IDs
|
393 |
+
* @since 1.0
|
394 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
395 |
+
*/
|
396 |
+
public function get_admins() {
|
397 |
+
$args = array(
|
398 |
+
'meta_key' => self::$_usermetaKey,
|
399 |
+
'meta_value' => $this->id,
|
400 |
+
'meta_compare' => '=',
|
401 |
+
'fields' => 'ids'
|
402 |
+
);
|
403 |
+
$admins = get_users( $args );
|
404 |
+
|
405 |
+
return $admins;
|
406 |
+
}
|
407 |
+
|
408 |
+
/**
|
409 |
+
* Check if the user passed in parameter is admin
|
410 |
+
*
|
411 |
+
* @param bool $user_id The user to check
|
412 |
+
*
|
413 |
+
* @return bool
|
414 |
+
* @since 1.0
|
415 |
+
*/
|
416 |
+
public function is_super_user( $user_id = false ) {
|
417 |
+
if ( ! $user_id ) {
|
418 |
+
$user_id = get_current_user_id();
|
419 |
+
}
|
420 |
+
|
421 |
+
// if the user is shop manager or administrator, return true
|
422 |
+
return user_can( $user_id, 'manage_woocommerce' );
|
423 |
+
}
|
424 |
+
|
425 |
+
/**
|
426 |
+
* Check if the user passed in parameter is admin
|
427 |
+
*
|
428 |
+
* @param bool $user_id The user to check
|
429 |
+
*
|
430 |
+
* @return bool
|
431 |
+
* @since 1.0
|
432 |
+
*/
|
433 |
+
public function is_user_admin( $user_id = false ) {
|
434 |
+
if ( ! $user_id ) {
|
435 |
+
$user_id = get_current_user_id();
|
436 |
+
}
|
437 |
+
|
438 |
+
// if the user is shop manager or administrator, return true
|
439 |
+
if ( $this->is_super_user( $user_id ) ) {
|
440 |
+
return true;
|
441 |
+
}
|
442 |
+
|
443 |
+
foreach ( $this->get_admins() as $admin_id ) {
|
444 |
+
if ( $admin_id == $user_id ) {
|
445 |
+
return true;
|
446 |
+
}
|
447 |
+
}
|
448 |
+
|
449 |
+
return false;
|
450 |
+
}
|
451 |
+
|
452 |
+
/**
|
453 |
+
* Check if the user has limited access to admin dashboard, valid only for Vendor Admin
|
454 |
+
*
|
455 |
* @param bool|int $user_id
|
456 |
+
*
|
457 |
+
* @return bool
|
458 |
+
* @since 1.0
|
459 |
+
*/
|
460 |
+
public function has_limited_access( $user_id = false ) {
|
461 |
+
return (bool) ( ! $this->is_super_user( $user_id ) && $this->is_user_admin( $user_id ) );
|
462 |
+
}
|
463 |
+
|
464 |
+
/**
|
465 |
+
* Return the arguments to make a query for the posts of this vendor
|
466 |
+
*
|
467 |
+
* @param array $extra More arguments to append
|
468 |
+
*
|
469 |
+
* @return array
|
470 |
+
*/
|
471 |
+
public function get_query_products_args( $extra = array() ) {
|
472 |
+
return wp_parse_args( $extra, array(
|
473 |
+
'post_type' => 'product',
|
474 |
+
'tax_query' => array(
|
475 |
+
array(
|
476 |
+
'taxonomy' => self::$taxonomy,
|
477 |
+
'field' => 'id',
|
478 |
+
'terms' => $this->id
|
479 |
+
)
|
480 |
+
)
|
481 |
+
) );
|
482 |
+
}
|
483 |
+
|
484 |
+
/**
|
485 |
+
* Get query results of this vendor
|
486 |
+
*
|
487 |
+
* @param array $extra More arguments to append
|
488 |
+
*
|
489 |
+
* @return array
|
490 |
+
*/
|
491 |
+
public function get_products( $extra = array() ) {
|
492 |
$args = wp_parse_args( $extra, array(
|
493 |
'posts_per_page' => - 1,
|
494 |
'fields' => 'ids'
|
495 |
)
|
496 |
);
|
497 |
|
498 |
+
$args = $this->get_query_products_args( $args );
|
499 |
+
return get_posts( $args );
|
500 |
+
}
|
501 |
|
502 |
/**
|
503 |
* Check if the current object is a valid vendor
|
504 |
*
|
505 |
+
* @since 1.0
|
506 |
*
|
507 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
508 |
* @author Antonino Scarfi <antonino.scarfi@yithemes.com>
|
512 |
return ! empty( $this->id ) && ! empty( $this->term );
|
513 |
}
|
514 |
|
515 |
+
/**
|
516 |
* Check if the current user is the vendor owner
|
517 |
*
|
518 |
+
* @since 1.0
|
519 |
*
|
520 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
521 |
* @author Antonino Scarfi <antonino.scarfi@yithemes.com>
|
522 |
* @return bool
|
523 |
*/
|
524 |
public function is_owner( $user_id = false ) {
|
525 |
+
if ( ! $user_id ) {
|
526 |
$user_id = get_current_user_id();
|
527 |
}
|
528 |
|
529 |
return get_user_meta( $user_id, self::$_usermetaOwner, true ) == $this->id;
|
530 |
}
|
531 |
|
532 |
+
/**
|
533 |
+
* Get the frontend URL
|
534 |
+
*
|
535 |
+
* @param string $context
|
536 |
+
*
|
537 |
+
* @return string
|
538 |
+
*/
|
539 |
+
public function get_url( $context = 'frontend' ) {
|
540 |
+
$url = '';
|
541 |
|
542 |
+
if ( 'frontend' == $context ) {
|
543 |
$url = get_term_link( $this->term, self::$taxonomy );
|
544 |
|
545 |
+
if ( $url && is_wp_error( $url ) ) {
|
546 |
+
$url = false;
|
547 |
+
}
|
548 |
+
}
|
549 |
+
else {
|
550 |
+
if ( 'admin' == $context ) {
|
551 |
+
$url = get_edit_term_link( $this->id, self::$taxonomy );
|
552 |
+
}
|
553 |
+
}
|
554 |
+
|
555 |
+
return apply_filters( 'yith_vendor_url', $url, $this, $context );
|
556 |
+
}
|
557 |
+
|
558 |
+
/**
|
559 |
+
* Get all unpaid commissions, if the sum amount is out threshold
|
560 |
+
*
|
561 |
+
* @return array|null
|
562 |
+
*/
|
563 |
+
public function get_unpaid_commissions( $extra_args = array() ) {
|
564 |
+
$args = array(
|
565 |
+
'vendor_id' => $this->id,
|
566 |
+
'order_id' => '', // useful when is set the order as completed from orders list, because it set "order_id" in the query string
|
567 |
+
'status' => 'unpaid'
|
568 |
+
);
|
569 |
|
570 |
$args = wp_parse_args( $extra_args, $args );
|
571 |
|
572 |
+
return YITH_Commissions()->get_commissions( $args );
|
573 |
+
}
|
574 |
+
|
575 |
+
/**
|
576 |
+
* Get all unpaid commissions, if the sum amount is out threshold
|
577 |
+
*
|
578 |
+
* @return array|null
|
579 |
+
*/
|
580 |
+
public function get_unpaid_commissions_if_out_threshold() {
|
581 |
+
if ( $this->get_unpaid_commissions_amount() < $this->threshold ) {
|
582 |
+
return array();
|
583 |
+
}
|
584 |
+
|
585 |
+
$args = array(
|
586 |
+
'vendor_id' => $this->id,
|
587 |
+
'order_id' => '', // useful when is set the order as completed from orders list, because it set "order_id" in the query string
|
588 |
+
'status' => 'unpaid'
|
589 |
+
);
|
590 |
+
|
591 |
+
return YITH_Commissions()->get_commissions( $args );
|
592 |
+
}
|
593 |
+
|
594 |
+
/**
|
595 |
+
* If payment minimum threshold is reached, get all commissions that haven't been paid yet.
|
596 |
+
*
|
597 |
+
* @return float
|
598 |
+
*/
|
599 |
+
public function get_unpaid_commissions_amount() {
|
600 |
+
global $wpdb;
|
601 |
+
$amount = $wpdb->get_var( $wpdb->prepare( "SELECT SUM(amount) FROM $wpdb->commissions WHERE status = %s AND vendor_id = %d", 'unpaid', $this->id ) );
|
602 |
+
return floatval( $amount );
|
603 |
+
}
|
604 |
+
|
605 |
+
/**
|
606 |
+
* Pay commitions unpaid, in base of payment type choosen
|
607 |
+
*
|
608 |
+
* @return array
|
609 |
+
*/
|
610 |
+
public function commissions_to_pay() {
|
611 |
+
if ( empty( $this->paypal_email ) ) {
|
612 |
+
return array();
|
613 |
+
}
|
614 |
+
|
615 |
+
$commissions = array();
|
616 |
+
|
617 |
+
if ( 'threshold' == $this->payment_type ) {
|
618 |
+
$commissions = $this->get_unpaid_commissions_if_out_threshold(); // could be empty
|
619 |
+
}
|
620 |
+
else {
|
621 |
+
if ( 'instant' == $this->payment_type ) {
|
622 |
+
$commissions = $this->get_unpaid_commissions();
|
623 |
+
}
|
624 |
+
}
|
625 |
+
|
626 |
+
return $commissions;
|
627 |
+
}
|
628 |
|
629 |
/**
|
630 |
* Get the registration date
|
635 |
*
|
636 |
* @return string The registration date
|
637 |
*/
|
638 |
+
public function get_registration_date( $context = '', $format = '', $gmt = false ) {
|
639 |
$registration_date = $gmt ? $this->registration_date_gmt : $this->registration_date;
|
640 |
|
641 |
+
if ( 'timestamp' == $context ) {
|
642 |
return mysql2date( 'U', $registration_date );
|
643 |
}
|
644 |
|
645 |
+
else {
|
646 |
+
if ( 'display' == $context ) {
|
647 |
+
if ( empty( $format ) ) {
|
648 |
+
$format = get_option( 'date_format' );
|
649 |
+
}
|
650 |
+
return mysql2date( $format, $registration_date );
|
651 |
}
|
|
|
|
|
652 |
|
653 |
+
else {
|
654 |
+
return $registration_date;
|
655 |
+
}
|
656 |
}
|
657 |
}
|
658 |
|
661 |
*
|
662 |
* @return array The order ids
|
663 |
*/
|
664 |
+
public function get_orders( $type = 'all', $status = false ) {
|
665 |
global $wpdb;
|
666 |
$query = $wpdb->prepare( "SELECT DISTINCT order_id FROM {$wpdb->commissions} WHERE vendor_id = %d", $this->id );
|
667 |
|
668 |
+
if ( 'suborder' == $type ) {
|
669 |
+
$query = $wpdb->prepare( "SELECT DISTINCT ID FROM {$wpdb->posts} WHERE post_parent!=%d AND post_type=%s AND post_author=%d", 0, 'shop_order', $this->get_owner() );
|
670 |
+
if ( $status ) {
|
|
|
671 |
$query .= $wpdb->prepare( " AND post_status=%s", $status );
|
672 |
}
|
673 |
}
|
676 |
return $order_id;
|
677 |
}
|
678 |
|
679 |
+
/**
|
680 |
* get the reviews average
|
681 |
*
|
682 |
* @return array The review average and the product with reviews count
|
705 |
);
|
706 |
}
|
707 |
|
708 |
+
/**
|
709 |
* get the email vendor order table
|
710 |
*
|
711 |
* @return array The review average and the product with reviews count
|
734 |
}
|
735 |
|
736 |
if ( ! function_exists( 'yith_get_vendor' ) ) {
|
737 |
+
/**
|
738 |
+
* Main instance of plugin
|
739 |
+
*
|
740 |
+
* @param mixed $vendor
|
741 |
+
* @param string $obj
|
742 |
+
*
|
743 |
+
* @return YITH_Vendor
|
744 |
+
* @since 1.0
|
745 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
746 |
+
*/
|
747 |
function yith_get_vendor( $vendor = false, $obj = 'vendor' ) {
|
748 |
return YITH_Vendor::retrieve( $vendor, $obj );
|
749 |
}
|
modules/yith-woocommerce-product-vendors/includes/class.yith-vendors-admin.php
CHANGED
@@ -61,6 +61,9 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
61 |
public function __construct() {
|
62 |
$this->_taxonomy_name = YITH_Vendors()->get_taxonomy_name();
|
63 |
|
|
|
|
|
|
|
64 |
/* Panel Settings */
|
65 |
add_action( 'admin_menu', array( $this, 'register_panel' ), 5 );
|
66 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
@@ -106,7 +109,7 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
106 |
add_action( 'admin_menu', array( $this, 'menu_items' ) );
|
107 |
add_action( 'admin_menu', array( $this, 'remove_media_page' ) );
|
108 |
add_action( 'admin_menu', array( $this, 'remove_dashboard_widgets' ) );
|
109 |
-
add_action( 'admin_init', array(
|
110 |
add_action( 'admin_bar_menu', array( $this, 'show_admin_bar_visit_store' ), 31 );
|
111 |
|
112 |
/* Vendor information management */
|
@@ -114,6 +117,16 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
114 |
|
115 |
/* Prevent WooCommerce Access Admin */
|
116 |
add_filter( 'woocommerce_prevent_admin_access', array( $this, 'prevent_admin_access' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
}
|
118 |
|
119 |
/**
|
@@ -168,6 +181,7 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
168 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
169 |
*/
|
170 |
public function enqueue_scripts() {
|
|
|
171 |
wp_enqueue_style( 'yith-wc-product-vendors-admin', YITH_WPV_ASSETS_URL . 'css/admin.css', array( 'jquery-chosen' ) );
|
172 |
}
|
173 |
|
@@ -304,19 +318,24 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
304 |
return;
|
305 |
}
|
306 |
|
307 |
-
$
|
308 |
array(
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
|
|
|
|
|
|
|
|
315 |
);
|
316 |
|
317 |
-
|
318 |
-
|
319 |
-
|
|
|
320 |
}
|
321 |
|
322 |
/**
|
@@ -356,18 +375,10 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
356 |
* @fire product_vendors_details_fields_save action
|
357 |
*/
|
358 |
public function filter_vendor_linked_products( $query ) {
|
359 |
-
global $pagenow, $post;
|
360 |
-
|
361 |
$vendor = yith_get_vendor( 'current', 'user' );
|
362 |
$action = isset( $_GET['action'] ) ? $_GET['action'] : false;
|
363 |
|
364 |
-
if (
|
365 |
-
$vendor->has_limited_access()
|
366 |
-
&& (
|
367 |
-
( is_ajax() && 'woocommerce_json_search_products' == $action )
|
368 |
-
|| ( ! empty( $post ) && 'product' == $post->post_type && ( 'post-new.php' == $pagenow || 'post.php' == $pagenow ) )
|
369 |
-
)
|
370 |
-
) {
|
371 |
$query_args = $vendor->get_query_products_args();
|
372 |
$query->set( 'tax_query', $query_args['tax_query'] );
|
373 |
}
|
@@ -961,22 +972,6 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
961 |
yith_wcpv_get_template( 'premium', array(), 'admin' );
|
962 |
}
|
963 |
|
964 |
-
/**
|
965 |
-
* Remove new post and comments wp bar admin menu for vendor
|
966 |
-
*
|
967 |
-
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
968 |
-
* @since 1.5.1
|
969 |
-
* @return void
|
970 |
-
*/
|
971 |
-
public function remove_wp_bar_admin_menu() {
|
972 |
-
$vendor = yith_get_vendor( 'current', 'user' );
|
973 |
-
|
974 |
-
if( $vendor->is_valid() && $vendor->has_limited_access() ){
|
975 |
-
remove_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
|
976 |
-
remove_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 );
|
977 |
-
}
|
978 |
-
}
|
979 |
-
|
980 |
/**
|
981 |
* Replace the Visit Store link from WooCommerce
|
982 |
* with the vendor store page link, if user is a vendor
|
@@ -1000,5 +995,171 @@ if ( ! class_exists( 'YITH_Vendors_Admin' ) ) {
|
|
1000 |
);
|
1001 |
}
|
1002 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1003 |
}
|
1004 |
}
|
61 |
public function __construct() {
|
62 |
$this->_taxonomy_name = YITH_Vendors()->get_taxonomy_name();
|
63 |
|
64 |
+
/* Add Admin Body Class */
|
65 |
+
add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
|
66 |
+
|
67 |
/* Panel Settings */
|
68 |
add_action( 'admin_menu', array( $this, 'register_panel' ), 5 );
|
69 |
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
|
109 |
add_action( 'admin_menu', array( $this, 'menu_items' ) );
|
110 |
add_action( 'admin_menu', array( $this, 'remove_media_page' ) );
|
111 |
add_action( 'admin_menu', array( $this, 'remove_dashboard_widgets' ) );
|
112 |
+
add_action( 'admin_init', array( YITH_Vendors(), 'remove_wp_bar_admin_menu' ) );
|
113 |
add_action( 'admin_bar_menu', array( $this, 'show_admin_bar_visit_store' ), 31 );
|
114 |
|
115 |
/* Vendor information management */
|
117 |
|
118 |
/* Prevent WooCommerce Access Admin */
|
119 |
add_filter( 'woocommerce_prevent_admin_access', array( $this, 'prevent_admin_access' ) );
|
120 |
+
|
121 |
+
/* Pending Product Notifier */
|
122 |
+
add_action( 'admin_menu', array( $this, 'products_to_approve' ) );
|
123 |
+
|
124 |
+
/* Order management */
|
125 |
+
add_filter( 'request', array( $this, 'filter_order_list' ), 10, 1 );
|
126 |
+
add_filter( 'wp_count_posts', array( $this, 'vendor_count_shop_orders' ), 10, 3 );
|
127 |
+
|
128 |
+
/* Add Vendors Page Link in WP Dashboard */
|
129 |
+
add_action( 'admin_menu', array( $this, 'admin_vendor_link' ) );
|
130 |
}
|
131 |
|
132 |
/**
|
181 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
182 |
*/
|
183 |
public function enqueue_scripts() {
|
184 |
+
wp_enqueue_script( 'yith-wpv-admin', YITH_WPV_ASSETS_URL . 'js/admin.js', array( 'jquery' ), '1.0.0', true );
|
185 |
wp_enqueue_style( 'yith-wc-product-vendors-admin', YITH_WPV_ASSETS_URL . 'css/admin.css', array( 'jquery-chosen' ) );
|
186 |
}
|
187 |
|
318 |
return;
|
319 |
}
|
320 |
|
321 |
+
$menus = apply_filters( 'yith_wc_product_vendors_details_menu_items',
|
322 |
array(
|
323 |
+
'vendor_details' => array(
|
324 |
+
'page_title' => __( 'Vendor Details', 'yith_wc_product_vendors' ),
|
325 |
+
'menu_title' => __( 'Vendor Details', 'yith_wc_product_vendors' ),
|
326 |
+
'capability' => 'edit_products',
|
327 |
+
'menu_slug' => 'yith_vendor_details',
|
328 |
+
'function' => array( $this, 'admin_details_page' ),
|
329 |
+
'icon' => 'dashicons-id-alt',
|
330 |
+
'position' => 56
|
331 |
+
),
|
332 |
+
)
|
333 |
);
|
334 |
|
335 |
+
foreach( $menus as $menu_args ){
|
336 |
+
extract( $menu_args );
|
337 |
+
add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon, $position );
|
338 |
+
}
|
339 |
}
|
340 |
|
341 |
/**
|
375 |
* @fire product_vendors_details_fields_save action
|
376 |
*/
|
377 |
public function filter_vendor_linked_products( $query ) {
|
|
|
|
|
378 |
$vendor = yith_get_vendor( 'current', 'user' );
|
379 |
$action = isset( $_GET['action'] ) ? $_GET['action'] : false;
|
380 |
|
381 |
+
if ( $vendor->is_valid() && $vendor->has_limited_access() && ( 'woocommerce_json_search_products' == $action || 'woocommerce_json_search_grouped_products' == $action ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
$query_args = $vendor->get_query_products_args();
|
383 |
$query->set( 'tax_query', $query_args['tax_query'] );
|
384 |
}
|
972 |
yith_wcpv_get_template( 'premium', array(), 'admin' );
|
973 |
}
|
974 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
975 |
/**
|
976 |
* Replace the Visit Store link from WooCommerce
|
977 |
* with the vendor store page link, if user is a vendor
|
995 |
);
|
996 |
}
|
997 |
}
|
998 |
+
|
999 |
+
/**
|
1000 |
+
* Add an extra body classes for vendors dashboard
|
1001 |
+
*
|
1002 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1003 |
+
* @since 1.5.1
|
1004 |
+
* @param $admin_body_classes
|
1005 |
+
* @return string
|
1006 |
+
*/
|
1007 |
+
public function admin_body_class( $admin_body_classes ){
|
1008 |
+
global $post;
|
1009 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1010 |
+
$is_ajax = defined( 'DOING_AJAX' ) && DOING_AJAX;
|
1011 |
+
$is_order_details = is_admin() && ! $is_ajax && 'shop_order' == get_current_screen()->id;
|
1012 |
+
|
1013 |
+
if( $vendor->is_valid() && $vendor->has_limited_access() ){
|
1014 |
+
$admin_body_classes = $admin_body_classes . ' vendor_limited_access';
|
1015 |
+
}
|
1016 |
+
|
1017 |
+
else if( $vendor->is_super_user() ){
|
1018 |
+
$admin_body_classes = $admin_body_classes . ' vendor_super_user';
|
1019 |
+
|
1020 |
+
if( $post && wp_get_post_parent_id( $post->ID ) && 'shop_order' == $post->post_type && $is_order_details ){
|
1021 |
+
$admin_body_classes = $admin_body_classes . ' vendor_suborder_detail';
|
1022 |
+
}
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
return $admin_body_classes;
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
/**
|
1029 |
+
* Add a bubble notification icon for pending products
|
1030 |
+
*
|
1031 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1032 |
+
* @since 1.5.1
|
1033 |
+
* @return string
|
1034 |
+
*/
|
1035 |
+
public function products_to_approve(){
|
1036 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1037 |
+
/* Add the pending products bubble on Products -> Vendors menu */
|
1038 |
+
if ( $vendor->is_super_user() ) {
|
1039 |
+
global $menu, $submenu;
|
1040 |
+
$products = get_posts( array( 'post_type' => 'product', 'post_status' => 'pending' ) );
|
1041 |
+
$num_pending_products = count( $products );
|
1042 |
+
|
1043 |
+
if ( $num_pending_products > 0 ) {
|
1044 |
+
$bubble = " <span class='awaiting-mod count-{$num_pending_products}'><span class='pending-count'>{$num_pending_products}</span></span>";
|
1045 |
+
$products_uri = htmlspecialchars( add_query_arg( array( 'post_type' => 'product' ), 'edit.php' ) );
|
1046 |
+
|
1047 |
+
foreach ( $menu as $key => $value ) {
|
1048 |
+
if ( $menu[$key][2] == $products_uri && $num_pending_products > 0 ) {
|
1049 |
+
$menu[$key][0] .= $bubble;
|
1050 |
+
}
|
1051 |
+
}
|
1052 |
+
|
1053 |
+
foreach ( $submenu as $key => $value ) {
|
1054 |
+
$submenu_items = $submenu[$key];
|
1055 |
+
foreach ( $submenu_items as $position => $value ) {
|
1056 |
+
if ( $submenu[$key][$position][2] == $products_uri ) {
|
1057 |
+
$submenu[$key][$position][0] .= $bubble;
|
1058 |
+
return;
|
1059 |
+
}
|
1060 |
+
}
|
1061 |
+
}
|
1062 |
+
}
|
1063 |
+
}
|
1064 |
+
}
|
1065 |
+
|
1066 |
+
/**
|
1067 |
+
* Only show vendor's order
|
1068 |
+
*
|
1069 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1070 |
+
*
|
1071 |
+
* @param arr $request Current request
|
1072 |
+
*
|
1073 |
+
* @return arr Modified request
|
1074 |
+
* @since 1.6
|
1075 |
+
*/
|
1076 |
+
public function filter_order_list( $query ) {
|
1077 |
+
global $typenow;
|
1078 |
+
|
1079 |
+
if ( 'shop_order' == $typenow ) {
|
1080 |
+
$vendor = yith_get_vendor( 'current', 'vendor' );
|
1081 |
+
if ( $vendor->is_super_user() ) {
|
1082 |
+
$query['post_parent'] = 0;
|
1083 |
+
}
|
1084 |
+
return apply_filters( "yith_wcmv_{$typenow}_request", $query );
|
1085 |
+
}
|
1086 |
+
return $query;
|
1087 |
+
}
|
1088 |
+
|
1089 |
+
/**
|
1090 |
+
* Filter the post count for vendor
|
1091 |
+
*
|
1092 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1093 |
+
*
|
1094 |
+
* @param $counts The post count
|
1095 |
+
* @param $type Post type
|
1096 |
+
* @param $perm The read permission
|
1097 |
+
*
|
1098 |
+
* @return arr Modified request
|
1099 |
+
* @since 1.0
|
1100 |
+
* @use wp_post_count action
|
1101 |
+
*/
|
1102 |
+
public function vendor_count_shop_orders( $counts, $type, $perm ) {
|
1103 |
+
if ( 'shop_order' == $type ) {
|
1104 |
+
/**
|
1105 |
+
* Get a list of post statuses.
|
1106 |
+
*/
|
1107 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1108 |
+
$stati = get_post_stati();
|
1109 |
+
|
1110 |
+
if ( $vendor->is_valid() && $vendor->has_limited_access() ) {
|
1111 |
+
foreach ( $stati as $status ) {
|
1112 |
+
$orders = $vendor->get_orders( 'suborder', $status );
|
1113 |
+
$counts->$status = count( $orders );
|
1114 |
+
}
|
1115 |
+
return $counts;
|
1116 |
+
}
|
1117 |
+
|
1118 |
+
else {
|
1119 |
+
global $wpdb;
|
1120 |
+
foreach ( $stati as $status ) {
|
1121 |
+
$orders = $wpdb->get_col(
|
1122 |
+
$wpdb->prepare(
|
1123 |
+
"SELECT DISTINCT ID FROM {$wpdb->posts} WHERE post_parent=%d AND post_status=%s AND post_type=%s", 0, $status, 'shop_order'
|
1124 |
+
)
|
1125 |
+
);
|
1126 |
+
$counts->$status = count( $orders );
|
1127 |
+
}
|
1128 |
+
}
|
1129 |
+
}
|
1130 |
+
return $counts;
|
1131 |
+
}
|
1132 |
+
|
1133 |
+
/**
|
1134 |
+
* Add items to dashboard menu
|
1135 |
+
*
|
1136 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
1137 |
+
* @since 1.0.0
|
1138 |
+
* @return void
|
1139 |
+
*/
|
1140 |
+
public function admin_vendor_link() {
|
1141 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
1142 |
+
|
1143 |
+
if ( $vendor->is_super_user() ) {
|
1144 |
+
$url_args = array(
|
1145 |
+
'taxonomy' => YITH_Vendors()->get_taxonomy_name(),
|
1146 |
+
'post_type' => 'product'
|
1147 |
+
);
|
1148 |
+
|
1149 |
+
$menu_args = apply_filters( 'yith_wc_product_vendors_taxonomy_menu_items',
|
1150 |
+
array(
|
1151 |
+
'page_title' => YITH_Vendors()->get_vendors_taxonomy_label( 'menu_name' ),
|
1152 |
+
'menu_title' => YITH_Vendors()->get_vendors_taxonomy_label( 'menu_name' ),
|
1153 |
+
'capability' => 'manage_options',
|
1154 |
+
'menu_slug' => htmlspecialchars( add_query_arg( $url_args, 'edit-tags.php' ) ),
|
1155 |
+
'function' => '',
|
1156 |
+
'icon' => 'dashicons-admin-multisite',
|
1157 |
+
'position' => 56
|
1158 |
+
)
|
1159 |
+
);
|
1160 |
+
extract( $menu_args );
|
1161 |
+
add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon, $position );
|
1162 |
+
}
|
1163 |
+
}
|
1164 |
}
|
1165 |
}
|
modules/yith-woocommerce-product-vendors/includes/class.yith-vendors-frontend.php
CHANGED
@@ -51,6 +51,12 @@ if ( ! class_exists( 'YITH_Vendors_Frontend' ) ) {
|
|
51 |
|
52 |
/* Ajax Product Filter Support */
|
53 |
add_filter( 'yith_wcan_product_taxonomy_type', array( $this, 'add_taxonomy_page' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
/**
|
@@ -246,6 +252,23 @@ if ( ! class_exists( 'YITH_Vendors_Frontend' ) ) {
|
|
246 |
$pages[] = YITH_Vendors()->get_taxonomy_name();
|
247 |
return $pages;
|
248 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
}
|
250 |
}
|
251 |
|
51 |
|
52 |
/* Ajax Product Filter Support */
|
53 |
add_filter( 'yith_wcan_product_taxonomy_type', array( $this, 'add_taxonomy_page' ) );
|
54 |
+
|
55 |
+
/* Vendor Admin Bar */
|
56 |
+
add_action( 'template_redirect', array( YITH_Vendors(), 'remove_wp_bar_admin_menu' ) );
|
57 |
+
|
58 |
+
/* MyAccount -> My Order: Disable suborder view */
|
59 |
+
add_filter( 'woocommerce_my_account_my_orders_query', array( $this, 'my_account_my_orders_query' ) );
|
60 |
}
|
61 |
|
62 |
/**
|
252 |
$pages[] = YITH_Vendors()->get_taxonomy_name();
|
253 |
return $pages;
|
254 |
}
|
255 |
+
|
256 |
+
/**
|
257 |
+
* Filter the My account -> My Order page
|
258 |
+
*
|
259 |
+
* Disable suborder view
|
260 |
+
*
|
261 |
+
* @param $query_args Unfiltered query args
|
262 |
+
*
|
263 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
264 |
+
* @since 1.6
|
265 |
+
* @return array The order query args
|
266 |
+
* @use woocommerce_my_account_my_orders_query hook
|
267 |
+
*/
|
268 |
+
public function my_account_my_orders_query( $query_args ){
|
269 |
+
$query_args['post_parent'] = 0;
|
270 |
+
return $query_args;
|
271 |
+
}
|
272 |
}
|
273 |
}
|
274 |
|
modules/yith-woocommerce-product-vendors/includes/class.yith-vendors.php
CHANGED
@@ -89,6 +89,14 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
89 |
*/
|
90 |
public $frontend = null;
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
/**
|
93 |
* Constructor
|
94 |
*
|
@@ -98,6 +106,7 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
98 |
* @access public
|
99 |
*/
|
100 |
public function __construct() {
|
|
|
101 |
/* === Main Classes to Load === */
|
102 |
$require = apply_filters( 'yith_wcpv_require_class',
|
103 |
array(
|
@@ -109,6 +118,7 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
109 |
'includes/class.yith-commissions.php',
|
110 |
'includes/class.yith-vendors-credit.php',
|
111 |
'includes/class.yith-vendors-frontend.php',
|
|
|
112 |
'includes/lib/class.yith-walker-category-dropdown.php',
|
113 |
'widgets/class.yith-woocommerce-vendors-widget.php'
|
114 |
),
|
@@ -170,6 +180,8 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
170 |
if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
171 |
$this->frontend = new YITH_Vendors_Frontend();
|
172 |
}
|
|
|
|
|
173 |
}
|
174 |
|
175 |
/**
|
@@ -235,7 +247,7 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
235 |
'rewrite' => array( 'slug' => 'vendor' ),
|
236 |
);
|
237 |
|
238 |
-
register_taxonomy( $this->_taxonomy_name, 'product', $args );
|
239 |
}
|
240 |
|
241 |
/**
|
@@ -412,12 +424,27 @@ if ( ! class_exists( 'YITH_Vendors' ) ) {
|
|
412 |
* @fire yith_wcpv_widgets filter
|
413 |
*/
|
414 |
public function widgets_init() {
|
415 |
-
|
416 |
$widgets = apply_filters( 'yith_wpv_register_widgets', array( 'YITH_Woocommerce_Vendors_Widget' ) );
|
417 |
-
|
418 |
foreach ( $widgets as $widget ) {
|
419 |
register_widget( $widget );
|
420 |
}
|
421 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
422 |
}
|
423 |
}
|
89 |
*/
|
90 |
public $frontend = null;
|
91 |
|
92 |
+
/**
|
93 |
+
* Main Orders Instance
|
94 |
+
*
|
95 |
+
* @var YITH_Vendors_Frontend
|
96 |
+
* @since 1.0
|
97 |
+
*/
|
98 |
+
public $orders = null;
|
99 |
+
|
100 |
/**
|
101 |
* Constructor
|
102 |
*
|
106 |
* @access public
|
107 |
*/
|
108 |
public function __construct() {
|
109 |
+
|
110 |
/* === Main Classes to Load === */
|
111 |
$require = apply_filters( 'yith_wcpv_require_class',
|
112 |
array(
|
118 |
'includes/class.yith-commissions.php',
|
119 |
'includes/class.yith-vendors-credit.php',
|
120 |
'includes/class.yith-vendors-frontend.php',
|
121 |
+
'includes/class.yith-orders.php',
|
122 |
'includes/lib/class.yith-walker-category-dropdown.php',
|
123 |
'widgets/class.yith-woocommerce-vendors-widget.php'
|
124 |
),
|
180 |
if ( ! is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
181 |
$this->frontend = new YITH_Vendors_Frontend();
|
182 |
}
|
183 |
+
|
184 |
+
$this->orders = new YITH_Orders();
|
185 |
}
|
186 |
|
187 |
/**
|
247 |
'rewrite' => array( 'slug' => 'vendor' ),
|
248 |
);
|
249 |
|
250 |
+
register_taxonomy( $this->_taxonomy_name, apply_filters( 'yith_wcmv_register_taxonomy_object_type', array( 'product' ) ), $args );
|
251 |
}
|
252 |
|
253 |
/**
|
424 |
* @fire yith_wcpv_widgets filter
|
425 |
*/
|
426 |
public function widgets_init() {
|
|
|
427 |
$widgets = apply_filters( 'yith_wpv_register_widgets', array( 'YITH_Woocommerce_Vendors_Widget' ) );
|
|
|
428 |
foreach ( $widgets as $widget ) {
|
429 |
register_widget( $widget );
|
430 |
}
|
431 |
}
|
432 |
+
|
433 |
+
/**
|
434 |
+
* Remove new post and comments wp bar admin menu for vendor
|
435 |
+
*
|
436 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
437 |
+
* @since 1.5.1
|
438 |
+
* @return void
|
439 |
+
*/
|
440 |
+
public function remove_wp_bar_admin_menu() {
|
441 |
+
$vendor = yith_get_vendor( 'current', 'user' );
|
442 |
+
|
443 |
+
if( $vendor->is_valid() && $vendor->has_limited_access() ){
|
444 |
+
remove_action( 'admin_bar_menu', 'wp_admin_bar_comments_menu', 60 );
|
445 |
+
remove_action( 'admin_bar_menu', 'wp_admin_bar_new_content_menu', 70 );
|
446 |
+
}
|
447 |
+
}
|
448 |
+
|
449 |
}
|
450 |
}
|
modules/yith-woocommerce-product-vendors/includes/functions.yith-update.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
|
4 |
-
$vendors_db_option = get_option( 'yith_product_vendors_db_version' );
|
5 |
|
6 |
-
|
|
|
7 |
if ( $vendors_db_option && version_compare( $vendors_db_option, '1.0.1', '<' ) ) {
|
8 |
global $wpdb;
|
9 |
|
@@ -30,10 +30,21 @@ function yith_vendors_update_1_0_2() {
|
|
30 |
}
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
$sql = "ALTER TABLE `{$wpdb->prefix}yith_vendors_commissions` CHANGE `rate` `rate` DECIMAL(5,4) NOT NULL";
|
34 |
$wpdb->query( $sql );
|
35 |
|
36 |
-
update_option( 'yith_product_vendors_db_version', '1.0.
|
37 |
}
|
38 |
}
|
|
|
39 |
add_action( 'admin_init', 'yith_vendors_update_1_0_2' );
|
1 |
<?php
|
2 |
|
3 |
+
//Add support to YITH Product Vendors db version 1.0.1
|
|
|
4 |
|
5 |
+
function yith_vendors_update_1_0_1() {
|
6 |
+
$vendors_db_option = get_option( 'yith_product_vendors_db_version' );
|
7 |
if ( $vendors_db_option && version_compare( $vendors_db_option, '1.0.1', '<' ) ) {
|
8 |
global $wpdb;
|
9 |
|
30 |
}
|
31 |
}
|
32 |
|
33 |
+
update_option( 'yith_product_vendors_db_version', '1.0.1' );
|
34 |
+
}
|
35 |
+
}
|
36 |
+
|
37 |
+
//Add support to YITH Product Vendors db version 1.0.2
|
38 |
+
function yith_vendors_update_1_0_2() {
|
39 |
+
$vendors_db_option = get_option( 'yith_product_vendors_db_version' );
|
40 |
+
if ( $vendors_db_option && version_compare( $vendors_db_option, '1.0.2', '<' ) ) {
|
41 |
+
global $wpdb;
|
42 |
+
|
43 |
$sql = "ALTER TABLE `{$wpdb->prefix}yith_vendors_commissions` CHANGE `rate` `rate` DECIMAL(5,4) NOT NULL";
|
44 |
$wpdb->query( $sql );
|
45 |
|
46 |
+
update_option( 'yith_product_vendors_db_version', '1.0.2' );
|
47 |
}
|
48 |
}
|
49 |
+
add_action( 'admin_init', 'yith_vendors_update_1_0_1' );
|
50 |
add_action( 'admin_init', 'yith_vendors_update_1_0_2' );
|
modules/yith-woocommerce-product-vendors/includes/functions.yith-vendors.php
CHANGED
@@ -26,7 +26,7 @@ if ( ! function_exists( 'yith_wcpv_get_template' ) ) {
|
|
26 |
|
27 |
$ext = strpos( $filename, '.php' ) === false ? '.php' : '';
|
28 |
$template_name = $section . '/' . $filename . $ext;
|
29 |
-
$template_path = WC()->template_path()
|
30 |
$default_path = YITH_WPV_TEMPLATE_PATH;
|
31 |
|
32 |
if( defined( 'YITH_WPV_PREMIUM' ) ){
|
@@ -77,4 +77,17 @@ if ( ! function_exists( 'yith_wcpv_add_vendor_caps' ) ) {
|
|
77 |
}
|
78 |
}
|
79 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
26 |
|
27 |
$ext = strpos( $filename, '.php' ) === false ? '.php' : '';
|
28 |
$template_name = $section . '/' . $filename . $ext;
|
29 |
+
$template_path = WC()->template_path();
|
30 |
$default_path = YITH_WPV_TEMPLATE_PATH;
|
31 |
|
32 |
if( defined( 'YITH_WPV_PREMIUM' ) ){
|
77 |
}
|
78 |
}
|
79 |
}
|
80 |
+
}
|
81 |
+
|
82 |
+
if ( ! function_exists( 'yith_has_live_chat_plugin' ) ) {
|
83 |
+
/**
|
84 |
+
* Check if user has YITH Live Chat Premium plugin
|
85 |
+
*
|
86 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
87 |
+
* @since 1.0
|
88 |
+
* @return bool
|
89 |
+
*/
|
90 |
+
function yith_has_live_chat_plugin() {
|
91 |
+
return defined( 'YLC_PREMIUM' ) && YLC_PREMIUM && defined( 'YLC_VERSION' ) && version_compare( YLC_VERSION, apply_filters( 'yith_wcmv_live_chat_min_version', '1.0.5' ), '>' );
|
92 |
+
}
|
93 |
}
|
modules/yith-woocommerce-product-vendors/includes/lib/class.yith-commissions-list-table.php
CHANGED
@@ -93,9 +93,11 @@ if ( ! class_exists( 'YITH_Commissions_List_Table' ) ) {
|
|
93 |
|
94 |
// commissions args
|
95 |
$args = array(
|
96 |
-
'status'
|
97 |
-
'paged'
|
98 |
-
'number'
|
|
|
|
|
99 |
);
|
100 |
|
101 |
// merge Unpaid with Processing
|
@@ -238,7 +240,19 @@ if ( ! class_exists( 'YITH_Commissions_List_Table' ) ) {
|
|
238 |
|
239 |
$order_number = '<strong>#' . esc_attr( $order->get_order_number() ) . '</strong>';
|
240 |
$order_uri = '<a href="' . admin_url( 'post.php?post=' . absint( $order->id ) . '&action=edit' ) . '">' . $order_number . '</a>';
|
241 |
-
$order_info = $this->_vendor->is_super_user() ? $order_uri : $order_number;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
|
243 |
printf( _x( '%s by %s', 'Order number by user', 'yith_wc_product_vendors' ), $order_info, $username );
|
244 |
|
93 |
|
94 |
// commissions args
|
95 |
$args = array(
|
96 |
+
'status' => $this->get_current_view(),
|
97 |
+
'paged' => $current_page,
|
98 |
+
'number' => $per_page,
|
99 |
+
'orderby' => 'ID',
|
100 |
+
'order' => 'DESC',
|
101 |
);
|
102 |
|
103 |
// merge Unpaid with Processing
|
240 |
|
241 |
$order_number = '<strong>#' . esc_attr( $order->get_order_number() ) . '</strong>';
|
242 |
$order_uri = '<a href="' . admin_url( 'post.php?post=' . absint( $order->id ) . '&action=edit' ) . '">' . $order_number . '</a>';
|
243 |
+
$order_info = $this->_vendor->is_super_user() ? $order_uri : apply_filters( 'yith_wcmv_commissions_order_column', $order_number, $order->get_order_number() );
|
244 |
+
|
245 |
+
if( $this->_vendor->is_super_user() ){
|
246 |
+
$order_info = $order_uri;
|
247 |
+
}
|
248 |
+
|
249 |
+
else if( defined( 'YITH_WPV_PREMIUM' ) && YITH_WPV_PREMIUM && $this->_vendor->has_limited_access() && wp_get_post_parent_id( $order->id )&& in_array($order->id, $this->_vendor->get_orders() ) ){
|
250 |
+
$order_info = $order_uri;
|
251 |
+
}
|
252 |
+
|
253 |
+
else {
|
254 |
+
$order_info = $order_number;
|
255 |
+
}
|
256 |
|
257 |
printf( _x( '%s by %s', 'Order number by user', 'yith_wc_product_vendors' ), $order_info, $username );
|
258 |
|
modules/yith-woocommerce-product-vendors/init.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-product-vendors/
|
|
5 |
Description: YITH WooCommerce Multi Vendor is a plugin explicitly developed to switch your website into a platform hosting more than one shop.
|
6 |
Author: yithemes
|
7 |
Text Domain: yith_wc_product_vendors
|
8 |
-
Version: 1.
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
@@ -46,7 +46,11 @@ if ( ! function_exists( 'WC' ) ) {
|
|
46 |
if ( defined( 'YITH_WPV_VERSION' ) ) {
|
47 |
return;
|
48 |
} else {
|
49 |
-
define( 'YITH_WPV_VERSION', '1.
|
|
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
/* Load YWCM text domain */
|
@@ -60,10 +64,6 @@ if ( ! defined( 'YITH_WPV_SLUG' ) ) {
|
|
60 |
define( 'YITH_WPV_SLUG', 'yith-woocommerce-product-vendors' );
|
61 |
}
|
62 |
|
63 |
-
if ( ! defined( 'YITH_WPV_SECRET_KEY' ) ) {
|
64 |
-
define( 'YITH_WPV_SECRET_KEY', 'KwF34m8Iy5jN8SfWemDi' );
|
65 |
-
}
|
66 |
-
|
67 |
if ( ! defined( 'YITH_WPV_FILE' ) ) {
|
68 |
define( 'YITH_WPV_FILE', __FILE__ );
|
69 |
}
|
@@ -116,5 +116,4 @@ if ( ! function_exists( 'YITH_Vendors' ) ) {
|
|
116 |
*/
|
117 |
YITH_Vendors();
|
118 |
|
119 |
-
//register_activation_hook( YITH_WPV_FILE, 'yith_plugin_registration_hook' );
|
120 |
register_activation_hook( YITH_WPV_FILE, array( 'YITH_Commissions', 'create_commissions_table' ) );
|
5 |
Description: YITH WooCommerce Multi Vendor is a plugin explicitly developed to switch your website into a platform hosting more than one shop.
|
6 |
Author: yithemes
|
7 |
Text Domain: yith_wc_product_vendors
|
8 |
+
Version: 1.6.0
|
9 |
Author URI: http://yithemes.com/
|
10 |
*/
|
11 |
|
46 |
if ( defined( 'YITH_WPV_VERSION' ) ) {
|
47 |
return;
|
48 |
} else {
|
49 |
+
define( 'YITH_WPV_VERSION', '1.6.0' );
|
50 |
+
}
|
51 |
+
|
52 |
+
if ( ! defined( 'YITH_WPV_DB_VERSION' ) ) {
|
53 |
+
define( 'YITH_WPV_DB_VERSION', '1.0.2' );
|
54 |
}
|
55 |
|
56 |
/* Load YWCM text domain */
|
64 |
define( 'YITH_WPV_SLUG', 'yith-woocommerce-product-vendors' );
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
67 |
if ( ! defined( 'YITH_WPV_FILE' ) ) {
|
68 |
define( 'YITH_WPV_FILE', __FILE__ );
|
69 |
}
|
116 |
*/
|
117 |
YITH_Vendors();
|
118 |
|
|
|
119 |
register_activation_hook( YITH_WPV_FILE, array( 'YITH_Commissions', 'create_commissions_table' ) );
|
modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors-it_IT.mo
CHANGED
Binary file
|
modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors-it_IT.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Multi Vendor\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: it_IT\n"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.8.1\n"
|
13 |
-
"X-Poedit-Basepath:
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
16 |
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
@@ -44,43 +44,43 @@ msgstr ""
|
|
44 |
msgid "Payment failed."
|
45 |
msgstr "Pagamento fallito."
|
46 |
|
47 |
-
#: includes/class.yith-commissions.php:
|
48 |
msgid "Paid"
|
49 |
msgstr "Pagata"
|
50 |
|
51 |
-
#: includes/class.yith-commissions.php:
|
52 |
msgid "Unpaid"
|
53 |
msgstr "Non pagata"
|
54 |
|
55 |
-
#: includes/class.yith-commissions.php:
|
56 |
msgid "Pending"
|
57 |
msgstr "In attesa"
|
58 |
|
59 |
-
#: includes/class.yith-commissions.php:
|
60 |
msgid "Refunded"
|
61 |
msgstr "Rimborsata"
|
62 |
|
63 |
-
#: includes/class.yith-commissions.php:
|
64 |
msgid "Cancelled"
|
65 |
msgstr "Annullata"
|
66 |
|
67 |
-
#: includes/class.yith-commissions.php:
|
68 |
msgid "Processing"
|
69 |
msgstr "In corso"
|
70 |
|
|
|
71 |
#: includes/class.yith-commissions.php:277
|
72 |
-
#: includes/class.yith-commissions.php:278
|
73 |
#: includes/class.yith-commissions.php:1170
|
74 |
-
#: includes/class.yith-vendors-admin.php:
|
75 |
msgid "Commissions"
|
76 |
msgstr "Commissioni"
|
77 |
|
78 |
-
#: includes/class.yith-commissions.php:
|
79 |
#, php-format
|
80 |
msgid "Commission #%d details"
|
81 |
msgstr "Dettagli commissione #%d"
|
82 |
|
83 |
-
#: includes/class.yith-commissions.php:
|
84 |
#, php-format
|
85 |
msgid "%1$s ‹ %2$s — WordPress"
|
86 |
msgstr "%1$s ‹ %2$s — WordPress"
|
@@ -96,25 +96,79 @@ msgid "Cancelled %s refund from order"
|
|
96 |
msgstr "Annullato rimborso di %s dall'ordine"
|
97 |
|
98 |
#: includes/class.yith-commissions.php:1206
|
|
|
99 |
msgid "commission_id"
|
100 |
msgstr "id_commissione"
|
101 |
|
102 |
-
#: includes/class.yith-
|
103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
msgid "Vendors"
|
105 |
msgstr "Venditori"
|
106 |
|
107 |
-
#: includes/class.yith-vendors-admin.php:
|
108 |
-
#: includes/class.yith-vendors-admin.php:
|
109 |
msgid "Premium Version"
|
110 |
msgstr "Versione premium"
|
111 |
|
112 |
-
#: includes/class.yith-vendors-admin.php:
|
113 |
-
#: includes/class.yith-vendors-admin.php:
|
114 |
msgid "Multi Vendor"
|
115 |
msgstr "Multi Vendor"
|
116 |
|
117 |
-
#: includes/class.yith-vendors-admin.php:
|
118 |
#, php-format
|
119 |
msgid ""
|
120 |
"You do not have permission to edit this product. %1$sClick here to view and "
|
@@ -123,96 +177,100 @@ msgstr ""
|
|
123 |
"Non hai le autorizzazioni necessarie per modificare questo prodotto. %1$sFai "
|
124 |
"clic qui per visualizzare e modificare i tuoi prodotti%2$s."
|
125 |
|
126 |
-
#: includes/class.yith-vendors-admin.php:
|
127 |
-
#: includes/class.yith-vendors-admin.php:
|
128 |
#: templates/admin/vendor-admin.php:17
|
129 |
msgid "Vendor Details"
|
130 |
msgstr "Dettagli venditore"
|
131 |
|
132 |
-
#: includes/class.yith-vendors-admin.php:
|
133 |
-
#: includes/class.yith-vendors-admin.php:
|
134 |
msgid "A vendor with this name already exists."
|
135 |
msgstr "Esiste già un venditore con questo nome."
|
136 |
|
137 |
-
#: includes/class.yith-vendors-admin.php:
|
138 |
msgid "Vendor name already exists"
|
139 |
msgstr "Questo nome venditore esiste già"
|
140 |
|
141 |
-
#: includes/class.yith-vendors-admin.php:
|
142 |
#, php-format
|
143 |
msgid "No %s"
|
144 |
msgstr "Nessun %s"
|
145 |
|
146 |
-
#: includes/class.yith-vendors-admin.php:
|
147 |
msgid "Settings"
|
148 |
msgstr "Impostazioni"
|
149 |
|
150 |
-
#: includes/class.yith-vendors-admin.php:
|
151 |
msgid "Premium live demo"
|
152 |
msgstr "Anteprima premium"
|
153 |
|
154 |
-
#: includes/class.yith-vendors-admin.php:
|
155 |
msgid "Live demo"
|
156 |
msgstr "Anteprima"
|
157 |
|
158 |
-
#: includes/class.yith-vendors-admin.php:
|
159 |
msgid "Plugin Documentation"
|
160 |
msgstr "Documentazione plugin"
|
161 |
|
162 |
-
#: includes/class.yith-vendors
|
163 |
-
|
|
|
|
|
|
|
|
|
164 |
msgid "Vendor"
|
165 |
msgstr "Venditore"
|
166 |
|
167 |
-
#: includes/class.yith-vendors.php:
|
168 |
msgid "Search Vendors"
|
169 |
msgstr "Cerca venditori"
|
170 |
|
171 |
-
#: includes/class.yith-vendors.php:
|
172 |
msgid "All Vendors"
|
173 |
msgstr "Tutti i venditori"
|
174 |
|
175 |
-
#: includes/class.yith-vendors.php:
|
176 |
msgid "Parent Vendor"
|
177 |
msgstr "Venditore padre"
|
178 |
|
179 |
-
#: includes/class.yith-vendors.php:
|
180 |
msgid "Parent Vendor:"
|
181 |
msgstr "Venditore padre:"
|
182 |
|
183 |
-
#: includes/class.yith-vendors.php:
|
184 |
msgid "View Vendor"
|
185 |
msgstr "Visualizza venditore"
|
186 |
|
187 |
-
#: includes/class.yith-vendors.php:
|
188 |
msgid "Edit Vendor"
|
189 |
msgstr "Modifica venditore"
|
190 |
|
191 |
-
#: includes/class.yith-vendors.php:
|
192 |
msgid "Update Vendor"
|
193 |
msgstr "Aggiorna venditore"
|
194 |
|
195 |
-
#: includes/class.yith-vendors.php:
|
196 |
msgid "Add New Vendor"
|
197 |
msgstr "Aggiungi nuovo venditore"
|
198 |
|
199 |
-
#: includes/class.yith-vendors.php:
|
200 |
msgid "New Vendor's Name"
|
201 |
msgstr "Nome nuovo venditore"
|
202 |
|
203 |
-
#: includes/class.yith-vendors.php:
|
204 |
msgid "Separate vendors with commas"
|
205 |
msgstr "Utilizza la virgola per separare i venditori"
|
206 |
|
207 |
-
#: includes/class.yith-vendors.php:
|
208 |
msgid "Add or remove vendors"
|
209 |
msgstr "Aggiungi o rimuovi venditori"
|
210 |
|
211 |
-
#: includes/class.yith-vendors.php:
|
212 |
msgid "Choose from most used vendors"
|
213 |
msgstr "Scegli tra gli shop venditori più utilizzati"
|
214 |
|
215 |
-
#: includes/class.yith-vendors.php:
|
216 |
msgid "No vendors found"
|
217 |
msgstr "Nessun venditore trovato"
|
218 |
|
@@ -229,7 +287,7 @@ msgid "Product"
|
|
229 |
msgstr "Prodotto"
|
230 |
|
231 |
#: includes/lib/class.yith-commissions-list-table.php:63
|
232 |
-
#: templates/admin/commission-view.php:
|
233 |
msgid "Rate"
|
234 |
msgstr "Tasso"
|
235 |
|
@@ -246,7 +304,7 @@ msgid "Date"
|
|
246 |
msgstr "Data"
|
247 |
|
248 |
#: includes/lib/class.yith-commissions-list-table.php:68
|
249 |
-
#: templates/admin/commission-view.php:
|
250 |
msgid "Last update"
|
251 |
msgstr "Ultimo aggiornamento"
|
252 |
|
@@ -255,54 +313,54 @@ msgstr "Ultimo aggiornamento"
|
|
255 |
msgid "Actions"
|
256 |
msgstr "Azioni"
|
257 |
|
258 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
259 |
msgid "Order Deleted"
|
260 |
msgstr "Ordine eliminato"
|
261 |
|
262 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
263 |
#: templates/admin/commission-view.php:126
|
264 |
msgid "Guest"
|
265 |
msgstr "Ospite"
|
266 |
|
267 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
268 |
#, php-format
|
269 |
msgctxt "Order number by user"
|
270 |
msgid "%s by %s"
|
271 |
msgstr "%s per %s"
|
272 |
|
273 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
274 |
-
#: templates/admin/commission-view.php:
|
275 |
msgid "User deleted"
|
276 |
msgstr "Utente eliminato"
|
277 |
|
278 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
279 |
-
#: templates/admin/commission-view.php:
|
280 |
msgid "Vendor deleted"
|
281 |
msgstr "Venditore eliminato"
|
282 |
|
283 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
284 |
msgid "View"
|
285 |
msgstr "Visualizza"
|
286 |
|
287 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
288 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
289 |
-
#: templates/admin/commission-view.php:
|
290 |
msgid "Y/m/d g:i:s A"
|
291 |
msgstr "Y/m/d g:i:s A"
|
292 |
|
293 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
294 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
295 |
-
#: templates/admin/commission-view.php:
|
296 |
#, php-format
|
297 |
msgid "%s ago"
|
298 |
msgstr "%s fa"
|
299 |
|
300 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
301 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
302 |
msgid "Y/m/d"
|
303 |
msgstr "Y/m/d"
|
304 |
|
305 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
306 |
msgid "No commissions found."
|
307 |
msgstr "Nessuna commissione trovata."
|
308 |
|
@@ -314,30 +372,54 @@ msgstr ""
|
|
314 |
"YITH WooCommerce Multi Vendor è abilitato ma non in funzione. Devi aver "
|
315 |
"installato WooCommerce per farlo funzionare."
|
316 |
|
317 |
-
#: plugin-options/commissions-options.php:
|
318 |
msgid "General settings"
|
319 |
msgstr "Impostazioni generali"
|
320 |
|
321 |
-
#: plugin-options/commissions-options.php:
|
322 |
msgid "Commission Base"
|
323 |
msgstr "Commissione base"
|
324 |
|
325 |
-
#: plugin-options/commissions-options.php:
|
326 |
msgid "Default commission percentage"
|
327 |
msgstr "Percentuale commissione di base"
|
328 |
|
329 |
-
#: plugin-options/vendors-options.php:
|
330 |
msgid "Product management"
|
331 |
msgstr "Gestione prodotti"
|
332 |
|
333 |
-
#: plugin-options/vendors-options.php:
|
334 |
msgid "Vendor name label color"
|
335 |
msgstr "Colore nome venditore"
|
336 |
|
337 |
-
#: plugin-options/vendors-options.php:
|
338 |
msgid "Use in shop page and single product page"
|
339 |
msgstr "Usa nella pagina shop e nella pagina singolo prodotto"
|
340 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
#: templates/admin/add-product-vendors-taxonomy.php:12
|
342 |
#: templates/admin/edit-product-vendors-taxonomy.php:13
|
343 |
msgid "Vendor Shop Owner"
|
@@ -418,82 +500,82 @@ msgstr "Ancora non sono presenti note."
|
|
418 |
msgid "Commission %s Details"
|
419 |
msgstr "Dettagli commissione %s"
|
420 |
|
421 |
-
#: templates/admin/commission-view.php:
|
422 |
#, php-format
|
423 |
msgctxt "Commission credited to [user]"
|
424 |
msgid "credited to %s — from order %s — order status: %s"
|
425 |
msgstr "accreditata a %s — dall'ordine %s — stato dell'ordine: %s"
|
426 |
|
427 |
-
#: templates/admin/commission-view.php:
|
428 |
msgid "General details"
|
429 |
msgstr "Dettagli"
|
430 |
|
431 |
-
#: templates/admin/commission-view.php:
|
432 |
msgid "Status"
|
433 |
msgstr "Stato"
|
434 |
|
435 |
-
#: templates/admin/commission-view.php:
|
436 |
msgid "Commission date"
|
437 |
msgstr "Data della commissione"
|
438 |
|
439 |
-
#: templates/admin/commission-view.php:
|
440 |
msgid "User details"
|
441 |
msgstr "Dettaglio utente"
|
442 |
|
443 |
-
#: templates/admin/commission-view.php:
|
444 |
msgid "Email"
|
445 |
msgstr "Email"
|
446 |
|
447 |
-
#: templates/admin/commission-view.php:
|
448 |
msgid "PayPal"
|
449 |
msgstr "PayPal"
|
450 |
|
451 |
-
#: templates/admin/commission-view.php:
|
452 |
msgid "Billing information"
|
453 |
msgstr "Informazioni di fatturazione"
|
454 |
|
455 |
-
#: templates/admin/commission-view.php:
|
456 |
msgid "Shipping information"
|
457 |
msgstr "Informazioni di spedizione"
|
458 |
|
459 |
-
#: templates/admin/commission-view.php:
|
460 |
msgid "Item data"
|
461 |
msgstr "Dati articolo"
|
462 |
|
463 |
-
#: templates/admin/commission-view.php:
|
464 |
msgid "Item"
|
465 |
msgstr "Articolo"
|
466 |
|
467 |
-
#: templates/admin/commission-view.php:
|
468 |
msgid "Qty"
|
469 |
msgstr "Qtà"
|
470 |
|
471 |
-
#: templates/admin/commission-view.php:
|
472 |
msgid "Cost"
|
473 |
msgstr "Costo"
|
474 |
|
475 |
-
#: templates/admin/commission-view.php:
|
476 |
msgid "Product ID:"
|
477 |
msgstr "ID prodotto:"
|
478 |
|
479 |
-
#: templates/admin/commission-view.php:
|
480 |
-
#: templates/admin/commission-view.php:
|
481 |
msgid "Variation ID:"
|
482 |
msgstr "ID variazione:"
|
483 |
|
484 |
-
#: templates/admin/commission-view.php:
|
485 |
msgid "No longer exists"
|
486 |
msgstr "Non esiste più"
|
487 |
|
488 |
-
#: templates/admin/commission-view.php:
|
489 |
msgid "Product SKU:"
|
490 |
msgstr "Codice SKU prodotto:"
|
491 |
|
492 |
-
#: templates/admin/commission-view.php:
|
493 |
msgid "Coupon(s) Used"
|
494 |
msgstr "Coupon utilizzati"
|
495 |
|
496 |
-
#: templates/admin/commission-view.php:
|
497 |
msgid "Commission"
|
498 |
msgstr "Commissione"
|
499 |
|
@@ -520,388 +602,358 @@ msgid "Percentage of the total sale price that this vendor receives."
|
|
520 |
msgstr ""
|
521 |
"Percentuale sul prezzo totale del prodotto che riceve questo venditore."
|
522 |
|
523 |
-
#: templates/admin/premium.php:239 templates/admin/premium.php:
|
524 |
#, php-format
|
525 |
msgid ""
|
526 |
-
"Upgrade to the %1$spremium version%2$s
|
527 |
-
"
|
528 |
-
"from all features!"
|
529 |
msgstr ""
|
530 |
-
"Aggiorna alla %1$sversione premium%2$s
|
531 |
-
"
|
532 |
-
"funzionalità!"
|
533 |
|
534 |
-
#: templates/admin/premium.php:
|
535 |
#, php-format
|
536 |
msgid "%1$s UPGRADE %2$s %3$s to the premium version %2$s"
|
537 |
msgstr "%1$s AGGIORNA %2$s %3$s alla versione premium %2$s"
|
538 |
|
539 |
-
#: templates/admin/premium.php:
|
|
|
|
|
|
|
|
|
540 |
msgid "A richer vendor shop page"
|
541 |
-
msgstr "Una pagina
|
542 |
|
543 |
-
#: templates/admin/premium.php:
|
544 |
#, php-format
|
545 |
msgid ""
|
546 |
-
"The vendor page gets more details!Vendors will be able to add their
|
547 |
-
"
|
548 |
-
"
|
549 |
-
" social network profiles (Facebook, Twitter, Google+, "
|
550 |
-
"LinkedIn and YouTube)\n"
|
551 |
-
" "
|
552 |
msgstr ""
|
553 |
-
"
|
554 |
-
"
|
555 |
-
"profili dei social più diffusi
|
556 |
"(Facebook, Twitter, Google+, LinkedIn e YouTube). "
|
557 |
|
558 |
-
#: templates/admin/premium.php:
|
559 |
#, php-format
|
560 |
msgid ""
|
561 |
-
"These pieces of
|
562 |
-
"
|
563 |
-
"shop with a %sheader%s where style and images can\n"
|
564 |
-
" be customized."
|
565 |
msgstr ""
|
566 |
-
"Queste informazioni
|
567 |
-
"
|
568 |
-
"in cui è possibile personalizzare\n"
|
569 |
-
"stile e immagine."
|
570 |
|
571 |
-
#: templates/admin/premium.php:
|
572 |
msgid "One or more administrators for every vendor shop"
|
573 |
msgstr "Uno o più amministratori per negozio"
|
574 |
|
575 |
-
#: templates/admin/premium.php:
|
576 |
#, php-format
|
577 |
msgid ""
|
578 |
"The administrators of the vendor shop are one of the most important new "
|
579 |
-
"features.%s They are simple
|
580 |
-
"
|
581 |
-
"
|
582 |
-
" about a vendor shop by the administrator of the store or "
|
583 |
-
"the owner of the vendor shop."
|
584 |
msgstr ""
|
585 |
-
"L’amministratore del negozio è una delle novità più rilevanti.%s
|
586 |
-
"di
|
587 |
-
"
|
588 |
-
"
|
589 |
-
"
|
590 |
-
"proprietario del negozio."
|
591 |
-
|
592 |
-
#: templates/admin/premium.php:
|
593 |
#, php-format
|
594 |
msgid ""
|
595 |
-
"The only
|
596 |
-
"
|
597 |
-
"that only administrator of the store or the owner\n"
|
598 |
-
" of the vendor shop can set."
|
599 |
msgstr ""
|
600 |
-
"L'unico
|
601 |
-
"
|
602 |
-
"
|
603 |
-
" e del proprietario del negozio."
|
604 |
|
605 |
-
#: templates/admin/premium.php:
|
606 |
msgid "Direct product sale"
|
607 |
msgstr "Vendita diretta del prodotto"
|
608 |
|
609 |
-
#: templates/admin/premium.php:
|
610 |
#, php-format
|
611 |
msgid ""
|
612 |
"Thanks to the %s“Skip Admin review”%s option, vendors can publish new "
|
613 |
-
"products without the store
|
614 |
-
"
|
615 |
-
"all the vendor shops, or just to the selected\n"
|
616 |
-
" ones."
|
617 |
msgstr ""
|
618 |
-
"Grazie all’opzione %s\"Salta
|
619 |
-
"potrà pubblicare nuovi prodotti
|
620 |
-
"
|
621 |
-
"
|
622 |
-
"
|
623 |
|
624 |
-
#: templates/admin/premium.php:
|
625 |
msgid "Actions for commissions"
|
626 |
msgstr "Action per le commissioni"
|
627 |
|
628 |
-
#: templates/admin/premium.php:
|
629 |
msgid ""
|
630 |
"A commissions table with more details to be always up-to-date. Every "
|
631 |
-
"commission offers a set of
|
632 |
-
"
|
633 |
-
"set as manual), or to change the state of the\n"
|
634 |
-
" commission."
|
635 |
msgstr ""
|
636 |
"Una tabella commissioni con più dettagli, per seguire eventuali "
|
637 |
-
"aggiornamenti. Per ogni commissione è presente
|
638 |
-
"
|
639 |
-
"
|
640 |
-
"o cambiare lo stato della commissione."
|
641 |
|
642 |
-
#: templates/admin/premium.php:
|
643 |
msgid "Variable commission rates"
|
644 |
msgstr "Tassi di commissione variabili"
|
645 |
|
646 |
-
#: templates/admin/premium.php:
|
647 |
#, php-format
|
648 |
msgid ""
|
649 |
"%sNo more single commission rate for all the vendor shops:%s in the premium "
|
650 |
-
"version of the plugin, this
|
651 |
-
"
|
652 |
-
"for every product associated."
|
653 |
msgstr ""
|
654 |
"%sNon più un unico tasso percentuale di commissione per tutti i negozi:%s "
|
655 |
-
"nella versione premium del plugin
|
656 |
-
"
|
657 |
-
"prodotti associati."
|
658 |
|
659 |
-
#: templates/admin/premium.php:
|
660 |
msgid "Coupon handling"
|
661 |
msgstr "Gestione coupon"
|
662 |
|
663 |
-
#: templates/admin/premium.php:
|
664 |
#, php-format
|
665 |
msgid ""
|
666 |
"If users use a coupon during a purchase, how will vendor commissions be "
|
667 |
-
"calculated? It's up to you
|
668 |
-
"
|
669 |
-
"
|
670 |
-
" the discounted total or not."
|
671 |
msgstr ""
|
672 |
"E se l’utente ha utilizzato un coupon per il suo acquisto, come saranno "
|
673 |
-
"calcolate le commissioni dovute al venditore
|
674 |
-
"
|
675 |
-
"
|
676 |
|
677 |
-
#: templates/admin/premium.php:
|
678 |
msgid "COUPON CREATION"
|
679 |
msgstr "Creazione coupon"
|
680 |
|
681 |
-
#: templates/admin/premium.php:
|
682 |
#, php-format
|
683 |
msgid ""
|
684 |
-
"With the option %s “Enable coupon
|
685 |
-
"
|
686 |
-
"
|
687 |
-
" they own. A nice innovation to offer to your vendor-"
|
688 |
-
"users."
|
689 |
msgstr ""
|
690 |
-
"Grazie all’opzione %s
|
691 |
-
"shop
|
692 |
-
"
|
693 |
-
"
|
694 |
|
695 |
-
#: templates/admin/premium.php:
|
696 |
msgid "REVIEWS"
|
697 |
msgstr "Recensioni"
|
698 |
|
699 |
-
#: templates/admin/premium.php:
|
700 |
#, php-format
|
701 |
msgid ""
|
702 |
-
" Just like coupons, this option is tailored on the need to manage reviews
|
703 |
-
"
|
704 |
-
"plugin
|
705 |
-
"
|
706 |
-
"
|
707 |
-
" vendors will be free to manage the reviews of the "
|
708 |
-
"products they own, and act with the same privileges of the administrator of "
|
709 |
-
"the store."
|
710 |
msgstr ""
|
711 |
-
"
|
712 |
-
"recensioni\n"
|
713 |
-
"
|
714 |
-
"
|
715 |
-
"
|
716 |
-
"
|
717 |
-
|
718 |
-
|
719 |
-
#: templates/admin/premium.php:454
|
720 |
msgid "Advanced reports"
|
721 |
msgstr "Report avanzati"
|
722 |
|
723 |
-
#: templates/admin/premium.php:
|
724 |
#, php-format
|
725 |
msgid ""
|
726 |
"Statistics have a central relevance in the e-commerce field and WooCommerce "
|
727 |
-
"Multi Vendor offers you
|
728 |
-
"
|
729 |
-
"
|
730 |
-
" including convenient commission diagrams for each of "
|
731 |
-
"them."
|
732 |
msgstr ""
|
733 |
-
"Le statistiche hanno sempre un ruolo importante nel
|
734 |
-
"YITH WooCommerce Multi Vendor mette a tua disposizione
|
735 |
-
"
|
736 |
-
"
|
737 |
-
"
|
738 |
-
"di essi."
|
739 |
|
740 |
-
#: templates/admin/premium.php:
|
741 |
msgid "CSV exportation of the reports"
|
742 |
msgstr "Esportazione report in CSV"
|
743 |
|
744 |
-
#: templates/admin/premium.php:
|
745 |
#, php-format
|
746 |
msgid ""
|
747 |
"For each report, %syou can export its data in the CSV format%s: in this way, "
|
748 |
-
"you will be free to use all
|
749 |
-
"
|
750 |
-
"related to WordPress."
|
751 |
msgstr ""
|
752 |
-
"Per ogni report
|
753 |
-
"formato CSV%s, così da metterti nelle condizioni di poter
|
754 |
-
"informazioni
|
755 |
-
"
|
756 |
|
757 |
-
#: templates/admin/premium.php:
|
758 |
msgid "Vendor's product exclusion from the shop (Product listing)"
|
759 |
-
msgstr "Esclusione prodotti venditore dallo shop (
|
760 |
|
761 |
-
#: templates/admin/premium.php:
|
762 |
#, php-format
|
763 |
msgid ""
|
764 |
"The %s\"Product listing\"%s option has been conceived to exclude from the "
|
765 |
-
"shop the products of a
|
766 |
-
" particular vendor. In this way, these would be "
|
767 |
"consultable only from the relative vendor's page."
|
768 |
msgstr ""
|
769 |
-
"L’opzione %s
|
770 |
-
"
|
771 |
-
"
|
772 |
-
"
|
773 |
|
774 |
-
#: templates/admin/premium.php:
|
775 |
msgid "Three widgets for your sidebars"
|
776 |
msgstr "Tre widget per le tue sidebar"
|
777 |
|
778 |
-
#: templates/admin/premium.php:
|
779 |
#, php-format
|
780 |
msgid ""
|
781 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store "
|
782 |
-
"Location%2$s: these are the three widgets
|
783 |
-
"
|
784 |
-
"
|
785 |
-
"
|
786 |
-
"
|
787 |
-
" about their locations, or a contact form users can use "
|
788 |
-
"to send emails to the shop\n"
|
789 |
-
" administrators."
|
790 |
msgstr ""
|
791 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s e %1$sYITH Vendor Store "
|
792 |
-
"Location%2$s: sono questi i tre widget
|
793 |
-
"
|
794 |
-
"
|
795 |
-
"
|
796 |
-
"
|
797 |
-
|
798 |
-
|
799 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
msgid "VISUALIZATION OF THE VENDOR'S NAME"
|
801 |
msgstr "VISUALIZZAZIONE NOME DEL VENDITORE"
|
802 |
|
803 |
-
#: templates/admin/premium.php:
|
804 |
msgid ""
|
805 |
"The default setting of the plugin shows the name of each vendor in three "
|
806 |
"pages of your site: the shop page, the product detail page and product "
|
807 |
-
"category page
|
808 |
-
"
|
809 |
-
"and hide them whenever you want with three different options."
|
810 |
msgstr ""
|
811 |
-
"Il comportamento
|
812 |
-
"pagine del tuo sito: la pagina shop,
|
813 |
-
"pagina categoria prodotto
|
814 |
"Gestisci questa visualizzazione attraverso tre comode opzioni per nascondere "
|
815 |
-
"il nome del venditore
|
816 |
|
817 |
-
#: templates/admin/premium.php:
|
818 |
msgid "REGISTRATION FROM THE “MY ACCOUNT” PAGE"
|
819 |
msgstr "REGISTRAZIONE DALLA PAGINA “Il mio account”"
|
820 |
|
821 |
-
#: templates/admin/premium.php:
|
822 |
msgid ""
|
823 |
"A more dynamic management for whoever would like to become a vendor of your "
|
824 |
-
"store
|
825 |
-
"
|
826 |
-
"
|
827 |
-
"
|
828 |
-
"to sell their products."
|
829 |
msgstr ""
|
830 |
"Una gestione molto più dinamica per chiunque abbia voglia di diventare un "
|
831 |
-
"venditore
|
832 |
-
"Ogni nuovo utente può procedere alla registrazione come
|
833 |
-
"direttamente dalla pagina
|
834 |
"un’area amministrativa. Dopo l’abilitazione da parte dell’amministratore, i "
|
835 |
"suoi prodotti potranno essere messi in vendita."
|
836 |
|
837 |
-
#: templates/admin/premium.php:
|
838 |
msgid "RESTRICTED NUMBER OF PRODUCTS"
|
839 |
msgstr "NUMERO LIMITATO DI PRODOTTI"
|
840 |
|
841 |
-
#: templates/admin/premium.php:
|
842 |
msgid ""
|
843 |
"The option “Enable product amount limit” has been conceived to whoever would "
|
844 |
-
"like to limit the
|
845 |
-
"
|
846 |
-
"
|
847 |
-
" products that each vendor can create."
|
848 |
msgstr ""
|
849 |
-
"L’opzione “Abilita limite
|
850 |
-
"
|
851 |
-
"
|
852 |
-
"
|
853 |
-
"indicando un numero massimo di prodotti caricabili."
|
854 |
|
855 |
-
#: templates/admin/premium.php:
|
856 |
msgid "BULK ACTIONS ON VENDORS"
|
857 |
msgstr "BULK ACTION SUI VENDITORI"
|
858 |
|
859 |
-
#: templates/admin/premium.php:
|
860 |
msgid ""
|
861 |
"How many times did you find yourself annoyed by the repetition of the same "
|
862 |
"passages with a huge waste of time? Well, now vendors management is "
|
863 |
-
"completely renewed
|
864 |
-
" You will be able to apply bulk actions on all the "
|
865 |
"registered vendors, approving or deleting them all together with just one "
|
866 |
"click."
|
867 |
msgstr ""
|
868 |
-
"Quante volte ti è capitato di essere infastidito dal dover ripetere
|
869 |
-
"
|
870 |
-
"
|
871 |
-
"problemi!\n"
|
872 |
"Per tutti i venditori registrati al tuo shop potrai applicare azioni di "
|
873 |
"gruppo, approvandoli o cancellandoli tutti insieme in un solo colpo."
|
874 |
|
875 |
-
#: templates/admin/premium.php:
|
876 |
msgid "Advanced administration area for each vendor"
|
877 |
msgstr "Area amministrativa avanzata per ogni venditore"
|
878 |
|
879 |
-
#: templates/admin/premium.php:
|
880 |
msgid ""
|
881 |
"A breath of fresh air for the \"vendor users\" that can take advantage of a "
|
882 |
-
"big and advanced
|
883 |
-
"
|
884 |
-
"
|
885 |
-
"
|
886 |
-
"
|
887 |
-
" Each vendor can also check the commissions table, with "
|
888 |
-
"the whole sum of the relative commissions up\n"
|
889 |
-
" to that moment."
|
890 |
msgstr ""
|
891 |
-
"Una ventata di novità anche per gli
|
892 |
-
"di un’area amministrativa ampia e avanzata
|
893 |
-
"
|
894 |
-
"
|
895 |
-
"
|
896 |
-
"
|
897 |
-
"
|
898 |
-
|
899 |
-
|
900 |
-
#: templates/admin/premium.php:659
|
901 |
msgid "ABUSE REPORT"
|
902 |
msgstr "SEGNALAZIONE UTENTE"
|
903 |
|
904 |
-
#: templates/admin/premium.php:
|
905 |
msgid ""
|
906 |
"With this feature, your users will be able to send you a message about one "
|
907 |
"of the products of your shop with a dedicated form that will open in a popup "
|
@@ -912,6 +964,77 @@ msgstr ""
|
|
912 |
"segnalazione che si aprirà in popup all'interno della pagina dettaglio del "
|
913 |
"prodotto in questione."
|
914 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
915 |
#: templates/admin/vendor-admin.php:24
|
916 |
msgid "Name:"
|
917 |
msgstr "Nome:"
|
@@ -981,6 +1104,277 @@ msgstr "Quantità di prodotti del venditore"
|
|
981 |
msgid "Hide vendors with no products"
|
982 |
msgstr "Nascondi venditori che non hanno prodotti"
|
983 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
984 |
#~ msgid "Vendor's amount of products"
|
985 |
#~ msgstr "Quantità di prodotti del venditore"
|
986 |
|
@@ -1665,9 +2059,6 @@ msgstr "Nascondi venditori che non hanno prodotti"
|
|
1665 |
#~ msgid "Number of items sold"
|
1666 |
#~ msgstr "Numero di articoli venduti"
|
1667 |
|
1668 |
-
#~ msgid "Sales amount"
|
1669 |
-
#~ msgstr "Importo di vendita"
|
1670 |
-
|
1671 |
#~ msgid "Commission page view"
|
1672 |
#~ msgstr "Visualizzazione pagina commissioni"
|
1673 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: YITH WooCommerce Multi Vendor\n"
|
4 |
+
"POT-Creation-Date: 2015-09-29 16:31+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-09-29 16:31+0100\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
8 |
"Language: it_IT\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.8.1\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
15 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
16 |
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
|
44 |
msgid "Payment failed."
|
45 |
msgstr "Pagamento fallito."
|
46 |
|
47 |
+
#: includes/class.yith-commissions.php:213
|
48 |
msgid "Paid"
|
49 |
msgstr "Pagata"
|
50 |
|
51 |
+
#: includes/class.yith-commissions.php:214
|
52 |
msgid "Unpaid"
|
53 |
msgstr "Non pagata"
|
54 |
|
55 |
+
#: includes/class.yith-commissions.php:215
|
56 |
msgid "Pending"
|
57 |
msgstr "In attesa"
|
58 |
|
59 |
+
#: includes/class.yith-commissions.php:216
|
60 |
msgid "Refunded"
|
61 |
msgstr "Rimborsata"
|
62 |
|
63 |
+
#: includes/class.yith-commissions.php:217
|
64 |
msgid "Cancelled"
|
65 |
msgstr "Annullata"
|
66 |
|
67 |
+
#: includes/class.yith-commissions.php:218
|
68 |
msgid "Processing"
|
69 |
msgstr "In corso"
|
70 |
|
71 |
+
#: includes/class.yith-commissions.php:276
|
72 |
#: includes/class.yith-commissions.php:277
|
|
|
73 |
#: includes/class.yith-commissions.php:1170
|
74 |
+
#: includes/class.yith-vendors-admin.php:145
|
75 |
msgid "Commissions"
|
76 |
msgstr "Commissioni"
|
77 |
|
78 |
+
#: includes/class.yith-commissions.php:341
|
79 |
#, php-format
|
80 |
msgid "Commission #%d details"
|
81 |
msgstr "Dettagli commissione #%d"
|
82 |
|
83 |
+
#: includes/class.yith-commissions.php:342
|
84 |
#, php-format
|
85 |
msgid "%1$s ‹ %2$s — WordPress"
|
86 |
msgstr "%1$s ‹ %2$s — WordPress"
|
96 |
msgstr "Annullato rimborso di %s dall'ordine"
|
97 |
|
98 |
#: includes/class.yith-commissions.php:1206
|
99 |
+
#: includes/class.yith-orders.php:1442
|
100 |
msgid "commission_id"
|
101 |
msgstr "id_commissione"
|
102 |
|
103 |
+
#: includes/class.yith-orders.php:179
|
104 |
+
#, php-format
|
105 |
+
msgid "Order – %s"
|
106 |
+
msgstr ""
|
107 |
+
|
108 |
+
#: includes/class.yith-orders.php:179
|
109 |
+
msgctxt "Order date parsed by strftime"
|
110 |
+
msgid "%b %d, %Y @ %I:%M %p"
|
111 |
+
msgstr ""
|
112 |
+
|
113 |
+
#: includes/class.yith-orders.php:388 includes/class.yith-orders.php:710
|
114 |
+
msgctxt "Order note"
|
115 |
+
msgid "Website owner update: "
|
116 |
+
msgstr ""
|
117 |
+
|
118 |
+
#: includes/class.yith-orders.php:703
|
119 |
+
msgid "Delete note"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/class.yith-orders.php:805
|
123 |
+
#, php-format
|
124 |
+
msgid "Item #%s stock reduced from %s to %s."
|
125 |
+
msgstr ""
|
126 |
+
|
127 |
+
#: includes/class.yith-orders.php:811
|
128 |
+
#, php-format
|
129 |
+
msgid "Item #%s stock increased from %s to %s."
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: includes/class.yith-orders.php:1500
|
133 |
+
msgctxt "Admin: Order table column"
|
134 |
+
msgid "Suborders"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: includes/class.yith-orders.php:1539 includes/class.yith-orders.php:1603
|
138 |
+
msgid "in"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: includes/class.yith-orders.php:1567
|
142 |
+
msgctxt "Admin: Single order page. Suborder details box"
|
143 |
+
msgid "Suborders"
|
144 |
+
msgstr ""
|
145 |
+
|
146 |
+
#: includes/class.yith-orders.php:1572
|
147 |
+
msgctxt "Admin: Single order page. Parent order details box"
|
148 |
+
msgid "Parent order"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: includes/class.yith-orders.php:1614
|
152 |
+
msgctxt "Admin: single order page. Link to parent order"
|
153 |
+
msgid "Return to main order"
|
154 |
+
msgstr ""
|
155 |
+
|
156 |
+
#: includes/class.yith-vendors-admin.php:146
|
157 |
+
#: includes/class.yith-vendors.php:269
|
158 |
msgid "Vendors"
|
159 |
msgstr "Venditori"
|
160 |
|
161 |
+
#: includes/class.yith-vendors-admin.php:147
|
162 |
+
#: includes/class.yith-vendors-admin.php:873
|
163 |
msgid "Premium Version"
|
164 |
msgstr "Versione premium"
|
165 |
|
166 |
+
#: includes/class.yith-vendors-admin.php:154
|
167 |
+
#: includes/class.yith-vendors-admin.php:155
|
168 |
msgid "Multi Vendor"
|
169 |
msgstr "Multi Vendor"
|
170 |
|
171 |
+
#: includes/class.yith-vendors-admin.php:277
|
172 |
#, php-format
|
173 |
msgid ""
|
174 |
"You do not have permission to edit this product. %1$sClick here to view and "
|
177 |
"Non hai le autorizzazioni necessarie per modificare questo prodotto. %1$sFai "
|
178 |
"clic qui per visualizzare e modificare i tuoi prodotti%2$s."
|
179 |
|
180 |
+
#: includes/class.yith-vendors-admin.php:321
|
181 |
+
#: includes/class.yith-vendors-admin.php:322
|
182 |
#: templates/admin/vendor-admin.php:17
|
183 |
msgid "Vendor Details"
|
184 |
msgstr "Dettagli venditore"
|
185 |
|
186 |
+
#: includes/class.yith-vendors-admin.php:462
|
187 |
+
#: includes/class.yith-vendors-admin.php:482
|
188 |
msgid "A vendor with this name already exists."
|
189 |
msgstr "Esiste già un venditore con questo nome."
|
190 |
|
191 |
+
#: includes/class.yith-vendors-admin.php:463
|
192 |
msgid "Vendor name already exists"
|
193 |
msgstr "Questo nome venditore esiste già"
|
194 |
|
195 |
+
#: includes/class.yith-vendors-admin.php:787
|
196 |
#, php-format
|
197 |
msgid "No %s"
|
198 |
msgstr "Nessun %s"
|
199 |
|
200 |
+
#: includes/class.yith-vendors-admin.php:868
|
201 |
msgid "Settings"
|
202 |
msgstr "Impostazioni"
|
203 |
|
204 |
+
#: includes/class.yith-vendors-admin.php:869
|
205 |
msgid "Premium live demo"
|
206 |
msgstr "Anteprima premium"
|
207 |
|
208 |
+
#: includes/class.yith-vendors-admin.php:869
|
209 |
msgid "Live demo"
|
210 |
msgstr "Anteprima"
|
211 |
|
212 |
+
#: includes/class.yith-vendors-admin.php:897
|
213 |
msgid "Plugin Documentation"
|
214 |
msgstr "Documentazione plugin"
|
215 |
|
216 |
+
#: includes/class.yith-vendors-admin.php:989
|
217 |
+
msgid "Visit Store"
|
218 |
+
msgstr ""
|
219 |
+
|
220 |
+
#: includes/class.yith-vendors.php:267 includes/class.yith-vendors.php:268
|
221 |
+
#: templates/admin/commission-view.php:193
|
222 |
msgid "Vendor"
|
223 |
msgstr "Venditore"
|
224 |
|
225 |
+
#: includes/class.yith-vendors.php:270
|
226 |
msgid "Search Vendors"
|
227 |
msgstr "Cerca venditori"
|
228 |
|
229 |
+
#: includes/class.yith-vendors.php:271
|
230 |
msgid "All Vendors"
|
231 |
msgstr "Tutti i venditori"
|
232 |
|
233 |
+
#: includes/class.yith-vendors.php:272
|
234 |
msgid "Parent Vendor"
|
235 |
msgstr "Venditore padre"
|
236 |
|
237 |
+
#: includes/class.yith-vendors.php:273
|
238 |
msgid "Parent Vendor:"
|
239 |
msgstr "Venditore padre:"
|
240 |
|
241 |
+
#: includes/class.yith-vendors.php:274
|
242 |
msgid "View Vendor"
|
243 |
msgstr "Visualizza venditore"
|
244 |
|
245 |
+
#: includes/class.yith-vendors.php:275
|
246 |
msgid "Edit Vendor"
|
247 |
msgstr "Modifica venditore"
|
248 |
|
249 |
+
#: includes/class.yith-vendors.php:276
|
250 |
msgid "Update Vendor"
|
251 |
msgstr "Aggiorna venditore"
|
252 |
|
253 |
+
#: includes/class.yith-vendors.php:277
|
254 |
msgid "Add New Vendor"
|
255 |
msgstr "Aggiungi nuovo venditore"
|
256 |
|
257 |
+
#: includes/class.yith-vendors.php:278
|
258 |
msgid "New Vendor's Name"
|
259 |
msgstr "Nome nuovo venditore"
|
260 |
|
261 |
+
#: includes/class.yith-vendors.php:280
|
262 |
msgid "Separate vendors with commas"
|
263 |
msgstr "Utilizza la virgola per separare i venditori"
|
264 |
|
265 |
+
#: includes/class.yith-vendors.php:281
|
266 |
msgid "Add or remove vendors"
|
267 |
msgstr "Aggiungi o rimuovi venditori"
|
268 |
|
269 |
+
#: includes/class.yith-vendors.php:282
|
270 |
msgid "Choose from most used vendors"
|
271 |
msgstr "Scegli tra gli shop venditori più utilizzati"
|
272 |
|
273 |
+
#: includes/class.yith-vendors.php:283
|
274 |
msgid "No vendors found"
|
275 |
msgstr "Nessun venditore trovato"
|
276 |
|
287 |
msgstr "Prodotto"
|
288 |
|
289 |
#: includes/lib/class.yith-commissions-list-table.php:63
|
290 |
+
#: templates/admin/commission-view.php:462
|
291 |
msgid "Rate"
|
292 |
msgstr "Tasso"
|
293 |
|
304 |
msgstr "Data"
|
305 |
|
306 |
#: includes/lib/class.yith-commissions-list-table.php:68
|
307 |
+
#: templates/admin/commission-view.php:166
|
308 |
msgid "Last update"
|
309 |
msgstr "Ultimo aggiornamento"
|
310 |
|
313 |
msgid "Actions"
|
314 |
msgstr "Azioni"
|
315 |
|
316 |
+
#: includes/lib/class.yith-commissions-list-table.php:206
|
317 |
msgid "Order Deleted"
|
318 |
msgstr "Ordine eliminato"
|
319 |
|
320 |
+
#: includes/lib/class.yith-commissions-list-table.php:237
|
321 |
#: templates/admin/commission-view.php:126
|
322 |
msgid "Guest"
|
323 |
msgstr "Ospite"
|
324 |
|
325 |
+
#: includes/lib/class.yith-commissions-list-table.php:257
|
326 |
#, php-format
|
327 |
msgctxt "Order number by user"
|
328 |
msgid "%s by %s"
|
329 |
msgstr "%s per %s"
|
330 |
|
331 |
+
#: includes/lib/class.yith-commissions-list-table.php:285
|
332 |
+
#: templates/admin/commission-view.php:188
|
333 |
msgid "User deleted"
|
334 |
msgstr "Utente eliminato"
|
335 |
|
336 |
+
#: includes/lib/class.yith-commissions-list-table.php:297
|
337 |
+
#: templates/admin/commission-view.php:199
|
338 |
msgid "Vendor deleted"
|
339 |
msgstr "Venditore eliminato"
|
340 |
|
341 |
+
#: includes/lib/class.yith-commissions-list-table.php:310
|
342 |
msgid "View"
|
343 |
msgstr "Visualizza"
|
344 |
|
345 |
+
#: includes/lib/class.yith-commissions-list-table.php:315
|
346 |
+
#: includes/lib/class.yith-commissions-list-table.php:335
|
347 |
+
#: templates/admin/commission-view.php:169
|
348 |
msgid "Y/m/d g:i:s A"
|
349 |
msgstr "Y/m/d g:i:s A"
|
350 |
|
351 |
+
#: includes/lib/class.yith-commissions-list-table.php:322
|
352 |
+
#: includes/lib/class.yith-commissions-list-table.php:342
|
353 |
+
#: templates/admin/commission-view.php:170
|
354 |
#, php-format
|
355 |
msgid "%s ago"
|
356 |
msgstr "%s fa"
|
357 |
|
358 |
+
#: includes/lib/class.yith-commissions-list-table.php:325
|
359 |
+
#: includes/lib/class.yith-commissions-list-table.php:344
|
360 |
msgid "Y/m/d"
|
361 |
msgstr "Y/m/d"
|
362 |
|
363 |
+
#: includes/lib/class.yith-commissions-list-table.php:376
|
364 |
msgid "No commissions found."
|
365 |
msgstr "Nessuna commissione trovata."
|
366 |
|
372 |
"YITH WooCommerce Multi Vendor è abilitato ma non in funzione. Devi aver "
|
373 |
"installato WooCommerce per farlo funzionare."
|
374 |
|
375 |
+
#: plugin-options/commissions-options.php:20
|
376 |
msgid "General settings"
|
377 |
msgstr "Impostazioni generali"
|
378 |
|
379 |
+
#: plugin-options/commissions-options.php:27
|
380 |
msgid "Commission Base"
|
381 |
msgstr "Commissione base"
|
382 |
|
383 |
+
#: plugin-options/commissions-options.php:30
|
384 |
msgid "Default commission percentage"
|
385 |
msgstr "Percentuale commissione di base"
|
386 |
|
387 |
+
#: plugin-options/vendors-options.php:20
|
388 |
msgid "Product management"
|
389 |
msgstr "Gestione prodotti"
|
390 |
|
391 |
+
#: plugin-options/vendors-options.php:27
|
392 |
msgid "Vendor name label color"
|
393 |
msgstr "Colore nome venditore"
|
394 |
|
395 |
+
#: plugin-options/vendors-options.php:29
|
396 |
msgid "Use in shop page and single product page"
|
397 |
msgstr "Usa nella pagina shop e nella pagina singolo prodotto"
|
398 |
|
399 |
+
#: plugin-options/vendors-options.php:43
|
400 |
+
msgid "Order management"
|
401 |
+
msgstr ""
|
402 |
+
|
403 |
+
#: plugin-options/vendors-options.php:50
|
404 |
+
msgid "Enable order management"
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: plugin-options/vendors-options.php:52
|
408 |
+
msgid ""
|
409 |
+
"If you enable this option, each vendor will be able to manage orders on his/"
|
410 |
+
"her own products independently."
|
411 |
+
msgstr ""
|
412 |
+
|
413 |
+
#: plugin-options/vendors-options.php:58
|
414 |
+
msgid "Order synchronization"
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
+
#: plugin-options/vendors-options.php:60
|
418 |
+
msgid ""
|
419 |
+
"All changes to general orders will be synchronized with the individual "
|
420 |
+
"vendor's order"
|
421 |
+
msgstr ""
|
422 |
+
|
423 |
#: templates/admin/add-product-vendors-taxonomy.php:12
|
424 |
#: templates/admin/edit-product-vendors-taxonomy.php:13
|
425 |
msgid "Vendor Shop Owner"
|
500 |
msgid "Commission %s Details"
|
501 |
msgstr "Dettagli commissione %s"
|
502 |
|
503 |
+
#: templates/admin/commission-view.php:148
|
504 |
#, php-format
|
505 |
msgctxt "Commission credited to [user]"
|
506 |
msgid "credited to %s — from order %s — order status: %s"
|
507 |
msgstr "accreditata a %s — dall'ordine %s — stato dell'ordine: %s"
|
508 |
|
509 |
+
#: templates/admin/commission-view.php:155
|
510 |
msgid "General details"
|
511 |
msgstr "Dettagli"
|
512 |
|
513 |
+
#: templates/admin/commission-view.php:158
|
514 |
msgid "Status"
|
515 |
msgstr "Stato"
|
516 |
|
517 |
+
#: templates/admin/commission-view.php:162
|
518 |
msgid "Commission date"
|
519 |
msgstr "Data della commissione"
|
520 |
|
521 |
+
#: templates/admin/commission-view.php:180
|
522 |
msgid "User details"
|
523 |
msgstr "Dettaglio utente"
|
524 |
|
525 |
+
#: templates/admin/commission-view.php:185
|
526 |
msgid "Email"
|
527 |
msgstr "Email"
|
528 |
|
529 |
+
#: templates/admin/commission-view.php:204
|
530 |
msgid "PayPal"
|
531 |
msgstr "PayPal"
|
532 |
|
533 |
+
#: templates/admin/commission-view.php:212
|
534 |
msgid "Billing information"
|
535 |
msgstr "Informazioni di fatturazione"
|
536 |
|
537 |
+
#: templates/admin/commission-view.php:237
|
538 |
msgid "Shipping information"
|
539 |
msgstr "Informazioni di spedizione"
|
540 |
|
541 |
+
#: templates/admin/commission-view.php:272
|
542 |
msgid "Item data"
|
543 |
msgstr "Dati articolo"
|
544 |
|
545 |
+
#: templates/admin/commission-view.php:279
|
546 |
msgid "Item"
|
547 |
msgstr "Articolo"
|
548 |
|
549 |
+
#: templates/admin/commission-view.php:280
|
550 |
msgid "Qty"
|
551 |
msgstr "Qtà"
|
552 |
|
553 |
+
#: templates/admin/commission-view.php:281
|
554 |
msgid "Cost"
|
555 |
msgstr "Costo"
|
556 |
|
557 |
+
#: templates/admin/commission-view.php:293
|
558 |
msgid "Product ID:"
|
559 |
msgstr "ID prodotto:"
|
560 |
|
561 |
+
#: templates/admin/commission-view.php:296
|
562 |
+
#: templates/admin/commission-view.php:298
|
563 |
msgid "Variation ID:"
|
564 |
msgstr "ID variazione:"
|
565 |
|
566 |
+
#: templates/admin/commission-view.php:298
|
567 |
msgid "No longer exists"
|
568 |
msgstr "Non esiste più"
|
569 |
|
570 |
+
#: templates/admin/commission-view.php:302
|
571 |
msgid "Product SKU:"
|
572 |
msgstr "Codice SKU prodotto:"
|
573 |
|
574 |
+
#: templates/admin/commission-view.php:438
|
575 |
msgid "Coupon(s) Used"
|
576 |
msgstr "Coupon utilizzati"
|
577 |
|
578 |
+
#: templates/admin/commission-view.php:468
|
579 |
msgid "Commission"
|
580 |
msgstr "Commissione"
|
581 |
|
602 |
msgstr ""
|
603 |
"Percentuale sul prezzo totale del prodotto che riceve questo venditore."
|
604 |
|
605 |
+
#: templates/admin/premium.php:239 templates/admin/premium.php:661
|
606 |
#, php-format
|
607 |
msgid ""
|
608 |
+
"Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Multi Vendor"
|
609 |
+
"%2$s to benefit from all features!"
|
|
|
610 |
msgstr ""
|
611 |
+
"Aggiorna alla %1$sversione premium%2$s del %1$sYITH WooCommerce Multi Vendor"
|
612 |
+
"%2$s per beneficiare di tutte le funzionalità."
|
|
|
613 |
|
614 |
+
#: templates/admin/premium.php:243 templates/admin/premium.php:665
|
615 |
#, php-format
|
616 |
msgid "%1$s UPGRADE %2$s %3$s to the premium version %2$s"
|
617 |
msgstr "%1$s AGGIORNA %2$s %3$s alla versione premium %2$s"
|
618 |
|
619 |
+
#: templates/admin/premium.php:250
|
620 |
+
msgid "Premium Features"
|
621 |
+
msgstr "Funzionalità premium"
|
622 |
+
|
623 |
+
#: templates/admin/premium.php:259
|
624 |
msgid "A richer vendor shop page"
|
625 |
+
msgstr "Una pagina negozio più ricca"
|
626 |
|
627 |
+
#: templates/admin/premium.php:262
|
628 |
#, php-format
|
629 |
msgid ""
|
630 |
+
"The vendor page gets more details!Vendors will be able to add their %s "
|
631 |
+
"contact details %s (email, address, phone number) and the most common social "
|
632 |
+
"network profiles (Facebook, Twitter, Google+, LinkedIn and YouTube)"
|
|
|
|
|
|
|
633 |
msgstr ""
|
634 |
+
"La pagina del venditore si arricchisce di dettagli!\n"
|
635 |
+
"Per ogni venditore possono essere aggiunti%s i dettagli di contatto%s "
|
636 |
+
"(email, indirizzo, numero di telefono) e i profili dei social più diffusi "
|
637 |
"(Facebook, Twitter, Google+, LinkedIn e YouTube). "
|
638 |
|
639 |
+
#: templates/admin/premium.php:265
|
640 |
#, php-format
|
641 |
msgid ""
|
642 |
+
"These pieces of information are gathered in the page of every vendor shop "
|
643 |
+
"with a %sheader%s where style and images can be customized."
|
|
|
|
|
644 |
msgstr ""
|
645 |
+
"Queste informazioni vengono raccolte all’interno della pagina di ogni "
|
646 |
+
"negozio con un%s header%s in cui è possibile personalizzare stile e immagine."
|
|
|
|
|
647 |
|
648 |
+
#: templates/admin/premium.php:276
|
649 |
msgid "One or more administrators for every vendor shop"
|
650 |
msgstr "Uno o più amministratori per negozio"
|
651 |
|
652 |
+
#: templates/admin/premium.php:279
|
653 |
#, php-format
|
654 |
msgid ""
|
655 |
"The administrators of the vendor shop are one of the most important new "
|
656 |
+
"features.%s They are simple registered users of the shop that have been "
|
657 |
+
"admitted to %smanage the products%s and all the information about a vendor "
|
658 |
+
"shop by the administrator of the store or the owner of the vendor shop."
|
|
|
|
|
659 |
msgstr ""
|
660 |
+
"L’amministratore del negozio è una delle novità più rilevanti.%s È un "
|
661 |
+
"qualsiasi utente registrato allo shop a cui è stato concesso di %sgestire i "
|
662 |
+
"prodotti%s e tutte le informazioni legate al negozio direttamente "
|
663 |
+
"dall'amministratore del sito o dal proprietario del negozio. L'unico "
|
664 |
+
"elemento che non può modificare è la tipologia di pagamento che rimane "
|
665 |
+
"prerogativa dell’amministratore dello store e del proprietario del negozio."
|
666 |
+
|
667 |
+
#: templates/admin/premium.php:282
|
668 |
#, php-format
|
669 |
msgid ""
|
670 |
+
"The only element they can't change is the %stype of payment%s that only "
|
671 |
+
"administrator of the store or the owner of the vendor shop can set."
|
|
|
|
|
672 |
msgstr ""
|
673 |
+
"L'unico elemento che non si può cambiare è il %stipo di pagamento%s che può "
|
674 |
+
"cambiare solo l'amministratore dello store o il proprietario della pagina "
|
675 |
+
"negozio."
|
|
|
676 |
|
677 |
+
#: templates/admin/premium.php:299
|
678 |
msgid "Direct product sale"
|
679 |
msgstr "Vendita diretta del prodotto"
|
680 |
|
681 |
+
#: templates/admin/premium.php:302
|
682 |
#, php-format
|
683 |
msgid ""
|
684 |
"Thanks to the %s“Skip Admin review”%s option, vendors can publish new "
|
685 |
+
"products without the store administrator approval. This option can be "
|
686 |
+
"applied to all the vendor shops, or just to the selected ones."
|
|
|
|
|
687 |
msgstr ""
|
688 |
+
"Grazie all’opzione %s\"Salta revisione dell'amministratore”%s, il venditore "
|
689 |
+
"potrà essere messo nelle condizione di pubblicare nuovi prodotti senza dover "
|
690 |
+
"aspettare che sia l’amministratore dello store a farlo per lui. La "
|
691 |
+
"funzionalità può essere prevista per tutti i venditori dello shop o "
|
692 |
+
"applicata solo ad alcuni di essi."
|
693 |
|
694 |
+
#: templates/admin/premium.php:313
|
695 |
msgid "Actions for commissions"
|
696 |
msgstr "Action per le commissioni"
|
697 |
|
698 |
+
#: templates/admin/premium.php:316
|
699 |
msgid ""
|
700 |
"A commissions table with more details to be always up-to-date. Every "
|
701 |
+
"commission offers a set of buttons to quickly proceed to the PayPal payments "
|
702 |
+
"(if set as manual), or to change the state of the commission."
|
|
|
|
|
703 |
msgstr ""
|
704 |
"Una tabella commissioni con più dettagli, per seguire eventuali "
|
705 |
+
"aggiornamenti. Per ogni commissione, è presente inoltre una serie di "
|
706 |
+
"pulsanti cosi da procedere rapidamente al pagamento PayPal (se impostato "
|
707 |
+
"come manuale) o cambiare lo stato della commissione."
|
|
|
708 |
|
709 |
+
#: templates/admin/premium.php:333 templates/admin/premium.php:367
|
710 |
msgid "Variable commission rates"
|
711 |
msgstr "Tassi di commissione variabili"
|
712 |
|
713 |
+
#: templates/admin/premium.php:336 templates/admin/premium.php:370
|
714 |
#, php-format
|
715 |
msgid ""
|
716 |
"%sNo more single commission rate for all the vendor shops:%s in the premium "
|
717 |
+
"version of the plugin, this rate can be modified for every single vendor "
|
718 |
+
"shop and for every product associated."
|
|
|
719 |
msgstr ""
|
720 |
"%sNon più un unico tasso percentuale di commissione per tutti i negozi:%s "
|
721 |
+
"nella versione premium del plugin, questa potrà essere modificata per "
|
722 |
+
"ciascun negozio e per ognuno dei prodotti che gli sono associati."
|
|
|
723 |
|
724 |
+
#: templates/admin/premium.php:347
|
725 |
msgid "Coupon handling"
|
726 |
msgstr "Gestione coupon"
|
727 |
|
728 |
+
#: templates/admin/premium.php:350
|
729 |
#, php-format
|
730 |
msgid ""
|
731 |
"If users use a coupon during a purchase, how will vendor commissions be "
|
732 |
+
"calculated? It's up to you: with the %s\"Coupon handling\"%s option, you can "
|
733 |
+
"decide whether you want to calculate the commission for the discounted total "
|
734 |
+
"or not."
|
|
|
735 |
msgstr ""
|
736 |
"E se l’utente ha utilizzato un coupon per il suo acquisto, come saranno "
|
737 |
+
"calcolate le commissioni dovute al venditore? Decidi tu, attraverso "
|
738 |
+
"l’apposita opzione %s\"Gestione coupon\"%s, se calcolare l’importo delle "
|
739 |
+
"commissione al netto del coupon o no."
|
740 |
|
741 |
+
#: templates/admin/premium.php:381
|
742 |
msgid "COUPON CREATION"
|
743 |
msgstr "Creazione coupon"
|
744 |
|
745 |
+
#: templates/admin/premium.php:384
|
746 |
#, php-format
|
747 |
msgid ""
|
748 |
+
"With the option %s “Enable coupon management” %s, the vendors of your shop "
|
749 |
+
"can create coupons regarding the products they own. A nice innovation to "
|
750 |
+
"offer to your vendor-users."
|
|
|
|
|
751 |
msgstr ""
|
752 |
+
"Grazie all’opzione %s“Abilita gestione coupon”%s, ogni venditore del tuo "
|
753 |
+
"shop può essere libero di generare dei coupon per i prodotti di cui è "
|
754 |
+
"proprietario. Una bella novità per dare sempre più possibilità di gestione "
|
755 |
+
"al tuo utente venditore. "
|
756 |
|
757 |
+
#: templates/admin/premium.php:401
|
758 |
msgid "REVIEWS"
|
759 |
msgstr "Recensioni"
|
760 |
|
761 |
+
#: templates/admin/premium.php:404
|
762 |
#, php-format
|
763 |
msgid ""
|
764 |
+
" Just like coupons, this option is tailored on the need to manage reviews "
|
765 |
+
"and it has been added to the premium version of the plugin. Activating the "
|
766 |
+
"%s“Enable review management”%s option from the option panel of the plugin, "
|
767 |
+
"vendors will be free to manage the reviews of the products they own, and act "
|
768 |
+
"with the same privileges of the administrator of the store."
|
|
|
|
|
|
|
769 |
msgstr ""
|
770 |
+
"Come per i coupon, un’opzione fatta su misura anche per regolare la gestione "
|
771 |
+
"delle recensioni è stata inserita nella versione premium de plugin. \n"
|
772 |
+
"Abilitando la voce %s“Abilita gestione recensioni”%s dal pannello opzioni "
|
773 |
+
"del plugin, viene concessa a ogni venditore la possibilità di gestire le "
|
774 |
+
"recensioni dei prodotti di cui è proprietario e operare su queste con gli "
|
775 |
+
"stessi poteri dell’amministratore dell’intero store. "
|
776 |
+
|
777 |
+
#: templates/admin/premium.php:415
|
|
|
778 |
msgid "Advanced reports"
|
779 |
msgstr "Report avanzati"
|
780 |
|
781 |
+
#: templates/admin/premium.php:418
|
782 |
#, php-format
|
783 |
msgid ""
|
784 |
"Statistics have a central relevance in the e-commerce field and WooCommerce "
|
785 |
+
"Multi Vendor offers you different reports to %sanalyze your data%s: from the "
|
786 |
+
"most lucrative vendors, to the best sellers, including convenient commission "
|
787 |
+
"diagrams for each of them."
|
|
|
|
|
788 |
msgstr ""
|
789 |
+
"Le statistiche hanno sempre un ruolo importante nel campo dell’e-commerce e "
|
790 |
+
"YITH WooCommerce Multi Vendor mette a tua disposizione una serie di report "
|
791 |
+
"attraverso cui puoi%s analizzare svariati dati%s: dai venditori che stanno "
|
792 |
+
"guadagnando di più, a quelli che hanno generato il maggior numero di "
|
793 |
+
"vendite, passando dal grafico di commissioni per ognuno di essi."
|
|
|
794 |
|
795 |
+
#: templates/admin/premium.php:435
|
796 |
msgid "CSV exportation of the reports"
|
797 |
msgstr "Esportazione report in CSV"
|
798 |
|
799 |
+
#: templates/admin/premium.php:438
|
800 |
#, php-format
|
801 |
msgid ""
|
802 |
"For each report, %syou can export its data in the CSV format%s: in this way, "
|
803 |
+
"you will be free to use all the report details in every fields not "
|
804 |
+
"expressively related to WordPress."
|
|
|
805 |
msgstr ""
|
806 |
+
"Per ogni report %sè prevista la possibilità di esportare i suoi dati nel "
|
807 |
+
"formato CSV%s, così da metterti nelle condizioni di poter sfruttare le "
|
808 |
+
"informazioni provenienti dai report anche al di fuori del contesto di "
|
809 |
+
"WordPress."
|
810 |
|
811 |
+
#: templates/admin/premium.php:449
|
812 |
msgid "Vendor's product exclusion from the shop (Product listing)"
|
813 |
+
msgstr "Esclusione prodotti venditore dallo shop (Lista prodotto)"
|
814 |
|
815 |
+
#: templates/admin/premium.php:452
|
816 |
#, php-format
|
817 |
msgid ""
|
818 |
"The %s\"Product listing\"%s option has been conceived to exclude from the "
|
819 |
+
"shop the products of a particular vendor. In this way, these would be "
|
|
|
820 |
"consultable only from the relative vendor's page."
|
821 |
msgstr ""
|
822 |
+
"L’opzione %s“Lista prodotto”%s nasce per soddisfare l’esigenza di chi vuole "
|
823 |
+
"escludere dallo shop i prodotti associati a un venditore. Così facendo essi "
|
824 |
+
"saranno consultabili dagli utenti solo tramite la pagina del venditore "
|
825 |
+
"associato."
|
826 |
|
827 |
+
#: templates/admin/premium.php:469
|
828 |
msgid "Three widgets for your sidebars"
|
829 |
msgstr "Tre widget per le tue sidebar"
|
830 |
|
831 |
+
#: templates/admin/premium.php:472
|
832 |
#, php-format
|
833 |
msgid ""
|
834 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store "
|
835 |
+
"Location%2$s: these are the three widgets that the plugin offers you. Thanks "
|
836 |
+
"to these widgets, you will be able to show the list of the registered "
|
837 |
+
"vendors of your shop, and enrich the detail page of the vendor shops with "
|
838 |
+
"information about their locations, or a contact form users can use to send "
|
839 |
+
"emails to the shop administrators."
|
|
|
|
|
|
|
840 |
msgstr ""
|
841 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s e %1$sYITH Vendor Store "
|
842 |
+
"Location%2$s: sono questi i tre widget che il plugin ti mette a "
|
843 |
+
"disposizione. Attraverso questi potrai mostrare la lista dei venditori "
|
844 |
+
"registrati al tuo shop e arricchire la pagina dettaglio dei negozi con "
|
845 |
+
"informazioni sulla loro posizione e un contact form attraverso il quale gli "
|
846 |
+
"utenti possono inviare email all’amministratore dello shop."
|
847 |
+
|
848 |
+
#: templates/admin/premium.php:482
|
849 |
+
msgid "Shortcode"
|
850 |
+
msgstr "Shortcode"
|
851 |
+
|
852 |
+
#: templates/admin/premium.php:485
|
853 |
+
msgid ""
|
854 |
+
"Take advantage of the YITH WooCommerce Multi Vendor List shortcode to show "
|
855 |
+
"the complete list of your shop vendors in any page."
|
856 |
+
msgstr ""
|
857 |
+
"Sfrutta l’utilità dello shortcode YITH WooCommerce Elenco Venditori per "
|
858 |
+
"avere la possibilità di mostrare la lista completa dei vendor del tuo shop "
|
859 |
+
"all’interno di qualsiasi pagina."
|
860 |
+
|
861 |
+
#: templates/admin/premium.php:502
|
862 |
msgid "VISUALIZATION OF THE VENDOR'S NAME"
|
863 |
msgstr "VISUALIZZAZIONE NOME DEL VENDITORE"
|
864 |
|
865 |
+
#: templates/admin/premium.php:505
|
866 |
msgid ""
|
867 |
"The default setting of the plugin shows the name of each vendor in three "
|
868 |
"pages of your site: the shop page, the product detail page and product "
|
869 |
+
"category page. Now you can decide whether you want to show their name and "
|
870 |
+
"hide them whenever you want with three different options."
|
|
|
871 |
msgstr ""
|
872 |
+
"Il comportamento di default del plugin è quello di mostrare il nome del "
|
873 |
+
"venditore in tre pagine del tuo sito: la pagina shop, quella di dettaglio "
|
874 |
+
"del prodotto e la pagina categoria prodotto. \n"
|
875 |
"Gestisci questa visualizzazione attraverso tre comode opzioni per nascondere "
|
876 |
+
"il nome del venditore qualora lo reputi necessario."
|
877 |
|
878 |
+
#: templates/admin/premium.php:516
|
879 |
msgid "REGISTRATION FROM THE “MY ACCOUNT” PAGE"
|
880 |
msgstr "REGISTRAZIONE DALLA PAGINA “Il mio account”"
|
881 |
|
882 |
+
#: templates/admin/premium.php:519
|
883 |
msgid ""
|
884 |
"A more dynamic management for whoever would like to become a vendor of your "
|
885 |
+
"store. All new users can register as \"vendors\" of the shop directly from "
|
886 |
+
"the “My Account” page, and use immediately an administration area. After the "
|
887 |
+
"confirmation by the administrator, the vendors will be able to sell their "
|
888 |
+
"products."
|
|
|
889 |
msgstr ""
|
890 |
"Una gestione molto più dinamica per chiunque abbia voglia di diventare un "
|
891 |
+
"venditore sul tuo store. \n"
|
892 |
+
"Ogni nuovo utente può procedere alla registrazione come “venditore” dello "
|
893 |
+
"shop direttamente dalla pagina “My Account” e avere subito a disposizione "
|
894 |
"un’area amministrativa. Dopo l’abilitazione da parte dell’amministratore, i "
|
895 |
"suoi prodotti potranno essere messi in vendita."
|
896 |
|
897 |
+
#: templates/admin/premium.php:537
|
898 |
msgid "RESTRICTED NUMBER OF PRODUCTS"
|
899 |
msgstr "NUMERO LIMITATO DI PRODOTTI"
|
900 |
|
901 |
+
#: templates/admin/premium.php:540
|
902 |
msgid ""
|
903 |
"The option “Enable product amount limit” has been conceived to whoever would "
|
904 |
+
"like to limit the creation of products of the shop vendors, with the freedom "
|
905 |
+
"to indicate a specific maximum number of products that each vendor can "
|
906 |
+
"create."
|
|
|
907 |
msgstr ""
|
908 |
+
"L’opzione “Abilita numero limite prodotto” è stata pensata per chi desidera "
|
909 |
+
"limitare la creazione di prodotti da parte dei venditori dello shop, "
|
910 |
+
"indicando un numero massimo di prodotti che possono essere creati da ognuno "
|
911 |
+
"di essi."
|
|
|
912 |
|
913 |
+
#: templates/admin/premium.php:550
|
914 |
msgid "BULK ACTIONS ON VENDORS"
|
915 |
msgstr "BULK ACTION SUI VENDITORI"
|
916 |
|
917 |
+
#: templates/admin/premium.php:553
|
918 |
msgid ""
|
919 |
"How many times did you find yourself annoyed by the repetition of the same "
|
920 |
"passages with a huge waste of time? Well, now vendors management is "
|
921 |
+
"completely renewed! You will be able to apply bulk actions on all the "
|
|
|
922 |
"registered vendors, approving or deleting them all together with just one "
|
923 |
"click."
|
924 |
msgstr ""
|
925 |
+
"Quante volte ti è capitato di essere infastidito dal dover ripetere sempre "
|
926 |
+
"una stessa operazione, con una perdita di tempo notevole? Sappi allora che "
|
927 |
+
"per la gestione dei venditori non avrai più questi problemi!\n"
|
|
|
928 |
"Per tutti i venditori registrati al tuo shop potrai applicare azioni di "
|
929 |
"gruppo, approvandoli o cancellandoli tutti insieme in un solo colpo."
|
930 |
|
931 |
+
#: templates/admin/premium.php:569
|
932 |
msgid "Advanced administration area for each vendor"
|
933 |
msgstr "Area amministrativa avanzata per ogni venditore"
|
934 |
|
935 |
+
#: templates/admin/premium.php:572
|
936 |
msgid ""
|
937 |
"A breath of fresh air for the \"vendor users\" that can take advantage of a "
|
938 |
+
"big and advanced administrative area. From this place, they will be free to "
|
939 |
+
"consult the reports about their products,change their profile information "
|
940 |
+
"and choose the payment method they prefer. Each vendor can also check the "
|
941 |
+
"commissions table, with the whole sum of the relative commissions up to that "
|
942 |
+
"moment."
|
|
|
|
|
|
|
943 |
msgstr ""
|
944 |
+
"Una ventata di novità anche per gli “utenti venditori” che potranno fruire "
|
945 |
+
"di un’area amministrativa ampia e avanzata. Da essa potranno consultare "
|
946 |
+
"report sui loro prodotti, modificare le informazioni associate al loro "
|
947 |
+
"profilo e scegliere la metodologia di pagamento preferita.\n"
|
948 |
+
"Ogni venditore può inoltre consultare in qualsiasi momento la tabella delle "
|
949 |
+
"commissioni, riepilogativa di tutte quelle che — dalla registrazione sino a "
|
950 |
+
"quel momento — gli sono state associate"
|
951 |
+
|
952 |
+
#: templates/admin/premium.php:582
|
|
|
953 |
msgid "ABUSE REPORT"
|
954 |
msgstr "SEGNALAZIONE UTENTE"
|
955 |
|
956 |
+
#: templates/admin/premium.php:585
|
957 |
msgid ""
|
958 |
"With this feature, your users will be able to send you a message about one "
|
959 |
"of the products of your shop with a dedicated form that will open in a popup "
|
964 |
"segnalazione che si aprirà in popup all'interno della pagina dettaglio del "
|
965 |
"prodotto in questione."
|
966 |
|
967 |
+
#: templates/admin/premium.php:601
|
968 |
+
msgid "Second email"
|
969 |
+
msgstr "Reinvio email"
|
970 |
+
|
971 |
+
#: templates/admin/premium.php:604
|
972 |
+
msgid ""
|
973 |
+
"Each time that a new order is registered or cancelled, a notification email "
|
974 |
+
"is sent to the corresponding vendor. This sending can sometimes be affected "
|
975 |
+
"by some problems, and this is why you should be able to send again the lost "
|
976 |
+
"email. With the premium version of the plugin, you will just have to go to "
|
977 |
+
"the detail page of the order and with a single click everything will be "
|
978 |
+
"solved."
|
979 |
+
msgstr ""
|
980 |
+
"Ogni qualvolta che un nuovo ordine viene registrato o annullato, un’email di "
|
981 |
+
"notifica viene spedita al vendor corrispondente.\n"
|
982 |
+
"L’invio a volte può comportare delle complicazioni, non andare a buon fine, "
|
983 |
+
"e in questo caso è bene che tu possa avere la possibilità di spedire "
|
984 |
+
"nuovamente l’email andata persa. Con la versione premium del plugin ti "
|
985 |
+
"basterà accedere alla pagina dettaglio dell’ordine e in un solo clic la tua "
|
986 |
+
"necessità sarà esaudita."
|
987 |
+
|
988 |
+
#: templates/admin/premium.php:614
|
989 |
+
msgid "Minimum amount of commissions"
|
990 |
+
msgstr "Soglia minima di commissione"
|
991 |
+
|
992 |
+
#: templates/admin/premium.php:617
|
993 |
+
msgid ""
|
994 |
+
"If each vendor can decide a commission threshold for which asking the "
|
995 |
+
"payment, administrators must be free to control how this works.Setting a "
|
996 |
+
"minimum amount of commissions, you will be free to pay commissions starting "
|
997 |
+
"from the amount you have set."
|
998 |
+
msgstr ""
|
999 |
+
"Se è vero che ogni vendor può decidere la soglia di commissione per cui "
|
1000 |
+
"richiedere il pagamento, è anche vero che l’amministratore dello shop deve "
|
1001 |
+
"essere messo nelle condizioni di regolare in qualche modo questo "
|
1002 |
+
"comportamento.\n"
|
1003 |
+
"Impostando una soglia minima di commissione, sarai libero di pagare "
|
1004 |
+
"commissioni con importo maggiore o uguale a quello da te indicato."
|
1005 |
+
|
1006 |
+
#: templates/admin/premium.php:633
|
1007 |
+
msgid "Highlighted products"
|
1008 |
+
msgstr "Prodotti in evidenza"
|
1009 |
+
|
1010 |
+
#: templates/admin/premium.php:636
|
1011 |
+
msgid ""
|
1012 |
+
"Setting a WooCommerce product as \"Featured\" means standing it out among "
|
1013 |
+
"the others, maybe putting it in the main part of the homepage, or in one of "
|
1014 |
+
"the widgets of the siderbars of your shop. With the related option, you will "
|
1015 |
+
"be free to allow or block vendors to set their products as \"featured\"."
|
1016 |
+
msgstr ""
|
1017 |
+
"Indicare un prodotto di WooCommerce come“Featured” significa porlo in "
|
1018 |
+
"evidenza rispetto agli altri, magari esponendolo maggiormente in homepage o "
|
1019 |
+
"in uno dei widget utilizzati per popolare le sidebar del tuo shop.\n"
|
1020 |
+
"Attraverso un’apposita opzione potrai dare o negare a ogni venditore la "
|
1021 |
+
"possibilità di identificare un suo prodotto come “featured”."
|
1022 |
+
|
1023 |
+
#: templates/admin/premium.php:646
|
1024 |
+
msgid "Sales amount"
|
1025 |
+
msgstr "Numero di vendite"
|
1026 |
+
|
1027 |
+
#: templates/admin/premium.php:649
|
1028 |
+
msgid ""
|
1029 |
+
"Enrich your shop with more information. Show the amount of sales made by "
|
1030 |
+
"each vendor, placing it in the detail page of the related product, and for "
|
1031 |
+
"each single product assigned to a vendor."
|
1032 |
+
msgstr ""
|
1033 |
+
"Arricchisci con maggiori informazioni il tuo shop.\n"
|
1034 |
+
"Fai in modo di mostrare il numero di vendite realizzate per ogni vendor, "
|
1035 |
+
"mostrando il valore all’interno della pagina di dettaglio dello stesso e per "
|
1036 |
+
"ogni singolo prodotto che sia associato a un venditore."
|
1037 |
+
|
1038 |
#: templates/admin/vendor-admin.php:24
|
1039 |
msgid "Name:"
|
1040 |
msgstr "Nome:"
|
1104 |
msgid "Hide vendors with no products"
|
1105 |
msgstr "Nascondi venditori che non hanno prodotti"
|
1106 |
|
1107 |
+
#~ msgid ""
|
1108 |
+
#~ "The vendor page gets more details!Vendors will be able to add their\n"
|
1109 |
+
#~ " %s contact details %s (email, address, phone number) "
|
1110 |
+
#~ "and the most common\n"
|
1111 |
+
#~ " social network profiles (Facebook, Twitter, Google+, "
|
1112 |
+
#~ "LinkedIn and YouTube)\n"
|
1113 |
+
#~ " "
|
1114 |
+
#~ msgstr ""
|
1115 |
+
#~ "Per ogni venditore possono essere aggiunti i \n"
|
1116 |
+
#~ "%s dettagli di contatto %s (email, indirizzo, numero di telefono) e i "
|
1117 |
+
#~ "profili dei social più diffusi \n"
|
1118 |
+
#~ "(Facebook, Twitter, Google+, LinkedIn e YouTube). "
|
1119 |
+
|
1120 |
+
#~ msgid ""
|
1121 |
+
#~ "These pieces of\n"
|
1122 |
+
#~ " information are gathered in the page of every vendor "
|
1123 |
+
#~ "shop with a %sheader%s where style and images can\n"
|
1124 |
+
#~ " be customized."
|
1125 |
+
#~ msgstr ""
|
1126 |
+
#~ "Queste informazioni\n"
|
1127 |
+
#~ " vengono raccolte all’interno della pagina di ogni negozio con un %sheader"
|
1128 |
+
#~ "%s in cui è possibile personalizzare\n"
|
1129 |
+
#~ "stile e immagine."
|
1130 |
+
|
1131 |
+
#~ msgid ""
|
1132 |
+
#~ "The administrators of the vendor shop are one of the most important new "
|
1133 |
+
#~ "features.%s They are simple\n"
|
1134 |
+
#~ " registered users of the shop that have been admitted "
|
1135 |
+
#~ "to %smanage the products%s and all the information\n"
|
1136 |
+
#~ " about a vendor shop by the administrator of the store "
|
1137 |
+
#~ "or the owner of the vendor shop."
|
1138 |
+
#~ msgstr ""
|
1139 |
+
#~ "L’amministratore del negozio è una delle novità più rilevanti.%s Si "
|
1140 |
+
#~ "tratta di un qualsiasi \n"
|
1141 |
+
#~ "utente registrato allo shop a cui è stato concesso di %sgestire i prodotti"
|
1142 |
+
#~ "%s e tutte le informazioni\n"
|
1143 |
+
#~ " legate al negozio direttamente dall'amministratore del sito o dal "
|
1144 |
+
#~ "proprietario del negozio."
|
1145 |
+
|
1146 |
+
#~ msgid ""
|
1147 |
+
#~ "The only\n"
|
1148 |
+
#~ " element they can't change is the %stype of payment%s "
|
1149 |
+
#~ "that only administrator of the store or the owner\n"
|
1150 |
+
#~ " of the vendor shop can set."
|
1151 |
+
#~ msgstr ""
|
1152 |
+
#~ "L'unico\n"
|
1153 |
+
#~ " elemento che non può modificare è la %stipologia di pagamento%s che "
|
1154 |
+
#~ "rimane prerogativa dell’amministratore dello store\n"
|
1155 |
+
#~ " e del proprietario del negozio."
|
1156 |
+
|
1157 |
+
#~ msgid ""
|
1158 |
+
#~ "Thanks to the %s“Skip Admin review”%s option, vendors can publish new "
|
1159 |
+
#~ "products without the store\n"
|
1160 |
+
#~ " administrator approval. This option can be applied to "
|
1161 |
+
#~ "all the vendor shops, or just to the selected\n"
|
1162 |
+
#~ " ones."
|
1163 |
+
#~ msgstr ""
|
1164 |
+
#~ "Grazie all’opzione %s\"Salta autorizzazione amministratore\"%s, il "
|
1165 |
+
#~ "venditore potrà pubblicare nuovi prodotti\n"
|
1166 |
+
#~ "senza dover aspettare che sia l’amministratore dello store a farlo per "
|
1167 |
+
#~ "lui. La funzionalità può essere applicata\n"
|
1168 |
+
#~ " a tutti i venditori dello shop o solo ad alcuni di essi."
|
1169 |
+
|
1170 |
+
#~ msgid ""
|
1171 |
+
#~ "A commissions table with more details to be always up-to-date. Every "
|
1172 |
+
#~ "commission offers a set of\n"
|
1173 |
+
#~ " buttons to quickly proceed to the PayPal payments (if "
|
1174 |
+
#~ "set as manual), or to change the state of the\n"
|
1175 |
+
#~ " commission."
|
1176 |
+
#~ msgstr ""
|
1177 |
+
#~ "Una tabella commissioni con più dettagli, per seguire eventuali "
|
1178 |
+
#~ "aggiornamenti. Per ogni commissione è presente, inoltre,\n"
|
1179 |
+
#~ "una serie di pulsanti che permettono di procedere rapidamente al "
|
1180 |
+
#~ "pagamento PayPal (se impostato come manuale)\n"
|
1181 |
+
#~ "o cambiare lo stato della commissione."
|
1182 |
+
|
1183 |
+
#~ msgid ""
|
1184 |
+
#~ "%sNo more single commission rate for all the vendor shops:%s in the "
|
1185 |
+
#~ "premium version of the plugin, this\n"
|
1186 |
+
#~ " rate can be modified for every single vendor shop and "
|
1187 |
+
#~ "for every product associated."
|
1188 |
+
#~ msgstr ""
|
1189 |
+
#~ "%sNon più un unico tasso percentuale di commissione per tutti i negozi:%s "
|
1190 |
+
#~ "nella versione premium del plugin,\n"
|
1191 |
+
#~ " questa potrà essere modificata per ciascun venditore e per ognuno dei "
|
1192 |
+
#~ "prodotti associati."
|
1193 |
+
|
1194 |
+
#~ msgid ""
|
1195 |
+
#~ "If users use a coupon during a purchase, how will vendor commissions be "
|
1196 |
+
#~ "calculated? It's up to you:\n"
|
1197 |
+
#~ " with the %s\"Coupon handling\"%s option, you can "
|
1198 |
+
#~ "decide whether you want to calculate the commission for\n"
|
1199 |
+
#~ " the discounted total or not."
|
1200 |
+
#~ msgstr ""
|
1201 |
+
#~ "E se l’utente ha utilizzato un coupon per il suo acquisto, come saranno "
|
1202 |
+
#~ "calcolate le commissioni dovute al venditore?\n"
|
1203 |
+
#~ "Decidi tu se calcolare l’importo delle commissione al netto del coupon o "
|
1204 |
+
#~ "no, grazie all’apposita opzione %s\"Gestione coupon\"%s."
|
1205 |
+
|
1206 |
+
#~ msgid ""
|
1207 |
+
#~ "With the option %s “Enable coupon\n"
|
1208 |
+
#~ " management” %s, the vendors of your shop can create "
|
1209 |
+
#~ "coupons regarding the products\n"
|
1210 |
+
#~ " they own. A nice innovation to offer to your vendor-"
|
1211 |
+
#~ "users."
|
1212 |
+
#~ msgstr ""
|
1213 |
+
#~ "Grazie all’opzione %s “Abilita gestione coupon” %s,ogni venditore del tuo "
|
1214 |
+
#~ "shop potrà autonomamente generare\n"
|
1215 |
+
#~ "coupon per i prodotti di cui è proprietario. Una bella novità per dare "
|
1216 |
+
#~ "sempre maggiore libertà di gestione al tuo utente venditore."
|
1217 |
+
|
1218 |
+
#~ msgid ""
|
1219 |
+
#~ " Just like coupons, this option is tailored on the need to manage "
|
1220 |
+
#~ "reviews\n"
|
1221 |
+
#~ " and it has been added to the premium version of the "
|
1222 |
+
#~ "plugin.\n"
|
1223 |
+
#~ " Activating the %s“Enable review management”%s option "
|
1224 |
+
#~ "from the option panel of the plugin,\n"
|
1225 |
+
#~ " vendors will be free to manage the reviews of the "
|
1226 |
+
#~ "products they own, and act with the same privileges of the administrator "
|
1227 |
+
#~ "of the store."
|
1228 |
+
#~ msgstr ""
|
1229 |
+
#~ " Come per i coupon, un’opzione fatta su misura anche per la gestione "
|
1230 |
+
#~ "delle recensioni\n"
|
1231 |
+
#~ " è stata inserita nella versione premium del plugin.\n"
|
1232 |
+
#~ "Abilitando la voce %s“Abilita gestione revisioni”%s dal pannello opzioni "
|
1233 |
+
#~ "del plugin, ogni venditore potrà gestire\n"
|
1234 |
+
#~ " le recensioni dei prodotti di cui è proprietario e operare su queste con "
|
1235 |
+
#~ "gli stessi poteri dell’amministratore dell’intero store. "
|
1236 |
+
|
1237 |
+
#~ msgid ""
|
1238 |
+
#~ "Statistics have a central relevance in the e-commerce field and "
|
1239 |
+
#~ "WooCommerce Multi Vendor offers you\n"
|
1240 |
+
#~ " different reports to %sanalyze your data%s: from the "
|
1241 |
+
#~ "most lucrative vendors, to the best sellers,\n"
|
1242 |
+
#~ " including convenient commission diagrams for each of "
|
1243 |
+
#~ "them."
|
1244 |
+
#~ msgstr ""
|
1245 |
+
#~ "Le statistiche hanno sempre un ruolo importante nel mondo dell’e-commerce "
|
1246 |
+
#~ "e YITH WooCommerce Multi Vendor mette a tua disposizione\n"
|
1247 |
+
#~ "una serie di report attraverso cui puoi %sanalizzare svariati dati%s: dai "
|
1248 |
+
#~ "venditori che stanno guadagnando di più, a quelli che hanno generato\n"
|
1249 |
+
#~ " il maggior numero di vendite, passando dal grafico commissioni per "
|
1250 |
+
#~ "ognuno di essi."
|
1251 |
+
|
1252 |
+
#~ msgid ""
|
1253 |
+
#~ "For each report, %syou can export its data in the CSV format%s: in this "
|
1254 |
+
#~ "way, you will be free to use all\n"
|
1255 |
+
#~ " the report details in every fields not expressively "
|
1256 |
+
#~ "related to WordPress."
|
1257 |
+
#~ msgstr ""
|
1258 |
+
#~ "Per ogni report è prevista la possibilità di %sesportare i suoi dati nel "
|
1259 |
+
#~ "formato CSV%s, così da metterti nelle condizioni di poter utilizzare le "
|
1260 |
+
#~ "informazioni \n"
|
1261 |
+
#~ "provenienti dai report anche al di fuori del contesto di WordPress."
|
1262 |
+
|
1263 |
+
#~ msgid ""
|
1264 |
+
#~ "The %s\"Product listing\"%s option has been conceived to exclude from the "
|
1265 |
+
#~ "shop the products of a\n"
|
1266 |
+
#~ " particular vendor. In this way, these would be "
|
1267 |
+
#~ "consultable only from the relative vendor's page."
|
1268 |
+
#~ msgstr ""
|
1269 |
+
#~ "L’opzione %s\"Elenco prodotti\"%s nasce per soddisfare l’esigenza di chi "
|
1270 |
+
#~ "vuole escludere dallo shop i prodotti associati a un venditore.\n"
|
1271 |
+
#~ "Così facendo, essi saranno consultabili dagli utenti solo tramite la "
|
1272 |
+
#~ "pagina del venditore associato."
|
1273 |
+
|
1274 |
+
#~ msgid ""
|
1275 |
+
#~ "%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor "
|
1276 |
+
#~ "Store Location%2$s: these are the three widgets\n"
|
1277 |
+
#~ " that the plugin offers you. Thanks to these widgets, "
|
1278 |
+
#~ "you will be able to show the list of the\n"
|
1279 |
+
#~ " registered vendors of your shop, and enrich the "
|
1280 |
+
#~ "detail page of the vendor shops with information\n"
|
1281 |
+
#~ " about their locations, or a contact form users can "
|
1282 |
+
#~ "use to send emails to the shop\n"
|
1283 |
+
#~ " administrators."
|
1284 |
+
#~ msgstr ""
|
1285 |
+
#~ "%1$sYITH Vendor List, YITH Vendor Quick Info%2$s e %1$sYITH Vendor Store "
|
1286 |
+
#~ "Location%2$s: sono questi i tre widget\n"
|
1287 |
+
#~ "che il plugin ti mette a disposizione. Attraverso questi potrai mostrare "
|
1288 |
+
#~ "la lista dei venditori registrati al tuo shop\n"
|
1289 |
+
#~ " e arricchire la pagina dettaglio dei negozi con informazioni sulla loro "
|
1290 |
+
#~ "posizione e un modulo contatti attraverso il quale\n"
|
1291 |
+
#~ "gli utenti possono inviare email all’amministratore dello shop."
|
1292 |
+
|
1293 |
+
#~ msgid ""
|
1294 |
+
#~ "The default setting of the plugin shows the name of each vendor in three "
|
1295 |
+
#~ "pages of your site: the shop page, the product detail page and product "
|
1296 |
+
#~ "category page.\n"
|
1297 |
+
#~ " Now you can decide whether you want to show their "
|
1298 |
+
#~ "name and hide them whenever you want with three different options."
|
1299 |
+
#~ msgstr ""
|
1300 |
+
#~ "Il comportamento predefinito del plugin mostra il nome del venditore in "
|
1301 |
+
#~ "tre pagine del tuo sito: la pagina shop, la pagina dettaglio del prodotto "
|
1302 |
+
#~ "e la pagina categoria prodotto.\n"
|
1303 |
+
#~ "Gestisci questa visualizzazione attraverso tre comode opzioni per "
|
1304 |
+
#~ "nascondere il nome del venditore se credi sia necessario."
|
1305 |
+
|
1306 |
+
#~ msgid ""
|
1307 |
+
#~ "A more dynamic management for whoever would like to become a vendor of "
|
1308 |
+
#~ "your store.\n"
|
1309 |
+
#~ " All new users can register as \"vendors\" of the shop "
|
1310 |
+
#~ "directly from the “My Account” page, and use immediately an "
|
1311 |
+
#~ "administration area. After the confirmation by the administrator, the "
|
1312 |
+
#~ "vendors will be able to sell their products."
|
1313 |
+
#~ msgstr ""
|
1314 |
+
#~ "Una gestione molto più dinamica per chiunque abbia voglia di diventare un "
|
1315 |
+
#~ "venditore nel tuo store.\n"
|
1316 |
+
#~ "Ogni nuovo utente può procedere alla registrazione come \"venditore\" "
|
1317 |
+
#~ "direttamente dalla pagina \"Il mio account\" e avere subito a "
|
1318 |
+
#~ "disposizione un’area amministrativa. Dopo l’abilitazione da parte "
|
1319 |
+
#~ "dell’amministratore, i suoi prodotti potranno essere messi in vendita."
|
1320 |
+
|
1321 |
+
#~ msgid ""
|
1322 |
+
#~ "The option “Enable product amount limit” has been conceived to whoever "
|
1323 |
+
#~ "would like to limit the\n"
|
1324 |
+
#~ " creation of products of the shop vendors, with the "
|
1325 |
+
#~ "freedom to indicate a specific maximum number of\n"
|
1326 |
+
#~ " products that each vendor can create."
|
1327 |
+
#~ msgstr ""
|
1328 |
+
#~ "L’opzione “Abilita limite quantità prodotti” è stata pensata per chi "
|
1329 |
+
#~ "desidera\n"
|
1330 |
+
#~ "limitare la quantità di prodotti che ciascun venditore dello store può "
|
1331 |
+
#~ "creare,\n"
|
1332 |
+
#~ "indicando un numero massimo di prodotti caricabili."
|
1333 |
+
|
1334 |
+
#~ msgid ""
|
1335 |
+
#~ "How many times did you find yourself annoyed by the repetition of the "
|
1336 |
+
#~ "same passages with a huge waste of time? Well, now vendors management is "
|
1337 |
+
#~ "completely renewed!\n"
|
1338 |
+
#~ " You will be able to apply bulk actions on all the "
|
1339 |
+
#~ "registered vendors, approving or deleting them all together with just one "
|
1340 |
+
#~ "click."
|
1341 |
+
#~ msgstr ""
|
1342 |
+
#~ "Quante volte ti è capitato di essere infastidito dal dover ripetere tante "
|
1343 |
+
#~ "volte una stessa operazione, con una conseguente perdita di tempo "
|
1344 |
+
#~ "notevole? Sappi, allora, che per la gestione dei venditori non avrai più "
|
1345 |
+
#~ "questi problemi!\n"
|
1346 |
+
#~ "Per tutti i venditori registrati al tuo shop potrai applicare azioni di "
|
1347 |
+
#~ "gruppo, approvandoli o cancellandoli tutti insieme in un solo colpo."
|
1348 |
+
|
1349 |
+
#~ msgid ""
|
1350 |
+
#~ "A breath of fresh air for the \"vendor users\" that can take advantage of "
|
1351 |
+
#~ "a big and advanced\n"
|
1352 |
+
#~ " administrative area. From this place, they will be "
|
1353 |
+
#~ "free to consult the reports about their products,\n"
|
1354 |
+
#~ " change their profile information and choose the "
|
1355 |
+
#~ "payment method they prefer.\n"
|
1356 |
+
#~ " Each vendor can also check the commissions table, "
|
1357 |
+
#~ "with the whole sum of the relative commissions up\n"
|
1358 |
+
#~ " to that moment."
|
1359 |
+
#~ msgstr ""
|
1360 |
+
#~ "Una ventata di novità anche per gli \"utenti venditori\" che potranno "
|
1361 |
+
#~ "fruire di un’area amministrativa ampia e avanzata.\n"
|
1362 |
+
#~ "Da essa potranno consultare i report sui loro prodotti, modificare le "
|
1363 |
+
#~ "informazioni associate al loro profilo\n"
|
1364 |
+
#~ " e scegliere il metodo di pagamento preferito.\n"
|
1365 |
+
#~ "Ogni venditore può, inoltre, consultare in qualsiasi momento la tabella "
|
1366 |
+
#~ "delle commissioni, riepilogativa di tutte quelle che\n"
|
1367 |
+
#~ "gli sono state associate dal momento della registrazione."
|
1368 |
+
|
1369 |
+
#~ msgid ""
|
1370 |
+
#~ "Upgrade to the %1$spremium version%2$s\n"
|
1371 |
+
#~ " of %1$sYITH WooCommerce Multi Vendor%2$s to "
|
1372 |
+
#~ "benefit from all features!"
|
1373 |
+
#~ msgstr ""
|
1374 |
+
#~ "Aggiorna alla %1$sversione premium%2$s\n"
|
1375 |
+
#~ "di %1$sYITH WooCommerce Multi Vendor%2$s per usufruire di tutte le sue "
|
1376 |
+
#~ "funzionalità!"
|
1377 |
+
|
1378 |
#~ msgid "Vendor's amount of products"
|
1379 |
#~ msgstr "Quantità di prodotti del venditore"
|
1380 |
|
2059 |
#~ msgid "Number of items sold"
|
2060 |
#~ msgstr "Numero di articoli venduti"
|
2061 |
|
|
|
|
|
|
|
2062 |
#~ msgid "Commission page view"
|
2063 |
#~ msgstr "Visualizzazione pagina commissioni"
|
2064 |
|
modules/yith-woocommerce-product-vendors/languages/yith_wc_product_vendors.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH WooCommerce Multi Vendor\n"
|
5 |
-
"POT-Creation-Date: 2015-
|
6 |
"PO-Revision-Date: 2015-06-19 16:58+0100\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
@@ -10,7 +10,7 @@ msgstr ""
|
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 1.8.
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
16 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
@@ -42,43 +42,43 @@ msgstr ""
|
|
42 |
msgid "Payment failed."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/class.yith-commissions.php:
|
46 |
msgid "Paid"
|
47 |
msgstr ""
|
48 |
|
49 |
-
#: includes/class.yith-commissions.php:
|
50 |
msgid "Unpaid"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#: includes/class.yith-commissions.php:
|
54 |
msgid "Pending"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#: includes/class.yith-commissions.php:
|
58 |
msgid "Refunded"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: includes/class.yith-commissions.php:
|
62 |
msgid "Cancelled"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: includes/class.yith-commissions.php:
|
66 |
msgid "Processing"
|
67 |
msgstr ""
|
68 |
|
|
|
69 |
#: includes/class.yith-commissions.php:277
|
70 |
-
#: includes/class.yith-commissions.php:278
|
71 |
#: includes/class.yith-commissions.php:1170
|
72 |
-
#: includes/class.yith-vendors-admin.php:
|
73 |
msgid "Commissions"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: includes/class.yith-commissions.php:
|
77 |
#, php-format
|
78 |
msgid "Commission #%d details"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: includes/class.yith-commissions.php:
|
82 |
#, php-format
|
83 |
msgid "%1$s ‹ %2$s — WordPress"
|
84 |
msgstr ""
|
@@ -94,121 +94,179 @@ msgid "Cancelled %s refund from order"
|
|
94 |
msgstr ""
|
95 |
|
96 |
#: includes/class.yith-commissions.php:1206
|
|
|
97 |
msgid "commission_id"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: includes/class.yith-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
msgid "Vendors"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: includes/class.yith-vendors-admin.php:
|
106 |
-
#: includes/class.yith-vendors-admin.php:
|
107 |
msgid "Premium Version"
|
108 |
msgstr ""
|
109 |
|
110 |
-
#: includes/class.yith-vendors-admin.php:
|
111 |
-
#: includes/class.yith-vendors-admin.php:
|
112 |
msgid "Multi Vendor"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: includes/class.yith-vendors-admin.php:
|
116 |
#, php-format
|
117 |
msgid ""
|
118 |
"You do not have permission to edit this product. %1$sClick here to view and "
|
119 |
"edit your products%2$s."
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: includes/class.yith-vendors-admin.php:
|
123 |
-
#: includes/class.yith-vendors-admin.php:
|
124 |
#: templates/admin/vendor-admin.php:17
|
125 |
msgid "Vendor Details"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: includes/class.yith-vendors-admin.php:
|
129 |
-
#: includes/class.yith-vendors-admin.php:
|
130 |
msgid "A vendor with this name already exists."
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: includes/class.yith-vendors-admin.php:
|
134 |
msgid "Vendor name already exists"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: includes/class.yith-vendors-admin.php:
|
138 |
#, php-format
|
139 |
msgid "No %s"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: includes/class.yith-vendors-admin.php:
|
143 |
msgid "Settings"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: includes/class.yith-vendors-admin.php:
|
147 |
msgid "Premium live demo"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: includes/class.yith-vendors-admin.php:
|
151 |
msgid "Live demo"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: includes/class.yith-vendors-admin.php:
|
155 |
msgid "Plugin Documentation"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: includes/class.yith-vendors
|
159 |
-
|
|
|
|
|
|
|
|
|
160 |
msgid "Vendor"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: includes/class.yith-vendors.php:
|
164 |
msgid "Search Vendors"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: includes/class.yith-vendors.php:
|
168 |
msgid "All Vendors"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: includes/class.yith-vendors.php:
|
172 |
msgid "Parent Vendor"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: includes/class.yith-vendors.php:
|
176 |
msgid "Parent Vendor:"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: includes/class.yith-vendors.php:
|
180 |
msgid "View Vendor"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: includes/class.yith-vendors.php:
|
184 |
msgid "Edit Vendor"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: includes/class.yith-vendors.php:
|
188 |
msgid "Update Vendor"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: includes/class.yith-vendors.php:
|
192 |
msgid "Add New Vendor"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: includes/class.yith-vendors.php:
|
196 |
msgid "New Vendor's Name"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: includes/class.yith-vendors.php:
|
200 |
msgid "Separate vendors with commas"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: includes/class.yith-vendors.php:
|
204 |
msgid "Add or remove vendors"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#: includes/class.yith-vendors.php:
|
208 |
msgid "Choose from most used vendors"
|
209 |
msgstr ""
|
210 |
|
211 |
-
#: includes/class.yith-vendors.php:
|
212 |
msgid "No vendors found"
|
213 |
msgstr ""
|
214 |
|
@@ -225,7 +283,7 @@ msgid "Product"
|
|
225 |
msgstr ""
|
226 |
|
227 |
#: includes/lib/class.yith-commissions-list-table.php:63
|
228 |
-
#: templates/admin/commission-view.php:
|
229 |
msgid "Rate"
|
230 |
msgstr ""
|
231 |
|
@@ -242,7 +300,7 @@ msgid "Date"
|
|
242 |
msgstr ""
|
243 |
|
244 |
#: includes/lib/class.yith-commissions-list-table.php:68
|
245 |
-
#: templates/admin/commission-view.php:
|
246 |
msgid "Last update"
|
247 |
msgstr ""
|
248 |
|
@@ -251,54 +309,54 @@ msgstr ""
|
|
251 |
msgid "Actions"
|
252 |
msgstr ""
|
253 |
|
254 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
255 |
msgid "Order Deleted"
|
256 |
msgstr ""
|
257 |
|
258 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
259 |
#: templates/admin/commission-view.php:126
|
260 |
msgid "Guest"
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
264 |
#, php-format
|
265 |
msgctxt "Order number by user"
|
266 |
msgid "%s by %s"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
270 |
-
#: templates/admin/commission-view.php:
|
271 |
msgid "User deleted"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
275 |
-
#: templates/admin/commission-view.php:
|
276 |
msgid "Vendor deleted"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
280 |
msgid "View"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
284 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
285 |
-
#: templates/admin/commission-view.php:
|
286 |
msgid "Y/m/d g:i:s A"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
290 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
291 |
-
#: templates/admin/commission-view.php:
|
292 |
#, php-format
|
293 |
msgid "%s ago"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
297 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
298 |
msgid "Y/m/d"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: includes/lib/class.yith-commissions-list-table.php:
|
302 |
msgid "No commissions found."
|
303 |
msgstr ""
|
304 |
|
@@ -308,30 +366,54 @@ msgid ""
|
|
308 |
"WooCommerce in order to work."
|
309 |
msgstr ""
|
310 |
|
311 |
-
#: plugin-options/commissions-options.php:
|
312 |
msgid "General settings"
|
313 |
msgstr ""
|
314 |
|
315 |
-
#: plugin-options/commissions-options.php:
|
316 |
msgid "Commission Base"
|
317 |
msgstr ""
|
318 |
|
319 |
-
#: plugin-options/commissions-options.php:
|
320 |
msgid "Default commission percentage"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: plugin-options/vendors-options.php:
|
324 |
msgid "Product management"
|
325 |
msgstr ""
|
326 |
|
327 |
-
#: plugin-options/vendors-options.php:
|
328 |
msgid "Vendor name label color"
|
329 |
msgstr ""
|
330 |
|
331 |
-
#: plugin-options/vendors-options.php:
|
332 |
msgid "Use in shop page and single product page"
|
333 |
msgstr ""
|
334 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
#: templates/admin/add-product-vendors-taxonomy.php:12
|
336 |
#: templates/admin/edit-product-vendors-taxonomy.php:13
|
337 |
msgid "Vendor Shop Owner"
|
@@ -410,82 +492,82 @@ msgstr ""
|
|
410 |
msgid "Commission %s Details"
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: templates/admin/commission-view.php:
|
414 |
#, php-format
|
415 |
msgctxt "Commission credited to [user]"
|
416 |
msgid "credited to %s — from order %s — order status: %s"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: templates/admin/commission-view.php:
|
420 |
msgid "General details"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: templates/admin/commission-view.php:
|
424 |
msgid "Status"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: templates/admin/commission-view.php:
|
428 |
msgid "Commission date"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: templates/admin/commission-view.php:
|
432 |
msgid "User details"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: templates/admin/commission-view.php:
|
436 |
msgid "Email"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: templates/admin/commission-view.php:
|
440 |
msgid "PayPal"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: templates/admin/commission-view.php:
|
444 |
msgid "Billing information"
|
445 |
msgstr ""
|
446 |
|
447 |
-
#: templates/admin/commission-view.php:
|
448 |
msgid "Shipping information"
|
449 |
msgstr ""
|
450 |
|
451 |
-
#: templates/admin/commission-view.php:
|
452 |
msgid "Item data"
|
453 |
msgstr ""
|
454 |
|
455 |
-
#: templates/admin/commission-view.php:
|
456 |
msgid "Item"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: templates/admin/commission-view.php:
|
460 |
msgid "Qty"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: templates/admin/commission-view.php:
|
464 |
msgid "Cost"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: templates/admin/commission-view.php:
|
468 |
msgid "Product ID:"
|
469 |
msgstr ""
|
470 |
|
471 |
-
#: templates/admin/commission-view.php:
|
472 |
-
#: templates/admin/commission-view.php:
|
473 |
msgid "Variation ID:"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: templates/admin/commission-view.php:
|
477 |
msgid "No longer exists"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: templates/admin/commission-view.php:
|
481 |
msgid "Product SKU:"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: templates/admin/commission-view.php:
|
485 |
msgid "Coupon(s) Used"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: templates/admin/commission-view.php:
|
489 |
msgid "Commission"
|
490 |
msgstr ""
|
491 |
|
@@ -509,293 +591,321 @@ msgstr ""
|
|
509 |
msgid "Percentage of the total sale price that this vendor receives."
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: templates/admin/premium.php:239 templates/admin/premium.php:
|
513 |
#, php-format
|
514 |
msgid ""
|
515 |
-
"Upgrade to the %1$spremium version%2$s
|
516 |
-
"
|
517 |
-
"from all features!"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: templates/admin/premium.php:
|
521 |
#, php-format
|
522 |
msgid "%1$s UPGRADE %2$s %3$s to the premium version %2$s"
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: templates/admin/premium.php:
|
|
|
|
|
|
|
|
|
526 |
msgid "A richer vendor shop page"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: templates/admin/premium.php:
|
530 |
#, php-format
|
531 |
msgid ""
|
532 |
-
"The vendor page gets more details!Vendors will be able to add their
|
533 |
-
"
|
534 |
-
"
|
535 |
-
" social network profiles (Facebook, Twitter, Google+, "
|
536 |
-
"LinkedIn and YouTube)\n"
|
537 |
-
" "
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: templates/admin/premium.php:
|
541 |
#, php-format
|
542 |
msgid ""
|
543 |
-
"These pieces of
|
544 |
-
"
|
545 |
-
"shop with a %sheader%s where style and images can\n"
|
546 |
-
" be customized."
|
547 |
msgstr ""
|
548 |
|
549 |
-
#: templates/admin/premium.php:
|
550 |
msgid "One or more administrators for every vendor shop"
|
551 |
msgstr ""
|
552 |
|
553 |
-
#: templates/admin/premium.php:
|
554 |
#, php-format
|
555 |
msgid ""
|
556 |
"The administrators of the vendor shop are one of the most important new "
|
557 |
-
"features.%s They are simple
|
558 |
-
"
|
559 |
-
"
|
560 |
-
" about a vendor shop by the administrator of the store or "
|
561 |
-
"the owner of the vendor shop."
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: templates/admin/premium.php:
|
565 |
#, php-format
|
566 |
msgid ""
|
567 |
-
"The only
|
568 |
-
"
|
569 |
-
"that only administrator of the store or the owner\n"
|
570 |
-
" of the vendor shop can set."
|
571 |
msgstr ""
|
572 |
|
573 |
-
#: templates/admin/premium.php:
|
574 |
msgid "Direct product sale"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: templates/admin/premium.php:
|
578 |
#, php-format
|
579 |
msgid ""
|
580 |
"Thanks to the %s“Skip Admin review”%s option, vendors can publish new "
|
581 |
-
"products without the store
|
582 |
-
"
|
583 |
-
"all the vendor shops, or just to the selected\n"
|
584 |
-
" ones."
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: templates/admin/premium.php:
|
588 |
msgid "Actions for commissions"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: templates/admin/premium.php:
|
592 |
msgid ""
|
593 |
"A commissions table with more details to be always up-to-date. Every "
|
594 |
-
"commission offers a set of
|
595 |
-
"
|
596 |
-
"set as manual), or to change the state of the\n"
|
597 |
-
" commission."
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: templates/admin/premium.php:
|
601 |
msgid "Variable commission rates"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: templates/admin/premium.php:
|
605 |
#, php-format
|
606 |
msgid ""
|
607 |
"%sNo more single commission rate for all the vendor shops:%s in the premium "
|
608 |
-
"version of the plugin, this
|
609 |
-
"
|
610 |
-
"for every product associated."
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: templates/admin/premium.php:
|
614 |
msgid "Coupon handling"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: templates/admin/premium.php:
|
618 |
#, php-format
|
619 |
msgid ""
|
620 |
"If users use a coupon during a purchase, how will vendor commissions be "
|
621 |
-
"calculated? It's up to you
|
622 |
-
"
|
623 |
-
"
|
624 |
-
" the discounted total or not."
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: templates/admin/premium.php:
|
628 |
msgid "COUPON CREATION"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: templates/admin/premium.php:
|
632 |
#, php-format
|
633 |
msgid ""
|
634 |
-
"With the option %s “Enable coupon
|
635 |
-
"
|
636 |
-
"
|
637 |
-
" they own. A nice innovation to offer to your vendor-"
|
638 |
-
"users."
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: templates/admin/premium.php:
|
642 |
msgid "REVIEWS"
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: templates/admin/premium.php:
|
646 |
#, php-format
|
647 |
msgid ""
|
648 |
-
" Just like coupons, this option is tailored on the need to manage reviews
|
649 |
-
"
|
650 |
-
"plugin
|
651 |
-
"
|
652 |
-
"
|
653 |
-
" vendors will be free to manage the reviews of the "
|
654 |
-
"products they own, and act with the same privileges of the administrator of "
|
655 |
-
"the store."
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: templates/admin/premium.php:
|
659 |
msgid "Advanced reports"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: templates/admin/premium.php:
|
663 |
#, php-format
|
664 |
msgid ""
|
665 |
"Statistics have a central relevance in the e-commerce field and WooCommerce "
|
666 |
-
"Multi Vendor offers you
|
667 |
-
"
|
668 |
-
"
|
669 |
-
" including convenient commission diagrams for each of "
|
670 |
-
"them."
|
671 |
msgstr ""
|
672 |
|
673 |
-
#: templates/admin/premium.php:
|
674 |
msgid "CSV exportation of the reports"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: templates/admin/premium.php:
|
678 |
#, php-format
|
679 |
msgid ""
|
680 |
"For each report, %syou can export its data in the CSV format%s: in this way, "
|
681 |
-
"you will be free to use all
|
682 |
-
"
|
683 |
-
"related to WordPress."
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: templates/admin/premium.php:
|
687 |
msgid "Vendor's product exclusion from the shop (Product listing)"
|
688 |
msgstr ""
|
689 |
|
690 |
-
#: templates/admin/premium.php:
|
691 |
#, php-format
|
692 |
msgid ""
|
693 |
"The %s\"Product listing\"%s option has been conceived to exclude from the "
|
694 |
-
"shop the products of a
|
695 |
-
" particular vendor. In this way, these would be "
|
696 |
"consultable only from the relative vendor's page."
|
697 |
msgstr ""
|
698 |
|
699 |
-
#: templates/admin/premium.php:
|
700 |
msgid "Three widgets for your sidebars"
|
701 |
msgstr ""
|
702 |
|
703 |
-
#: templates/admin/premium.php:
|
704 |
#, php-format
|
705 |
msgid ""
|
706 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store "
|
707 |
-
"Location%2$s: these are the three widgets
|
708 |
-
"
|
709 |
-
"
|
710 |
-
"
|
711 |
-
"
|
712 |
-
" about their locations, or a contact form users can use "
|
713 |
-
"to send emails to the shop\n"
|
714 |
-
" administrators."
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: templates/admin/premium.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
718 |
msgid "VISUALIZATION OF THE VENDOR'S NAME"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: templates/admin/premium.php:
|
722 |
msgid ""
|
723 |
"The default setting of the plugin shows the name of each vendor in three "
|
724 |
"pages of your site: the shop page, the product detail page and product "
|
725 |
-
"category page
|
726 |
-
"
|
727 |
-
"and hide them whenever you want with three different options."
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: templates/admin/premium.php:
|
731 |
msgid "REGISTRATION FROM THE “MY ACCOUNT” PAGE"
|
732 |
msgstr ""
|
733 |
|
734 |
-
#: templates/admin/premium.php:
|
735 |
msgid ""
|
736 |
"A more dynamic management for whoever would like to become a vendor of your "
|
737 |
-
"store
|
738 |
-
"
|
739 |
-
"
|
740 |
-
"
|
741 |
-
"to sell their products."
|
742 |
msgstr ""
|
743 |
|
744 |
-
#: templates/admin/premium.php:
|
745 |
msgid "RESTRICTED NUMBER OF PRODUCTS"
|
746 |
msgstr ""
|
747 |
|
748 |
-
#: templates/admin/premium.php:
|
749 |
msgid ""
|
750 |
"The option “Enable product amount limit” has been conceived to whoever would "
|
751 |
-
"like to limit the
|
752 |
-
"
|
753 |
-
"
|
754 |
-
" products that each vendor can create."
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: templates/admin/premium.php:
|
758 |
msgid "BULK ACTIONS ON VENDORS"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: templates/admin/premium.php:
|
762 |
msgid ""
|
763 |
"How many times did you find yourself annoyed by the repetition of the same "
|
764 |
"passages with a huge waste of time? Well, now vendors management is "
|
765 |
-
"completely renewed
|
766 |
-
" You will be able to apply bulk actions on all the "
|
767 |
"registered vendors, approving or deleting them all together with just one "
|
768 |
"click."
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: templates/admin/premium.php:
|
772 |
msgid "Advanced administration area for each vendor"
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: templates/admin/premium.php:
|
776 |
msgid ""
|
777 |
"A breath of fresh air for the \"vendor users\" that can take advantage of a "
|
778 |
-
"big and advanced
|
779 |
-
"
|
780 |
-
"
|
781 |
-
"
|
782 |
-
"
|
783 |
-
" Each vendor can also check the commissions table, with "
|
784 |
-
"the whole sum of the relative commissions up\n"
|
785 |
-
" to that moment."
|
786 |
msgstr ""
|
787 |
|
788 |
-
#: templates/admin/premium.php:
|
789 |
msgid "ABUSE REPORT"
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: templates/admin/premium.php:
|
793 |
msgid ""
|
794 |
"With this feature, your users will be able to send you a message about one "
|
795 |
"of the products of your shop with a dedicated form that will open in a popup "
|
796 |
"within the related product detail page."
|
797 |
msgstr ""
|
798 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
799 |
#: templates/admin/vendor-admin.php:24
|
800 |
msgid "Name:"
|
801 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: YITH WooCommerce Multi Vendor\n"
|
5 |
+
"POT-Creation-Date: 2015-09-29 16:31+0100\n"
|
6 |
"PO-Revision-Date: 2015-06-19 16:58+0100\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
10 |
"MIME-Version: 1.0\n"
|
11 |
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Generator: Poedit 1.8.1\n"
|
14 |
"X-Poedit-Basepath: ..\n"
|
15 |
"Plural-Forms: nplurals=2; plural=n!=1;\n"
|
16 |
"X-Poedit-KeywordsList: __ ;_e;_n:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
42 |
msgid "Payment failed."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: includes/class.yith-commissions.php:213
|
46 |
msgid "Paid"
|
47 |
msgstr ""
|
48 |
|
49 |
+
#: includes/class.yith-commissions.php:214
|
50 |
msgid "Unpaid"
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: includes/class.yith-commissions.php:215
|
54 |
msgid "Pending"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: includes/class.yith-commissions.php:216
|
58 |
msgid "Refunded"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: includes/class.yith-commissions.php:217
|
62 |
msgid "Cancelled"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: includes/class.yith-commissions.php:218
|
66 |
msgid "Processing"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: includes/class.yith-commissions.php:276
|
70 |
#: includes/class.yith-commissions.php:277
|
|
|
71 |
#: includes/class.yith-commissions.php:1170
|
72 |
+
#: includes/class.yith-vendors-admin.php:145
|
73 |
msgid "Commissions"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: includes/class.yith-commissions.php:341
|
77 |
#, php-format
|
78 |
msgid "Commission #%d details"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: includes/class.yith-commissions.php:342
|
82 |
#, php-format
|
83 |
msgid "%1$s ‹ %2$s — WordPress"
|
84 |
msgstr ""
|
94 |
msgstr ""
|
95 |
|
96 |
#: includes/class.yith-commissions.php:1206
|
97 |
+
#: includes/class.yith-orders.php:1442
|
98 |
msgid "commission_id"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: includes/class.yith-orders.php:179
|
102 |
+
#, php-format
|
103 |
+
msgid "Order – %s"
|
104 |
+
msgstr ""
|
105 |
+
|
106 |
+
#: includes/class.yith-orders.php:179
|
107 |
+
msgctxt "Order date parsed by strftime"
|
108 |
+
msgid "%b %d, %Y @ %I:%M %p"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: includes/class.yith-orders.php:388 includes/class.yith-orders.php:710
|
112 |
+
msgctxt "Order note"
|
113 |
+
msgid "Website owner update: "
|
114 |
+
msgstr ""
|
115 |
+
|
116 |
+
#: includes/class.yith-orders.php:703
|
117 |
+
msgid "Delete note"
|
118 |
+
msgstr ""
|
119 |
+
|
120 |
+
#: includes/class.yith-orders.php:805
|
121 |
+
#, php-format
|
122 |
+
msgid "Item #%s stock reduced from %s to %s."
|
123 |
+
msgstr ""
|
124 |
+
|
125 |
+
#: includes/class.yith-orders.php:811
|
126 |
+
#, php-format
|
127 |
+
msgid "Item #%s stock increased from %s to %s."
|
128 |
+
msgstr ""
|
129 |
+
|
130 |
+
#: includes/class.yith-orders.php:1500
|
131 |
+
msgctxt "Admin: Order table column"
|
132 |
+
msgid "Suborders"
|
133 |
+
msgstr ""
|
134 |
+
|
135 |
+
#: includes/class.yith-orders.php:1539 includes/class.yith-orders.php:1603
|
136 |
+
msgid "in"
|
137 |
+
msgstr ""
|
138 |
+
|
139 |
+
#: includes/class.yith-orders.php:1567
|
140 |
+
msgctxt "Admin: Single order page. Suborder details box"
|
141 |
+
msgid "Suborders"
|
142 |
+
msgstr ""
|
143 |
+
|
144 |
+
#: includes/class.yith-orders.php:1572
|
145 |
+
msgctxt "Admin: Single order page. Parent order details box"
|
146 |
+
msgid "Parent order"
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: includes/class.yith-orders.php:1614
|
150 |
+
msgctxt "Admin: single order page. Link to parent order"
|
151 |
+
msgid "Return to main order"
|
152 |
+
msgstr ""
|
153 |
+
|
154 |
+
#: includes/class.yith-vendors-admin.php:146
|
155 |
+
#: includes/class.yith-vendors.php:269
|
156 |
msgid "Vendors"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/class.yith-vendors-admin.php:147
|
160 |
+
#: includes/class.yith-vendors-admin.php:873
|
161 |
msgid "Premium Version"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: includes/class.yith-vendors-admin.php:154
|
165 |
+
#: includes/class.yith-vendors-admin.php:155
|
166 |
msgid "Multi Vendor"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: includes/class.yith-vendors-admin.php:277
|
170 |
#, php-format
|
171 |
msgid ""
|
172 |
"You do not have permission to edit this product. %1$sClick here to view and "
|
173 |
"edit your products%2$s."
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: includes/class.yith-vendors-admin.php:321
|
177 |
+
#: includes/class.yith-vendors-admin.php:322
|
178 |
#: templates/admin/vendor-admin.php:17
|
179 |
msgid "Vendor Details"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: includes/class.yith-vendors-admin.php:462
|
183 |
+
#: includes/class.yith-vendors-admin.php:482
|
184 |
msgid "A vendor with this name already exists."
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: includes/class.yith-vendors-admin.php:463
|
188 |
msgid "Vendor name already exists"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: includes/class.yith-vendors-admin.php:787
|
192 |
#, php-format
|
193 |
msgid "No %s"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: includes/class.yith-vendors-admin.php:868
|
197 |
msgid "Settings"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: includes/class.yith-vendors-admin.php:869
|
201 |
msgid "Premium live demo"
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: includes/class.yith-vendors-admin.php:869
|
205 |
msgid "Live demo"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: includes/class.yith-vendors-admin.php:897
|
209 |
msgid "Plugin Documentation"
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: includes/class.yith-vendors-admin.php:989
|
213 |
+
msgid "Visit Store"
|
214 |
+
msgstr ""
|
215 |
+
|
216 |
+
#: includes/class.yith-vendors.php:267 includes/class.yith-vendors.php:268
|
217 |
+
#: templates/admin/commission-view.php:193
|
218 |
msgid "Vendor"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: includes/class.yith-vendors.php:270
|
222 |
msgid "Search Vendors"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: includes/class.yith-vendors.php:271
|
226 |
msgid "All Vendors"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: includes/class.yith-vendors.php:272
|
230 |
msgid "Parent Vendor"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: includes/class.yith-vendors.php:273
|
234 |
msgid "Parent Vendor:"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: includes/class.yith-vendors.php:274
|
238 |
msgid "View Vendor"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/class.yith-vendors.php:275
|
242 |
msgid "Edit Vendor"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: includes/class.yith-vendors.php:276
|
246 |
msgid "Update Vendor"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/class.yith-vendors.php:277
|
250 |
msgid "Add New Vendor"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: includes/class.yith-vendors.php:278
|
254 |
msgid "New Vendor's Name"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: includes/class.yith-vendors.php:280
|
258 |
msgid "Separate vendors with commas"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: includes/class.yith-vendors.php:281
|
262 |
msgid "Add or remove vendors"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: includes/class.yith-vendors.php:282
|
266 |
msgid "Choose from most used vendors"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: includes/class.yith-vendors.php:283
|
270 |
msgid "No vendors found"
|
271 |
msgstr ""
|
272 |
|
283 |
msgstr ""
|
284 |
|
285 |
#: includes/lib/class.yith-commissions-list-table.php:63
|
286 |
+
#: templates/admin/commission-view.php:462
|
287 |
msgid "Rate"
|
288 |
msgstr ""
|
289 |
|
300 |
msgstr ""
|
301 |
|
302 |
#: includes/lib/class.yith-commissions-list-table.php:68
|
303 |
+
#: templates/admin/commission-view.php:166
|
304 |
msgid "Last update"
|
305 |
msgstr ""
|
306 |
|
309 |
msgid "Actions"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: includes/lib/class.yith-commissions-list-table.php:206
|
313 |
msgid "Order Deleted"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: includes/lib/class.yith-commissions-list-table.php:237
|
317 |
#: templates/admin/commission-view.php:126
|
318 |
msgid "Guest"
|
319 |
msgstr ""
|
320 |
|
321 |
+
#: includes/lib/class.yith-commissions-list-table.php:257
|
322 |
#, php-format
|
323 |
msgctxt "Order number by user"
|
324 |
msgid "%s by %s"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: includes/lib/class.yith-commissions-list-table.php:285
|
328 |
+
#: templates/admin/commission-view.php:188
|
329 |
msgid "User deleted"
|
330 |
msgstr ""
|
331 |
|
332 |
+
#: includes/lib/class.yith-commissions-list-table.php:297
|
333 |
+
#: templates/admin/commission-view.php:199
|
334 |
msgid "Vendor deleted"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/lib/class.yith-commissions-list-table.php:310
|
338 |
msgid "View"
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/lib/class.yith-commissions-list-table.php:315
|
342 |
+
#: includes/lib/class.yith-commissions-list-table.php:335
|
343 |
+
#: templates/admin/commission-view.php:169
|
344 |
msgid "Y/m/d g:i:s A"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: includes/lib/class.yith-commissions-list-table.php:322
|
348 |
+
#: includes/lib/class.yith-commissions-list-table.php:342
|
349 |
+
#: templates/admin/commission-view.php:170
|
350 |
#, php-format
|
351 |
msgid "%s ago"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/lib/class.yith-commissions-list-table.php:325
|
355 |
+
#: includes/lib/class.yith-commissions-list-table.php:344
|
356 |
msgid "Y/m/d"
|
357 |
msgstr ""
|
358 |
|
359 |
+
#: includes/lib/class.yith-commissions-list-table.php:376
|
360 |
msgid "No commissions found."
|
361 |
msgstr ""
|
362 |
|
366 |
"WooCommerce in order to work."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: plugin-options/commissions-options.php:20
|
370 |
msgid "General settings"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: plugin-options/commissions-options.php:27
|
374 |
msgid "Commission Base"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: plugin-options/commissions-options.php:30
|
378 |
msgid "Default commission percentage"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: plugin-options/vendors-options.php:20
|
382 |
msgid "Product management"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: plugin-options/vendors-options.php:27
|
386 |
msgid "Vendor name label color"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: plugin-options/vendors-options.php:29
|
390 |
msgid "Use in shop page and single product page"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: plugin-options/vendors-options.php:43
|
394 |
+
msgid "Order management"
|
395 |
+
msgstr ""
|
396 |
+
|
397 |
+
#: plugin-options/vendors-options.php:50
|
398 |
+
msgid "Enable order management"
|
399 |
+
msgstr ""
|
400 |
+
|
401 |
+
#: plugin-options/vendors-options.php:52
|
402 |
+
msgid ""
|
403 |
+
"If you enable this option, each vendor will be able to manage orders on his/"
|
404 |
+
"her own products independently."
|
405 |
+
msgstr ""
|
406 |
+
|
407 |
+
#: plugin-options/vendors-options.php:58
|
408 |
+
msgid "Order synchronization"
|
409 |
+
msgstr ""
|
410 |
+
|
411 |
+
#: plugin-options/vendors-options.php:60
|
412 |
+
msgid ""
|
413 |
+
"All changes to general orders will be synchronized with the individual "
|
414 |
+
"vendor's order"
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
#: templates/admin/add-product-vendors-taxonomy.php:12
|
418 |
#: templates/admin/edit-product-vendors-taxonomy.php:13
|
419 |
msgid "Vendor Shop Owner"
|
492 |
msgid "Commission %s Details"
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: templates/admin/commission-view.php:148
|
496 |
#, php-format
|
497 |
msgctxt "Commission credited to [user]"
|
498 |
msgid "credited to %s — from order %s — order status: %s"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: templates/admin/commission-view.php:155
|
502 |
msgid "General details"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: templates/admin/commission-view.php:158
|
506 |
msgid "Status"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: templates/admin/commission-view.php:162
|
510 |
msgid "Commission date"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: templates/admin/commission-view.php:180
|
514 |
msgid "User details"
|
515 |
msgstr ""
|
516 |
|
517 |
+
#: templates/admin/commission-view.php:185
|
518 |
msgid "Email"
|
519 |
msgstr ""
|
520 |
|
521 |
+
#: templates/admin/commission-view.php:204
|
522 |
msgid "PayPal"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: templates/admin/commission-view.php:212
|
526 |
msgid "Billing information"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: templates/admin/commission-view.php:237
|
530 |
msgid "Shipping information"
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: templates/admin/commission-view.php:272
|
534 |
msgid "Item data"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: templates/admin/commission-view.php:279
|
538 |
msgid "Item"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: templates/admin/commission-view.php:280
|
542 |
msgid "Qty"
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: templates/admin/commission-view.php:281
|
546 |
msgid "Cost"
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: templates/admin/commission-view.php:293
|
550 |
msgid "Product ID:"
|
551 |
msgstr ""
|
552 |
|
553 |
+
#: templates/admin/commission-view.php:296
|
554 |
+
#: templates/admin/commission-view.php:298
|
555 |
msgid "Variation ID:"
|
556 |
msgstr ""
|
557 |
|
558 |
+
#: templates/admin/commission-view.php:298
|
559 |
msgid "No longer exists"
|
560 |
msgstr ""
|
561 |
|
562 |
+
#: templates/admin/commission-view.php:302
|
563 |
msgid "Product SKU:"
|
564 |
msgstr ""
|
565 |
|
566 |
+
#: templates/admin/commission-view.php:438
|
567 |
msgid "Coupon(s) Used"
|
568 |
msgstr ""
|
569 |
|
570 |
+
#: templates/admin/commission-view.php:468
|
571 |
msgid "Commission"
|
572 |
msgstr ""
|
573 |
|
591 |
msgid "Percentage of the total sale price that this vendor receives."
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: templates/admin/premium.php:239 templates/admin/premium.php:661
|
595 |
#, php-format
|
596 |
msgid ""
|
597 |
+
"Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Multi Vendor"
|
598 |
+
"%2$s to benefit from all features!"
|
|
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: templates/admin/premium.php:243 templates/admin/premium.php:665
|
602 |
#, php-format
|
603 |
msgid "%1$s UPGRADE %2$s %3$s to the premium version %2$s"
|
604 |
msgstr ""
|
605 |
|
606 |
+
#: templates/admin/premium.php:250
|
607 |
+
msgid "Premium Features"
|
608 |
+
msgstr ""
|
609 |
+
|
610 |
+
#: templates/admin/premium.php:259
|
611 |
msgid "A richer vendor shop page"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: templates/admin/premium.php:262
|
615 |
#, php-format
|
616 |
msgid ""
|
617 |
+
"The vendor page gets more details!Vendors will be able to add their %s "
|
618 |
+
"contact details %s (email, address, phone number) and the most common social "
|
619 |
+
"network profiles (Facebook, Twitter, Google+, LinkedIn and YouTube)"
|
|
|
|
|
|
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: templates/admin/premium.php:265
|
623 |
#, php-format
|
624 |
msgid ""
|
625 |
+
"These pieces of information are gathered in the page of every vendor shop "
|
626 |
+
"with a %sheader%s where style and images can be customized."
|
|
|
|
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: templates/admin/premium.php:276
|
630 |
msgid "One or more administrators for every vendor shop"
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: templates/admin/premium.php:279
|
634 |
#, php-format
|
635 |
msgid ""
|
636 |
"The administrators of the vendor shop are one of the most important new "
|
637 |
+
"features.%s They are simple registered users of the shop that have been "
|
638 |
+
"admitted to %smanage the products%s and all the information about a vendor "
|
639 |
+
"shop by the administrator of the store or the owner of the vendor shop."
|
|
|
|
|
640 |
msgstr ""
|
641 |
|
642 |
+
#: templates/admin/premium.php:282
|
643 |
#, php-format
|
644 |
msgid ""
|
645 |
+
"The only element they can't change is the %stype of payment%s that only "
|
646 |
+
"administrator of the store or the owner of the vendor shop can set."
|
|
|
|
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: templates/admin/premium.php:299
|
650 |
msgid "Direct product sale"
|
651 |
msgstr ""
|
652 |
|
653 |
+
#: templates/admin/premium.php:302
|
654 |
#, php-format
|
655 |
msgid ""
|
656 |
"Thanks to the %s“Skip Admin review”%s option, vendors can publish new "
|
657 |
+
"products without the store administrator approval. This option can be "
|
658 |
+
"applied to all the vendor shops, or just to the selected ones."
|
|
|
|
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: templates/admin/premium.php:313
|
662 |
msgid "Actions for commissions"
|
663 |
msgstr ""
|
664 |
|
665 |
+
#: templates/admin/premium.php:316
|
666 |
msgid ""
|
667 |
"A commissions table with more details to be always up-to-date. Every "
|
668 |
+
"commission offers a set of buttons to quickly proceed to the PayPal payments "
|
669 |
+
"(if set as manual), or to change the state of the commission."
|
|
|
|
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: templates/admin/premium.php:333 templates/admin/premium.php:367
|
673 |
msgid "Variable commission rates"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: templates/admin/premium.php:336 templates/admin/premium.php:370
|
677 |
#, php-format
|
678 |
msgid ""
|
679 |
"%sNo more single commission rate for all the vendor shops:%s in the premium "
|
680 |
+
"version of the plugin, this rate can be modified for every single vendor "
|
681 |
+
"shop and for every product associated."
|
|
|
682 |
msgstr ""
|
683 |
|
684 |
+
#: templates/admin/premium.php:347
|
685 |
msgid "Coupon handling"
|
686 |
msgstr ""
|
687 |
|
688 |
+
#: templates/admin/premium.php:350
|
689 |
#, php-format
|
690 |
msgid ""
|
691 |
"If users use a coupon during a purchase, how will vendor commissions be "
|
692 |
+
"calculated? It's up to you: with the %s\"Coupon handling\"%s option, you can "
|
693 |
+
"decide whether you want to calculate the commission for the discounted total "
|
694 |
+
"or not."
|
|
|
695 |
msgstr ""
|
696 |
|
697 |
+
#: templates/admin/premium.php:381
|
698 |
msgid "COUPON CREATION"
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: templates/admin/premium.php:384
|
702 |
#, php-format
|
703 |
msgid ""
|
704 |
+
"With the option %s “Enable coupon management” %s, the vendors of your shop "
|
705 |
+
"can create coupons regarding the products they own. A nice innovation to "
|
706 |
+
"offer to your vendor-users."
|
|
|
|
|
707 |
msgstr ""
|
708 |
|
709 |
+
#: templates/admin/premium.php:401
|
710 |
msgid "REVIEWS"
|
711 |
msgstr ""
|
712 |
|
713 |
+
#: templates/admin/premium.php:404
|
714 |
#, php-format
|
715 |
msgid ""
|
716 |
+
" Just like coupons, this option is tailored on the need to manage reviews "
|
717 |
+
"and it has been added to the premium version of the plugin. Activating the "
|
718 |
+
"%s“Enable review management”%s option from the option panel of the plugin, "
|
719 |
+
"vendors will be free to manage the reviews of the products they own, and act "
|
720 |
+
"with the same privileges of the administrator of the store."
|
|
|
|
|
|
|
721 |
msgstr ""
|
722 |
|
723 |
+
#: templates/admin/premium.php:415
|
724 |
msgid "Advanced reports"
|
725 |
msgstr ""
|
726 |
|
727 |
+
#: templates/admin/premium.php:418
|
728 |
#, php-format
|
729 |
msgid ""
|
730 |
"Statistics have a central relevance in the e-commerce field and WooCommerce "
|
731 |
+
"Multi Vendor offers you different reports to %sanalyze your data%s: from the "
|
732 |
+
"most lucrative vendors, to the best sellers, including convenient commission "
|
733 |
+
"diagrams for each of them."
|
|
|
|
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: templates/admin/premium.php:435
|
737 |
msgid "CSV exportation of the reports"
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: templates/admin/premium.php:438
|
741 |
#, php-format
|
742 |
msgid ""
|
743 |
"For each report, %syou can export its data in the CSV format%s: in this way, "
|
744 |
+
"you will be free to use all the report details in every fields not "
|
745 |
+
"expressively related to WordPress."
|
|
|
746 |
msgstr ""
|
747 |
|
748 |
+
#: templates/admin/premium.php:449
|
749 |
msgid "Vendor's product exclusion from the shop (Product listing)"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: templates/admin/premium.php:452
|
753 |
#, php-format
|
754 |
msgid ""
|
755 |
"The %s\"Product listing\"%s option has been conceived to exclude from the "
|
756 |
+
"shop the products of a particular vendor. In this way, these would be "
|
|
|
757 |
"consultable only from the relative vendor's page."
|
758 |
msgstr ""
|
759 |
|
760 |
+
#: templates/admin/premium.php:469
|
761 |
msgid "Three widgets for your sidebars"
|
762 |
msgstr ""
|
763 |
|
764 |
+
#: templates/admin/premium.php:472
|
765 |
#, php-format
|
766 |
msgid ""
|
767 |
"%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store "
|
768 |
+
"Location%2$s: these are the three widgets that the plugin offers you. Thanks "
|
769 |
+
"to these widgets, you will be able to show the list of the registered "
|
770 |
+
"vendors of your shop, and enrich the detail page of the vendor shops with "
|
771 |
+
"information about their locations, or a contact form users can use to send "
|
772 |
+
"emails to the shop administrators."
|
|
|
|
|
|
|
773 |
msgstr ""
|
774 |
|
775 |
+
#: templates/admin/premium.php:482
|
776 |
+
msgid "Shortcode"
|
777 |
+
msgstr ""
|
778 |
+
|
779 |
+
#: templates/admin/premium.php:485
|
780 |
+
msgid ""
|
781 |
+
"Take advantage of the YITH WooCommerce Multi Vendor List shortcode to show "
|
782 |
+
"the complete list of your shop vendors in any page."
|
783 |
+
msgstr ""
|
784 |
+
|
785 |
+
#: templates/admin/premium.php:502
|
786 |
msgid "VISUALIZATION OF THE VENDOR'S NAME"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: templates/admin/premium.php:505
|
790 |
msgid ""
|
791 |
"The default setting of the plugin shows the name of each vendor in three "
|
792 |
"pages of your site: the shop page, the product detail page and product "
|
793 |
+
"category page. Now you can decide whether you want to show their name and "
|
794 |
+
"hide them whenever you want with three different options."
|
|
|
795 |
msgstr ""
|
796 |
|
797 |
+
#: templates/admin/premium.php:516
|
798 |
msgid "REGISTRATION FROM THE “MY ACCOUNT” PAGE"
|
799 |
msgstr ""
|
800 |
|
801 |
+
#: templates/admin/premium.php:519
|
802 |
msgid ""
|
803 |
"A more dynamic management for whoever would like to become a vendor of your "
|
804 |
+
"store. All new users can register as \"vendors\" of the shop directly from "
|
805 |
+
"the “My Account” page, and use immediately an administration area. After the "
|
806 |
+
"confirmation by the administrator, the vendors will be able to sell their "
|
807 |
+
"products."
|
|
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: templates/admin/premium.php:537
|
811 |
msgid "RESTRICTED NUMBER OF PRODUCTS"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: templates/admin/premium.php:540
|
815 |
msgid ""
|
816 |
"The option “Enable product amount limit” has been conceived to whoever would "
|
817 |
+
"like to limit the creation of products of the shop vendors, with the freedom "
|
818 |
+
"to indicate a specific maximum number of products that each vendor can "
|
819 |
+
"create."
|
|
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: templates/admin/premium.php:550
|
823 |
msgid "BULK ACTIONS ON VENDORS"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: templates/admin/premium.php:553
|
827 |
msgid ""
|
828 |
"How many times did you find yourself annoyed by the repetition of the same "
|
829 |
"passages with a huge waste of time? Well, now vendors management is "
|
830 |
+
"completely renewed! You will be able to apply bulk actions on all the "
|
|
|
831 |
"registered vendors, approving or deleting them all together with just one "
|
832 |
"click."
|
833 |
msgstr ""
|
834 |
|
835 |
+
#: templates/admin/premium.php:569
|
836 |
msgid "Advanced administration area for each vendor"
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: templates/admin/premium.php:572
|
840 |
msgid ""
|
841 |
"A breath of fresh air for the \"vendor users\" that can take advantage of a "
|
842 |
+
"big and advanced administrative area. From this place, they will be free to "
|
843 |
+
"consult the reports about their products,change their profile information "
|
844 |
+
"and choose the payment method they prefer. Each vendor can also check the "
|
845 |
+
"commissions table, with the whole sum of the relative commissions up to that "
|
846 |
+
"moment."
|
|
|
|
|
|
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: templates/admin/premium.php:582
|
850 |
msgid "ABUSE REPORT"
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: templates/admin/premium.php:585
|
854 |
msgid ""
|
855 |
"With this feature, your users will be able to send you a message about one "
|
856 |
"of the products of your shop with a dedicated form that will open in a popup "
|
857 |
"within the related product detail page."
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: templates/admin/premium.php:601
|
861 |
+
msgid "Second email"
|
862 |
+
msgstr ""
|
863 |
+
|
864 |
+
#: templates/admin/premium.php:604
|
865 |
+
msgid ""
|
866 |
+
"Each time that a new order is registered or cancelled, a notification email "
|
867 |
+
"is sent to the corresponding vendor. This sending can sometimes be affected "
|
868 |
+
"by some problems, and this is why you should be able to send again the lost "
|
869 |
+
"email. With the premium version of the plugin, you will just have to go to "
|
870 |
+
"the detail page of the order and with a single click everything will be "
|
871 |
+
"solved."
|
872 |
+
msgstr ""
|
873 |
+
|
874 |
+
#: templates/admin/premium.php:614
|
875 |
+
msgid "Minimum amount of commissions"
|
876 |
+
msgstr ""
|
877 |
+
|
878 |
+
#: templates/admin/premium.php:617
|
879 |
+
msgid ""
|
880 |
+
"If each vendor can decide a commission threshold for which asking the "
|
881 |
+
"payment, administrators must be free to control how this works.Setting a "
|
882 |
+
"minimum amount of commissions, you will be free to pay commissions starting "
|
883 |
+
"from the amount you have set."
|
884 |
+
msgstr ""
|
885 |
+
|
886 |
+
#: templates/admin/premium.php:633
|
887 |
+
msgid "Highlighted products"
|
888 |
+
msgstr ""
|
889 |
+
|
890 |
+
#: templates/admin/premium.php:636
|
891 |
+
msgid ""
|
892 |
+
"Setting a WooCommerce product as \"Featured\" means standing it out among "
|
893 |
+
"the others, maybe putting it in the main part of the homepage, or in one of "
|
894 |
+
"the widgets of the siderbars of your shop. With the related option, you will "
|
895 |
+
"be free to allow or block vendors to set their products as \"featured\"."
|
896 |
+
msgstr ""
|
897 |
+
|
898 |
+
#: templates/admin/premium.php:646
|
899 |
+
msgid "Sales amount"
|
900 |
+
msgstr ""
|
901 |
+
|
902 |
+
#: templates/admin/premium.php:649
|
903 |
+
msgid ""
|
904 |
+
"Enrich your shop with more information. Show the amount of sales made by "
|
905 |
+
"each vendor, placing it in the detail page of the related product, and for "
|
906 |
+
"each single product assigned to a vendor."
|
907 |
+
msgstr ""
|
908 |
+
|
909 |
#: templates/admin/vendor-admin.php:24
|
910 |
msgid "Name:"
|
911 |
msgstr ""
|
modules/yith-woocommerce-product-vendors/plugin-options/commissions-options.php
CHANGED
@@ -14,7 +14,6 @@ return apply_filters( 'yith_wpv_panel_commissions_options', array(
|
|
14 |
|
15 |
'commissions_options_start' => array(
|
16 |
'type' => 'sectionstart',
|
17 |
-
'id' => 'yith_wpv_commissions_options_start'
|
18 |
),
|
19 |
|
20 |
'commissions_options_title' => array(
|
@@ -40,7 +39,6 @@ return apply_filters( 'yith_wpv_panel_commissions_options', array(
|
|
40 |
|
41 |
'commissions_options_end' => array(
|
42 |
'type' => 'sectionend',
|
43 |
-
'id' => 'yith_wpv_commissions_options_end'
|
44 |
),
|
45 |
)
|
46 |
), 'commissions'
|
14 |
|
15 |
'commissions_options_start' => array(
|
16 |
'type' => 'sectionstart',
|
|
|
17 |
),
|
18 |
|
19 |
'commissions_options_title' => array(
|
39 |
|
40 |
'commissions_options_end' => array(
|
41 |
'type' => 'sectionend',
|
|
|
42 |
),
|
43 |
)
|
44 |
), 'commissions'
|
modules/yith-woocommerce-product-vendors/plugin-options/vendors-options.php
CHANGED
@@ -14,7 +14,6 @@ return apply_filters( 'yith_wpv_panel_vendors_options', array(
|
|
14 |
|
15 |
'vendors_options_start' => array(
|
16 |
'type' => 'sectionstart',
|
17 |
-
'id' => 'yith_wpv_vendors_options_start'
|
18 |
),
|
19 |
|
20 |
'vendors_options_title' => array(
|
@@ -34,7 +33,37 @@ return apply_filters( 'yith_wpv_panel_vendors_options', array(
|
|
34 |
|
35 |
'vendors_options_end' => array(
|
36 |
'type' => 'sectionend',
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
),
|
39 |
)
|
40 |
), 'vendors'
|
14 |
|
15 |
'vendors_options_start' => array(
|
16 |
'type' => 'sectionstart',
|
|
|
17 |
),
|
18 |
|
19 |
'vendors_options_title' => array(
|
33 |
|
34 |
'vendors_options_end' => array(
|
35 |
'type' => 'sectionend',
|
36 |
+
),
|
37 |
+
|
38 |
+
'vendors_order_start' => array(
|
39 |
+
'type' => 'sectionstart',
|
40 |
+
),
|
41 |
+
|
42 |
+
'vendors_order_title' => array(
|
43 |
+
'title' => __( 'Order management', 'yith_wc_product_vendors' ),
|
44 |
+
'type' => 'title',
|
45 |
+
'desc' => '',
|
46 |
+
'id' => 'yith_wpv_vendors_orders_title'
|
47 |
+
),
|
48 |
+
|
49 |
+
'vendors_order_management' => array(
|
50 |
+
'title' => __( 'Enable order management', 'yith_wc_product_vendors' ),
|
51 |
+
'type' => 'checkbox',
|
52 |
+
'desc' => __( 'If you enable this option, each vendor will be able to manage orders on his/her own products independently.', 'yith_wc_product_vendors' ),
|
53 |
+
'id' => 'yith_wpv_vendors_option_order_management',
|
54 |
+
'default' => 'no'
|
55 |
+
),
|
56 |
+
|
57 |
+
'vendors_order_synchronization' => array(
|
58 |
+
'title' => __( 'Order synchronization', 'yith_wc_product_vendors' ),
|
59 |
+
'type' => 'checkbox',
|
60 |
+
'desc' => __( "All changes to general orders will be synchronized with the individual vendor's order", 'yith_wc_product_vendors' ),
|
61 |
+
'id' => 'yith_wpv_vendors_option_order_synchronization',
|
62 |
+
'default' => 'yes'
|
63 |
+
),
|
64 |
+
|
65 |
+
'vendors_order_end' => array(
|
66 |
+
'type' => 'sectionend',
|
67 |
),
|
68 |
)
|
69 |
), 'vendors'
|
modules/yith-woocommerce-product-vendors/templates/admin/commission-view.php
CHANGED
@@ -44,7 +44,7 @@ $item_id = $commission->line_item_id;
|
|
44 |
<select name="new_status">
|
45 |
<option value=""><?php _e( 'Actions', 'yith_wc_product_vendors' ) ?></option>
|
46 |
<?php foreach ( YITH_Commissions()->get_status() as $status => $display ) : if ( ! YITH_Commissions()->is_status_changing_permitted( $status, $commission->status ) ) continue; ?>
|
47 |
-
<option value="<?php echo $status ?>"><?php printf( __( 'Change to %s' ), $display ) ?></option>
|
48 |
<?php endforeach; ?>
|
49 |
</select>
|
50 |
|
@@ -130,6 +130,19 @@ $item_id = $commission->line_item_id;
|
|
130 |
$order_number = '<strong>#' . esc_attr( $order->get_order_number() ) . '</strong>';
|
131 |
$order_uri = sprintf( '<a href="%s">#%d</a>', 'post.php?post=' . absint( $order->id ) . '&action=edit', $order->get_order_number() );
|
132 |
$order_info = $vendor->is_super_user() ? $order_uri : $order_number;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
$wc_order_status = wc_get_order_statuses();
|
134 |
|
135 |
printf( _x( 'credited to %s — from order %s — order status: %s', 'Commission credited to [user]', 'yith_wc_product_vendors' ), $username, $order_info, $wc_order_status[ $order->post_status ] );
|
44 |
<select name="new_status">
|
45 |
<option value=""><?php _e( 'Actions', 'yith_wc_product_vendors' ) ?></option>
|
46 |
<?php foreach ( YITH_Commissions()->get_status() as $status => $display ) : if ( ! YITH_Commissions()->is_status_changing_permitted( $status, $commission->status ) ) continue; ?>
|
47 |
+
<option value="<?php echo $status ?>"><?php printf( __( 'Change to %s', 'yith_wc_product_vendors' ), $display ) ?></option>
|
48 |
<?php endforeach; ?>
|
49 |
</select>
|
50 |
|
130 |
$order_number = '<strong>#' . esc_attr( $order->get_order_number() ) . '</strong>';
|
131 |
$order_uri = sprintf( '<a href="%s">#%d</a>', 'post.php?post=' . absint( $order->id ) . '&action=edit', $order->get_order_number() );
|
132 |
$order_info = $vendor->is_super_user() ? $order_uri : $order_number;
|
133 |
+
|
134 |
+
if( $vendor->is_super_user() ){
|
135 |
+
$order_info = $order_uri;
|
136 |
+
}
|
137 |
+
|
138 |
+
else if( defined( 'YITH_WPV_PREMIUM' ) && YITH_WPV_PREMIUM && $vendor->has_limited_access() && wp_get_post_parent_id( $order->id )&& in_array($order->id, $vendor->get_orders() ) ){
|
139 |
+
$order_info = $order_uri;
|
140 |
+
}
|
141 |
+
|
142 |
+
else {
|
143 |
+
$order_info = $order_number;
|
144 |
+
}
|
145 |
+
|
146 |
$wc_order_status = wc_get_order_statuses();
|
147 |
|
148 |
printf( _x( 'credited to %s — from order %s — order status: %s', 'Commission credited to [user]', 'yith_wc_product_vendors' ), $username, $order_info, $wc_order_status[ $order->post_status ] );
|
modules/yith-woocommerce-product-vendors/templates/admin/premium.php
CHANGED
@@ -236,21 +236,18 @@
|
|
236 |
<div class="landing-container">
|
237 |
<div class="premium-cta">
|
238 |
<p>
|
239 |
-
<?php echo sprintf( __( 'Upgrade to the %1$spremium version%2$s
|
240 |
-
of %1$sYITH WooCommerce Multi Vendor%2$s to benefit from all features!', 'yith_wc_product_vendors' ),
|
241 |
-
'<span class="highlight">', '</span>' ); ?>
|
242 |
</p>
|
243 |
<a href="<?php echo YITH_Vendors()->admin->get_premium_landing_uri(); ?>" target="_blank"
|
244 |
class="premium-cta-button button btn">
|
245 |
-
<?php echo sprintf( __( '%1$s UPGRADE %2$s %3$s to the premium version %2$s', 'yith_wc_product_vendors' ),
|
246 |
-
'<span class="highlight">', '</span>', '<span>' ); ?>
|
247 |
</a>
|
248 |
</div>
|
249 |
</div>
|
250 |
</div>
|
251 |
<div class="section section-even clear"
|
252 |
style="background: url(<?php echo YITH_WPV_URL ?>assets/images/01-bg.png) no-repeat #fff; background-position: 85% 75%">
|
253 |
-
<h1
|
254 |
|
255 |
<div class="landing-container">
|
256 |
<div class="col-1">
|
@@ -262,15 +259,10 @@
|
|
262 |
<h2><?php echo _e('A richer vendor shop page','yith_wc_product_vendors');?></h2>
|
263 |
</div>
|
264 |
<p>
|
265 |
-
<?php echo sprintf(__('The vendor page gets more details!Vendors will be able to add their
|
266 |
-
%s contact details %s (email, address, phone number) and the most common
|
267 |
-
social network profiles (Facebook, Twitter, Google+, LinkedIn and YouTube)
|
268 |
-
','yith_wc_product_vendors'),'<b>','</b>') ?>
|
269 |
</p>
|
270 |
<p>
|
271 |
-
<?php echo sprintf(__('These pieces of
|
272 |
-
information are gathered in the page of every vendor shop with a %sheader%s where style and images can
|
273 |
-
be customized.','yith_wc_product_vendors'),'<b>','</b>'); ?>
|
274 |
</p>
|
275 |
</div>
|
276 |
</div>
|
@@ -284,16 +276,10 @@
|
|
284 |
<h2><?php echo _e('One or more administrators for every vendor shop','yith_wc_product_vendors');?></h2>
|
285 |
</div>
|
286 |
<p>
|
287 |
-
<?php
|
288 |
-
echo sprintf( __('The administrators of the vendor shop are one of the most important new features.%s They are simple
|
289 |
-
registered users of the shop that have been admitted to %smanage the products%s and all the information
|
290 |
-
about a vendor shop by the administrator of the store or the owner of the vendor shop.','yith_wc_product_vendors'),'<br>','<b>','</b>');
|
291 |
-
?>
|
292 |
</p>
|
293 |
<p>
|
294 |
-
<?php echo sprintf( __('The only
|
295 |
-
element they can\'t change is the %stype of payment%s that only administrator of the store or the owner
|
296 |
-
of the vendor shop can set.','yith_wc_product_vendors'),'<b>','</b>'); ?>
|
297 |
</p>
|
298 |
</div>
|
299 |
<div class="col-1">
|
@@ -313,11 +299,7 @@
|
|
313 |
<h2><?php _e('Direct product sale','yith_wc_product_vendors');?></h2>
|
314 |
</div>
|
315 |
<p>
|
316 |
-
<?php
|
317 |
-
echo sprintf( __( 'Thanks to the %s“Skip Admin review”%s option, vendors can publish new products without the store
|
318 |
-
administrator approval. This option can be applied to all the vendor shops, or just to the selected
|
319 |
-
ones.', 'yith_wc_product_vendors' ), '<b>', '</b>');
|
320 |
-
?>
|
321 |
</p>
|
322 |
</div>
|
323 |
</div>
|
@@ -331,9 +313,7 @@
|
|
331 |
<h2><?php _e('Actions for commissions','yith_wc_product_vendors');?></h2>
|
332 |
</div>
|
333 |
<p>
|
334 |
-
<?php _e('A commissions table with more details to be always up-to-date. Every commission offers a set of
|
335 |
-
buttons to quickly proceed to the PayPal payments (if set as manual), or to change the state of the
|
336 |
-
commission.','yith_wc_product_vendors'); ?>
|
337 |
</p>
|
338 |
</div>
|
339 |
<div class="col-1">
|
@@ -353,10 +333,7 @@
|
|
353 |
<h2><?php _e('Variable commission rates','yith_wc_product_vendors');?></h2>
|
354 |
</div>
|
355 |
<p>
|
356 |
-
<?php
|
357 |
-
echo sprintf( __('%sNo more single commission rate for all the vendor shops:%s in the premium version of the plugin, this
|
358 |
-
rate can be modified for every single vendor shop and for every product associated.','yith_wc_product_vendors'),'<b>','</b>');
|
359 |
-
?>
|
360 |
</p>
|
361 |
</div>
|
362 |
</div>
|
@@ -370,11 +347,7 @@
|
|
370 |
<h2><?php _e('Coupon handling','yith_wc_product_vendors');?></h2>
|
371 |
</div>
|
372 |
<p>
|
373 |
-
<?php
|
374 |
-
echo sprintf( __('If users use a coupon during a purchase, how will vendor commissions be calculated? It\'s up to you:
|
375 |
-
with the %s"Coupon handling"%s option, you can decide whether you want to calculate the commission for
|
376 |
-
the discounted total or not.','yith_wc_product_vendors'),'<b>','</b>' );
|
377 |
-
?>
|
378 |
</p>
|
379 |
</div>
|
380 |
<div class="col-1">
|
@@ -394,10 +367,7 @@
|
|
394 |
<h2><?php _e('Variable commission rates','yith_wc_product_vendors');?></h2>
|
395 |
</div>
|
396 |
<p>
|
397 |
-
<?php
|
398 |
-
echo sprintf( __('%sNo more single commission rate for all the vendor shops:%s in the premium version of the plugin, this
|
399 |
-
rate can be modified for every single vendor shop and for every product associated.','yith_wc_product_vendors'),'<b>','</b>');
|
400 |
-
?>
|
401 |
</p>
|
402 |
</div>
|
403 |
</div>
|
@@ -411,11 +381,7 @@
|
|
411 |
<h2><?php _e('COUPON CREATION','yith_wc_product_vendors');?></h2>
|
412 |
</div>
|
413 |
<p>
|
414 |
-
<?php
|
415 |
-
echo sprintf( __('With the option %s “Enable coupon
|
416 |
-
management” %s, the vendors of your shop can create coupons regarding the products
|
417 |
-
they own. A nice innovation to offer to your vendor-users.','yith_wc_product_vendors'),'<b>','</b>' );
|
418 |
-
?>
|
419 |
</p>
|
420 |
</div>
|
421 |
<div class="col-1">
|
@@ -435,12 +401,7 @@
|
|
435 |
<h2><?php _e('REVIEWS','yith_wc_product_vendors');?></h2>
|
436 |
</div>
|
437 |
<p>
|
438 |
-
<?php
|
439 |
-
echo sprintf( __(' Just like coupons, this option is tailored on the need to manage reviews
|
440 |
-
and it has been added to the premium version of the plugin.
|
441 |
-
Activating the %s“Enable review management”%s option from the option panel of the plugin,
|
442 |
-
vendors will be free to manage the reviews of the products they own, and act with the same privileges of the administrator of the store.','yith_wc_product_vendors'),'<b>','</b>' )
|
443 |
-
?>
|
444 |
</p>
|
445 |
</div>
|
446 |
</div>
|
@@ -454,11 +415,7 @@
|
|
454 |
<h2><?php _e('Advanced reports','yith_wc_product_vendors');?></h2>
|
455 |
</div>
|
456 |
<p>
|
457 |
-
<?php
|
458 |
-
echo sprintf( __('Statistics have a central relevance in the e-commerce field and WooCommerce Multi Vendor offers you
|
459 |
-
different reports to %sanalyze your data%s: from the most lucrative vendors, to the best sellers,
|
460 |
-
including convenient commission diagrams for each of them.','yith_wc_product_vendors'),'<b>','</b>' );
|
461 |
-
?>
|
462 |
</p>
|
463 |
</div>
|
464 |
<div class="col-1">
|
@@ -478,10 +435,7 @@
|
|
478 |
<h2><?php _e('CSV exportation of the reports','yith_wc_product_vendors');?></h2>
|
479 |
</div>
|
480 |
<p>
|
481 |
-
<?php
|
482 |
-
echo sprintf( __('For each report, %syou can export its data in the CSV format%s: in this way, you will be free to use all
|
483 |
-
the report details in every fields not expressively related to WordPress.','yith_wc_product_vendors'),'<b>','</b>' );
|
484 |
-
?>
|
485 |
</p>
|
486 |
</div>
|
487 |
</div>
|
@@ -495,10 +449,7 @@
|
|
495 |
<h2><?php _e('Vendor\'s product exclusion from the shop (Product listing)','yith_wc_product_vendors');?></h2>
|
496 |
</div>
|
497 |
<p>
|
498 |
-
<?php
|
499 |
-
echo sprintf( __('The %s"Product listing"%s option has been conceived to exclude from the shop the products of a
|
500 |
-
particular vendor. In this way, these would be consultable only from the relative vendor\'s page.','yith_wc_product_vendors'), '<b>' , '</b>');
|
501 |
-
?>
|
502 |
</p>
|
503 |
</div>
|
504 |
<div class="col-1">
|
@@ -518,13 +469,7 @@
|
|
518 |
<h2><?php _e('Three widgets for your sidebars','yith_wc_product_vendors');?></h2>
|
519 |
</div>
|
520 |
<p>
|
521 |
-
<?php
|
522 |
-
echo sprintf( __('%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store Location%2$s: these are the three widgets
|
523 |
-
that the plugin offers you. Thanks to these widgets, you will be able to show the list of the
|
524 |
-
registered vendors of your shop, and enrich the detail page of the vendor shops with information
|
525 |
-
about their locations, or a contact form users can use to send emails to the shop
|
526 |
-
administrators.','yith_wc_product_vendors'), '<b>', '</b>' )
|
527 |
-
?>
|
528 |
</p>
|
529 |
</div>
|
530 |
</div>
|
@@ -557,9 +502,7 @@
|
|
557 |
<h2><?php _e('VISUALIZATION OF THE VENDOR\'S NAME','yith_wc_product_vendors');?></h2>
|
558 |
</div>
|
559 |
<p>
|
560 |
-
<?php _e( 'The default setting of the plugin shows the name of each vendor in three pages of your site: the shop page, the product detail page and product category page.
|
561 |
-
Now you can decide whether you want to show their name and hide them whenever you want with three different options.','yith_wc_product_vendors' );
|
562 |
-
?>
|
563 |
</p>
|
564 |
</div>
|
565 |
</div>
|
@@ -573,10 +516,7 @@
|
|
573 |
<h2><?php _e( 'REGISTRATION FROM THE “MY ACCOUNT” PAGE','yith_wc_product_vendors' );?> </h2>
|
574 |
</div>
|
575 |
<p>
|
576 |
-
<?php
|
577 |
-
_e( 'A more dynamic management for whoever would like to become a vendor of your store.
|
578 |
-
All new users can register as "vendors" of the shop directly from the “My Account” page, and use immediately an administration area. After the confirmation by the administrator, the vendors will be able to sell their products.','yith_wc_product_vendors' )
|
579 |
-
?>
|
580 |
|
581 |
</p>
|
582 |
</div>
|
@@ -597,11 +537,7 @@
|
|
597 |
<h2><?php _e('RESTRICTED NUMBER OF PRODUCTS','yith_wc_product_vendors');?></h2>
|
598 |
</div>
|
599 |
<p>
|
600 |
-
<?php
|
601 |
-
_e( 'The option “Enable product amount limit” has been conceived to whoever would like to limit the
|
602 |
-
creation of products of the shop vendors, with the freedom to indicate a specific maximum number of
|
603 |
-
products that each vendor can create.','yith_wc_product_vendors' );
|
604 |
-
?>
|
605 |
</p>
|
606 |
</div>
|
607 |
</div>
|
@@ -614,10 +550,7 @@
|
|
614 |
<h2><?php _e('BULK ACTIONS ON VENDORS','yith_wc_product_vendors');?></h2>
|
615 |
</div>
|
616 |
<p>
|
617 |
-
<?php
|
618 |
-
_e( 'How many times did you find yourself annoyed by the repetition of the same passages with a huge waste of time? Well, now vendors management is completely renewed!
|
619 |
-
You will be able to apply bulk actions on all the registered vendors, approving or deleting them all together with just one click.','yith_wc_product_vendors' )
|
620 |
-
?>
|
621 |
</p>
|
622 |
</div>
|
623 |
<div class="col-1">
|
@@ -636,13 +569,7 @@
|
|
636 |
<h2><?php _e('Advanced administration area for each vendor','yith_wc_product_vendors'); ?></h2>
|
637 |
</div>
|
638 |
<p>
|
639 |
-
<?php
|
640 |
-
_e( 'A breath of fresh air for the "vendor users" that can take advantage of a big and advanced
|
641 |
-
administrative area. From this place, they will be free to consult the reports about their products,
|
642 |
-
change their profile information and choose the payment method they prefer.
|
643 |
-
Each vendor can also check the commissions table, with the whole sum of the relative commissions up
|
644 |
-
to that moment.','yith_wc_product_vendors' )
|
645 |
-
?>
|
646 |
</p>
|
647 |
</div>
|
648 |
</div>
|
@@ -655,9 +582,7 @@
|
|
655 |
<h2><?php _e('ABUSE REPORT','yith_wc_product_vendors');?></h2>
|
656 |
</div>
|
657 |
<p>
|
658 |
-
<?php
|
659 |
-
_e( 'With this feature, your users will be able to send you a message about one of the products of your shop with a dedicated form that will open in a popup within the related product detail page.','yith_wc_product_vendors' )
|
660 |
-
?>
|
661 |
</p>
|
662 |
</div>
|
663 |
<div class="col-1">
|
@@ -676,9 +601,7 @@
|
|
676 |
<h2><?php _e('Second email','yith_wc_product_vendors'); ?></h2>
|
677 |
</div>
|
678 |
<p>
|
679 |
-
<?php
|
680 |
-
_e( 'Each time that a new order is registered or cancelled, a notification email is sent to the corresponding vendor. This sending can sometimes be affected by some problems, and this is why you should be able to send again the lost email. With the premium version of the plugin, you will just have to go to the detail page of the order and with a single click everything will be solved.','yith_wc_product_vendors' )
|
681 |
-
?>
|
682 |
</p>
|
683 |
</div>
|
684 |
</div>
|
@@ -691,8 +614,7 @@
|
|
691 |
<h2><?php _e('Minimum amount of commissions','yith_wc_product_vendors');?></h2>
|
692 |
</div>
|
693 |
<p>
|
694 |
-
<?php
|
695 |
-
_e( 'If each vendor can decide a commission threshold for which asking the payment, administrators must be free to control how this works.Setting a minimum amount of commissions, you will be free to pay commissions starting from the amount you have set.','yith_wc_product_vendors' );?>
|
696 |
</p>
|
697 |
</div>
|
698 |
<div class="col-1">
|
@@ -711,9 +633,7 @@
|
|
711 |
<h2><?php _e('Highlighted products','yith_wc_product_vendors'); ?></h2>
|
712 |
</div>
|
713 |
<p>
|
714 |
-
<?php
|
715 |
-
_e( 'Setting a WooCommerce product as "Featured" means standing it out among the others, maybe putting it in the main part of the homepage, or in one of the widgets of the siderbars of your shop. With the related option, you will be free to allow or block vendors to set their products as "featured".','yith_wc_product_vendors' )
|
716 |
-
?>
|
717 |
</p>
|
718 |
</div>
|
719 |
</div>
|
@@ -726,9 +646,7 @@
|
|
726 |
<h2><?php _e('Sales amount','yith_wc_product_vendors');?></h2>
|
727 |
</div>
|
728 |
<p>
|
729 |
-
<?php
|
730 |
-
_e( 'Enrich your shop with more information. Show the amount of sales made by each vendor, placing it in the detail page of the related product, and for each single product assigned to a vendor.','yith_wc_product_vendors' )
|
731 |
-
?>
|
732 |
</p>
|
733 |
</div>
|
734 |
<div class="col-1">
|
@@ -740,14 +658,11 @@
|
|
740 |
<div class="landing-container">
|
741 |
<div class="premium-cta">
|
742 |
<p>
|
743 |
-
<?php echo sprintf( __( 'Upgrade to the %1$spremium version%2$s
|
744 |
-
of %1$sYITH WooCommerce Multi Vendor%2$s to benefit from all features!', 'yith_wc_product_vendors' ),
|
745 |
-
'<span class="highlight">', '</span>' ); ?>
|
746 |
</p>
|
747 |
<a href="<?php echo YITH_Vendors()->admin->get_premium_landing_uri(); ?>" target="_blank"
|
748 |
class="premium-cta-button button btn">
|
749 |
-
<?php echo sprintf( __( '%1$s UPGRADE %2$s %3$s to the premium version %2$s', 'yith_wc_product_vendors' ),
|
750 |
-
'<span class="highlight">', '</span>', '<span>' ); ?>
|
751 |
</a>
|
752 |
</div>
|
753 |
</div>
|
236 |
<div class="landing-container">
|
237 |
<div class="premium-cta">
|
238 |
<p>
|
239 |
+
<?php echo sprintf( __( 'Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Multi Vendor%2$s to benefit from all features!', 'yith_wc_product_vendors' ), '<span class="highlight">', '</span>' ); ?>
|
|
|
|
|
240 |
</p>
|
241 |
<a href="<?php echo YITH_Vendors()->admin->get_premium_landing_uri(); ?>" target="_blank"
|
242 |
class="premium-cta-button button btn">
|
243 |
+
<?php echo sprintf( __( '%1$s UPGRADE %2$s %3$s to the premium version %2$s', 'yith_wc_product_vendors' ),'<span class="highlight">', '</span>', '<span>' ); ?>
|
|
|
244 |
</a>
|
245 |
</div>
|
246 |
</div>
|
247 |
</div>
|
248 |
<div class="section section-even clear"
|
249 |
style="background: url(<?php echo YITH_WPV_URL ?>assets/images/01-bg.png) no-repeat #fff; background-position: 85% 75%">
|
250 |
+
<h1><?php echo _e('Premium Features','yith_wc_product_vendors');?></h1>
|
251 |
|
252 |
<div class="landing-container">
|
253 |
<div class="col-1">
|
259 |
<h2><?php echo _e('A richer vendor shop page','yith_wc_product_vendors');?></h2>
|
260 |
</div>
|
261 |
<p>
|
262 |
+
<?php echo sprintf(__('The vendor page gets more details!Vendors will be able to add their %s contact details %s (email, address, phone number) and the most common social network profiles (Facebook, Twitter, Google+, LinkedIn and YouTube)','yith_wc_product_vendors'),'<b>','</b>') ?>
|
|
|
|
|
|
|
263 |
</p>
|
264 |
<p>
|
265 |
+
<?php echo sprintf(__('These pieces of information are gathered in the page of every vendor shop with a %sheader%s where style and images can be customized.','yith_wc_product_vendors'),'<b>','</b>'); ?>
|
|
|
|
|
266 |
</p>
|
267 |
</div>
|
268 |
</div>
|
276 |
<h2><?php echo _e('One or more administrators for every vendor shop','yith_wc_product_vendors');?></h2>
|
277 |
</div>
|
278 |
<p>
|
279 |
+
<?php echo sprintf( __('The administrators of the vendor shop are one of the most important new features.%s They are simple registered users of the shop that have been admitted to %smanage the products%s and all the information about a vendor shop by the administrator of the store or the owner of the vendor shop.','yith_wc_product_vendors'),'<br>','<b>','</b>');?>
|
|
|
|
|
|
|
|
|
280 |
</p>
|
281 |
<p>
|
282 |
+
<?php echo sprintf( __('The only element they can\'t change is the %stype of payment%s that only administrator of the store or the owner of the vendor shop can set.','yith_wc_product_vendors'),'<b>','</b>'); ?>
|
|
|
|
|
283 |
</p>
|
284 |
</div>
|
285 |
<div class="col-1">
|
299 |
<h2><?php _e('Direct product sale','yith_wc_product_vendors');?></h2>
|
300 |
</div>
|
301 |
<p>
|
302 |
+
<?php echo sprintf( __( 'Thanks to the %s“Skip Admin review”%s option, vendors can publish new products without the store administrator approval. This option can be applied to all the vendor shops, or just to the selected ones.', 'yith_wc_product_vendors' ), '<b>', '</b>');?>
|
|
|
|
|
|
|
|
|
303 |
</p>
|
304 |
</div>
|
305 |
</div>
|
313 |
<h2><?php _e('Actions for commissions','yith_wc_product_vendors');?></h2>
|
314 |
</div>
|
315 |
<p>
|
316 |
+
<?php _e('A commissions table with more details to be always up-to-date. Every commission offers a set of buttons to quickly proceed to the PayPal payments (if set as manual), or to change the state of the commission.','yith_wc_product_vendors'); ?>
|
|
|
|
|
317 |
</p>
|
318 |
</div>
|
319 |
<div class="col-1">
|
333 |
<h2><?php _e('Variable commission rates','yith_wc_product_vendors');?></h2>
|
334 |
</div>
|
335 |
<p>
|
336 |
+
<?php echo sprintf( __('%sNo more single commission rate for all the vendor shops:%s in the premium version of the plugin, this rate can be modified for every single vendor shop and for every product associated.','yith_wc_product_vendors'),'<b>','</b>');?>
|
|
|
|
|
|
|
337 |
</p>
|
338 |
</div>
|
339 |
</div>
|
347 |
<h2><?php _e('Coupon handling','yith_wc_product_vendors');?></h2>
|
348 |
</div>
|
349 |
<p>
|
350 |
+
<?php echo sprintf( __('If users use a coupon during a purchase, how will vendor commissions be calculated? It\'s up to you: with the %s"Coupon handling"%s option, you can decide whether you want to calculate the commission for the discounted total or not.','yith_wc_product_vendors'),'<b>','</b>' );?>
|
|
|
|
|
|
|
|
|
351 |
</p>
|
352 |
</div>
|
353 |
<div class="col-1">
|
367 |
<h2><?php _e('Variable commission rates','yith_wc_product_vendors');?></h2>
|
368 |
</div>
|
369 |
<p>
|
370 |
+
<?php echo sprintf( __('%sNo more single commission rate for all the vendor shops:%s in the premium version of the plugin, this rate can be modified for every single vendor shop and for every product associated.','yith_wc_product_vendors'),'<b>','</b>');?>
|
|
|
|
|
|
|
371 |
</p>
|
372 |
</div>
|
373 |
</div>
|
381 |
<h2><?php _e('COUPON CREATION','yith_wc_product_vendors');?></h2>
|
382 |
</div>
|
383 |
<p>
|
384 |
+
<?php echo sprintf( __('With the option %s “Enable coupon management” %s, the vendors of your shop can create coupons regarding the products they own. A nice innovation to offer to your vendor-users.','yith_wc_product_vendors'),'<b>','</b>' );?>
|
|
|
|
|
|
|
|
|
385 |
</p>
|
386 |
</div>
|
387 |
<div class="col-1">
|
401 |
<h2><?php _e('REVIEWS','yith_wc_product_vendors');?></h2>
|
402 |
</div>
|
403 |
<p>
|
404 |
+
<?php echo sprintf( __(' Just like coupons, this option is tailored on the need to manage reviews and it has been added to the premium version of the plugin. Activating the %s“Enable review management”%s option from the option panel of the plugin, vendors will be free to manage the reviews of the products they own, and act with the same privileges of the administrator of the store.','yith_wc_product_vendors'),'<b>','</b>' )?>
|
|
|
|
|
|
|
|
|
|
|
405 |
</p>
|
406 |
</div>
|
407 |
</div>
|
415 |
<h2><?php _e('Advanced reports','yith_wc_product_vendors');?></h2>
|
416 |
</div>
|
417 |
<p>
|
418 |
+
<?php echo sprintf( __('Statistics have a central relevance in the e-commerce field and WooCommerce Multi Vendor offers you different reports to %sanalyze your data%s: from the most lucrative vendors, to the best sellers, including convenient commission diagrams for each of them.','yith_wc_product_vendors'),'<b>','</b>' );?>
|
|
|
|
|
|
|
|
|
419 |
</p>
|
420 |
</div>
|
421 |
<div class="col-1">
|
435 |
<h2><?php _e('CSV exportation of the reports','yith_wc_product_vendors');?></h2>
|
436 |
</div>
|
437 |
<p>
|
438 |
+
<?php echo sprintf( __('For each report, %syou can export its data in the CSV format%s: in this way, you will be free to use all the report details in every fields not expressively related to WordPress.','yith_wc_product_vendors'),'<b>','</b>' );?>
|
|
|
|
|
|
|
439 |
</p>
|
440 |
</div>
|
441 |
</div>
|
449 |
<h2><?php _e('Vendor\'s product exclusion from the shop (Product listing)','yith_wc_product_vendors');?></h2>
|
450 |
</div>
|
451 |
<p>
|
452 |
+
<?php echo sprintf( __('The %s"Product listing"%s option has been conceived to exclude from the shop the products of a particular vendor. In this way, these would be consultable only from the relative vendor\'s page.','yith_wc_product_vendors'), '<b>' , '</b>');?>
|
|
|
|
|
|
|
453 |
</p>
|
454 |
</div>
|
455 |
<div class="col-1">
|
469 |
<h2><?php _e('Three widgets for your sidebars','yith_wc_product_vendors');?></h2>
|
470 |
</div>
|
471 |
<p>
|
472 |
+
<?php echo sprintf( __('%1$sYITH Vendor List, YITH Vendor Quick Info%2$s and %1$sYITH Vendor Store Location%2$s: these are the three widgets that the plugin offers you. Thanks to these widgets, you will be able to show the list of the registered vendors of your shop, and enrich the detail page of the vendor shops with information about their locations, or a contact form users can use to send emails to the shop administrators.','yith_wc_product_vendors'), '<b>', '</b>' )?>
|
|
|
|
|
|
|
|
|
|
|
|
|
473 |
</p>
|
474 |
</div>
|
475 |
</div>
|
502 |
<h2><?php _e('VISUALIZATION OF THE VENDOR\'S NAME','yith_wc_product_vendors');?></h2>
|
503 |
</div>
|
504 |
<p>
|
505 |
+
<?php _e( 'The default setting of the plugin shows the name of each vendor in three pages of your site: the shop page, the product detail page and product category page. Now you can decide whether you want to show their name and hide them whenever you want with three different options.','yith_wc_product_vendors' );?>
|
|
|
|
|
506 |
</p>
|
507 |
</div>
|
508 |
</div>
|
516 |
<h2><?php _e( 'REGISTRATION FROM THE “MY ACCOUNT” PAGE','yith_wc_product_vendors' );?> </h2>
|
517 |
</div>
|
518 |
<p>
|
519 |
+
<?php _e( 'A more dynamic management for whoever would like to become a vendor of your store. All new users can register as "vendors" of the shop directly from the “My Account” page, and use immediately an administration area. After the confirmation by the administrator, the vendors will be able to sell their products.','yith_wc_product_vendors' )?>
|
|
|
|
|
|
|
520 |
|
521 |
</p>
|
522 |
</div>
|
537 |
<h2><?php _e('RESTRICTED NUMBER OF PRODUCTS','yith_wc_product_vendors');?></h2>
|
538 |
</div>
|
539 |
<p>
|
540 |
+
<?php _e( 'The option “Enable product amount limit” has been conceived to whoever would like to limit the creation of products of the shop vendors, with the freedom to indicate a specific maximum number of products that each vendor can create.','yith_wc_product_vendors' );?>
|
|
|
|
|
|
|
|
|
541 |
</p>
|
542 |
</div>
|
543 |
</div>
|
550 |
<h2><?php _e('BULK ACTIONS ON VENDORS','yith_wc_product_vendors');?></h2>
|
551 |
</div>
|
552 |
<p>
|
553 |
+
<?php _e( 'How many times did you find yourself annoyed by the repetition of the same passages with a huge waste of time? Well, now vendors management is completely renewed! You will be able to apply bulk actions on all the registered vendors, approving or deleting them all together with just one click.','yith_wc_product_vendors' )?>
|
|
|
|
|
|
|
554 |
</p>
|
555 |
</div>
|
556 |
<div class="col-1">
|
569 |
<h2><?php _e('Advanced administration area for each vendor','yith_wc_product_vendors'); ?></h2>
|
570 |
</div>
|
571 |
<p>
|
572 |
+
<?php _e( 'A breath of fresh air for the "vendor users" that can take advantage of a big and advanced administrative area. From this place, they will be free to consult the reports about their products,change their profile information and choose the payment method they prefer. Each vendor can also check the commissions table, with the whole sum of the relative commissions up to that moment.','yith_wc_product_vendors' )?>
|
|
|
|
|
|
|
|
|
|
|
|
|
573 |
</p>
|
574 |
</div>
|
575 |
</div>
|
582 |
<h2><?php _e('ABUSE REPORT','yith_wc_product_vendors');?></h2>
|
583 |
</div>
|
584 |
<p>
|
585 |
+
<?php _e( 'With this feature, your users will be able to send you a message about one of the products of your shop with a dedicated form that will open in a popup within the related product detail page.','yith_wc_product_vendors' )?>
|
|
|
|
|
586 |
</p>
|
587 |
</div>
|
588 |
<div class="col-1">
|
601 |
<h2><?php _e('Second email','yith_wc_product_vendors'); ?></h2>
|
602 |
</div>
|
603 |
<p>
|
604 |
+
<?php _e( 'Each time that a new order is registered or cancelled, a notification email is sent to the corresponding vendor. This sending can sometimes be affected by some problems, and this is why you should be able to send again the lost email. With the premium version of the plugin, you will just have to go to the detail page of the order and with a single click everything will be solved.','yith_wc_product_vendors' )?>
|
|
|
|
|
605 |
</p>
|
606 |
</div>
|
607 |
</div>
|
614 |
<h2><?php _e('Minimum amount of commissions','yith_wc_product_vendors');?></h2>
|
615 |
</div>
|
616 |
<p>
|
617 |
+
<?php _e( 'If each vendor can decide a commission threshold for which asking the payment, administrators must be free to control how this works.Setting a minimum amount of commissions, you will be free to pay commissions starting from the amount you have set.','yith_wc_product_vendors' );?>
|
|
|
618 |
</p>
|
619 |
</div>
|
620 |
<div class="col-1">
|
633 |
<h2><?php _e('Highlighted products','yith_wc_product_vendors'); ?></h2>
|
634 |
</div>
|
635 |
<p>
|
636 |
+
<?php _e( 'Setting a WooCommerce product as "Featured" means standing it out among the others, maybe putting it in the main part of the homepage, or in one of the widgets of the siderbars of your shop. With the related option, you will be free to allow or block vendors to set their products as "featured".','yith_wc_product_vendors' )?>
|
|
|
|
|
637 |
</p>
|
638 |
</div>
|
639 |
</div>
|
646 |
<h2><?php _e('Sales amount','yith_wc_product_vendors');?></h2>
|
647 |
</div>
|
648 |
<p>
|
649 |
+
<?php _e( 'Enrich your shop with more information. Show the amount of sales made by each vendor, placing it in the detail page of the related product, and for each single product assigned to a vendor.','yith_wc_product_vendors' )?>
|
|
|
|
|
650 |
</p>
|
651 |
</div>
|
652 |
<div class="col-1">
|
658 |
<div class="landing-container">
|
659 |
<div class="premium-cta">
|
660 |
<p>
|
661 |
+
<?php echo sprintf( __( 'Upgrade to the %1$spremium version%2$s of %1$sYITH WooCommerce Multi Vendor%2$s to benefit from all features!', 'yith_wc_product_vendors' ),'<span class="highlight">', '</span>' ); ?>
|
|
|
|
|
662 |
</p>
|
663 |
<a href="<?php echo YITH_Vendors()->admin->get_premium_landing_uri(); ?>" target="_blank"
|
664 |
class="premium-cta-button button btn">
|
665 |
+
<?php echo sprintf( __( '%1$s UPGRADE %2$s %3$s to the premium version %2$s', 'yith_wc_product_vendors' ),'<span class="highlight">', '</span>', '<span>' ); ?>
|
|
|
666 |
</a>
|
667 |
</div>
|
668 |
</div>
|
modules/yith-woocommerce-product-vendors/templates/woocommerce/single-product/vendor-tab.php
CHANGED
@@ -16,10 +16,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
|
17 |
<h2>
|
18 |
<a href="<?php echo $vendor_url ?>">
|
19 |
-
<?php echo $vendor_name ?>
|
20 |
</a>
|
21 |
</h2>
|
22 |
|
23 |
<div class="vendor-description">
|
24 |
-
<?php echo $vendor_description ?>
|
25 |
</div>
|
16 |
|
17 |
<h2>
|
18 |
<a href="<?php echo $vendor_url ?>">
|
19 |
+
<?php echo __( $vendor_name, 'yith_wc_product_vendors' ) ?>
|
20 |
</a>
|
21 |
</h2>
|
22 |
|
23 |
<div class="vendor-description">
|
24 |
+
<?php echo __( $vendor_description, 'yith_wc_product_vendors' ) ?>
|
25 |
</div>
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -365,7 +365,8 @@ if ( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
365 |
* @return array Filtered body classes
|
366 |
*/
|
367 |
public function admin_body_class( $admin_body_classes ){
|
368 |
-
|
|
|
369 |
}
|
370 |
|
371 |
/**
|
365 |
* @return array Filtered body classes
|
366 |
*/
|
367 |
public function admin_body_class( $admin_body_classes ){
|
368 |
+
global $pagenow;
|
369 |
+
return 'admin.php' == $pagenow && substr_count( $admin_body_classes, 'woocommerce' ) == 0 ? $admin_body_classes .= ' woocommerce ' : $admin_body_classes;
|
370 |
}
|
371 |
|
372 |
/**
|
plugin-fw/lib/yit-upgrade.php
CHANGED
@@ -190,15 +190,34 @@ if ( ! class_exists( 'YIT_Upgrade' ) ) {
|
|
190 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
191 |
*/
|
192 |
protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
|
194 |
/**
|
195 |
* It isn't YITH Premium plugins, please wordpress update it for me!
|
196 |
*/
|
197 |
-
if( !
|
198 |
return $reply;
|
199 |
}
|
200 |
|
201 |
-
|
202 |
|
203 |
/**
|
204 |
* False ? It isn't YITH Premium plugins, please wordpress update it for me!
|
190 |
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
191 |
*/
|
192 |
protected function _upgrader_pre_download( $reply, $package, $upgrader ) {
|
193 |
+
$plugin = false;
|
194 |
+
$is_bulk = $upgrader->skin instanceof Bulk_Plugin_Upgrader_Skin;
|
195 |
+
|
196 |
+
if( ! $is_bulk ){
|
197 |
+
$plugin = isset( $upgrader->skin->plugin ) ? $upgrader->skin->plugin : false;
|
198 |
+
}
|
199 |
+
|
200 |
+
else {
|
201 |
+
//Bulk action upgrade
|
202 |
+
$action_url = parse_url( $upgrader->skin->options['url'] );
|
203 |
+
parse_str( rawurldecode( htmlspecialchars_decode( $action_url['query'] ) ) );
|
204 |
+
$plugins = explode( ',', $plugins );
|
205 |
+
foreach( $plugins as $plugin_init ){
|
206 |
+
$to_upgrade = get_plugin_data( WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $plugin_init );
|
207 |
+
if( $to_upgrade['Name'] == $upgrader->skin->plugin_info['Name'] ){
|
208 |
+
$plugin = $plugin_init;
|
209 |
+
}
|
210 |
+
}
|
211 |
+
}
|
212 |
|
213 |
/**
|
214 |
* It isn't YITH Premium plugins, please wordpress update it for me!
|
215 |
*/
|
216 |
+
if( ! $plugin ) {
|
217 |
return $reply;
|
218 |
}
|
219 |
|
220 |
+
$plugin_info = YIT_Plugin_Licence()->get_product( $plugin );
|
221 |
|
222 |
/**
|
223 |
* False ? It isn't YITH Premium plugins, please wordpress update it for me!
|
yith-jetpack.php
CHANGED
@@ -59,9 +59,11 @@ if ( ! class_exists( 'YITH_JetPack' ) ) {
|
|
59 |
$this->_modules_list_query_value = self::MODULES_LIST_QUERY_VALUE.$this->$index;
|
60 |
$this->_plugin_list_hide_notice_option_name = self::PLUGIN_LIST_HIDE_NOTICE_OPTION_NAME.$this->$index;
|
61 |
|
62 |
-
$this->plugin_fw_loader();
|
63 |
$this->load_modules();
|
64 |
|
|
|
|
|
|
|
65 |
// admin page
|
66 |
add_action( 'admin_init', array( $this, 'deactivate_singular_plugins' ) );
|
67 |
add_action( 'admin_init', array( $this, 'activate_module_action' ) );
|
59 |
$this->_modules_list_query_value = self::MODULES_LIST_QUERY_VALUE.$this->$index;
|
60 |
$this->_plugin_list_hide_notice_option_name = self::PLUGIN_LIST_HIDE_NOTICE_OPTION_NAME.$this->$index;
|
61 |
|
|
|
62 |
$this->load_modules();
|
63 |
|
64 |
+
/* Load Plugin Framework */
|
65 |
+
add_action( 'after_setup_theme', array( $this, 'plugin_fw_loader' ), 1 );
|
66 |
+
|
67 |
// admin page
|
68 |
add_action( 'admin_init', array( $this, 'deactivate_singular_plugins' ) );
|
69 |
add_action( 'admin_init', array( $this, 'activate_module_action' ) );
|