Version Description
- Small fixes
Download this release
Release Info
Developer | scottpaterson |
Plugin | PayPal Buy Now Button |
Version | 1.6.3 |
Comparing to | |
See all releases |
Code changes from version 1.6.2 to 1.6.3
- readme.txt +7 -1
- wp-ecommerce-paypal.php +30 -61
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: ecommerce, paypal, button, buy now, shortcode, buy now button, paypal butt
|
|
5 |
Author URI: https://wpplugin.org
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.1.1
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -85,6 +85,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
|
|
85 |
|
86 |
== Changelog ==
|
87 |
|
|
|
|
|
|
|
88 |
= 1.6.2 =
|
89 |
* Small bug fixes
|
90 |
|
@@ -141,6 +144,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
|
|
141 |
|
142 |
== Upgrade Notice ==
|
143 |
|
|
|
|
|
|
|
144 |
= 1.6.2 =
|
145 |
Small bug fixes
|
146 |
|
5 |
Author URI: https://wpplugin.org
|
6 |
Requires at least: 3.0
|
7 |
Tested up to: 4.1.1
|
8 |
+
Stable tag: 1.6.3
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
85 |
|
86 |
== Changelog ==
|
87 |
|
88 |
+
= 1.6.3 =
|
89 |
+
* Small fixes
|
90 |
+
|
91 |
= 1.6.2 =
|
92 |
* Small bug fixes
|
93 |
|
144 |
|
145 |
== Upgrade Notice ==
|
146 |
|
147 |
+
= 1.6.3 =
|
148 |
+
Small fixes
|
149 |
+
|
150 |
= 1.6.2 =
|
151 |
Small bug fixes
|
152 |
|
wp-ecommerce-paypal.php
CHANGED
@@ -7,7 +7,7 @@ Description: A simple and easy way to integrate PayPal into your WordPress websi
|
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
-
Version: 1.6.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
@@ -51,20 +51,20 @@ function wpecpp_add_inline_popup_content() {
|
|
51 |
<script type="text/javascript">
|
52 |
function wpecpp_InsertShortcode(){
|
53 |
|
54 |
-
var
|
55 |
-
var
|
56 |
-
var
|
57 |
-
var
|
58 |
|
59 |
-
if(!
|
60 |
-
if(!
|
61 |
-
if(
|
62 |
|
63 |
-
document.getElementById("
|
64 |
-
document.getElementById("
|
65 |
-
|
66 |
|
67 |
-
window.send_to_editor('[wpecpp name="' +
|
68 |
}
|
69 |
</script>
|
70 |
|
@@ -75,9 +75,9 @@ window.send_to_editor('[wpecpp name="' + scname + '" price="' + scprice + '"' +
|
|
75 |
|
76 |
<table><tr><td>
|
77 |
|
78 |
-
Item Name: </td><td><input type="text" name="
|
79 |
-
Item Price: </td><td><input type="text" name="
|
80 |
-
Alignment: </td><td><select name="
|
81 |
Optional</td><td></td></tr><tr><td>
|
82 |
|
83 |
</td></tr><tr><td>
|
@@ -102,13 +102,12 @@ Optional</td><td></td></tr><tr><td>
|
|
102 |
|
103 |
|
104 |
// plugin functions
|
105 |
-
wpecpp_WPeCommerceLite::init_WPeCommerceLite();
|
106 |
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
register_uninstall_hook( __FILE__, array( __CLASS__, "wpecpp_uninstall" ));
|
111 |
|
|
|
112 |
|
113 |
$wpecpp_settingsoptions = array(
|
114 |
'currency' => '25',
|
@@ -130,16 +129,17 @@ $wpecpp_settingsoptions = array(
|
|
130 |
'showname' => '2',
|
131 |
);
|
132 |
|
133 |
-
|
134 |
add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
|
|
|
135 |
}
|
|
|
|
|
136 |
function wpecpp_deactivate() {
|
137 |
delete_option("wpecpp_my_plugin_notice_shown");
|
138 |
}
|
|
|
139 |
function wpecpp_uninstall() {
|
140 |
}
|
141 |
-
}
|
142 |
-
|
143 |
|
144 |
|
145 |
|
@@ -255,14 +255,10 @@ echo "<br />";
|
|
255 |
Usage
|
256 |
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
257 |
|
258 |
-
|
259 |
-
|
260 |
-
create shortcodes which will automatically show up as Buy Now button on your site.
|
261 |
<br /><br />
|
262 |
-
<b>Adding Buy Now Buttons - Manual Method: </b><br />
|
263 |
-
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.
|
264 |
|
265 |
-
<br /><br />
|
266 |
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.
|
267 |
|
268 |
|
@@ -440,7 +436,7 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
|
|
440 |
<br />
|
441 |
|
442 |
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
443 |
-
|
444 |
</div>
|
445 |
|
446 |
<div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;">
|
@@ -449,46 +445,21 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
|
|
449 |
<center><label style="font-size:14pt;">With the Pro version you'll <br /> be able to: </label></center>
|
450 |
|
451 |
<br />
|
452 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div>
|
453 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add a Dropdown Options Menu<br />
|
454 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Custom Text Fields<br />
|
455 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Tax <br />
|
456 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Shipping & Handling<br />
|
457 |
-
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Apply Discounts <br />
|
458 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
|
|
|
|
|
459 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
|
460 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Further Plugin Development <br />
|
461 |
|
462 |
<br />
|
463 |
-
<center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>
|
464 |
<br />
|
465 |
</div>
|
466 |
|
467 |
<br /><br />
|
468 |
|
469 |
|
470 |
-
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
471 |
-
Premium Support
|
472 |
-
</div>
|
473 |
-
|
474 |
-
<div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;"><br />
|
475 |
-
|
476 |
-
<center><label style="font-size:14pt;">Get Personalized Support </label></center>
|
477 |
-
|
478 |
-
<br />
|
479 |
-
Even with the free version you still get Premum Support.
|
480 |
-
|
481 |
-
<br /><br />
|
482 |
-
<center><a target='_blank' href="https://wpplugin.org/email-support/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
|
483 |
-
<br />
|
484 |
-
|
485 |
-
|
486 |
-
</div>
|
487 |
-
|
488 |
-
<br /><br />
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
493 |
Quick Links
|
494 |
</div>
|
@@ -513,8 +484,6 @@ Even with the free version you still get Premum Support.
|
|
513 |
|
514 |
<center><a target='_blank' href="https://wordpress.org/plugins/wp-ecommerce-paypal/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Leave a Review</a></center>
|
515 |
<br />
|
516 |
-
<center><a target='_blank' href="https://wpplugin.org/donate/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Donate</a></center>
|
517 |
-
<br />
|
518 |
|
519 |
</div>
|
520 |
|
7 |
Author: Scott Paterson
|
8 |
Author URI: https://wpplugin.org
|
9 |
License: GPL2
|
10 |
+
Version: 1.6.3
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014-2015 Scott Paterson
|
51 |
<script type="text/javascript">
|
52 |
function wpecpp_InsertShortcode(){
|
53 |
|
54 |
+
var wpecpp_scname = document.getElementById("wpecpp_scname").value;
|
55 |
+
var wpecpp_scprice = document.getElementById("wpecpp_scprice").value;
|
56 |
+
var wpecpp_alignmentc = document.getElementById("wpecpp_alignment");
|
57 |
+
var wpecpp_alignmentb = wpecpp_alignmentc.options[wpecpp_alignmentc.selectedIndex].value;
|
58 |
|
59 |
+
if(!wpecpp_scname.match(/\S/)) { alert("Item Name is required."); return false; }
|
60 |
+
if(!wpecpp_scprice.match(/\S/)) { alert("Item Price is required."); return false; }
|
61 |
+
if(wpecpp_alignmentb == "none") { var wpecpp_alignment = ""; } else { var wpecpp_alignment = ' align="' + wpecpp_alignmentb + '"'; };
|
62 |
|
63 |
+
document.getElementById("wpecpp_scname").value = "";
|
64 |
+
document.getElementById("wpecpp_scprice").value = "";
|
65 |
+
wpecpp_alignmentc.selectedIndex = null;
|
66 |
|
67 |
+
window.send_to_editor('[wpecpp name="' + wpecpp_scname + '" price="' + wpecpp_scprice + '"' + wpecpp_alignment + ']');
|
68 |
}
|
69 |
</script>
|
70 |
|
75 |
|
76 |
<table><tr><td>
|
77 |
|
78 |
+
Item Name: </td><td><input type="text" name="wpecpp_scname" id="wpecpp_scname" value="">The name of the item</td><td></td></tr><tr><td>
|
79 |
+
Item Price: </td><td><input type="text" name="wpecpp_scprice" id="wpecpp_scprice" value=""> Example format: 6.99</td><td></td></tr><tr><td>
|
80 |
+
Alignment: </td><td><select name="wpecpp_alignment" id="wpecpp_alignment"><option value="none"></option><option value="left">Left</option><option value="center">Center</option><option value="right">Right</option></select>
|
81 |
Optional</td><td></td></tr><tr><td>
|
82 |
|
83 |
</td></tr><tr><td>
|
102 |
|
103 |
|
104 |
// plugin functions
|
|
|
105 |
|
106 |
+
register_activation_hook( __FILE__, "wpecpp_activate" );
|
107 |
+
register_deactivation_hook( __FILE__, "wpecpp_deactivate" );
|
108 |
+
register_uninstall_hook( __FILE__, "wpecpp_uninstall" );
|
|
|
109 |
|
110 |
+
function wpecpp_activate() {
|
111 |
|
112 |
$wpecpp_settingsoptions = array(
|
113 |
'currency' => '25',
|
129 |
'showname' => '2',
|
130 |
);
|
131 |
|
|
|
132 |
add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
|
133 |
+
|
134 |
}
|
135 |
+
|
136 |
+
|
137 |
function wpecpp_deactivate() {
|
138 |
delete_option("wpecpp_my_plugin_notice_shown");
|
139 |
}
|
140 |
+
|
141 |
function wpecpp_uninstall() {
|
142 |
}
|
|
|
|
|
143 |
|
144 |
|
145 |
|
255 |
Usage
|
256 |
</div><div style="background-color:#fff;border: 1px solid #E5E5E5;padding:5px;"><br />
|
257 |
|
258 |
+
In a page or post editor you will see a new button called "Easy PayPal Button" located above the text area beside the "Add Media" button. By using this you can
|
259 |
+
create shortcodes which will show up as Buy Now button on your site.
|
|
|
260 |
<br /><br />
|
|
|
|
|
261 |
|
|
|
262 |
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.
|
263 |
|
264 |
|
436 |
<br />
|
437 |
|
438 |
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
439 |
+
Easy PayPal Button Pro
|
440 |
</div>
|
441 |
|
442 |
<div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;">
|
445 |
<center><label style="font-size:14pt;">With the Pro version you'll <br /> be able to: </label></center>
|
446 |
|
447 |
<br />
|
448 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Charge Tax & Shipping <br />
|
|
|
|
|
|
|
|
|
|
|
449 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
|
450 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Discounts <br />
|
451 |
+
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Dropdown Menus<br />
|
452 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
|
453 |
<div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Further Plugin Development <br />
|
454 |
|
455 |
<br />
|
456 |
+
<center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Learn More</a></center>
|
457 |
<br />
|
458 |
</div>
|
459 |
|
460 |
<br /><br />
|
461 |
|
462 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
<div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
|
464 |
Quick Links
|
465 |
</div>
|
484 |
|
485 |
<center><a target='_blank' href="https://wordpress.org/plugins/wp-ecommerce-paypal/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Leave a Review</a></center>
|
486 |
<br />
|
|
|
|
|
487 |
|
488 |
</div>
|
489 |
|