Version Description
- Update 'Redirect to Page' option
- Updated table style for Firefox display bugs
Download this release
Release Info
Developer | terrytsang |
Plugin | WooCommerce Direct Checkout |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- .project +0 -11
- readme.txt +8 -3
- screenshot-01.png +0 -0
- screenshot-02.png +0 -0
- screenshot-03.png +0 -0
- wc-direct-checkout.php +158 -132
.project
DELETED
@@ -1,11 +0,0 @@
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -6,12 +6,12 @@ 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.
|
10 |
-
Version: 1.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 |
|
@@ -52,6 +52,11 @@ In WooCommerce Settings Panel, there will be a new submenu link called 'Direct C
|
|
52 |
|
53 |
== Changelog ==
|
54 |
|
|
|
|
|
|
|
|
|
|
|
55 |
= 1.0.1 =
|
56 |
|
57 |
* Add 'Redirect to Page' option, let user choose redirecting to any page after add to cart pressed
|
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.2
|
10 |
+
Version: 1.0.2
|
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. This can lead to an immediate increase in sales.
|
15 |
|
16 |
== Description ==
|
17 |
|
52 |
|
53 |
== Changelog ==
|
54 |
|
55 |
+
= 1.0.2 =
|
56 |
+
|
57 |
+
* Update 'Redirect to Page' option
|
58 |
+
* Updated table style for Firefox display bugs
|
59 |
+
|
60 |
= 1.0.1 =
|
61 |
|
62 |
* Add 'Redirect to Page' option, let user choose redirecting to any page after add to cart pressed
|
screenshot-01.png
DELETED
Binary file
|
screenshot-02.png
DELETED
Binary file
|
screenshot-03.png
DELETED
Binary file
|
wc-direct-checkout.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
Author: Terry Tsang
|
8 |
Author URI: http://shop.terrytsang.com
|
9 |
*/
|
@@ -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.
|
33 |
|
34 |
|
35 |
// Checks if the WooCommerce plugins is installed and active.
|
@@ -58,7 +58,8 @@ 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 |
);
|
63 |
|
64 |
$this->saved_options_direct_checkout = array();
|
@@ -71,14 +72,14 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
|
|
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,98 +87,103 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
|
|
86 |
}
|
87 |
}
|
88 |
|
89 |
-
/**
|
90 |
-
* Set custom add to cart redirect
|
91 |
*/
|
92 |
function custom_add_to_cart_redirect() {
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
|
|
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 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
$
|
146 |
-
|
147 |
-
$
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
$
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
<
|
162 |
-
|
163 |
-
|
164 |
-
|
|
|
165 |
<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
|
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 $
|
181 |
</td>
|
182 |
</tr>
|
183 |
<tr>
|
@@ -185,68 +191,88 @@ if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_o
|
|
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 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
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-
|
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/&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-
|
220 |
<a href="http://linkedin.com/shareArticle?mini=true&url=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&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 |
|
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.2
|
7 |
Author: Terry Tsang
|
8 |
Author URI: http://shop.terrytsang.com
|
9 |
*/
|
29 |
define('wc_plugin_name_direct_checkout', 'WooCommerce Direct Checkout');
|
30 |
|
31 |
// Define plugin version
|
32 |
+
define('wc_version_direct_checkout', '1.0.2');
|
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 |
+
'direct_checkout_cart_redirect_url' => ''
|
63 |
);
|
64 |
|
65 |
$this->saved_options_direct_checkout = array();
|
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 |
}
|
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 |
<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 |
+
<h3>Get More Plugins</h3>
|
235 |
+
|
236 |
+
<p><a href="http://shop.terrytsang.com" target="_blank" title="Premium & 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>
|
237 |
+
|
238 |
<h3>Spreading the Word</h3>
|
239 |
|
240 |
<ul style="list-style:dash">If you find this plugin helpful, you can:
|
241 |
<li>- Write and review about it in your blog</li>
|
242 |
+
<li>- Rate it on <a href="http://wordpress.org/extend/plugins/woocommerce-direct-checkout/" target="_blank">wordpress plugin page</a></li>
|
243 |
<li>- Share on your social media<br />
|
244 |
<a href="http://www.facebook.com/sharer.php?u=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&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>
|
245 |
+
<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>
|
246 |
<a href="http://linkedin.com/shareArticle?mini=true&url=http://terrytsang.com/shop/shop/woocommerce-direct-checkout/&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>
|
247 |
</li>
|
248 |
<li>- Or make a donation</li>
|
249 |
+
</ul>
|
250 |
+
|
251 |
<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>
|
252 |
|
253 |
+
<h3>Thank you for your support!</h3>
|
254 |
+
</td>
|
255 |
+
|
256 |
+
</tr>
|
257 |
+
</table>
|
258 |
+
|
259 |
+
|
260 |
+
<br />
|
261 |
+
|
262 |
+
<?php
|
263 |
}
|
264 |
|
265 |
+
/**
|
266 |
+
* Get the setting options
|
267 |
+
*/
|
268 |
+
function get_options() {
|
269 |
+
|
270 |
+
foreach($this->options_direct_checkout as $field => $value)
|
271 |
+
{
|
272 |
+
$array_options[$field] = get_option( $field );
|
273 |
+
}
|
274 |
+
|
275 |
+
return $array_options;
|
276 |
}
|
277 |
|
278 |
|