Version Description
- Fixed: Incorrectly calling Order ID in admin.php (thanks Anik)
Download this release
Release Info
Developer | visser |
Plugin | WooCommerce Checkout Manager |
Version | 4.1.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.1.3 to 4.1.3.1
- includes/admin.php +6 -1
- readme.txt +4 -1
- script_wccs.js +0 -93
- woocommerce-checkout-manager.php +1 -1
includes/admin.php
CHANGED
@@ -1229,6 +1229,8 @@ function wooccm_admin_edit_order_billing_details( $order ) {
|
|
1229 |
|
1230 |
global $post;
|
1231 |
|
|
|
|
|
1232 |
$options = get_option( 'wccs_settings3' );
|
1233 |
$buttons = ( isset( $options['billing_buttons'] ) ? $options['billing_buttons'] : false );
|
1234 |
if( !empty( $buttons ) ) {
|
@@ -1339,6 +1341,8 @@ function wooccm_admin_edit_order_shipping_details( $order ) {
|
|
1339 |
|
1340 |
global $post;
|
1341 |
|
|
|
|
|
1342 |
$options = get_option( 'wccs_settings2' );
|
1343 |
$buttons = ( isset( $options['shipping_buttons'] ) ? $options['shipping_buttons'] : false );
|
1344 |
if( !empty( $buttons ) ) {
|
@@ -1474,6 +1478,8 @@ function wooccm_admin_edit_order_uploaded_files_meta_box( $post ) {
|
|
1474 |
|
1475 |
global $wpdb, $thepostid, $theorder, $woocommerce, $post;
|
1476 |
|
|
|
|
|
1477 |
$options = get_option( 'wccs_settings' );
|
1478 |
|
1479 |
$upload_dir = wp_upload_dir();
|
@@ -1483,7 +1489,6 @@ function wooccm_admin_edit_order_uploaded_files_meta_box( $post ) {
|
|
1483 |
$product_image_gallery = '';
|
1484 |
|
1485 |
$post_type = 'attachment';
|
1486 |
-
$order_id = $post->ID;
|
1487 |
$args = array(
|
1488 |
'post_type' => $post_type,
|
1489 |
'numberposts' => -1,
|
1229 |
|
1230 |
global $post;
|
1231 |
|
1232 |
+
$order_id = ( isset( $post->ID ) ? $post->ID : false );
|
1233 |
+
|
1234 |
$options = get_option( 'wccs_settings3' );
|
1235 |
$buttons = ( isset( $options['billing_buttons'] ) ? $options['billing_buttons'] : false );
|
1236 |
if( !empty( $buttons ) ) {
|
1341 |
|
1342 |
global $post;
|
1343 |
|
1344 |
+
$order_id = ( isset( $post->ID ) ? $post->ID : false );
|
1345 |
+
|
1346 |
$options = get_option( 'wccs_settings2' );
|
1347 |
$buttons = ( isset( $options['shipping_buttons'] ) ? $options['shipping_buttons'] : false );
|
1348 |
if( !empty( $buttons ) ) {
|
1478 |
|
1479 |
global $wpdb, $thepostid, $theorder, $woocommerce, $post;
|
1480 |
|
1481 |
+
$order_id = ( isset( $post->ID ) ? $post->ID : false );
|
1482 |
+
|
1483 |
$options = get_option( 'wccs_settings' );
|
1484 |
|
1485 |
$upload_dir = wp_upload_dir();
|
1489 |
$product_image_gallery = '';
|
1490 |
|
1491 |
$post_type = 'attachment';
|
|
|
1492 |
$args = array(
|
1493 |
'post_type' => $post_type,
|
1494 |
'numberposts' => -1,
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.visser.com.au/donations/
|
|
5 |
Tags: woocommerce, ecommerce, e-commerce, store, cart, checkout, manager, editor, field, shipping, billing, order
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.8
|
8 |
-
Stable tag: 4.1.3
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manages WooCommerce Checkout, the advanced way.
|
@@ -135,6 +135,9 @@ Example:
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
138 |
= 4.1.3 =
|
139 |
* Fixed: WooCommerce 3.0 compatibility using $order->id
|
140 |
* Changed: Cleaned up the code across the Plugin
|
5 |
Tags: woocommerce, ecommerce, e-commerce, store, cart, checkout, manager, editor, field, shipping, billing, order
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.8
|
8 |
+
Stable tag: 4.1.3.1
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Manages WooCommerce Checkout, the advanced way.
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 4.1.3.1 =
|
139 |
+
* Fixed: Incorrectly calling Order ID in admin.php (thanks Anik)
|
140 |
+
|
141 |
= 4.1.3 =
|
142 |
* Fixed: WooCommerce 3.0 compatibility using $order->id
|
143 |
* Changed: Cleaned up the code across the Plugin
|
script_wccs.js
DELETED
@@ -1,93 +0,0 @@
|
|
1 |
-
jQuery(document).ready(function() {
|
2 |
-
jQuery(function() {
|
3 |
-
jQuery('#select_all_rm').click(function() {
|
4 |
-
var c = this.checked;
|
5 |
-
jQuery('.rm').prop('checked',c);
|
6 |
-
});
|
7 |
-
});
|
8 |
-
});
|
9 |
-
jQuery(document).ready(function() {
|
10 |
-
jQuery(function() {
|
11 |
-
jQuery('#select_all_rm_s').click(function() {
|
12 |
-
var c = this.checked;
|
13 |
-
jQuery('.rm_s').prop('checked',c);
|
14 |
-
});
|
15 |
-
});
|
16 |
-
});
|
17 |
-
jQuery(document).ready(function() {
|
18 |
-
jQuery(function() {
|
19 |
-
jQuery('#select_all_rq').click(function() {
|
20 |
-
var c = this.checked;
|
21 |
-
jQuery('.rq').prop('checked',c);
|
22 |
-
});
|
23 |
-
});
|
24 |
-
});
|
25 |
-
jQuery(document).ready(function() {
|
26 |
-
jQuery(function() {
|
27 |
-
jQuery('#select_all_rq_s').click(function() {
|
28 |
-
var c = this.checked;
|
29 |
-
jQuery('.rq_s').prop('checked',c);
|
30 |
-
});
|
31 |
-
});
|
32 |
-
});
|
33 |
-
// Javascript for adding new field
|
34 |
-
jQuery(document).ready( function() {
|
35 |
-
/**
|
36 |
-
* Credits to the Advanced Custom Fields plugin for this code
|
37 |
-
*/
|
38 |
-
// Update Order Numbers
|
39 |
-
function update_order_numbers(div) {
|
40 |
-
div.children('tbody').children('tr.wccs-row').each(function(i) {
|
41 |
-
jQuery(this).children('td.wccs-order').html(i+1);
|
42 |
-
});
|
43 |
-
}
|
44 |
-
// Make Sortable
|
45 |
-
function make_sortable(div){
|
46 |
-
var fixHelper = function(e, ui) {
|
47 |
-
ui.children().each(function() {
|
48 |
-
jQuery(this).width(jQuery(this).width());
|
49 |
-
});
|
50 |
-
return ui;
|
51 |
-
};
|
52 |
-
div.children('tbody').unbind('sortable').sortable({
|
53 |
-
update: function(event, ui){
|
54 |
-
update_order_numbers(div);
|
55 |
-
},
|
56 |
-
handle: 'td.wccs-order',
|
57 |
-
helper: fixHelper
|
58 |
-
});
|
59 |
-
}
|
60 |
-
var div = jQuery('.wccs-table'),
|
61 |
-
row_count = div.children('tbody').children('tr.wccs-row').length;
|
62 |
-
// Make the table sortable
|
63 |
-
make_sortable(div);
|
64 |
-
// Add button
|
65 |
-
jQuery('#wccs-add-button').live('click', function(){
|
66 |
-
var div = jQuery('.wccs-table'),
|
67 |
-
row_count = div.children('tbody').children('tr.wccs-row').length,
|
68 |
-
new_field = div.children('tbody').children('tr.wccs-clone').clone(false); // Create and add the new field
|
69 |
-
new_field.attr( 'class', 'wccs-row' );
|
70 |
-
// Update names
|
71 |
-
new_field.find('[name]').each(function(){
|
72 |
-
var count = parseInt(row_count);
|
73 |
-
var name = jQuery(this).attr('name').replace('[999]','[' + count + ']');
|
74 |
-
jQuery(this).attr('name', name);
|
75 |
-
});
|
76 |
-
// Add row
|
77 |
-
div.children('tbody').append(new_field);
|
78 |
-
update_order_numbers(div);
|
79 |
-
// There is now 1 more row
|
80 |
-
row_count ++;
|
81 |
-
return false;
|
82 |
-
});
|
83 |
-
// Remove button
|
84 |
-
jQuery('.wccs-table .wccs-remove-button').live('click', function(){
|
85 |
-
var div = jQuery('.wccs-table'),
|
86 |
-
tr = jQuery(this).closest('tr');
|
87 |
-
tr.animate({'left' : '50px', 'opacity' : 0}, 250, function(){
|
88 |
-
tr.remove();
|
89 |
-
update_order_numbers(div);
|
90 |
-
});
|
91 |
-
return false;
|
92 |
-
});
|
93 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
woocommerce-checkout-manager.php
CHANGED
@@ -6,7 +6,7 @@ Description: Manages WooCommerce Checkout, the advanced way.
|
|
6 |
Contributors: visser, Emark
|
7 |
Author: Visser Labs
|
8 |
Author URI: http://www.visser.com.au
|
9 |
-
Version: 4.1.3
|
10 |
Text Domain: woocommerce-checkout-manager
|
11 |
Domain Path: /languages/
|
12 |
License: GPLv2 or later
|
6 |
Contributors: visser, Emark
|
7 |
Author: Visser Labs
|
8 |
Author URI: http://www.visser.com.au
|
9 |
+
Version: 4.1.3.1
|
10 |
Text Domain: woocommerce-checkout-manager
|
11 |
Domain Path: /languages/
|
12 |
License: GPLv2 or later
|