Version Description
22-12-2015 =
[i18n] - Portuguese (pt_PT) translation
[i18n] - Greek (el) translation
[Improvement] - Keep the WooCommerce -> Settings menu open while in Shipping rate options
[Tweak] - [Dev] - Remove method prefixes on many places where possible (not all)
Download this release
Release Info
Developer | sormano |
Plugin | WooCommerce Advanced Free Shipping |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.8
- assets/js/wafs-js.js +8 -6
- includes/admin/class-wafs-admin.php +116 -0
- includes/class-wafs-ajax.php +19 -11
- includes/class-wafs-method.php +8 -15
- includes/class-wafs-post-type.php +13 -17
- languages/woocommerce-advanced-free-shipping-el.mo +0 -0
- languages/woocommerce-advanced-free-shipping-el.po +321 -0
- languages/woocommerce-advanced-free-shipping-pt_PT.mo +0 -0
- languages/woocommerce-advanced-free-shipping-pt_PT.po +461 -0
- readme.txt +21 -8
- woocommerce-advanced-free-shipping.php +26 -15
assets/js/wafs-js.js
CHANGED
@@ -5,7 +5,7 @@ jQuery( function( $ ) {
|
|
5 |
// Add condition
|
6 |
$( '#wafs_conditions' ).on( 'click', '.condition-add', function() {
|
7 |
|
8 |
-
var data = { action: 'wafs_add_condition', group: $( this ).attr( 'data-group' ) };
|
9 |
|
10 |
$( '.condition-group-' + data.group ).append( loading_icon ).children( ':last' );
|
11 |
|
@@ -36,7 +36,8 @@ jQuery( function( $ ) {
|
|
36 |
|
37 |
var data = {
|
38 |
action: 'wafs_add_condition_group',
|
39 |
-
group: parseInt( $( '.condition-group' ).last().attr( 'data-group') ) + 1
|
|
|
40 |
};
|
41 |
|
42 |
// Insert condition group
|
@@ -54,7 +55,8 @@ jQuery( function( $ ) {
|
|
54 |
action: 'wafs_update_condition_value',
|
55 |
id: $( this ).attr( 'data-id' ),
|
56 |
group: $( this ).attr( 'data-group' ),
|
57 |
-
condition: $( this ).val()
|
|
|
58 |
};
|
59 |
|
60 |
var replace = '.wafs-value-wrap-' + data.id;
|
@@ -68,13 +70,13 @@ jQuery( function( $ ) {
|
|
68 |
// Update condition description
|
69 |
var description = {
|
70 |
action: 'wafs_update_condition_description',
|
71 |
-
condition: data.condition
|
|
|
72 |
};
|
73 |
|
74 |
$.post( ajaxurl, description, function( description_response ) {
|
75 |
$( replace + ' ~ .wafs-description' ).replaceWith( description_response );
|
76 |
-
})
|
77 |
-
|
78 |
|
79 |
});
|
80 |
|
5 |
// Add condition
|
6 |
$( '#wafs_conditions' ).on( 'click', '.condition-add', function() {
|
7 |
|
8 |
+
var data = { action: 'wafs_add_condition', group: $( this ).attr( 'data-group' ), nonce: wafs.nonce };
|
9 |
|
10 |
$( '.condition-group-' + data.group ).append( loading_icon ).children( ':last' );
|
11 |
|
36 |
|
37 |
var data = {
|
38 |
action: 'wafs_add_condition_group',
|
39 |
+
group: parseInt( $( '.condition-group' ).last().attr( 'data-group') ) + 1,
|
40 |
+
nonce: wafs.nonce
|
41 |
};
|
42 |
|
43 |
// Insert condition group
|
55 |
action: 'wafs_update_condition_value',
|
56 |
id: $( this ).attr( 'data-id' ),
|
57 |
group: $( this ).attr( 'data-group' ),
|
58 |
+
condition: $( this ).val(),
|
59 |
+
nonce: wafs.nonce
|
60 |
};
|
61 |
|
62 |
var replace = '.wafs-value-wrap-' + data.id;
|
70 |
// Update condition description
|
71 |
var description = {
|
72 |
action: 'wafs_update_condition_description',
|
73 |
+
condition: data.condition,
|
74 |
+
nonce: wafs.nonce
|
75 |
};
|
76 |
|
77 |
$.post( ajaxurl, description, function( description_response ) {
|
78 |
$( replace + ' ~ .wafs-description' ).replaceWith( description_response );
|
79 |
+
});
|
|
|
80 |
|
81 |
});
|
82 |
|
includes/admin/class-wafs-admin.php
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
+
|
4 |
+
/**
|
5 |
+
* Class WAFS_Admin.
|
6 |
+
*
|
7 |
+
* Admin class handles all admin related business.
|
8 |
+
*
|
9 |
+
* @class WAFS_Admin
|
10 |
+
* @version 1.0.0
|
11 |
+
* @author Jeroen Sormani
|
12 |
+
*/
|
13 |
+
class WAFS_Admin {
|
14 |
+
|
15 |
+
|
16 |
+
/**
|
17 |
+
* Constructor.
|
18 |
+
*
|
19 |
+
* @since 1.0.8
|
20 |
+
*/
|
21 |
+
public function __construct() {
|
22 |
+
|
23 |
+
// Initialize plugin parts
|
24 |
+
add_action( 'admin_init', array( $this, 'init' ) );
|
25 |
+
|
26 |
+
}
|
27 |
+
|
28 |
+
|
29 |
+
/**
|
30 |
+
* Initialize class parts.
|
31 |
+
*
|
32 |
+
* @since 1.0.8
|
33 |
+
*/
|
34 |
+
public function init() {
|
35 |
+
|
36 |
+
// Enqueue scripts
|
37 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
38 |
+
|
39 |
+
// Add to WC Screen IDs to load scripts.
|
40 |
+
add_filter( 'woocommerce_screen_ids', array( $this, 'add_screen_ids' ) );
|
41 |
+
|
42 |
+
// Keep WC menu open while in WAFS edit screen
|
43 |
+
add_action( 'admin_head', array( $this, 'menu_highlight' ) );
|
44 |
+
|
45 |
+
}
|
46 |
+
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Enqueue scripts.
|
50 |
+
*
|
51 |
+
* Enqueue javascript and stylesheets to the admin area.
|
52 |
+
*
|
53 |
+
* @since 1.0.0
|
54 |
+
*/
|
55 |
+
public function admin_enqueue_scripts() {
|
56 |
+
|
57 |
+
wp_register_style( 'wafs-style', plugins_url( 'assets/css/admin-style.css', WAFS()->file ), array(), WAFS()->version );
|
58 |
+
wp_register_script( 'wafs-js', plugins_url( 'assets/js/wafs-js.js', WAFS()->file ), array( 'jquery' ), WAFS()->version, true );
|
59 |
+
wp_localize_script( 'wafs-js', 'wafs', array(
|
60 |
+
'nonce' => wp_create_nonce( 'wafs-ajax-nonce' ),
|
61 |
+
) );
|
62 |
+
|
63 |
+
if (
|
64 |
+
( isset( $_REQUEST['post'] ) && 'wafs' == get_post_type( $_REQUEST['post'] ) ) ||
|
65 |
+
( isset( $_REQUEST['post_type'] ) && 'wafs' == $_REQUEST['post_type'] ) ||
|
66 |
+
( isset( $_REQUEST['section'] ) && 'wafs_free_shipping_method' == $_REQUEST['section'] )
|
67 |
+
) :
|
68 |
+
|
69 |
+
wp_enqueue_style( 'wafs-style' );
|
70 |
+
wp_enqueue_script( 'wafs-js' );
|
71 |
+
wp_dequeue_script( 'autosave' );
|
72 |
+
|
73 |
+
endif;
|
74 |
+
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Screen IDs.
|
80 |
+
*
|
81 |
+
* Add 'was' to the screen IDs so the WooCommerce scripts are loaded.
|
82 |
+
*
|
83 |
+
* @since 1.0.8
|
84 |
+
*
|
85 |
+
* @param array $screen_ids List of existing screen IDs.
|
86 |
+
* @return array List of modified screen IDs.
|
87 |
+
*/
|
88 |
+
public function add_screen_ids( $screen_ids ) {
|
89 |
+
|
90 |
+
$screen_ids[] = 'wafs';
|
91 |
+
|
92 |
+
return $screen_ids;
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
|
97 |
+
/**
|
98 |
+
* Keep menu open.
|
99 |
+
*
|
100 |
+
* Highlights the correct top level admin menu item for post type add screens.
|
101 |
+
*
|
102 |
+
* @since 1.0.0
|
103 |
+
*/
|
104 |
+
public function menu_highlight() {
|
105 |
+
|
106 |
+
global $parent_file, $submenu_file, $post_type;
|
107 |
+
|
108 |
+
if ( 'wafs' == $post_type ) :
|
109 |
+
$parent_file = 'woocommerce';
|
110 |
+
$submenu_file = 'wc-settings';
|
111 |
+
endif;
|
112 |
+
|
113 |
+
}
|
114 |
+
|
115 |
+
|
116 |
+
}
|
includes/class-wafs-ajax.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
/**
|
4 |
-
* Class
|
5 |
*
|
6 |
-
*
|
7 |
*
|
8 |
* @class WAFS_Ajax
|
9 |
* @author Jeroen Sormani
|
@@ -23,12 +23,12 @@ class WAFS_Ajax {
|
|
23 |
public function __construct() {
|
24 |
|
25 |
// Add elements
|
26 |
-
add_action( 'wp_ajax_wafs_add_condition', array( $this, '
|
27 |
-
add_action( 'wp_ajax_wafs_add_condition_group', array( $this, '
|
28 |
|
29 |
// Update elements
|
30 |
-
add_action( 'wp_ajax_wafs_update_condition_value', array( $this, '
|
31 |
-
add_action( 'wp_ajax_wafs_update_condition_description', array( $this, '
|
32 |
|
33 |
}
|
34 |
|
@@ -36,11 +36,13 @@ class WAFS_Ajax {
|
|
36 |
/**
|
37 |
* Add condition.
|
38 |
*
|
39 |
-
* Create a new
|
40 |
*
|
41 |
* @since 1.0.0
|
42 |
*/
|
43 |
-
public function
|
|
|
|
|
44 |
|
45 |
new WAFS_Condition( null, $_POST['group'] );
|
46 |
die();
|
@@ -55,7 +57,9 @@ class WAFS_Ajax {
|
|
55 |
*
|
56 |
* @since 1.0.0
|
57 |
*/
|
58 |
-
public function
|
|
|
|
|
59 |
|
60 |
?><div class='condition-group condition-group-<?php echo absint( $_POST['group'] ); ?>' data-group='<?php echo absint( $_POST['group'] ); ?>'>
|
61 |
|
@@ -78,7 +82,9 @@ class WAFS_Ajax {
|
|
78 |
*
|
79 |
* @since 1.0.0
|
80 |
*/
|
81 |
-
public function
|
|
|
|
|
82 |
|
83 |
wafs_condition_values( $_POST['id'], $_POST['group'], $_POST['condition'] );
|
84 |
die();
|
@@ -93,7 +99,9 @@ class WAFS_Ajax {
|
|
93 |
*
|
94 |
* @since 1.0.0
|
95 |
*/
|
96 |
-
public function
|
|
|
|
|
97 |
|
98 |
wafs_condition_description( $_POST['condition'] );
|
99 |
die();
|
1 |
<?php
|
2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
3 |
/**
|
4 |
+
* Class WAFS_Ajax.
|
5 |
*
|
6 |
+
* AJAX class handles all ajax calls.
|
7 |
*
|
8 |
* @class WAFS_Ajax
|
9 |
* @author Jeroen Sormani
|
23 |
public function __construct() {
|
24 |
|
25 |
// Add elements
|
26 |
+
add_action( 'wp_ajax_wafs_add_condition', array( $this, 'add_condition' ) );
|
27 |
+
add_action( 'wp_ajax_wafs_add_condition_group', array( $this, 'add_condition_group' ) );
|
28 |
|
29 |
// Update elements
|
30 |
+
add_action( 'wp_ajax_wafs_update_condition_value', array( $this, 'update_condition_value' ) );
|
31 |
+
add_action( 'wp_ajax_wafs_update_condition_description', array( $this, 'update_condition_description' ) );
|
32 |
|
33 |
}
|
34 |
|
36 |
/**
|
37 |
* Add condition.
|
38 |
*
|
39 |
+
* Create a new WAFS_Condition class and render.
|
40 |
*
|
41 |
* @since 1.0.0
|
42 |
*/
|
43 |
+
public function add_condition() {
|
44 |
+
|
45 |
+
check_ajax_referer( 'wafs-ajax-nonce', 'nonce' );
|
46 |
|
47 |
new WAFS_Condition( null, $_POST['group'] );
|
48 |
die();
|
57 |
*
|
58 |
* @since 1.0.0
|
59 |
*/
|
60 |
+
public function add_condition_group() {
|
61 |
+
|
62 |
+
check_ajax_referer( 'wafs-ajax-nonce', 'nonce' );
|
63 |
|
64 |
?><div class='condition-group condition-group-<?php echo absint( $_POST['group'] ); ?>' data-group='<?php echo absint( $_POST['group'] ); ?>'>
|
65 |
|
82 |
*
|
83 |
* @since 1.0.0
|
84 |
*/
|
85 |
+
public function update_condition_value() {
|
86 |
+
|
87 |
+
check_ajax_referer( 'wafs-ajax-nonce', 'nonce' );
|
88 |
|
89 |
wafs_condition_values( $_POST['id'], $_POST['group'], $_POST['condition'] );
|
90 |
die();
|
99 |
*
|
100 |
* @since 1.0.0
|
101 |
*/
|
102 |
+
public function update_condition_description() {
|
103 |
+
|
104 |
+
check_ajax_referer( 'wafs-ajax-nonce', 'nonce' );
|
105 |
|
106 |
wafs_condition_description( $_POST['condition'] );
|
107 |
die();
|
includes/class-wafs-method.php
CHANGED
@@ -15,9 +15,9 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
|
|
15 |
public function __construct() {
|
16 |
|
17 |
$this->id = 'advanced_free_shipping';
|
18 |
-
$this->title = __( 'Free Shipping
|
19 |
$this->method_title = __( 'Advanced Free Shipping', 'woocommerce-advanced-free-shipping' );
|
20 |
-
$this->method_description = __( 'Configure WooCommerce Advanced Free Shipping' );
|
21 |
|
22 |
$this->matched_methods = $this->wafs_match_methods();
|
23 |
|
@@ -39,17 +39,13 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
|
|
39 |
$this->init_settings();
|
40 |
|
41 |
$this->enabled = $this->get_option( 'enabled' );
|
42 |
-
$this->hide_shipping
|
43 |
|
44 |
// Save settings in admin if you have any defined
|
45 |
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
|
46 |
|
47 |
// Hide shipping methods
|
48 |
-
|
49 |
-
add_filter( 'woocommerce_available_shipping_methods', array( $this, 'hide_all_shipping_when_free_is_available' ) );
|
50 |
-
else :
|
51 |
-
add_filter( 'woocommerce_package_rates', array( $this, 'hide_all_shipping_when_free_is_available' ) );
|
52 |
-
endif;
|
53 |
|
54 |
}
|
55 |
|
@@ -61,7 +57,7 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
|
|
61 |
*
|
62 |
* @since 1.0.0
|
63 |
*
|
64 |
-
* @return array Only the first matched method (since you won't need two free
|
65 |
*/
|
66 |
public function wafs_match_methods() {
|
67 |
|
@@ -202,21 +198,18 @@ class Wafs_Free_Shipping_Method extends WC_Shipping_Method {
|
|
202 |
* @since 1.0.0
|
203 |
*
|
204 |
* @param mixed $package
|
205 |
-
* @return void
|
206 |
*/
|
207 |
public function calculate_shipping( $package ) {
|
208 |
|
209 |
if ( false == $this->matched_methods || 'no' == $this->enabled ) return;
|
210 |
|
211 |
-
$
|
212 |
-
$label
|
213 |
-
$calc_tax = @$match_details['calc_tax'];
|
214 |
|
215 |
$rate = array(
|
216 |
'id' => $this->id,
|
217 |
-
'label' =>
|
218 |
'cost' => '0',
|
219 |
-
'calc_tax' => ( null == $calc_tax ) ? 'per_order' : $calc_tax
|
220 |
);
|
221 |
|
222 |
// Register the rate
|
15 |
public function __construct() {
|
16 |
|
17 |
$this->id = 'advanced_free_shipping';
|
18 |
+
$this->title = __( 'Free Shipping (configurable per rate)', 'woocommerce-advanced-free-shipping' );
|
19 |
$this->method_title = __( 'Advanced Free Shipping', 'woocommerce-advanced-free-shipping' );
|
20 |
+
$this->method_description = __( 'Configure WooCommerce Advanced Free Shipping' );
|
21 |
|
22 |
$this->matched_methods = $this->wafs_match_methods();
|
23 |
|
39 |
$this->init_settings();
|
40 |
|
41 |
$this->enabled = $this->get_option( 'enabled' );
|
42 |
+
$this->hide_shipping = $this->get_option( 'hide_other_shipping' );
|
43 |
|
44 |
// Save settings in admin if you have any defined
|
45 |
add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) );
|
46 |
|
47 |
// Hide shipping methods
|
48 |
+
add_filter( 'woocommerce_package_rates', array( $this, 'hide_all_shipping_when_free_is_available' ) );
|
|
|
|
|
|
|
|
|
49 |
|
50 |
}
|
51 |
|
57 |
*
|
58 |
* @since 1.0.0
|
59 |
*
|
60 |
+
* @return array Only the first matched method (since you won't need two free shipping).
|
61 |
*/
|
62 |
public function wafs_match_methods() {
|
63 |
|
198 |
* @since 1.0.0
|
199 |
*
|
200 |
* @param mixed $package
|
|
|
201 |
*/
|
202 |
public function calculate_shipping( $package ) {
|
203 |
|
204 |
if ( false == $this->matched_methods || 'no' == $this->enabled ) return;
|
205 |
|
206 |
+
$method_args = get_post_meta( $this->matched_methods, '_wafs_shipping_method', true );
|
207 |
+
$label = ! empty( $method_args['shipping_title'] ) ? $method_args['shipping_title'] : __( 'Free Shipping', 'woocommerce-advanced-free-shipping' );
|
|
|
208 |
|
209 |
$rate = array(
|
210 |
'id' => $this->id,
|
211 |
+
'label' => $label,
|
212 |
'cost' => '0',
|
|
|
213 |
);
|
214 |
|
215 |
// Register the rate
|
includes/class-wafs-post-type.php
CHANGED
@@ -21,18 +21,18 @@ class WAFS_post_type {
|
|
21 |
public function __construct() {
|
22 |
|
23 |
// Register post type
|
24 |
-
add_action( 'init', array( $this, '
|
25 |
|
26 |
// Add/save meta boxes
|
27 |
-
add_action( 'add_meta_boxes', array( $this, '
|
28 |
-
add_action( 'save_post', array( $this, '
|
29 |
-
add_action( 'save_post', array( $this, '
|
30 |
|
31 |
// Edit user messages
|
32 |
-
add_filter( 'post_updated_messages', array( $this, '
|
33 |
|
34 |
// Redirect after delete
|
35 |
-
add_action('load-edit.php', array( $this, '
|
36 |
|
37 |
}
|
38 |
|
@@ -44,7 +44,7 @@ class WAFS_post_type {
|
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
*/
|
47 |
-
public function
|
48 |
|
49 |
$labels = array(
|
50 |
'name' => __( 'Advanced Free Shipping methods', 'woocommerce-advanced-free-shipping' ),
|
@@ -80,18 +80,17 @@ class WAFS_post_type {
|
|
80 |
/**
|
81 |
* Messages.
|
82 |
*
|
83 |
-
* Modify the notice messages text for the '
|
84 |
*
|
85 |
* @since 1.0.0
|
86 |
*
|
87 |
* @param array $messages Existing list of messages.
|
88 |
* @return array Modified list of messages.
|
89 |
*/
|
90 |
-
function
|
91 |
|
92 |
$post = get_post();
|
93 |
$post_type = get_post_type( $post );
|
94 |
-
$post_type_object = get_post_type_object( $post_type );
|
95 |
|
96 |
$messages['wafs'] = array(
|
97 |
0 => '',
|
@@ -99,9 +98,6 @@ class WAFS_post_type {
|
|
99 |
2 => __( 'Custom field updated.', 'woocommerce-advanced-free-shipping' ),
|
100 |
3 => __( 'Custom field deleted.', 'woocommerce-advanced-free-shipping' ),
|
101 |
4 => __( 'Free shipping method updated.', 'woocommerce-advanced-free-shipping' ),
|
102 |
-
5 => isset( $_GET['revision'] ) ?
|
103 |
-
sprintf( __( 'Free shipping method restored to revision from %s', 'woocommerce-advanced-free-shipping' ), wp_post_revision_title( (int) $_GET['revision'], false ) )
|
104 |
-
: false,
|
105 |
6 => __( 'Free shipping method published.', 'woocommerce-advanced-free-shipping' ),
|
106 |
7 => __( 'Free shipping method saved.', 'woocommerce-advanced-free-shipping' ),
|
107 |
8 => __( 'Free shipping method submitted.', 'woocommerce-advanced-free-shipping' ),
|
@@ -136,7 +132,7 @@ class WAFS_post_type {
|
|
136 |
*
|
137 |
* @since 1.0.0
|
138 |
*/
|
139 |
-
public function
|
140 |
|
141 |
add_meta_box( 'wafs_conditions', __( 'Advanced Free Shipping conditions', 'woocommerce-advanced-free-shipping' ), array( $this, 'render_wafs_conditions' ), 'wafs', 'normal' );
|
142 |
add_meta_box( 'wafs_settings', __( 'Shipping settings', 'woocommerce-advanced-free-shipping' ), array( $this, 'render_wafs_settings' ), 'wafs', 'normal' );
|
@@ -185,7 +181,7 @@ class WAFS_post_type {
|
|
185 |
*
|
186 |
* @since 1.0.0
|
187 |
*/
|
188 |
-
public function
|
189 |
|
190 |
if ( ! isset( $_POST['wafs_conditions_meta_box_nonce'] ) || ! wp_verify_nonce( $_POST['wafs_conditions_meta_box_nonce'], 'wafs_conditions_meta_box' ) ) :
|
191 |
return $post_id;
|
@@ -213,7 +209,7 @@ class WAFS_post_type {
|
|
213 |
*
|
214 |
* @since 1.0.0
|
215 |
*/
|
216 |
-
public function
|
217 |
|
218 |
if ( ! isset( $_POST['wafs_settings_meta_box_nonce'] ) || ! wp_verify_nonce( $_POST['wafs_settings_meta_box_nonce'], 'wafs_settings_meta_box' ) ) :
|
219 |
return $post_id;
|
@@ -241,7 +237,7 @@ class WAFS_post_type {
|
|
241 |
*
|
242 |
* @since 1.0.0
|
243 |
*/
|
244 |
-
public function
|
245 |
|
246 |
$screen = get_current_screen();
|
247 |
|
21 |
public function __construct() {
|
22 |
|
23 |
// Register post type
|
24 |
+
add_action( 'init', array( $this, 'register_post_type' ) );
|
25 |
|
26 |
// Add/save meta boxes
|
27 |
+
add_action( 'add_meta_boxes', array( $this, 'post_type_meta_box' ) );
|
28 |
+
add_action( 'save_post', array( $this, 'save_meta' ) );
|
29 |
+
add_action( 'save_post', array( $this, 'save_condition_meta' ) );
|
30 |
|
31 |
// Edit user messages
|
32 |
+
add_filter( 'post_updated_messages', array( $this, 'custom_post_type_messages' ) );
|
33 |
|
34 |
// Redirect after delete
|
35 |
+
add_action('load-edit.php', array( $this, 'redirect_after_trash' ) );
|
36 |
|
37 |
}
|
38 |
|
44 |
*
|
45 |
* @since 1.0.0
|
46 |
*/
|
47 |
+
public function register_post_type() {
|
48 |
|
49 |
$labels = array(
|
50 |
'name' => __( 'Advanced Free Shipping methods', 'woocommerce-advanced-free-shipping' ),
|
80 |
/**
|
81 |
* Messages.
|
82 |
*
|
83 |
+
* Modify the notice messages text for the 'wafs' post type.
|
84 |
*
|
85 |
* @since 1.0.0
|
86 |
*
|
87 |
* @param array $messages Existing list of messages.
|
88 |
* @return array Modified list of messages.
|
89 |
*/
|
90 |
+
function custom_post_type_messages( $messages ) {
|
91 |
|
92 |
$post = get_post();
|
93 |
$post_type = get_post_type( $post );
|
|
|
94 |
|
95 |
$messages['wafs'] = array(
|
96 |
0 => '',
|
98 |
2 => __( 'Custom field updated.', 'woocommerce-advanced-free-shipping' ),
|
99 |
3 => __( 'Custom field deleted.', 'woocommerce-advanced-free-shipping' ),
|
100 |
4 => __( 'Free shipping method updated.', 'woocommerce-advanced-free-shipping' ),
|
|
|
|
|
|
|
101 |
6 => __( 'Free shipping method published.', 'woocommerce-advanced-free-shipping' ),
|
102 |
7 => __( 'Free shipping method saved.', 'woocommerce-advanced-free-shipping' ),
|
103 |
8 => __( 'Free shipping method submitted.', 'woocommerce-advanced-free-shipping' ),
|
132 |
*
|
133 |
* @since 1.0.0
|
134 |
*/
|
135 |
+
public function post_type_meta_box() {
|
136 |
|
137 |
add_meta_box( 'wafs_conditions', __( 'Advanced Free Shipping conditions', 'woocommerce-advanced-free-shipping' ), array( $this, 'render_wafs_conditions' ), 'wafs', 'normal' );
|
138 |
add_meta_box( 'wafs_settings', __( 'Shipping settings', 'woocommerce-advanced-free-shipping' ), array( $this, 'render_wafs_settings' ), 'wafs', 'normal' );
|
181 |
*
|
182 |
* @since 1.0.0
|
183 |
*/
|
184 |
+
public function save_condition_meta( $post_id ) {
|
185 |
|
186 |
if ( ! isset( $_POST['wafs_conditions_meta_box_nonce'] ) || ! wp_verify_nonce( $_POST['wafs_conditions_meta_box_nonce'], 'wafs_conditions_meta_box' ) ) :
|
187 |
return $post_id;
|
209 |
*
|
210 |
* @since 1.0.0
|
211 |
*/
|
212 |
+
public function save_meta( $post_id ) {
|
213 |
|
214 |
if ( ! isset( $_POST['wafs_settings_meta_box_nonce'] ) || ! wp_verify_nonce( $_POST['wafs_settings_meta_box_nonce'], 'wafs_settings_meta_box' ) ) :
|
215 |
return $post_id;
|
237 |
*
|
238 |
* @since 1.0.0
|
239 |
*/
|
240 |
+
public function redirect_after_trash() {
|
241 |
|
242 |
$screen = get_current_screen();
|
243 |
|
languages/woocommerce-advanced-free-shipping-el.mo
ADDED
Binary file
|
languages/woocommerce-advanced-free-shipping-el.po
ADDED
@@ -0,0 +1,321 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WooCommerce Advanced Free Shipping\n"
|
4 |
+
"POT-Creation-Date: 2014-04-24 19:17+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-07-23 18:45+0200\n"
|
6 |
+
"Last-Translator: Antonios Falegkos <falegk1@gmail.com>\n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: el_EL\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.5.4\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
|
14 |
+
"X-Poedit-Basepath: ../\n"
|
15 |
+
"X-Poedit-SearchPath-0: ..\n"
|
16 |
+
|
17 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-ajax.php:48
|
18 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-conditions.php:29
|
19 |
+
msgid "Or match all of the following rules to allow free shipping:"
|
20 |
+
msgstr ""
|
21 |
+
"Ή ταιριάζει με όλους τους παρακάτω κανόνες για να επιτραπεί η Δωρεάν "
|
22 |
+
"Αποστολή:"
|
23 |
+
|
24 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-ajax.php:55
|
25 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-conditions.php:39
|
26 |
+
msgid "Or"
|
27 |
+
msgstr "Ή"
|
28 |
+
|
29 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:18
|
30 |
+
msgid "Advanced Free Shipping"
|
31 |
+
msgstr "Σύνθετη Δωρεάν αποστολή"
|
32 |
+
|
33 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:19
|
34 |
+
msgid "Configure WooCommerce Advanced Free Shipping"
|
35 |
+
msgstr "Ρυθμίσεις WooCommerce Σύνθετης Δωρεάν Αποστολής"
|
36 |
+
|
37 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:128
|
38 |
+
msgid "Enable/Disable"
|
39 |
+
msgstr "Ενεργοποίηση/Απενεργοποίηση"
|
40 |
+
|
41 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:130
|
42 |
+
msgid "Enable Advanced Free Shipping"
|
43 |
+
msgstr "Ενεργοποίηση Σύνθετης Δωρεάν Αποστολής"
|
44 |
+
|
45 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:134
|
46 |
+
msgid "Hide other shipping"
|
47 |
+
msgstr "Απόκρυψη άλλων μεθόδων αποστολής"
|
48 |
+
|
49 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:136
|
50 |
+
msgid "Hide other shipping methods when free shipping is available"
|
51 |
+
msgstr ""
|
52 |
+
"Απόκρυψη άλλων μεθόδων αποστολής όταν η δωρεάν αποστολή είναι διαθέσιμη"
|
53 |
+
|
54 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-method.php:197
|
55 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:56
|
56 |
+
msgid "Free Shipping"
|
57 |
+
msgstr "Δωρεάν Αποστολή"
|
58 |
+
|
59 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:39
|
60 |
+
msgid "Advanced Free Shipping methods"
|
61 |
+
msgstr "Μέθοδοι Σύνθετης Δωρεάν Αποστολής"
|
62 |
+
|
63 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:40
|
64 |
+
msgid "Advanced Free Shipping method"
|
65 |
+
msgstr "Μέθοδος Σύνθετης Δωρεάν Αποστολής"
|
66 |
+
|
67 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:41
|
68 |
+
msgid "Add New"
|
69 |
+
msgstr "Προσθήκη Nέου"
|
70 |
+
|
71 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:42
|
72 |
+
msgid "Add New Advanced Free Shipping method"
|
73 |
+
msgstr "Προσθήκη νέας μεθόδου Σύνθετης Δωρεάν Αποστολής"
|
74 |
+
|
75 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:43
|
76 |
+
msgid "Edit Advanced Free Shipping method"
|
77 |
+
msgstr "Επεξεργασία μεθόδου Σύνθετης Δωρεάν Αποστολής"
|
78 |
+
|
79 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:44
|
80 |
+
msgid "New Advanced Free Shipping method"
|
81 |
+
msgstr "Νέα μέθοδος Σύνθετης Δωρεάν Αποστολής"
|
82 |
+
|
83 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:45
|
84 |
+
msgid "View Advanced Free Shipping method"
|
85 |
+
msgstr "Εμφάνιση μεθόδου Σύνθετης Δωρεάν Αποστολής"
|
86 |
+
|
87 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:46
|
88 |
+
msgid "Search Advanced Free Shipping methods"
|
89 |
+
msgstr "Αναζήτηση μεθόδου Σύνθετης Δωρεάν Αποστολής"
|
90 |
+
|
91 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:47
|
92 |
+
msgid "No Advanced Free Shipping methods"
|
93 |
+
msgstr "Δεν βρέθηκαν μέθοδοι Σύνθετης Δωρεάν Αποστολής"
|
94 |
+
|
95 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:48
|
96 |
+
msgid "No Advanced Free Shipping methods found in Trash"
|
97 |
+
msgstr "Δεν βρέθηκαν μέθοδοι Σύνθετης Δωρεάν Αποστολής στον κάδο."
|
98 |
+
|
99 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:74
|
100 |
+
msgid "Advanced Free Shipping conditions"
|
101 |
+
msgstr "Συνθήκες Σύνθετης Δωρεάν αποστολής"
|
102 |
+
|
103 |
+
#: ../woocommerce-advanced-free-shipping/includes/class-wafs-post-type.php:75
|
104 |
+
msgid "Shipping settings"
|
105 |
+
msgstr "Ρυθμίσεις Αποστολής"
|
106 |
+
|
107 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-conditions.php:20
|
108 |
+
msgid "Match all of the following rules to allow free shipping:"
|
109 |
+
msgstr ""
|
110 |
+
"Ταιριάζει με όλους τους παρακάτω κανόνες για να επιτραπεί η Δωρεάν Αποστολή:"
|
111 |
+
|
112 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-conditions.php:54
|
113 |
+
msgid "Add 'Or' group"
|
114 |
+
msgstr "Προσθήκη 'ή' ομάδα"
|
115 |
+
|
116 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-settings.php:21
|
117 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:24
|
118 |
+
msgid "Shipping title"
|
119 |
+
msgstr "Τίτλος Αποστολής"
|
120 |
+
|
121 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/meta-box-settings.php:23
|
122 |
+
msgid "e.g. Free Shipping"
|
123 |
+
msgstr "π.χ. Δωρεάν Αποστολή"
|
124 |
+
|
125 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:6
|
126 |
+
msgid "Cart"
|
127 |
+
msgstr "Καλάθι"
|
128 |
+
|
129 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:7
|
130 |
+
msgid "Subtotal"
|
131 |
+
msgstr "Subtotal"
|
132 |
+
|
133 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:8
|
134 |
+
msgid "Subtotal ex. taxes"
|
135 |
+
msgstr "Subtotal ex. taxes"
|
136 |
+
|
137 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:9
|
138 |
+
msgid "Tax"
|
139 |
+
msgstr "Φόρος"
|
140 |
+
|
141 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:10
|
142 |
+
msgid "Quantity"
|
143 |
+
msgstr "Ποσότητα"
|
144 |
+
|
145 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:11
|
146 |
+
msgid "Contains product"
|
147 |
+
msgstr "Περιλαμβάνει το προϊόν"
|
148 |
+
|
149 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:12
|
150 |
+
msgid "Coupon"
|
151 |
+
msgstr "Κουπόνι"
|
152 |
+
|
153 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:14
|
154 |
+
msgid "User Details"
|
155 |
+
msgstr "Λεπτομέρειες χρήστη"
|
156 |
+
|
157 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:15
|
158 |
+
msgid "Zipcode"
|
159 |
+
msgstr "Ταχυδρομικός Κώδικας"
|
160 |
+
|
161 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:16
|
162 |
+
msgid "City"
|
163 |
+
msgstr "Πόλη"
|
164 |
+
|
165 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:17
|
166 |
+
msgid "Country"
|
167 |
+
msgstr "Χώρα"
|
168 |
+
|
169 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:18
|
170 |
+
msgid "User role"
|
171 |
+
msgstr "Ρόλος χρήστη"
|
172 |
+
|
173 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:20
|
174 |
+
msgid "Product"
|
175 |
+
msgstr "Προϊόν"
|
176 |
+
|
177 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:21
|
178 |
+
msgid "Width"
|
179 |
+
msgstr "Πλάτος"
|
180 |
+
|
181 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:22
|
182 |
+
msgid "Height"
|
183 |
+
msgstr "Ύψος"
|
184 |
+
|
185 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:23
|
186 |
+
msgid "Length"
|
187 |
+
msgstr "Μήκος"
|
188 |
+
|
189 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:24
|
190 |
+
msgid "Weight"
|
191 |
+
msgstr "Βάρος"
|
192 |
+
|
193 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:25
|
194 |
+
msgid "Stock"
|
195 |
+
msgstr "Απόθεμα"
|
196 |
+
|
197 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:26
|
198 |
+
msgid "Stock status"
|
199 |
+
msgstr "Κατάσταση Αποθεμάτων"
|
200 |
+
|
201 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:27
|
202 |
+
msgid "Backorders"
|
203 |
+
msgstr " Προ-παραγγελίες"
|
204 |
+
|
205 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-conditions.php:28
|
206 |
+
msgid "Category"
|
207 |
+
msgstr "Κατηγορία"
|
208 |
+
|
209 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:8
|
210 |
+
msgid "Weight calculated on all the cart contents"
|
211 |
+
msgstr "Υπολογίζεται το βάρος όλων των περιεχομένων του καλαθιού"
|
212 |
+
|
213 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:9
|
214 |
+
msgid "Compared to lengthiest product in cart"
|
215 |
+
msgstr "Compared to lengthiest product in cart"
|
216 |
+
|
217 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:10
|
218 |
+
msgid "Compared to widest product in cart"
|
219 |
+
msgstr "Compared to widest product in cart"
|
220 |
+
|
221 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:11
|
222 |
+
msgid "Compared to highest product in cart"
|
223 |
+
msgstr "Σε σύγκριση με το υψηλότερο προϊόν στο καλάθι"
|
224 |
+
|
225 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:12
|
226 |
+
msgid "All products in cart must match stock status"
|
227 |
+
msgstr ""
|
228 |
+
"Όλα τα προϊόντα στο καλάθι πρέπει να ταιριάζουν με την κατάσταση αποθέματος"
|
229 |
+
|
230 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:13
|
231 |
+
msgid "All products in cart must match backorder"
|
232 |
+
msgstr "Όλα τα προϊόντα στο καλάθι πρέπει να ταιριάζουν με προ-παραγγελίες"
|
233 |
+
|
234 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:14
|
235 |
+
msgid "All products in cart must match category"
|
236 |
+
msgstr "Όλα τα προϊόντα στο καλάθι πρέπει να ταιριάζουν με την κατηγορία"
|
237 |
+
|
238 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-descriptions.php:15
|
239 |
+
msgid "Cart must contain one of this product"
|
240 |
+
msgstr "Το Καλάθι σας πρέπει να περιέχει ένα από αυτό το προϊόν"
|
241 |
+
|
242 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-operators.php:6
|
243 |
+
msgid "Equal to"
|
244 |
+
msgstr "Ίσο με"
|
245 |
+
|
246 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-operators.php:7
|
247 |
+
msgid "Not equal to"
|
248 |
+
msgstr "Δεν είναι ίσο με"
|
249 |
+
|
250 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-operators.php:8
|
251 |
+
msgid "Greater or equal to"
|
252 |
+
msgstr "Μεγαλύτερο ή ίσο με"
|
253 |
+
|
254 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-operators.php:9
|
255 |
+
msgid "Less or equal to "
|
256 |
+
msgstr "Μικρότερο ή ίσο με"
|
257 |
+
|
258 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-values.php:122
|
259 |
+
msgid "In stock"
|
260 |
+
msgstr "Σε απόθεμα"
|
261 |
+
|
262 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-values.php:123
|
263 |
+
msgid "Out of stock"
|
264 |
+
msgstr "Δεν υπάρχει απόθεμα"
|
265 |
+
|
266 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-values.php:132
|
267 |
+
msgid "Do not allow"
|
268 |
+
msgstr "Δεν επιτρέπεται"
|
269 |
+
|
270 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-values.php:133
|
271 |
+
msgid "Allow, but notify customer"
|
272 |
+
msgstr "Allow, but notify customer"
|
273 |
+
|
274 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/settings/conditions/condition-values.php:134
|
275 |
+
msgid "Allow"
|
276 |
+
msgstr "Επιτρέπεται"
|
277 |
+
|
278 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:15
|
279 |
+
msgid "Method conditions"
|
280 |
+
msgstr "Προϋποθέσεις Μεθόδου"
|
281 |
+
|
282 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:23
|
283 |
+
msgid "Title"
|
284 |
+
msgstr "Τίτλος"
|
285 |
+
|
286 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:25
|
287 |
+
msgid "Condition groups"
|
288 |
+
msgstr "Ομάδες προϋποθέσεων "
|
289 |
+
|
290 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:26
|
291 |
+
msgid "Author"
|
292 |
+
msgstr "Author"
|
293 |
+
|
294 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:38
|
295 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:44
|
296 |
+
msgid "Edit Method"
|
297 |
+
msgstr "Επεξεργασία Μεθόδου"
|
298 |
+
|
299 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:39
|
300 |
+
msgid "Untitled"
|
301 |
+
msgstr "Χωρίς τίτλο"
|
302 |
+
|
303 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:45
|
304 |
+
msgid "Edit"
|
305 |
+
msgstr "Επεξεργασία"
|
306 |
+
|
307 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:50
|
308 |
+
msgid "Delete Method"
|
309 |
+
msgstr "Διαγραφή Μεθόδου"
|
310 |
+
|
311 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:51
|
312 |
+
msgid "Delete"
|
313 |
+
msgstr "Διαγραφή"
|
314 |
+
|
315 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:67
|
316 |
+
msgid "There are no Free Shipping conditions. Yet..."
|
317 |
+
msgstr "Δεν υπάρχουν προϋποθέσεις δωρεάν αποστολής. Ωστόσο..."
|
318 |
+
|
319 |
+
#: ../woocommerce-advanced-free-shipping/includes/admin/views/conditions-table.php:76
|
320 |
+
msgid "Add Free Shipping Method"
|
321 |
+
msgstr "Προσθήκη Μεθόδου Δωρεάν Αποστολής"
|
languages/woocommerce-advanced-free-shipping-pt_PT.mo
ADDED
Binary file
|
languages/woocommerce-advanced-free-shipping-pt_PT.po
ADDED
@@ -0,0 +1,461 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: Woocommerce Advanced Free Shipping v1.0.3\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: \n"
|
6 |
+
"PO-Revision-Date: 2015-10-13 16:32+0100\n"
|
7 |
+
"Last-Translator: samuelmanzini-2 <samuel@semglutensemlactose.com>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
+
"X-Generator: Poedit 1.8.5\n"
|
14 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_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"
|
16 |
+
"X-Poedit-Basepath: ..\n"
|
17 |
+
"X-Textdomain-Support: yes\n"
|
18 |
+
"Language: pt_BR\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
|
21 |
+
# @ woocommerce-advanced-free-shipping
|
22 |
+
#: includes/admin/settings/conditions/condition-conditions.php:18
|
23 |
+
msgid "Cart"
|
24 |
+
msgstr "Carrinho"
|
25 |
+
|
26 |
+
# @ woocommerce-advanced-free-shipping
|
27 |
+
#: includes/admin/settings/conditions/condition-conditions.php:19
|
28 |
+
msgid "Subtotal"
|
29 |
+
msgstr "Subtotal"
|
30 |
+
|
31 |
+
# @ woocommerce-advanced-free-shipping
|
32 |
+
#: includes/admin/settings/conditions/condition-conditions.php:20
|
33 |
+
msgid "Subtotal ex. taxes"
|
34 |
+
msgstr "Subtotal sem impostos"
|
35 |
+
|
36 |
+
# @ woocommerce-advanced-free-shipping
|
37 |
+
#: includes/admin/settings/conditions/condition-conditions.php:21
|
38 |
+
msgid "Tax"
|
39 |
+
msgstr "Imposto"
|
40 |
+
|
41 |
+
# @ woocommerce-advanced-free-shipping
|
42 |
+
#: includes/admin/settings/conditions/condition-conditions.php:22
|
43 |
+
msgid "Quantity"
|
44 |
+
msgstr "Quantidade"
|
45 |
+
|
46 |
+
# @ woocommerce-advanced-free-shipping
|
47 |
+
#: includes/admin/settings/conditions/condition-conditions.php:23
|
48 |
+
msgid "Contains product"
|
49 |
+
msgstr "Contém Produto"
|
50 |
+
|
51 |
+
# @ woocommerce-advanced-free-shipping
|
52 |
+
#: includes/admin/settings/conditions/condition-conditions.php:24
|
53 |
+
msgid "Coupon"
|
54 |
+
msgstr "Cupão"
|
55 |
+
|
56 |
+
# @ woocommerce-advanced-free-shipping
|
57 |
+
#: includes/admin/settings/conditions/condition-conditions.php:25
|
58 |
+
msgid "Weight"
|
59 |
+
msgstr "Peso"
|
60 |
+
|
61 |
+
# @ woocommerce-advanced-free-shipping
|
62 |
+
#: includes/admin/settings/conditions/condition-conditions.php:26
|
63 |
+
msgid "Contains shipping class"
|
64 |
+
msgstr "Contém Classe de Entrega"
|
65 |
+
|
66 |
+
# @ woocommerce-advanced-free-shipping
|
67 |
+
#: includes/admin/settings/conditions/condition-conditions.php:28
|
68 |
+
msgid "User Details"
|
69 |
+
msgstr "Detalhes do Cliente"
|
70 |
+
|
71 |
+
# @ woocommerce-advanced-free-shipping
|
72 |
+
#: includes/admin/settings/conditions/condition-conditions.php:29
|
73 |
+
msgid "Zipcode"
|
74 |
+
msgstr "Código Postal"
|
75 |
+
|
76 |
+
# @ woocommerce-advanced-free-shipping
|
77 |
+
#: includes/admin/settings/conditions/condition-conditions.php:30
|
78 |
+
msgid "City"
|
79 |
+
msgstr "Cidade"
|
80 |
+
|
81 |
+
# @ woocommerce-advanced-free-shipping
|
82 |
+
#: includes/admin/settings/conditions/condition-conditions.php:31
|
83 |
+
msgid "State"
|
84 |
+
msgstr "Estado"
|
85 |
+
|
86 |
+
# @ woocommerce-advanced-free-shipping
|
87 |
+
#: includes/admin/settings/conditions/condition-conditions.php:32
|
88 |
+
msgid "Country"
|
89 |
+
msgstr "País"
|
90 |
+
|
91 |
+
# @ woocommerce-advanced-free-shipping
|
92 |
+
#: includes/admin/settings/conditions/condition-conditions.php:33
|
93 |
+
msgid "User role"
|
94 |
+
msgstr "Função do Utilizador"
|
95 |
+
|
96 |
+
# @ woocommerce-advanced-free-shipping
|
97 |
+
#: includes/admin/settings/conditions/condition-conditions.php:35
|
98 |
+
msgid "Product"
|
99 |
+
msgstr "Produto"
|
100 |
+
|
101 |
+
# @ woocommerce-advanced-free-shipping
|
102 |
+
#: includes/admin/settings/conditions/condition-conditions.php:36
|
103 |
+
msgid "Width"
|
104 |
+
msgstr "Largura"
|
105 |
+
|
106 |
+
# @ woocommerce-advanced-free-shipping
|
107 |
+
#: includes/admin/settings/conditions/condition-conditions.php:37
|
108 |
+
msgid "Height"
|
109 |
+
msgstr "Altura"
|
110 |
+
|
111 |
+
# @ woocommerce-advanced-free-shipping
|
112 |
+
#: includes/admin/settings/conditions/condition-conditions.php:38
|
113 |
+
msgid "Length"
|
114 |
+
msgstr "Comprimento"
|
115 |
+
|
116 |
+
# @ woocommerce-advanced-free-shipping
|
117 |
+
#: includes/admin/settings/conditions/condition-conditions.php:39
|
118 |
+
msgid "Stock"
|
119 |
+
msgstr "Stock"
|
120 |
+
|
121 |
+
# @ woocommerce-advanced-free-shipping
|
122 |
+
#: includes/admin/settings/conditions/condition-conditions.php:40
|
123 |
+
msgid "Stock status"
|
124 |
+
msgstr "Estado do Stock"
|
125 |
+
|
126 |
+
# @ woocommerce-advanced-free-shipping
|
127 |
+
#: includes/admin/settings/conditions/condition-conditions.php:41
|
128 |
+
msgid "Category"
|
129 |
+
msgstr "Categoria"
|
130 |
+
|
131 |
+
# @ woocommerce-advanced-free-shipping
|
132 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:16
|
133 |
+
msgid "States must be installed in WC."
|
134 |
+
msgstr "Estados precisam estar instalados no WooCommerce"
|
135 |
+
|
136 |
+
# @ woocommerce-advanced-free-shipping
|
137 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:17
|
138 |
+
msgid "Weight calculated on all the cart contents"
|
139 |
+
msgstr "Peso calculado usando todo o conteúdo do Carrinho"
|
140 |
+
|
141 |
+
# @ woocommerce-advanced-free-shipping
|
142 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:18
|
143 |
+
msgid "Compared to lengthiest product in cart"
|
144 |
+
msgstr "Compara o maior comprimento do produto no Carrinho"
|
145 |
+
|
146 |
+
# @ woocommerce-advanced-free-shipping
|
147 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:19
|
148 |
+
msgid "Compared to widest product in cart"
|
149 |
+
msgstr "Compara a maior largura dos produtos no Carrinho"
|
150 |
+
|
151 |
+
# @ woocommerce-advanced-free-shipping
|
152 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:20
|
153 |
+
msgid "Compared to highest product in cart"
|
154 |
+
msgstr "Compara a maior altura dos produtos no Carrinho"
|
155 |
+
|
156 |
+
# @ woocommerce-advanced-free-shipping
|
157 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:21
|
158 |
+
msgid "All products in cart must match stock status"
|
159 |
+
msgstr "Todos os produtos precisam corresponder ao estado do stock"
|
160 |
+
|
161 |
+
# @ woocommerce-advanced-free-shipping
|
162 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:22
|
163 |
+
msgid "All products in cart must match category"
|
164 |
+
msgstr "Todos os produtos no carrinho precisam corresponder a categoria"
|
165 |
+
|
166 |
+
# @ woocommerce-advanced-free-shipping
|
167 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:23
|
168 |
+
msgid "Cart must contain one of this product"
|
169 |
+
msgstr "O carrinho precisa conter, pelo menos, um produto"
|
170 |
+
|
171 |
+
# @ woocommerce-advanced-free-shipping
|
172 |
+
#: includes/admin/settings/conditions/condition-descriptions.php:24
|
173 |
+
msgid "Cart must contain at least one product with the selected shipping class"
|
174 |
+
msgstr "O Carrinho precisa conter, pelo menos, um tipo de envio selecionado"
|
175 |
+
|
176 |
+
# @ woocommerce-advanced-free-shipping
|
177 |
+
#: includes/admin/settings/conditions/condition-operators.php:18
|
178 |
+
msgid "Equal to"
|
179 |
+
msgstr "Igual a"
|
180 |
+
|
181 |
+
# @ woocommerce-advanced-free-shipping
|
182 |
+
#: includes/admin/settings/conditions/condition-operators.php:19
|
183 |
+
msgid "Not equal to"
|
184 |
+
msgstr "Diferente de"
|
185 |
+
|
186 |
+
# @ woocommerce-advanced-free-shipping
|
187 |
+
#: includes/admin/settings/conditions/condition-operators.php:20
|
188 |
+
msgid "Greater or equal to"
|
189 |
+
msgstr "Maior ou igual a"
|
190 |
+
|
191 |
+
# @ woocommerce-advanced-free-shipping
|
192 |
+
#: includes/admin/settings/conditions/condition-operators.php:21
|
193 |
+
msgid "Less or equal to "
|
194 |
+
msgstr "Menor ou igual a"
|
195 |
+
|
196 |
+
# @ woocommerce
|
197 |
+
#: includes/admin/settings/conditions/condition-values.php:76
|
198 |
+
msgid "No shipping class"
|
199 |
+
msgstr "Nenhum Tipo de Envio"
|
200 |
+
|
201 |
+
# @ woocommerce-advanced-free-shipping
|
202 |
+
#: includes/admin/settings/conditions/condition-values.php:169
|
203 |
+
msgid "In stock"
|
204 |
+
msgstr "Em stock"
|
205 |
+
|
206 |
+
# @ woocommerce-advanced-free-shipping
|
207 |
+
#: includes/admin/settings/conditions/condition-values.php:170
|
208 |
+
msgid "Out of stock"
|
209 |
+
msgstr "Esgotado"
|
210 |
+
|
211 |
+
# @ woocommerce-advanced-free-shipping
|
212 |
+
#: includes/admin/settings/conditions/condition-values.php:216
|
213 |
+
msgid "Select option"
|
214 |
+
msgstr "Selecione uma opção"
|
215 |
+
|
216 |
+
# @ woocommerce-advanced-free-shipping
|
217 |
+
#: includes/admin/settings/conditions/condition-values.php:234
|
218 |
+
msgid "There are no options available"
|
219 |
+
msgstr "Não existe opções disponíveis"
|
220 |
+
|
221 |
+
# @ woocommerce-advanced-free-shipping
|
222 |
+
#: includes/admin/settings/meta-box-conditions.php:22
|
223 |
+
msgid "Match all of the following rules to allow free shipping:"
|
224 |
+
msgstr "Combine todos as regras para habilitar envio grátis:"
|
225 |
+
|
226 |
+
# @ woocommerce-advanced-free-shipping
|
227 |
+
#: includes/admin/settings/meta-box-conditions.php:30
|
228 |
+
#: includes/class-wafs-ajax.php:62
|
229 |
+
msgid "Or match all of the following rules to allow free shipping:"
|
230 |
+
msgstr "Ou combine todas as regras para habilitar envio grátis:"
|
231 |
+
|
232 |
+
# @ woocommerce-advanced-free-shipping
|
233 |
+
#: includes/admin/settings/meta-box-conditions.php:40
|
234 |
+
#: includes/class-wafs-ajax.php:69
|
235 |
+
msgid "Or"
|
236 |
+
msgstr "Ou"
|
237 |
+
|
238 |
+
# @ woocommerce-advanced-free-shipping
|
239 |
+
#: includes/admin/settings/meta-box-conditions.php:54
|
240 |
+
msgid "Add 'Or' group"
|
241 |
+
msgstr "Adicionar Grupo 'Ou'"
|
242 |
+
|
243 |
+
# @ woocommerce-advanced-free-shipping
|
244 |
+
#: includes/admin/settings/meta-box-settings.php:23
|
245 |
+
#: includes/admin/views/conditions-table.php:27
|
246 |
+
msgid "Shipping title"
|
247 |
+
msgstr "Título do tipo de envio"
|
248 |
+
|
249 |
+
# @ woocommerce-advanced-free-shipping
|
250 |
+
#: includes/admin/settings/meta-box-settings.php:25
|
251 |
+
msgid "e.g. Free Shipping"
|
252 |
+
msgstr "Ex.: Envio Grátis"
|
253 |
+
|
254 |
+
# @ woocommerce-advanced-free-shipping
|
255 |
+
#: includes/admin/views/conditions-table.php:18
|
256 |
+
msgid "Method conditions"
|
257 |
+
msgstr "Condições do Método"
|
258 |
+
|
259 |
+
# @ woocommerce-advanced-free-shipping
|
260 |
+
#: includes/admin/views/conditions-table.php:26
|
261 |
+
msgid "Title"
|
262 |
+
msgstr "Título"
|
263 |
+
|
264 |
+
# @ woocommerce-advanced-free-shipping
|
265 |
+
#: includes/admin/views/conditions-table.php:28
|
266 |
+
msgid "Condition groups"
|
267 |
+
msgstr "Condição do Grupo"
|
268 |
+
|
269 |
+
# @ woocommerce-advanced-free-shipping
|
270 |
+
#: includes/admin/views/conditions-table.php:41
|
271 |
+
#: includes/admin/views/conditions-table.php:47
|
272 |
+
msgid "Edit Method"
|
273 |
+
msgstr "Editar Método"
|
274 |
+
|
275 |
+
# @ woocommerce-advanced-free-shipping
|
276 |
+
#: includes/admin/views/conditions-table.php:42
|
277 |
+
msgid "Untitled"
|
278 |
+
msgstr "Sem Título"
|
279 |
+
|
280 |
+
# @ woocommerce-advanced-free-shipping
|
281 |
+
#: includes/admin/views/conditions-table.php:48
|
282 |
+
msgid "Edit"
|
283 |
+
msgstr "Editar"
|
284 |
+
|
285 |
+
# @ woocommerce-advanced-free-shipping
|
286 |
+
#: includes/admin/views/conditions-table.php:53
|
287 |
+
msgid "Delete Method"
|
288 |
+
msgstr "Eliminar Método"
|
289 |
+
|
290 |
+
# @ woocommerce-advanced-free-shipping
|
291 |
+
#: includes/admin/views/conditions-table.php:54
|
292 |
+
msgid "Delete"
|
293 |
+
msgstr "Eliminar"
|
294 |
+
|
295 |
+
# @ woocommerce-advanced-free-shipping
|
296 |
+
#: includes/admin/views/conditions-table.php:59
|
297 |
+
#: includes/class-wafs-method.php:218
|
298 |
+
msgid "Free Shipping"
|
299 |
+
msgstr "Envio Grátis"
|
300 |
+
|
301 |
+
# @ woocommerce-advanced-free-shipping
|
302 |
+
#: includes/admin/views/conditions-table.php:69
|
303 |
+
msgid "There are no Free Shipping methods. Yet..."
|
304 |
+
msgstr "Não existe método para Envio Grátis. Ainda..."
|
305 |
+
|
306 |
+
# @ woocommerce-advanced-free-shipping
|
307 |
+
#: includes/admin/views/conditions-table.php:77
|
308 |
+
msgid "Add Free Shipping Method"
|
309 |
+
msgstr "Adicionar Método para Envio Grátis"
|
310 |
+
|
311 |
+
# @ woocommerce-advanced-free-shipping
|
312 |
+
#: includes/class-wafs-method.php:18
|
313 |
+
msgid "Free Shipping <small>(may change at user configuration)</small>"
|
314 |
+
msgstr "Envio gratuito <small>(pode mudar a configuração do utilizador)</small>"
|
315 |
+
|
316 |
+
# @ woocommerce-advanced-free-shipping
|
317 |
+
#: includes/class-wafs-method.php:19
|
318 |
+
msgid "Advanced Free Shipping"
|
319 |
+
msgstr "Advanced Free Shipping"
|
320 |
+
|
321 |
+
# @ default
|
322 |
+
#: includes/class-wafs-method.php:20
|
323 |
+
msgid "Configure WooCommerce Advanced Free Shipping"
|
324 |
+
msgstr "Configurar WooCommerce Advanced Free Shipping"
|
325 |
+
|
326 |
+
# @ woocommerce
|
327 |
+
#: includes/class-wafs-method.php:141
|
328 |
+
msgid "Enable/Disable"
|
329 |
+
msgstr "Habilitar/Desabilitar"
|
330 |
+
|
331 |
+
# @ woocommerce-advanced-free-shipping
|
332 |
+
#: includes/class-wafs-method.php:143
|
333 |
+
msgid "Enable Advanced Free Shipping"
|
334 |
+
msgstr "Habilitar Advanced Free Shipping"
|
335 |
+
|
336 |
+
# @ woocommerce-advanced-free-shipping
|
337 |
+
#: includes/class-wafs-method.php:147
|
338 |
+
msgid "Hide other shipping"
|
339 |
+
msgstr "Esconder outros tipos de envio"
|
340 |
+
|
341 |
+
# @ woocommerce-advanced-free-shipping
|
342 |
+
#: includes/class-wafs-method.php:149
|
343 |
+
msgid "Hide other shipping methods when free shipping is available"
|
344 |
+
msgstr "Esconder outros métodos quando Envio Grátis estiver disponível"
|
345 |
+
|
346 |
+
# @ woocommerce-advanced-free-shipping
|
347 |
+
#: includes/class-wafs-post-type.php:49
|
348 |
+
msgid "Advanced Free Shipping methods"
|
349 |
+
msgstr "Métodos do Advanced Free Shipping"
|
350 |
+
|
351 |
+
# @ woocommerce-advanced-free-shipping
|
352 |
+
#: includes/class-wafs-post-type.php:50
|
353 |
+
msgid "Advanced Free Shipping method"
|
354 |
+
msgstr "Método do Advanced Free Shipping"
|
355 |
+
|
356 |
+
# @ woocommerce-advanced-free-shipping
|
357 |
+
#: includes/class-wafs-post-type.php:51
|
358 |
+
msgid "Add New"
|
359 |
+
msgstr "Adicionar Novo"
|
360 |
+
|
361 |
+
# @ woocommerce-advanced-free-shipping
|
362 |
+
#: includes/class-wafs-post-type.php:52
|
363 |
+
msgid "Add New Advanced Free Shipping method"
|
364 |
+
msgstr "Adicionar Método do Advanced Free Shipping"
|
365 |
+
|
366 |
+
# @ woocommerce-advanced-free-shipping
|
367 |
+
#: includes/class-wafs-post-type.php:53
|
368 |
+
msgid "Edit Advanced Free Shipping method"
|
369 |
+
msgstr "Editar Método do Advanced Free Shipping"
|
370 |
+
|
371 |
+
# @ woocommerce-advanced-free-shipping
|
372 |
+
#: includes/class-wafs-post-type.php:54
|
373 |
+
msgid "New Advanced Free Shipping method"
|
374 |
+
msgstr "Novo Método do Advanced Free Shipping"
|
375 |
+
|
376 |
+
# @ woocommerce-advanced-free-shipping
|
377 |
+
#: includes/class-wafs-post-type.php:55
|
378 |
+
msgid "View Advanced Free Shipping method"
|
379 |
+
msgstr "Visualizar Método do Advanced Free Shipping"
|
380 |
+
|
381 |
+
# @ woocommerce-advanced-free-shipping
|
382 |
+
#: includes/class-wafs-post-type.php:56
|
383 |
+
msgid "Search Advanced Free Shipping methods"
|
384 |
+
msgstr "Procurar Método do Advanced Free Shipping"
|
385 |
+
|
386 |
+
# @ woocommerce-advanced-free-shipping
|
387 |
+
#: includes/class-wafs-post-type.php:57
|
388 |
+
msgid "No Advanced Free Shipping methods"
|
389 |
+
msgstr "Nenhum Método do Advanced Free Shipping"
|
390 |
+
|
391 |
+
# @ woocommerce-advanced-free-shipping
|
392 |
+
#: includes/class-wafs-post-type.php:58
|
393 |
+
msgid "No Advanced Free Shipping methods found in Trash"
|
394 |
+
msgstr "Nenhum Método do Advanced Free Shipping encontrado na Lixeira"
|
395 |
+
|
396 |
+
# @ woocommerce-advanced-free-shipping
|
397 |
+
#: includes/class-wafs-post-type.php:95 includes/class-wafs-post-type.php:98
|
398 |
+
msgid "Free shipping method updated."
|
399 |
+
msgstr "Advanced Free Shipping Atualizado"
|
400 |
+
|
401 |
+
# @ woocommerce-advanced-free-shipping
|
402 |
+
#: includes/class-wafs-post-type.php:96
|
403 |
+
msgid "Custom field updated."
|
404 |
+
msgstr "Campos customizados atualizados."
|
405 |
+
|
406 |
+
# @ woocommerce-advanced-free-shipping
|
407 |
+
#: includes/class-wafs-post-type.php:97
|
408 |
+
msgid "Custom field deleted."
|
409 |
+
msgstr "Campo customizado deletado."
|
410 |
+
|
411 |
+
# @ woocommerce-advanced-free-shipping
|
412 |
+
#: includes/class-wafs-post-type.php:100
|
413 |
+
#, php-format
|
414 |
+
msgid "Free shipping method restored to revision from %s"
|
415 |
+
msgstr "Método de envio grátis restaurado da revisão de %s"
|
416 |
+
|
417 |
+
# @ woocommerce-advanced-free-shipping
|
418 |
+
#: includes/class-wafs-post-type.php:102
|
419 |
+
msgid "Free shipping method published."
|
420 |
+
msgstr "Método de Envio Grátis publicado."
|
421 |
+
|
422 |
+
# @ woocommerce-advanced-free-shipping
|
423 |
+
#: includes/class-wafs-post-type.php:103
|
424 |
+
msgid "Free shipping method saved."
|
425 |
+
msgstr "Método de Envio Grátis guardado."
|
426 |
+
|
427 |
+
# @ woocommerce-advanced-free-shipping
|
428 |
+
#: includes/class-wafs-post-type.php:104
|
429 |
+
msgid "Free shipping method submitted."
|
430 |
+
msgstr "Método de Envio Grátis enviado."
|
431 |
+
|
432 |
+
# @ woocommerce-advanced-free-shipping
|
433 |
+
#: includes/class-wafs-post-type.php:106
|
434 |
+
#, php-format
|
435 |
+
msgid "Free shipping method scheduled for: <strong>%1$s</strong>."
|
436 |
+
msgstr "Método de Envio Grátis agendado para: <strong>%1$s</strong>."
|
437 |
+
|
438 |
+
# @ woocommerce-advanced-free-shipping
|
439 |
+
#: includes/class-wafs-post-type.php:107
|
440 |
+
msgid "M j, Y @ G:i"
|
441 |
+
msgstr "M j, Y @ G:i"
|
442 |
+
|
443 |
+
# @ woocommerce-advanced-free-shipping
|
444 |
+
#: includes/class-wafs-post-type.php:109
|
445 |
+
msgid "Free shipping method draft updated."
|
446 |
+
msgstr "Esboço do Tipo de Envio Grátis atualizado."
|
447 |
+
|
448 |
+
# @ woocommerce-advanced-free-shipping
|
449 |
+
#: includes/class-wafs-post-type.php:115
|
450 |
+
msgid "Return to overview."
|
451 |
+
msgstr "Voltar para o ecrã principal."
|
452 |
+
|
453 |
+
# @ woocommerce-advanced-free-shipping
|
454 |
+
#: includes/class-wafs-post-type.php:138
|
455 |
+
msgid "Advanced Free Shipping conditions"
|
456 |
+
msgstr "Condições para Advanced Free Shipping"
|
457 |
+
|
458 |
+
# @ woocommerce-advanced-free-shipping
|
459 |
+
#: includes/class-wafs-post-type.php:139
|
460 |
+
msgid "Shipping settings"
|
461 |
+
msgstr "Configuração de Envio"
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WooCommerce Advanced Free Shipping ===
|
2 |
Contributors: sormano
|
3 |
-
Donate link: http://
|
4 |
Tags: woocommerce, shipping, woocommerce shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -17,7 +17,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
17 |
|
18 |
- Cart total
|
19 |
- Country
|
20 |
-
-
|
21 |
- Stock / stock status
|
22 |
- Weight
|
23 |
- Quantity
|
@@ -27,7 +27,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
27 |
**Look at the screenshots!**
|
28 |
|
29 |
> **Applying shipping cost**<br /><br />
|
30 |
-
> Have you
|
31 |
> Another plugin is available that allows you to setup shipping cost with the same conditional logic options as this plugin!<br /><br />
|
32 |
> **Features:**<br />
|
33 |
> - Add shipping cost to the shipping rates<br />
|
@@ -66,6 +66,19 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
= 1.0.6 - 04-06-2015 =
|
70 |
|
71 |
* [Add] - Escaping/sanitizing to different elements
|
@@ -81,7 +94,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
81 |
= 1.0.4 =
|
82 |
* Fix - Weight condition wasn't working
|
83 |
* Fix - Cash On Delivery for WAFS
|
84 |
-
* Added - Added languages files for
|
85 |
|
86 |
= 1.0.3 =
|
87 |
* Improvement - Customized user messages when saving shipping method
|
@@ -90,7 +103,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
90 |
* Improvement - Added ABSPATH check to each file
|
91 |
* Improvement - Improved code comments
|
92 |
* Improvement - Remove globals, use WAFS() function now
|
93 |
-
* Improvement -
|
94 |
* Improvement - Load textdomains
|
95 |
* Improvement - Add compatibility for custom value fields
|
96 |
* Improvement - Add world wide state support
|
@@ -103,7 +116,7 @@ WooCommerce Advanced Free Shipping is an plugin which allows you to set up advan
|
|
103 |
|
104 |
|
105 |
= 1.0.2 = 07/03/2014
|
106 |
-
* Added - support for comma separated
|
107 |
* Added - filter for condition values
|
108 |
* Added - filter for condition descriptions
|
109 |
|
1 |
=== WooCommerce Advanced Free Shipping ===
|
2 |
Contributors: sormano
|
3 |
+
Donate link: http://jeroensormani.com/donate/
|
4 |
Tags: woocommerce, shipping, woocommerce shipping, woocommerce free shipping, woocommerce free, woocommerce advanced free shipping, wc free shipping, wc shipping, advanced shipping, pro shipping, table rate shipping, country shipping, free shipping
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 1.0.8
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
17 |
|
18 |
- Cart total
|
19 |
- Country
|
20 |
+
- Zip code
|
21 |
- Stock / stock status
|
22 |
- Weight
|
23 |
- Quantity
|
27 |
**Look at the screenshots!**
|
28 |
|
29 |
> **Applying shipping cost**<br /><br />
|
30 |
+
> Have you given this plugin a shot and like how you can set things up?<br />
|
31 |
> Another plugin is available that allows you to setup shipping cost with the same conditional logic options as this plugin!<br /><br />
|
32 |
> **Features:**<br />
|
33 |
> - Add shipping cost to the shipping rates<br />
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 1.0.8 - 22-12-2015 =
|
70 |
+
|
71 |
+
* [i18n] - Portuguese (pt_PT) translation
|
72 |
+
* [i18n] - Greek (el) translation
|
73 |
+
* [Improvement] - Keep the WooCommerce -> Settings menu open while in Shipping rate options
|
74 |
+
* [Tweak] - [Dev] - Remove method prefixes on many places where possible (not all)
|
75 |
+
|
76 |
+
= 1.0.7 - 02-11-2015 =
|
77 |
+
|
78 |
+
* [Improvement] - Conditional load resources in admin
|
79 |
+
* [Improvement] - Add AJAX nonce verification
|
80 |
+
* [Remove] - WooCommerce 2.1 is no longer supported. Please update WC if you're still on a older version.
|
81 |
+
|
82 |
= 1.0.6 - 04-06-2015 =
|
83 |
|
84 |
* [Add] - Escaping/sanitizing to different elements
|
94 |
= 1.0.4 =
|
95 |
* Fix - Weight condition wasn't working
|
96 |
* Fix - Cash On Delivery for WAFS
|
97 |
+
* Added - Added languages files for Portuguese - Brazil pt_BR
|
98 |
|
99 |
= 1.0.3 =
|
100 |
* Improvement - Customized user messages when saving shipping method
|
103 |
* Improvement - Added ABSPATH check to each file
|
104 |
* Improvement - Improved code comments
|
105 |
* Improvement - Remove globals, use WAFS() function now
|
106 |
+
* Improvement - Zip codes are now better detected (only integer values)
|
107 |
* Improvement - Load textdomains
|
108 |
* Improvement - Add compatibility for custom value fields
|
109 |
* Improvement - Add world wide state support
|
116 |
|
117 |
|
118 |
= 1.0.2 = 07/03/2014
|
119 |
+
* Added - support for comma separated zip codes
|
120 |
* Added - filter for condition values
|
121 |
* Added - filter for condition descriptions
|
122 |
|
woocommerce-advanced-free-shipping.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?PHP
|
2 |
/*
|
3 |
* Plugin Name: Woocommerce Advanced Free Shipping
|
4 |
-
* Plugin URI:
|
5 |
-
* Donate link: http://
|
6 |
* Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
|
7 |
-
* Version: 1.0.
|
8 |
* Author: Jeroen Sormani
|
9 |
-
* Author URI: http://
|
10 |
* Text Domain: woocommerce-advanced-free-shipping
|
11 |
|
12 |
* Copyright Jeroen Sormani
|
@@ -49,15 +49,24 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
49 |
* @since 1.0.4
|
50 |
* @var string $version Plugin version number.
|
51 |
*/
|
52 |
-
public $version = '1.0.
|
53 |
|
54 |
|
55 |
/**
|
56 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
*
|
58 |
* @since 1.0.3
|
59 |
* @access private
|
60 |
-
* @var object $instance The instance of
|
61 |
*/
|
62 |
private static $instance;
|
63 |
|
@@ -110,7 +119,7 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
110 |
*
|
111 |
* Initialize plugin parts.
|
112 |
*
|
113 |
-
* @since 1.
|
114 |
*/
|
115 |
public function init() {
|
116 |
|
@@ -141,6 +150,14 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
141 |
require_once plugin_dir_path( __FILE__ ) . '/includes/class-wafs-ajax.php';
|
142 |
$this->ajax = new WAFS_Ajax();
|
143 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
}
|
145 |
|
146 |
|
@@ -192,9 +209,6 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
192 |
// Add shipping method
|
193 |
add_action( 'woocommerce_shipping_methods', array( $this, 'wafs_add_shipping_method' ) );
|
194 |
|
195 |
-
// Enqueue scripts
|
196 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'wafs_admin_enqueue_scripts' ) );
|
197 |
-
|
198 |
}
|
199 |
|
200 |
|
@@ -257,10 +271,7 @@ class WooCommerce_Advanced_Free_Shipping {
|
|
257 |
* @since 1.0.0
|
258 |
*/
|
259 |
public function wafs_admin_enqueue_scripts() {
|
260 |
-
|
261 |
-
wp_enqueue_style( 'wafs-style', plugins_url( 'assets/css/admin-style.css', __FILE__ ), array(), $this->version );
|
262 |
-
wp_enqueue_script( 'wafs-js', plugins_url( 'assets/js/wafs-js.js', __FILE__ ), array( 'jquery' ), $this->version, true );
|
263 |
-
|
264 |
}
|
265 |
|
266 |
|
1 |
<?PHP
|
2 |
/*
|
3 |
* Plugin Name: Woocommerce Advanced Free Shipping
|
4 |
+
* Plugin URI: https://wordpress.org/plugins/woocommerce-advanced-free-shipping/
|
5 |
+
* Donate link: http://jeroensormani.com/donate/
|
6 |
* Description: WooCommerce Advanced Free Shipping is an plugin which allows you to set up advanced free shipping conditions.
|
7 |
+
* Version: 1.0.8
|
8 |
* Author: Jeroen Sormani
|
9 |
+
* Author URI: http://jeroensormani.com/
|
10 |
* Text Domain: woocommerce-advanced-free-shipping
|
11 |
|
12 |
* Copyright Jeroen Sormani
|
49 |
* @since 1.0.4
|
50 |
* @var string $version Plugin version number.
|
51 |
*/
|
52 |
+
public $version = '1.0.8';
|
53 |
|
54 |
|
55 |
/**
|
56 |
+
* File.
|
57 |
+
*
|
58 |
+
* @since 1.0.8
|
59 |
+
* @var string $file Main plugin file path.
|
60 |
+
*/
|
61 |
+
public $file = __FILE__;
|
62 |
+
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Instance of WooCommerce_Advanced_Free_Shipping.
|
66 |
*
|
67 |
* @since 1.0.3
|
68 |
* @access private
|
69 |
+
* @var object $instance The instance of WAFS.
|
70 |
*/
|
71 |
private static $instance;
|
72 |
|
119 |
*
|
120 |
* Initialize plugin parts.
|
121 |
*
|
122 |
+
* @since 1.0.0
|
123 |
*/
|
124 |
public function init() {
|
125 |
|
150 |
require_once plugin_dir_path( __FILE__ ) . '/includes/class-wafs-ajax.php';
|
151 |
$this->ajax = new WAFS_Ajax();
|
152 |
|
153 |
+
/**
|
154 |
+
* Admin class
|
155 |
+
*/
|
156 |
+
if ( is_admin() ) :
|
157 |
+
require_once plugin_dir_path( __FILE__ ) . '/includes/admin/class-wafs-admin.php';
|
158 |
+
$this->admin = new WAFS_Admin();
|
159 |
+
endif;
|
160 |
+
|
161 |
}
|
162 |
|
163 |
|
209 |
// Add shipping method
|
210 |
add_action( 'woocommerce_shipping_methods', array( $this, 'wafs_add_shipping_method' ) );
|
211 |
|
|
|
|
|
|
|
212 |
}
|
213 |
|
214 |
|
271 |
* @since 1.0.0
|
272 |
*/
|
273 |
public function wafs_admin_enqueue_scripts() {
|
274 |
+
_deprecated_function( __FUNCTION__, '1.0.8', 'WAFS()->admin->admin_enqueue_script()' );
|
|
|
|
|
|
|
275 |
}
|
276 |
|
277 |
|