WooCommerce Direct Checkout - Version 1.0.0

Version Description

  • Initial Release
  • Customize add to cart text and change add to cart function directly to checkout page
Download this release

Release Info

Developer terrytsang
Plugin Icon 128x128 WooCommerce Direct Checkout
Version 1.0.0
Comparing to
See all releases

Code changes from version 1.0.4 to 1.0.0

.project ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <projectDescription>
3
+ <name>woocommerce-direct-checkout</name>
4
+ <comment></comment>
5
+ <projects>
6
+ </projects>
7
+ <buildSpec>
8
+ </buildSpec>
9
+ <natures>
10
+ </natures>
11
+ </projectDescription>
.settings/org.eclipse.php.core.prefs ADDED
@@ -0,0 +1,2 @@
 
 
1
+ eclipse.preferences.version=1
2
+ include_path=
images/direct-checkout-pro-version.png DELETED
Binary file
readme.txt CHANGED
@@ -5,13 +5,13 @@ Plugin Name: WooCommerce Custom Direct Checkout
5
  Plugin URI: http://terrytsang.com/shop/shop/woocommerce-direct-checkout/
6
  Tags: woocommerce, custom fields, direct, checkout, e-commerce
7
  Requires at least: 2.7
8
- Tested up to: 3.8.1
9
- Stable tag: 1.0.4
10
- Version: 1.0.4
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
- You can skip shopping cart page and implement add to cart button redirect to checkout page or you can redirect to other existing page.
15
 
16
  == Description ==
17
 
@@ -21,7 +21,6 @@ In WooCommerce Settings Panel, there will be a new submenu link called 'Direct C
21
 
22
  * Enabled / Disabled the direct checkout option
23
  * Change "Add to cart" to any text
24
- * Update "Redirect to Page" option (NEW)
25
 
26
  = Features =
27
 
@@ -29,16 +28,12 @@ In WooCommerce Settings Panel, there will be a new submenu link called 'Direct C
29
  * 2 languages available : English UK (en_GB) and Chinese (zh_CN)
30
 
31
  = IMPORTANT NOTES =
 
32
  * Do use POEdit and open 'wc-direct-checkout.pot' file and save the file as wc-direct-checkout-[language code].po, then put that into languages folder for this plugin.
33
- * Please uncheck the option "Enable AJAX add to cart buttons on archives" at WooCommerce > Settings > Catalog to make the rediection working without ajax.
34
-
35
- = GET PRO VERSION =
36
- http://terrytsang.com/shop/shop/woocommerce-direct-checkout-pro/
37
 
38
  = Additional Plugins by Terry Tsang =
39
  * [Custom Checkout Options] (http://terrytsang.com/shop/shop/woocommerce-custom-checkout-options/)
40
  * [Social Buttons PRO] (http://terrytsang.com/shop/shop/woocommerce-social-buttons-pro/)
41
- * [Extra Fee Options PRO] (http://terrytsang.com/shop/shop/woocommerce-extra-fee-option-pro/)
42
 
43
 
44
  == Installation ==
@@ -56,25 +51,6 @@ http://terrytsang.com/shop/shop/woocommerce-direct-checkout-pro/
56
 
57
  == Changelog ==
58
 
59
- = 1.0.4 =
60
-
61
- * Added pro version link
62
-
63
- = 1.0.3 =
64
-
65
- * Updated reademe file for instruction and notes
66
-
67
-
68
- = 1.0.2 =
69
-
70
- * Update 'Redirect to Page' option
71
- * Updated table style for Firefox display bugs
72
-
73
- = 1.0.1 =
74
-
75
- * Add 'Redirect to Page' option, let user choose redirecting to any page after add to cart pressed
76
- * Updated wrong hyperlink
77
-
78
  = 1.0.0 =
79
 
80
  * Initial Release
5
  Plugin URI: http://terrytsang.com/shop/shop/woocommerce-direct-checkout/
6
  Tags: woocommerce, custom fields, direct, checkout, e-commerce
7
  Requires at least: 2.7
8
+ Tested up to: 3.5.2
9
+ Stable tag: 1.0.0
10
+ Version: 1.0.0
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
14
+ You can skip shopping cart page and implement add to cart button redirect to checkout page. This can lead to an immediate increase in sales.
15
 
16
  == Description ==
17
 
21
 
22
  * Enabled / Disabled the direct checkout option
23
  * Change "Add to cart" to any text
 
24
 
25
  = Features =
26
 
28
  * 2 languages available : English UK (en_GB) and Chinese (zh_CN)
29
 
30
  = IMPORTANT NOTES =
31
+ * This plugin requires the WooCommerce Extension.
32
  * Do use POEdit and open 'wc-direct-checkout.pot' file and save the file as wc-direct-checkout-[language code].po, then put that into languages folder for this plugin.
 
 
 
 
33
 
34
  = Additional Plugins by Terry Tsang =
35
  * [Custom Checkout Options] (http://terrytsang.com/shop/shop/woocommerce-custom-checkout-options/)
36
  * [Social Buttons PRO] (http://terrytsang.com/shop/shop/woocommerce-social-buttons-pro/)
 
37
 
38
 
39
  == Installation ==
51
 
52
  == Changelog ==
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  = 1.0.0 =
55
 
56
  * Initial Release
screenshot-1.png CHANGED
Binary file
wc-direct-checkout.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: WooCommerce Direct Checkout
4
  Plugin URI: http://terrytsang.com/shop/shop/woocommerce-direct-checkout/
5
  Description: Allow you to implement direct checkout (skip cart page) for WooCommerce
6
- Version: 1.0.4
7
  Author: Terry Tsang
8
  Author URI: http://shop.terrytsang.com
9
  */
10
 
11
- /* Copyright 2012-2014 Terry Tsang (email: terrytsang811@gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License as published by
@@ -29,7 +29,7 @@ Author URI: http://shop.terrytsang.com
29
  define('wc_plugin_name_direct_checkout', 'WooCommerce Direct Checkout');
30
 
31
  // Define plugin version
32
- define('wc_version_direct_checkout', '1.0.4');
33
 
34
 
35
  // Checks if the WooCommerce plugins is installed and active.
@@ -58,8 +58,7 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
58
 
59
  $this->options_direct_checkout = array(
60
  'direct_checkout_enabled' => '',
61
- 'direct_checkout_cart_button_text' => '',
62
- 'direct_checkout_cart_redirect_url' => ''
63
  );
64
 
65
  $this->saved_options_direct_checkout = array();
@@ -72,14 +71,14 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
72
  */
73
  public function init(){
74
 
75
- //add menu link for the plugin (backend)
76
- add_action( 'admin_menu', array( &$this, 'add_menu_direct_checkout' ) );
77
 
78
  if(get_option('direct_checkout_enabled'))
79
  {
80
- //unset all related options to disabled / not active
81
- update_option('woocommerce_cart_redirect_after_add', 'no');
82
- update_option('woocommerce_enable_ajax_add_to_cart', 'no');
83
 
84
  add_filter('add_to_cart_redirect', array( &$this, 'custom_add_to_cart_redirect') );
85
  add_filter('single_add_to_cart_text', array( &$this, 'custom_cart_button_text') );
@@ -87,103 +86,98 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
87
  }
88
  }
89
 
90
- /**
91
- * Set custom add to cart redirect
92
  */
93
  function custom_add_to_cart_redirect() {
94
- $direct_checkout_cart_redirect_url = get_option( 'direct_checkout_cart_redirect_url' );
95
-
96
- if($direct_checkout_cart_redirect_url != "")
97
- return $direct_checkout_cart_redirect_url; // Replace with the url of your choosing
98
- else
99
- return get_permalink(get_option('woocommerce_checkout_page_id'));
100
  }
101
 
102
- /**
103
- * Set custom add to cart text
104
  */
105
- function custom_cart_button_text() {
106
  $direct_checkout_cart_button_text = get_option( 'direct_checkout_cart_button_text' ) ? get_option( 'direct_checkout_cart_button_text' ) : "Add to cart";
107
 
108
- if($direct_checkout_cart_button_text && $direct_checkout_cart_button_text != "")
109
- return __($direct_checkout_cart_button_text, $this->textdomain);
110
-
111
  }
112
 
113
- /**
114
- * Add a menu link to the woocommerce section menu
115
- */
116
- function add_menu_direct_checkout() {
117
- $wc_page = 'woocommerce';
118
- $comparable_settings_page = add_submenu_page( $wc_page , __( 'Direct Checkout', $this->textdomain ), __( 'Direct Checkout', $this->textdomain ), 'manage_options', 'wc-direct-checkout', array(
119
- &$this,
120
- 'settings_page_direct_checkout'
121
- ));
122
  }
123
 
124
- /**
125
- * Create the settings page content
126
- */
127
- public function settings_page_direct_checkout() {
128
-
129
- // If form was submitted
130
- if ( isset( $_POST['submitted'] ) )
131
- {
132
- check_admin_referer( $this->textdomain );
133
-
134
- $this->saved_options_direct_checkout['direct_checkout_enabled'] = ! isset( $_POST['direct_checkout_enabled'] ) ? '1' : $_POST['direct_checkout_enabled'];
135
- $this->saved_options_direct_checkout['direct_checkout_cart_button_text'] = ! isset( $_POST['direct_checkout_cart_button_text'] ) ? 'Add to cart' : $_POST['direct_checkout_cart_button_text'];
136
- $this->saved_options_direct_checkout['direct_checkout_cart_redirect_url'] = ! isset( $_POST['direct_checkout_cart_redirect_url'] ) ? '' : $_POST['direct_checkout_cart_redirect_url'];
137
-
138
- foreach($this->options_direct_checkout as $field => $value)
139
- {
140
- $option_direct_checkout = get_option( $field );
141
-
142
- if($option_direct_checkout != $this->saved_options_direct_checkout[$field])
143
- update_option( $field, $this->saved_options_direct_checkout[$field] );
144
- }
145
-
146
- // Show message
147
- echo '<div id="message" class="updated fade"><p>' . __( 'You have saved WooCommerce Direct Checkout options.', $this->textdomain ) . '</p></div>';
148
- }
149
-
150
- $direct_checkout_enabled = get_option( 'direct_checkout_enabled' );
151
- $direct_checkout_cart_button_text = get_option( 'direct_checkout_cart_button_text' ) ? get_option( 'direct_checkout_cart_button_text' ) : 'Add to Cart';
152
- $direct_checkout_cart_redirect_url = get_option( 'direct_checkout_cart_redirect_url' );
153
-
154
- $checked_enabled = '';
155
-
156
- if($direct_checkout_enabled)
157
- $checked_enabled = 'checked="checked"';
158
-
159
- $actionurl = $_SERVER['REQUEST_URI'];
160
- $nonce = wp_create_nonce( $this->textdomain );
161
-
162
-
163
- // Configuration Page
164
-
165
- ?>
166
- <div id="icon-options-general" class="icon32"></div>
167
- <h3><?php _e( 'Direct Checkout Options', $this->textdomain); ?></h3>
168
-
169
-
170
- <table style="width:90%;padding:5px;border-collapse:separate;border-spacing:5px;vertical-align:top;">
171
  <tr>
172
  <td colspan="2">Checking out is the most important and key part of placing an order online, and many users end up abandoning their order at the end. This plugin will simplify the checkout process, leading to an immediate increase in sales.</td>
173
- </tr>
174
- <tr>
175
- <td style="width:70%;vertical-align:top;">
176
- <form action="<?php echo $actionurl; ?>" method="post">
177
- <table>
178
- <tbody>
179
- <tr>
180
- <td colspan="2">
181
- <table class="widefat fixed" cellspacing="2" cellpadding="5" border="0">
182
  <tr>
183
  <td width="25%"><?php _e( 'Enable', $this->textdomain ); ?></td>
184
  <td>
185
  <input class="checkbox" name="direct_checkout_enabled" id="direct_checkout_enabled" value="0" type="hidden">
186
- <input class="checkbox" name="direct_checkout_enabled" id="direct_checkout_enabled" value="1" type="checkbox" <?php echo $checked_enabled; ?> type="checkbox">
187
  </td>
188
  </tr>
189
  <tr>
@@ -191,93 +185,68 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
191
  <td>
192
  <input name="direct_checkout_cart_button_text" id="direct_checkout_cart_button_text" value="<?php echo $direct_checkout_cart_button_text; ?>" />
193
  </td>
194
- </tr>
195
- <tr>
196
- <td width="25%"><?php _e( 'Redirect to Page', $this->textdomain ); ?><br /><span style="color:#ccc;"><?php _e( '(Default will be checkout page if not set)', $this->textdomain ); ?></span></td>
197
- <td>
198
- <select name="direct_checkout_cart_redirect_url">
199
- <option value=""><?php echo esc_attr( __( 'Select page' ) ); ?></option>
200
- <?php
201
- $pages = get_pages();
202
- foreach ( $pages as $page ) {
203
- if($direct_checkout_cart_redirect_url == get_permalink( $page->ID ))
204
- $option = '<option value="' . get_permalink( $page->ID ) . '" selected="selected">';
205
- else
206
- $option = '<option value="' . get_permalink( $page->ID ) . '">';
207
- $option .= $page->post_title;
208
- $option .= '</option>';
209
- echo $option;
210
- }
211
- ?>
212
- </select>
213
- </td>
214
- </tr>
215
- </table>
216
- </td>
217
- </tr>
218
- <tr>
219
- <td colspan=2">
220
- <input class="button-primary" type="submit" name="Save" value="<?php _e('Save Options', $this->textdomain); ?>" id="submitbutton" />
221
- <input type="hidden" name="submitted" value="1" />
222
- <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce; ?>" />
223
- </td>
224
- </tr>
225
- </tbody>
226
- </table>
227
- </form>
228
-
229
- </td>
230
-
231
- <td width="30%" style="background:#ececec;padding:10px 5px;" valign="top">
232
- <p><b>WooCommerce Direct Checkout</b> is a FREE woocommerce plugin developed by <a href="http://shop.terrytsang.com" target="_blank" title="Terry Tsang - a PHP Developer and Wordpress Consultant">Terry Tsang</a>. This plugin aims to add direct checkout for WooCommerce.</p>
233
-
234
- <?php
235
- $get_pro_image = WooCommerce_Direct_Checkout::$plugin_url . '/images/direct-checkout-pro-version.png';
236
- ?>
237
- <div align="center"><a href="http://terrytsang.com/shop/shop/woocommerce-direct-checkout-pro/" target="_blank" title="WooCommerce Direct Checkout PRO"><img src="<?php echo $get_pro_image; ?>" border="0" /></a></div>
238
-
239
- <h3>Get More Plugins</h3>
240
-
241
- <p><a href="http://shop.terrytsang.com" target="_blank" title="Premium &amp; Free Extensions/Plugins for E-Commerce by Terry Tsang">Go to My Site</a> to get more free and premium extensions/plugins for your ecommerce sites.</p>
242
-
243
  <h3>Spreading the Word</h3>
244
 
245
  <ul style="list-style:dash">If you find this plugin helpful, you can:
246
  <li>- Write and review about it in your blog</li>
247
- <li>- Rate it on <a href="http://wordpress.org/extend/plugins/woocommerce-direct-checkout/" target="_blank">wordpress plugin page</a></li>
248
  <li>- Share on your social media<br />
249
  <a href="http://www.facebook.com/sharer.php?u=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&amp;t=WooCommerce Direct Checkout" title="Share this WooCommerce Direct Checkout on Facebook" target="_blank"><img src="http://terrytsang.com/shop/images/social_facebook.png" alt="Share this WooCommerce Direct Checkout plugin on Facebook"></a>
250
- <a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fterrytsang.com%2Fshop%2Fshop%2Fwoocommerce-direct-checkout%2F&text=WooCommerce Direct Checkout - &via=terrytsang811" target="_blank"><img src="http://terrytsang.com/shop/images/social_twitter.png" alt="Tweet about WooCommerce Direct Checkout plugin"></a>
251
  <a href="http://linkedin.com/shareArticle?mini=true&amp;url=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&amp;title=WooCommerce Direct Checkout plugin" title="Share this WooCommerce Direct Checkout plugin on LinkedIn" target="_blank"><img src="http://terrytsang.com/shop/images/social_linkedin.png" alt="Share this WooCommerce Direct Checkout plugin on LinkedIn"></a>
252
  </li>
253
  <li>- Or make a donation</li>
254
- </ul>
255
-
256
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LJWSJDBBLNK7W" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" alt="" /></a>
257
 
258
- <h3>Thank you for your support!</h3>
259
- </td>
260
-
261
- </tr>
262
- </table>
263
-
264
-
265
- <br />
266
-
267
- <?php
268
  }
269
 
270
- /**
271
- * Get the setting options
272
- */
273
- function get_options() {
274
-
275
- foreach($this->options_direct_checkout as $field => $value)
276
- {
277
- $array_options[$field] = get_option( $field );
278
- }
279
-
280
- return $array_options;
281
  }
282
 
283
 
3
  Plugin Name: WooCommerce Direct Checkout
4
  Plugin URI: http://terrytsang.com/shop/shop/woocommerce-direct-checkout/
5
  Description: Allow you to implement direct checkout (skip cart page) for WooCommerce
6
+ Version: 1.0.0
7
  Author: Terry Tsang
8
  Author URI: http://shop.terrytsang.com
9
  */
10
 
11
+ /* Copyright 2012-2013 Terry Tsang (email: terrytsang811@gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License as published by
29
  define('wc_plugin_name_direct_checkout', 'WooCommerce Direct Checkout');
30
 
31
  // Define plugin version
32
+ define('wc_version_direct_checkout', '1.0.0');
33
 
34
 
35
  // Checks if the WooCommerce plugins is installed and active.
58
 
59
  $this->options_direct_checkout = array(
60
  'direct_checkout_enabled' => '',
61
+ 'direct_checkout_cart_button_text' => ''
 
62
  );
63
 
64
  $this->saved_options_direct_checkout = array();
71
  */
72
  public function init(){
73
 
74
+ //add menu link for the plugin (backend)
75
+ add_action( 'admin_menu', array( &$this, 'add_menu_direct_checkout' ) );
76
 
77
  if(get_option('direct_checkout_enabled'))
78
  {
79
+ //unset all related options to disabled / not active
80
+ update_option('woocommerce_cart_redirect_after_add', 'no');
81
+ update_option('woocommerce_enable_ajax_add_to_cart', 'no');
82
 
83
  add_filter('add_to_cart_redirect', array( &$this, 'custom_add_to_cart_redirect') );
84
  add_filter('single_add_to_cart_text', array( &$this, 'custom_cart_button_text') );
86
  }
87
  }
88
 
89
+ /**
90
+ * Set custom add to cart redirect
91
  */
92
  function custom_add_to_cart_redirect() {
93
+
94
+ return get_permalink(get_option('woocommerce_checkout_page_id')); // Replace with the url of your choosing
 
 
 
 
95
  }
96
 
97
+ /**
98
+ * Set custom add to cart text
99
  */
100
+ function custom_cart_button_text() {
101
  $direct_checkout_cart_button_text = get_option( 'direct_checkout_cart_button_text' ) ? get_option( 'direct_checkout_cart_button_text' ) : "Add to cart";
102
 
103
+ if($direct_checkout_cart_button_text && $direct_checkout_cart_button_text != "")
104
+ return __($direct_checkout_cart_button_text, $this->textdomain);
105
+
106
  }
107
 
108
+ /**
109
+ * Add a menu link to the woocommerce section menu
110
+ */
111
+ function add_menu_direct_checkout() {
112
+ $wc_page = 'woocommerce';
113
+ $comparable_settings_page = add_submenu_page( $wc_page , __( 'Direct Checkout', $this->textdomain ), __( 'Direct Checkout', $this->textdomain ), 'manage_options', 'wc-direct-checkout', array(
114
+ &$this,
115
+ 'settings_page_direct_checkout'
116
+ ));
117
  }
118
 
119
+ /**
120
+ * Create the settings page content
121
+ */
122
+ public function settings_page_direct_checkout() {
123
+
124
+ // If form was submitted
125
+ if ( isset( $_POST['submitted'] ) )
126
+ {
127
+ check_admin_referer( $this->textdomain );
128
+
129
+ $this->saved_options_direct_checkout['direct_checkout_enabled'] = ! isset( $_POST['direct_checkout_enabled'] ) ? '1' : $_POST['direct_checkout_enabled'];
130
+ $this->saved_options_direct_checkout['direct_checkout_cart_button_text'] = ! isset( $_POST['direct_checkout_cart_button_text'] ) ? 'Add to cart' : $_POST['direct_checkout_cart_button_text'];
131
+
132
+ foreach($this->options_direct_checkout as $field => $value)
133
+ {
134
+ $option_direct_checkout = get_option( $field );
135
+
136
+ if($option_direct_checkout != $this->saved_options_direct_checkout[$field])
137
+ update_option( $field, $this->saved_options_direct_checkout[$field] );
138
+ }
139
+
140
+ // Show message
141
+ echo '<div id="message" class="updated fade"><p>' . __( 'You have saved WooCommerce Direct Checkout options.', $this->textdomain ) . '</p></div>';
142
+ }
143
+
144
+ $direct_checkout_enabled = get_option( 'direct_checkout_enabled' );
145
+ $direct_checkout_cart_button_text = get_option( 'direct_checkout_cart_button_text' );
146
+
147
+ $checked = '';
148
+
149
+ if($direct_checkout_enabled)
150
+ $checked = 'checked="checked"';
151
+
152
+
153
+ $actionurl = $_SERVER['REQUEST_URI'];
154
+ $nonce = wp_create_nonce( $this->textdomain );
155
+
156
+
157
+ // Configuration Page
158
+
159
+ ?>
160
+ <div id="icon-options-general" class="icon32"></div>
161
+ <h3><?php _e( 'Direct Checkout Options', $this->textdomain); ?></h3>
162
+
163
+
164
+ <table width="90%" cellspacing="2">
 
165
  <tr>
166
  <td colspan="2">Checking out is the most important and key part of placing an order online, and many users end up abandoning their order at the end. This plugin will simplify the checkout process, leading to an immediate increase in sales.</td>
167
+ </tr>
168
+ <tr>
169
+ <td width="70%" valign="top">
170
+ <form action="<?php echo $actionurl; ?>" method="post">
171
+ <table>
172
+ <tbody>
173
+ <tr>
174
+ <td colspan="2">
175
+ <table class="widefat fixed" cellspacing="2" cellpadding="5" border="0">
176
  <tr>
177
  <td width="25%"><?php _e( 'Enable', $this->textdomain ); ?></td>
178
  <td>
179
  <input class="checkbox" name="direct_checkout_enabled" id="direct_checkout_enabled" value="0" type="hidden">
180
+ <input class="checkbox" name="direct_checkout_enabled" id="direct_checkout_enabled" value="1" type="checkbox" <?php echo $checked; ?> type="checkbox">
181
  </td>
182
  </tr>
183
  <tr>
185
  <td>
186
  <input name="direct_checkout_cart_button_text" id="direct_checkout_cart_button_text" value="<?php echo $direct_checkout_cart_button_text; ?>" />
187
  </td>
188
+ </tr>
189
+ </table>
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <td colspan=2">
194
+ <input class="button-primary" type="submit" name="Save" value="<?php _e('Save Options', $this->textdomain); ?>" id="submitbutton" />
195
+ <input type="hidden" name="submitted" value="1" />
196
+ <input type="hidden" id="_wpnonce" name="_wpnonce" value="<?php echo $nonce; ?>" />
197
+ </td>
198
+ </tr>
199
+ </tbody>
200
+ </table>
201
+ </form>
202
+
203
+ </td>
204
+
205
+ <td width="30%" style="background:#ececec;padding:10px 5px;" valign="top">
206
+ <p><b>WooCommerce Direct Checkout</b> is a FREE woocommerce plugin developed by <a href="http://shop.terrytsang.com" target="_blank" title="Terry Tsang - a PHP Developer and Wordpress Consultant">Terry Tsang</a>. This plugin aims to add direct checkout for WooCommerce.</p>
207
+
208
+ <h3>Get More Plugins</h3>
209
+
210
+ <p><a href="http://shop.terrytsang.com" target="_blank" title="Premium &amp; Free Extensions/Plugins for E-Commerce by Terry Tsang">Go to My Site</a> to get more free and premium extensions/plugins for your ecommerce sites.</p>
211
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
212
  <h3>Spreading the Word</h3>
213
 
214
  <ul style="list-style:dash">If you find this plugin helpful, you can:
215
  <li>- Write and review about it in your blog</li>
216
+ <li>- Rate it on <a href="http://wordpress.org/extend/plugins/woocommerce-facebook-share-like-button/" target="_blank">wordpress plugin page</a></li>
217
  <li>- Share on your social media<br />
218
  <a href="http://www.facebook.com/sharer.php?u=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&amp;t=WooCommerce Direct Checkout" title="Share this WooCommerce Direct Checkout on Facebook" target="_blank"><img src="http://terrytsang.com/shop/images/social_facebook.png" alt="Share this WooCommerce Direct Checkout plugin on Facebook"></a>
219
+ <a href="https://twitter.com/intent/tweet?url=http%3A%2F%2Fterrytsang.com%2Fshop%2Fshop%2Fwoocommerce-facebook-share-like-button%2F&text=WooCommerce Direct Checkout - &via=terrytsang811" target="_blank"><img src="http://terrytsang.com/shop/images/social_twitter.png" alt="Tweet about WooCommerce Direct Checkout plugin"></a>
220
  <a href="http://linkedin.com/shareArticle?mini=true&amp;url=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&amp;title=WooCommerce Direct Checkout plugin" title="Share this WooCommerce Direct Checkout plugin on LinkedIn" target="_blank"><img src="http://terrytsang.com/shop/images/social_linkedin.png" alt="Share this WooCommerce Direct Checkout plugin on LinkedIn"></a>
221
  </li>
222
  <li>- Or make a donation</li>
223
+ </ul>
224
+
225
  <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LJWSJDBBLNK7W" target="_blank"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" alt="" /></a>
226
 
227
+ <h3>Thank you for your support!</h3>
228
+ </td>
229
+
230
+ </tr>
231
+ </table>
232
+
233
+
234
+ <br />
235
+
236
+ <?php
237
  }
238
 
239
+ /**
240
+ * Get the setting options
241
+ */
242
+ function get_options() {
243
+
244
+ foreach($this->options_direct_checkout as $field => $value)
245
+ {
246
+ $array_options[$field] = get_option( $field );
247
+ }
248
+
249
+ return $array_options;
250
  }
251
 
252