Version Description
- New automatic button / shortcode inserter in your page / post editor
Download this release
Release Info
Developer | scottpaterson |
Plugin | PayPal Buy Now Button |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- readme.txt +16 -7
- screenshot-1.jpg +0 -0
- screenshot-2.png +0 -0
- wp-ecommerce-paypal.php +75 -12
readme.txt
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
=== Easy PayPal Button ===
|
2 |
Contributors: scottpaterson,wp-plugin
|
3 |
Donate link: https://wpplugin.org/donate/
|
4 |
Tags: ecommerce, paypal, button, buy now, shortcode, buy now button, paypal button, paypal buy now button, paypal plugin, paypal plugin for wordpress, easy
|
5 |
Author URI: https://wpplugin.org
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.1
|
8 |
-
Stable tag: 1.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -16,13 +16,14 @@ Convert your website to a eCommerce website and start selling your product in ju
|
|
16 |
|
17 |
* The **Easy PayPal Button** WordPress Plugin makes it easy to turn your WordPress site into an eCommmerce website.
|
18 |
|
19 |
-
* Simply install the plugin, enter your PayPal business information on the settings page, and
|
20 |
|
21 |
* Easy PayPal Button works with any WordPress theme.
|
22 |
|
23 |
|
24 |
= Easy PayPal Button Features =
|
25 |
|
|
|
26 |
* Works with any WordPress Theme
|
27 |
* Each button has its own product name and price
|
28 |
* Built in support for 18 languages
|
@@ -61,23 +62,28 @@ Trademarks held by their respective owners. This plugin is not affiliated wtih P
|
|
61 |
> 1. Sign in to your WordPress site as an administrator.
|
62 |
> 2. In the main menu go to Plugins -> Add New.
|
63 |
> 3. Search for Easy PayPal Button and click install.
|
64 |
-
> 4.
|
65 |
|
66 |
== Frequently Asked Questions ==
|
67 |
|
68 |
= How do I use this plugin =
|
69 |
-
|
70 |
-
`[wpecpp name='Product name goes here' price='6.99']`
|
71 |
|
72 |
= Can I put more then one shortcode on the same post / page? =
|
73 |
Yes, there is no limit to the amount you can put on one post / page, or your entire site.
|
74 |
|
75 |
== Screenshots ==
|
76 |
1. Sample item for sale with PayPal button
|
77 |
-
2.
|
|
|
|
|
78 |
|
79 |
== Changelog ==
|
80 |
|
|
|
|
|
|
|
81 |
= 1.3 =
|
82 |
* New Interface
|
83 |
|
@@ -113,6 +119,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
|
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
|
|
|
|
|
|
|
116 |
= 1.3 =
|
117 |
New Interface
|
118 |
|
1 |
+
=== Easy PayPal Buy Now Button ===
|
2 |
Contributors: scottpaterson,wp-plugin
|
3 |
Donate link: https://wpplugin.org/donate/
|
4 |
Tags: ecommerce, paypal, button, buy now, shortcode, buy now button, paypal button, paypal buy now button, paypal plugin, paypal plugin for wordpress, easy
|
5 |
Author URI: https://wpplugin.org
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.1
|
8 |
+
Stable tag: 1.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
16 |
|
17 |
* The **Easy PayPal Button** WordPress Plugin makes it easy to turn your WordPress site into an eCommmerce website.
|
18 |
|
19 |
+
* Simply install the plugin, enter your PayPal business information on the settings page, and use the automatically button inserter to create Buy Now buttons anywhere on your site.
|
20 |
|
21 |
* Easy PayPal Button works with any WordPress theme.
|
22 |
|
23 |
|
24 |
= Easy PayPal Button Features =
|
25 |
|
26 |
+
* Automatic Buy Now button inserter
|
27 |
* Works with any WordPress Theme
|
28 |
* Each button has its own product name and price
|
29 |
* Built in support for 18 languages
|
62 |
> 1. Sign in to your WordPress site as an administrator.
|
63 |
> 2. In the main menu go to Plugins -> Add New.
|
64 |
> 3. Search for Easy PayPal Button and click install.
|
65 |
+
> 4. In your page or post editor, you will see a button called Easy PayPal Button to create shortcodes automatically. Or if you want to do it manually place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
|
66 |
|
67 |
== Frequently Asked Questions ==
|
68 |
|
69 |
= How do I use this plugin =
|
70 |
+
In your page or post editor, you will see a button called Easy PayPal Button to create shortcodes automatically.
|
71 |
+
Or if you want to do it manually place `[wpecpp name='Product name goes here' price='6.99']` in a post or page where you want your a PayPal button to show.
|
72 |
|
73 |
= Can I put more then one shortcode on the same post / page? =
|
74 |
Yes, there is no limit to the amount you can put on one post / page, or your entire site.
|
75 |
|
76 |
== Screenshots ==
|
77 |
1. Sample item for sale with PayPal button
|
78 |
+
2. Buy Now button inserter in the page / post editor
|
79 |
+
3. Buy Now button inserter in the page / post editor
|
80 |
+
4. Settings page
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 1.4 =
|
85 |
+
* New automatic button / shortcode inserter in your page / post editor
|
86 |
+
|
87 |
= 1.3 =
|
88 |
* New Interface
|
89 |
|
119 |
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
+
= 1.4 =
|
123 |
+
New automatic button / shortcode inserter in your page / post editor
|
124 |
+
|
125 |
= 1.3 =
|
126 |
New Interface
|
127 |
|
screenshot-1.jpg
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
wp-ecommerce-paypal.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
-
Plugin Name: Easy PayPal Button
|
5 |
-
Plugin URI:
|
6 |
Description: A simple and easy way to integrate PayPal into your WordPress website.
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
-
Version: 1.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
@@ -33,6 +33,65 @@ Version: 1.3
|
|
33 |
|
34 |
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
|
38 |
|
@@ -82,8 +141,6 @@ function wpecpp_uninstall() {
|
|
82 |
|
83 |
|
84 |
|
85 |
-
|
86 |
-
|
87 |
// display activation notice
|
88 |
|
89 |
add_action('admin_notices', 'wpecpp_my_plugin_admin_notices');
|
@@ -144,6 +201,8 @@ wp_die( __( "You do not have sufficient permissions to access this page." ) );
|
|
144 |
|
145 |
|
146 |
|
|
|
|
|
147 |
// settings page
|
148 |
|
149 |
|
@@ -201,8 +260,15 @@ echo "<br />";
|
|
201 |
Usage
|
202 |
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
203 |
|
204 |
-
|
205 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
|
208 |
<br /><br />
|
@@ -652,10 +718,7 @@ if ($value['weight_unit'] == "1") { $weight_unit = "lbs"; }
|
|
652 |
if ($value['weight_unit'] == "2") { $weight_unit = "kgs"; }
|
653 |
|
654 |
$output = "";
|
655 |
-
$output .= "<table style='border: none;'><tr>";
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
$output .= "<td style='border: none;'><form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
|
660 |
$output .= "<input type='hidden' name='cmd' value='_xclick' />";
|
661 |
$output .= "<input type='hidden' name='business' value='$account' />";
|
@@ -677,7 +740,7 @@ $output .= "<input type='hidden' name='return' value='". $value['return'] ."' />
|
|
677 |
$output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";
|
678 |
$output .= "<input style='border: none;' class='paypalbuttonimage' type='image' src='$img' border='0' name='submit' alt='Make your payments with PayPal. It is free, secure, effective.'>";
|
679 |
$output .= "<img alt='' border='0' src='https://www.paypal.com/$language/i/scr/pixel.gif' width='1' height='1'>";
|
680 |
-
$output .= "</form></td></tr></table>";
|
681 |
|
682 |
return $output;
|
683 |
|
1 |
<?php
|
2 |
|
3 |
/*
|
4 |
+
Plugin Name: Easy PayPal Buy Now Button
|
5 |
+
Plugin URI: https://wpplugin.org/easy-paypal-button/
|
6 |
Description: A simple and easy way to integrate PayPal into your WordPress website.
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
+
Version: 1.4
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
33 |
|
34 |
|
35 |
|
36 |
+
// add media button for editor page
|
37 |
+
if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) && $typenow != 'download' ) {
|
38 |
+
|
39 |
+
add_action('media_buttons', 'wpecpp_add_my_media_button', 20);
|
40 |
+
function wpecpp_add_my_media_button() {
|
41 |
+
echo '<a href="#TB_inline?width=600&height=400&inlineId=wpecpp_popup_container" title="Easy PayPal Button" id="insert-my-media" class="button thickbox">Easy PayPal Button</a>';
|
42 |
+
}
|
43 |
+
|
44 |
+
add_action( 'admin_footer', 'wpecpp_add_inline_popup_content' );
|
45 |
+
function wpecpp_add_inline_popup_content() {
|
46 |
+
?>
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
<script type="text/javascript">
|
51 |
+
function wpecpp_InsertShortcode(){
|
52 |
+
|
53 |
+
var scname = document.getElementById("scname").value;
|
54 |
+
var scprice = document.getElementById("scprice").value;
|
55 |
+
|
56 |
+
if(!scname.match(/\S/)) { alert("Item Name is required."); return false; }
|
57 |
+
if(!scprice.match(/\S/)) { alert("Item Price is required."); return false; }
|
58 |
+
|
59 |
+
document.getElementById("scname").value = "";
|
60 |
+
document.getElementById("scprice").value = "";
|
61 |
+
|
62 |
+
window.send_to_editor('[wpecpp name="' + scname + '" price="' + scprice + '"' + ']');
|
63 |
+
}
|
64 |
+
</script>
|
65 |
+
|
66 |
+
|
67 |
+
<div id="wpecpp_popup_container" style="display:none;">
|
68 |
+
|
69 |
+
<h2>Insert a Buy Now Button Shortcode</h2>
|
70 |
+
|
71 |
+
<table><tr><td>
|
72 |
+
|
73 |
+
Item Name: </td><td><input type="text" name="scname" id="scname" value="">The name of the item</td><td></td></tr><tr><td>
|
74 |
+
Item Price: </td><td><input type="text" name="scprice" id="scprice" value=""> Example format: 6.99</td><td></td></tr><tr><td>
|
75 |
+
|
76 |
+
</td></tr><tr><td>
|
77 |
+
|
78 |
+
<br />
|
79 |
+
</td></tr><tr><td>
|
80 |
+
|
81 |
+
<input type="button" id="wpecpp-insert" class="button-primary" onclick="wpecpp_InsertShortcode();" value="Insert">
|
82 |
+
<br /><br />
|
83 |
+
|
84 |
+
</td></tr></table>
|
85 |
+
|
86 |
+
</div>
|
87 |
+
<?php
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
|
95 |
|
96 |
|
97 |
|
141 |
|
142 |
|
143 |
|
|
|
|
|
144 |
// display activation notice
|
145 |
|
146 |
add_action('admin_notices', 'wpecpp_my_plugin_admin_notices');
|
201 |
|
202 |
|
203 |
|
204 |
+
|
205 |
+
|
206 |
// settings page
|
207 |
|
208 |
|
260 |
Usage
|
261 |
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
262 |
|
263 |
+
<b>Adding Buy Now Buttons - Automatic Method: </b><br />
|
264 |
+
In a page or post editor you will see a new button called "Easy PayPal Button" located right above the text area beside the Add Media button. By using this you can automatically
|
265 |
+
create shortcodes which will automatically show up as Buy Now button on your site.
|
266 |
+
<br /><br />
|
267 |
+
<b>Adding Buy Now Buttons - Manual Method: </b><br />
|
268 |
+
You can also place the shortcode for a buy now button manually by using <b>[wpecpp name='example product name' price='6.99']</b> in your page or post anywhere you want the PayPal button to show.
|
269 |
+
|
270 |
+
<br /><br />
|
271 |
+
You can put the Buy Now buttons as many times in a page or post as you want, there is no limit. If you want to remove a Buy Now button, just remove the shortcode text in your page or post.
|
272 |
|
273 |
|
274 |
<br /><br />
|
718 |
if ($value['weight_unit'] == "2") { $weight_unit = "kgs"; }
|
719 |
|
720 |
$output = "";
|
721 |
+
$output .= "<div><table style='border: none;'><tr>";
|
|
|
|
|
|
|
722 |
$output .= "<td style='border: none;'><form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
|
723 |
$output .= "<input type='hidden' name='cmd' value='_xclick' />";
|
724 |
$output .= "<input type='hidden' name='business' value='$account' />";
|
740 |
$output .= "<input type='hidden' name='cancel_return' value='". $value['cancel'] ."' />";
|
741 |
$output .= "<input style='border: none;' class='paypalbuttonimage' type='image' src='$img' border='0' name='submit' alt='Make your payments with PayPal. It is free, secure, effective.'>";
|
742 |
$output .= "<img alt='' border='0' src='https://www.paypal.com/$language/i/scr/pixel.gif' width='1' height='1'>";
|
743 |
+
$output .= "</form></td></tr></table></div>";
|
744 |
|
745 |
return $output;
|
746 |
|