PayPal Buy Now Button - Version 1.6.1

Version Description

Download this release

Release Info

Developer scottpaterson
Plugin Icon 128x128 PayPal Buy Now Button
Version 1.6.1
Comparing to
See all releases

Code changes from version 1.5 to 1.6.1

Files changed (2) hide show
  1. readme.txt +18 -2
  2. wp-ecommerce-paypal.php +62 -19
readme.txt CHANGED
@@ -4,8 +4,8 @@ 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.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -44,6 +44,7 @@ Convert your website to a eCommerce website and start selling your product in ju
44
  > Charge Shipping & Handling per item<br />
45
  > Show Price Beside Button <br />
46
  > Show Name Beside Button <br />
 
47
  > Apply a Fixed Discount per item <br />
48
  > Apply a Discount Rate per item<br />
49
  > Add an Item ID or SKU<br />
@@ -84,6 +85,9 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
84
 
85
  == Changelog ==
86
 
 
 
 
87
  = 1.5 =
88
  * Added ability to align button left, center, or right
89
 
@@ -123,8 +127,20 @@ Yes, there is no limit to the amount you can put on one post / page, or your ent
123
  = 1.0.0 =
124
  * Initial release
125
 
 
 
 
 
 
 
 
 
 
126
  == Upgrade Notice ==
127
 
 
 
 
128
  = 1.5 =
129
  Added ability to align button left, center, or right
130
 
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.1
8
+ Stable tag: 1.6.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
44
  > Charge Shipping & Handling per item<br />
45
  > Show Price Beside Button <br />
46
  > Show Name Beside Button <br />
47
+ > Set a Quantity per item <br />
48
  > Apply a Fixed Discount per item <br />
49
  > Apply a Discount Rate per item<br />
50
  > Add an Item ID or SKU<br />
85
 
86
  == Changelog ==
87
 
88
+ = 1.6 =
89
+ * New Buy Now Button
90
+
91
  = 1.5 =
92
  * Added ability to align button left, center, or right
93
 
127
  = 1.0.0 =
128
  * Initial release
129
 
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
  == Upgrade Notice ==
140
 
141
+ = 1.6 =
142
+ New Buy Now Button
143
+
144
  = 1.5 =
145
  Added ability to align button left, center, or right
146
 
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.5
11
  */
12
 
13
  /* Copyright 2014-2015 Scott Paterson
@@ -29,12 +29,13 @@ Version: 1.5
29
 
30
 
31
 
 
32
 
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() {
@@ -100,14 +101,11 @@ Optional</td><td></td></tr><tr><td>
100
 
101
 
102
 
103
-
104
-
105
  // plugin functions
106
  wpecpp_WPeCommerceLite::init_WPeCommerceLite();
107
 
108
  class wpecpp_WPeCommerceLite {
109
  public static function init_WPeCommerceLite() {
110
- register_activation_hook( __FILE__, array( __CLASS__, "wpecpp_activate" ));
111
  register_deactivation_hook( __FILE__, array( __CLASS__, "wpecpp_deactivate" ));
112
  register_uninstall_hook( __FILE__, array( __CLASS__, "wpecpp_uninstall" ));
113
 
@@ -135,8 +133,6 @@ $wpecpp_settingsoptions = array(
135
 
136
  add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
137
  }
138
- function wpecpp_activate() {
139
- }
140
  function wpecpp_deactivate() {
141
  delete_option("wpecpp_my_plugin_notice_shown");
142
  }
@@ -187,8 +183,8 @@ function wpecpp_plugin_settings_link($links)
187
  {
188
  unset($links['edit']);
189
 
190
- $forum_link = '<a target="_blank" href="https://wordpress.org/support/plugin/wp-ecommerce-paypal">' . __('Support', PTP_LOC) . '</a>';
191
- $premium_link = '<a href="https://wpplugin.org/easy-paypal-button/">' . __('Purchase Premium', PTP_LOC) . '</a>';
192
  array_push($links, $forum_link);
193
  array_push($links, $premium_link);
194
  return $links;
@@ -386,11 +382,14 @@ echo "<b>Button Size and type:</b></td><td valign='top' style='text-align: cente
386
  echo "<input "; if ($value['size'] == "1") { echo "checked='checked'"; } echo " type='radio' name='size' value='1'>Small <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif'></td><td valign='top' style='text-align: center;'>";
387
  echo "<input "; if ($value['size'] == "2") { echo "checked='checked'"; } echo " type='radio' name='size' value='2'>Big <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif'></td><td valign='top' style='text-align: center;'>";
388
  echo "<input "; if ($value['size'] == "3") { echo "checked='checked'"; } echo " type='radio' name='size' value='3'>Big with credit cards <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif'></td><td valign='top' style='text-align: center;'>";
 
 
 
389
 
390
 
391
  echo "</td></tr><tr><td><b>PayPal opens in:</b></td>";
392
- echo "<td><input "; if ($value['opens'] == "1") { echo "checked='checked'"; } echo " type='radio' name='opens' value='1'>Same page</td>";
393
- echo "<td><input "; if ($value['opens'] == "2") { echo "checked='checked'"; } echo " type='radio' name='opens' value='2'>New page</td></tr>";
394
 
395
 
396
 
@@ -460,8 +459,7 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
460
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Apply Discounts <br />
461
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
462
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
463
- <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Priority Support<br />
464
- <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> And Much More<br />
465
 
466
  <br />
467
  <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Upgrade Now</a></center>
@@ -470,6 +468,29 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
470
 
471
  <br /><br />
472
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
474
  &nbsp; Quick Links
475
  </div>
@@ -494,6 +515,8 @@ WPPlugin is an offical PayPal Partner. Various trademarks held by their respecti
494
 
495
  <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>
496
  <br />
 
 
497
 
498
  </div>
499
 
@@ -572,6 +595,7 @@ $language = "da_DK";
572
  $image = "https://www.paypalobjects.com/da_DK/i/btn/btn_buynow_SM.gif";
573
  $imageb = "https://www.paypalobjects.com/da_DK/i/btn/btn_buynow_LG.gif";
574
  $imagecc = "https://www.paypalobjects.com/da_DK/DK/i/btn/btn_buynowCC_LG.gif";
 
575
  } //Danish
576
 
577
  if ($value['language'] == "2") {
@@ -579,6 +603,7 @@ $language = "nl_BE";
579
  $image = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynow_SM.gif";
580
  $imageb = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynow_LG.gif";
581
  $imagecc = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynowCC_LG.gif";
 
582
  } //Dutch
583
 
584
  if ($value['language'] == "3") {
@@ -586,6 +611,7 @@ $language = "EN_US";
586
  $image = "https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif";
587
  $imageb = "https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif";
588
  $imagecc = "https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif";
 
589
  } //English
590
 
591
  if ($value['language'] == "4") {
@@ -593,6 +619,7 @@ $language = "fr_CA";
593
  $image = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynow_SM.gif";
594
  $imageb = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynow_LG.gif";
595
  $imagecc = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynowCC_LG.gif";
 
596
  } //French
597
 
598
  if ($value['language'] == "5") {
@@ -600,6 +627,7 @@ $language = "de_DE";
600
  $image = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynow_SM.gif";
601
  $imageb = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynow_LG.gif";
602
  $imagecc = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynowCC_LG.gif";
 
603
  } //German
604
 
605
  if ($value['language'] == "6") {
@@ -607,6 +635,7 @@ $language = "he_IL";
607
  $image = "https://www.paypalobjects.com/he_IL/i/btn/btn_buynow_SM.gif";
608
  $imageb = "https://www.paypalobjects.com/he_IL/i/btn/btn_buynow_LG.gif";
609
  $imagecc = "https://www.paypalobjects.com/he_IL/IL/i/btn/btn_buynowCC_LG.gif";
 
610
  } //Hebrew
611
 
612
  if ($value['language'] == "7") {
@@ -614,6 +643,7 @@ $language = "it_IT";
614
  $image = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynow_SM.gif";
615
  $imageb = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynow_LG.gif";
616
  $imagecc = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif";
 
617
  } //Italian
618
 
619
  if ($value['language'] == "8") {
@@ -621,6 +651,7 @@ $language = "ja_JP";
621
  $image = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynow_SM.gif";
622
  $imageb = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynow_LG.gif";
623
  $imagecc = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynowCC_LG.gif";
 
624
  } //Japanese
625
 
626
  if ($value['language'] == "9") {
@@ -628,6 +659,7 @@ $language = "no_NO";
628
  $image = "https://www.paypalobjects.com/no_NO/i/btn/btn_buynow_SM.gif";
629
  $imageb = "https://www.paypalobjects.com/no_NO/i/btn/btn_buynow_LG.gif";
630
  $imagecc = "https://www.paypalobjects.com/no_NO/NO/i/btn/btn_buynowCC_LG.gif";
 
631
  } //Norwgian
632
 
633
  if ($value['language'] == "10") {
@@ -635,6 +667,7 @@ $language = "pl_PL";
635
  $image = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynow_SM.gif";
636
  $imageb = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynow_LG.gif";
637
  $imagecc = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynowCC_LG.gif";
 
638
  } //Polish
639
 
640
  if ($value['language'] == "11") {
@@ -642,6 +675,7 @@ $language = "pt_BR";
642
  $image = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynow_SM.gif";
643
  $imageb = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynow_LG.gif";
644
  $imagecc = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynowCC_LG.gif";
 
645
  } //Portuguese
646
 
647
  if ($value['language'] == "12") {
@@ -649,6 +683,7 @@ $language = "ru_RU";
649
  $image = "https://www.paypalobjects.com/ru_RU/i/btn/btn_buynow_SM.gif";
650
  $imageb = "https://www.paypalobjects.com/ru_RU/i/btn/btn_buynow_LG.gif";
651
  $imagecc = "https://www.paypalobjects.com/ru_RU/RU/i/btn/btn_buynowCC_LG.gif";
 
652
  } //Russian
653
 
654
  if ($value['language'] == "13") {
@@ -656,6 +691,7 @@ $language = "es_ES";
656
  $image = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynow_SM.gif";
657
  $imageb = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynow_LG.gif";
658
  $imagecc = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynowCC_LG.gif";
 
659
  } //Spanish
660
 
661
  if ($value['language'] == "14") {
@@ -663,6 +699,7 @@ $language = "sv_SE";
663
  $image = "https://www.paypalobjects.com/sv_SE/i/btn/btn_buynow_SM.gif";
664
  $imageb = "https://www.paypalobjects.com/sv_SE/i/btn/btn_buynow_LG.gif";
665
  $imagecc = "https://www.paypalobjects.com/sv_SE/SE/i/btn/btn_buynowCC_LG.gif";
 
666
  } //Swedish
667
 
668
  if ($value['language'] == "15") {
@@ -670,6 +707,7 @@ $language = "zh_CN";
670
  $image = "https://www.paypalobjects.com/zh_XC/i/btn/btn_buynow_SM.gif";
671
  $imageb = "https://www.paypalobjects.com/zh_XC/i/btn/btn_buynow_LG.gif";
672
  $imagecc = "https://www.paypalobjects.com/zh_XC/C2/i/btn/btn_buynowCC_LG.gif";
 
673
  } //Simplified Chinese - China
674
 
675
  if ($value['language'] == "16") {
@@ -677,6 +715,7 @@ $language = "zh_HK";
677
  $image = "https://www.paypalobjects.com/zh_HK/i/btn/btn_buynow_SM.gif";
678
  $imageb = "https://www.paypalobjects.com/zh_HK/i/btn/btn_buynow_LG.gif";
679
  $imagecc = "https://www.paypalobjects.com/zh_HK/HK/i/btn/btn_buynowCC_LG.gif";
 
680
  } //Traditional Chinese - Hong Kong
681
 
682
  if ($value['language'] == "17") {
@@ -684,6 +723,7 @@ $language = "zh_TW";
684
  $image = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynow_SM.gif";
685
  $imageb = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynow_LG.gif";
686
  $imagecc = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynowCC_LG.gif";
 
687
  } //Traditional Chinese - Taiwan
688
 
689
  if ($value['language'] == "18") {
@@ -691,6 +731,7 @@ $language = "tr_TR";
691
  $image = "https://www.paypalobjects.com/tr_TR/i/btn/btn_buynow_SM.gif";
692
  $imageb = "https://www.paypalobjects.com/tr_TR/i/btn/btn_buynow_LG.gif";
693
  $imagecc = "https://www.paypalobjects.com/tr_TR/TR/i/btn/btn_buynowCC_LG.gif";
 
694
  } //Turkish
695
 
696
  if ($value['language'] == "19") {
@@ -698,17 +739,20 @@ $language = "th_TH";
698
  $image = "https://www.paypalobjects.com/th_TH/i/btn/btn_buynow_SM.gif";
699
  $imageb = "https://www.paypalobjects.com/th_TH/i/btn/btn_buynow_LG.gif";
700
  $imagecc = "https://www.paypalobjects.com/th_TH/TH/i/btn/btn_buynowCC_LG.gif";
 
701
  } //Thai
702
 
703
  if (!empty($atts['size'])) {
704
  if ($atts['size'] == "1") { $img = $image; }
705
  if ($atts['size'] == "2") { $img = $imageb; }
706
  if ($atts['size'] == "3") { $img = $imagecc; }
 
707
  } else {
708
  if ($value['size'] == "1") { $img = $image; }
709
  if ($value['size'] == "2") { $img = $imageb; }
710
  if ($value['size'] == "3") { $img = $imagecc; }
711
  if ($value['size'] == "4") { $img = $value['upload_image']; }
 
712
  }
713
 
714
  // window action
@@ -719,15 +763,15 @@ if ($value['opens'] == "2") { $target = "_blank"; }
719
  if ($value['note'] == "1") { $note = "0"; }
720
  if ($value['note'] == "2") { $note = "1"; }
721
 
722
- // weight unit
723
- if ($value['weight_unit'] == "1") { $weight_unit = "lbs"; }
724
- if ($value['weight_unit'] == "2") { $weight_unit = "kgs"; }
725
-
726
  // alignment
727
  if ($atts['align'] == "left") { $alignment = "style='float: left;'"; }
728
  if ($atts['align'] == "right") { $alignment = "style='float: right;'"; }
729
  if ($atts['align'] == "center") { $alignment = "style='margin-left: auto;margin-right: auto;width:107px'"; }
730
 
 
 
 
 
731
  $output = "";
732
  $output .= "<div $alignment>";
733
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
@@ -739,7 +783,6 @@ $output .= "<input type='hidden' name='amount' value='". $atts['price'] ."' />";
739
  $output .= "<input type='hidden' name='tax' value='". $value['tax'] ."' />";
740
  $output .= "<input type='hidden' name='tax_rate' value='". $value['tax_rate'] ."' />";
741
  $output .= "<input type='hidden' name='weight' value='". $atts['weight'] ."' />";
742
- $output .= "<input type='hidden' name='weight_unit' value='$weight_unit' />";
743
  $output .= "<input type='hidden' name='discount_amount' value='". $atts['discount_amount'] ."' />";
744
  $output .= "<input type='hidden' name='discount_rate' value='". $atts['discount_rate'] ."' />";
745
  $output .= "<input type='hidden' name='cbt' value='". $value['cbt'] ."' />";
7
  Author: Scott Paterson
8
  Author URI: https://wpplugin.org
9
  License: GPL2
10
+ Version: 1.6.1
11
  */
12
 
13
  /* Copyright 2014-2015 Scott Paterson
29
 
30
 
31
 
32
+ global $pagenow;
33
 
34
 
35
+ // add media button for editor page
36
 
37
 
38
+ if ( in_array( $pagenow, array( 'post.php', 'page.php', 'post-new.php', 'post-edit.php' ) ) ) {
 
39
 
40
  add_action('media_buttons', 'wpecpp_add_my_media_button', 20);
41
  function wpecpp_add_my_media_button() {
101
 
102
 
103
 
 
 
104
  // plugin functions
105
  wpecpp_WPeCommerceLite::init_WPeCommerceLite();
106
 
107
  class wpecpp_WPeCommerceLite {
108
  public static function init_WPeCommerceLite() {
 
109
  register_deactivation_hook( __FILE__, array( __CLASS__, "wpecpp_deactivate" ));
110
  register_uninstall_hook( __FILE__, array( __CLASS__, "wpecpp_uninstall" ));
111
 
133
 
134
  add_option("wpecpp_settingsoptions", $wpecpp_settingsoptions);
135
  }
 
 
136
  function wpecpp_deactivate() {
137
  delete_option("wpecpp_my_plugin_notice_shown");
138
  }
183
  {
184
  unset($links['edit']);
185
 
186
+ $forum_link = '<a target="_blank" href="https://wordpress.org/support/plugin/wp-ecommerce-paypal">' . __('Support', 'PTP_LOC') . '</a>';
187
+ $premium_link = '<a href="https://wpplugin.org/easy-paypal-button/">' . __('Purchase Premium', 'PTP_LOC') . '</a>';
188
  array_push($links, $forum_link);
189
  array_push($links, $premium_link);
190
  return $links;
382
  echo "<input "; if ($value['size'] == "1") { echo "checked='checked'"; } echo " type='radio' name='size' value='1'>Small <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif'></td><td valign='top' style='text-align: center;'>";
383
  echo "<input "; if ($value['size'] == "2") { echo "checked='checked'"; } echo " type='radio' name='size' value='2'>Big <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif'></td><td valign='top' style='text-align: center;'>";
384
  echo "<input "; if ($value['size'] == "3") { echo "checked='checked'"; } echo " type='radio' name='size' value='3'>Big with credit cards <br /><img src='https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif'></td><td valign='top' style='text-align: center;'>";
385
+ echo "<input "; if ($value['size'] == "5") { echo "checked='checked'"; } echo " type='radio' name='size' value='5'>Gold (English Only) <br /><img src='https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png'></td><td valign='top' style='text-align: center;'>";
386
+
387
+
388
 
389
 
390
  echo "</td></tr><tr><td><b>PayPal opens in:</b></td>";
391
+ echo "<td><input "; if ($value['opens'] == "1") { echo "checked='checked'"; } echo " type='radio' name='opens' value='1'>Same window</td>";
392
+ echo "<td><input "; if ($value['opens'] == "2") { echo "checked='checked'"; } echo " type='radio' name='opens' value='2'>New window</td></tr>";
393
 
394
 
395
 
459
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Apply Discounts <br />
460
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Add Item ID and SKU<br />
461
  <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Custom Button Image<br />
462
+ <div class="dashicons dashicons-yes" style="margin-bottom: 6px;"></div> Further Plugin Development <br />
 
463
 
464
  <br />
465
  <center><a target='_blank' href="https://wpplugin.org/easy-paypal-button/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Upgrade Now</a></center>
468
 
469
  <br /><br />
470
 
471
+
472
+ <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
473
+ &nbsp; Premium Support
474
+ </div>
475
+
476
+ <div style="background-color:#fff;border: 1px solid #E5E5E5;padding:8px;"><br />
477
+
478
+ <center><label style="font-size:14pt;">Get Personalized Support </label></center>
479
+
480
+ <br />
481
+ Even with the free version you still get Premum Support.
482
+
483
+ <br /><br />
484
+ <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>
485
+ <br />
486
+
487
+
488
+ </div>
489
+
490
+ <br /><br />
491
+
492
+
493
+
494
  <div style="background-color:#333333;padding:8px;color:#eee;font-size:12pt;font-weight:bold;">
495
  &nbsp; Quick Links
496
  </div>
515
 
516
  <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>
517
  <br />
518
+ <center><a target='_blank' href="https://wpplugin.org/donate/" class='button-primary' style='font-size: 17px;line-height: 28px;height: 32px;'>Donate</a></center>
519
+ <br />
520
 
521
  </div>
522
 
595
  $image = "https://www.paypalobjects.com/da_DK/i/btn/btn_buynow_SM.gif";
596
  $imageb = "https://www.paypalobjects.com/da_DK/i/btn/btn_buynow_LG.gif";
597
  $imagecc = "https://www.paypalobjects.com/da_DK/DK/i/btn/btn_buynowCC_LG.gif";
598
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
599
  } //Danish
600
 
601
  if ($value['language'] == "2") {
603
  $image = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynow_SM.gif";
604
  $imageb = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynow_LG.gif";
605
  $imagecc = "https://www.paypalobjects.com/nl_NL/NL/i/btn/btn_buynowCC_LG.gif";
606
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
607
  } //Dutch
608
 
609
  if ($value['language'] == "3") {
611
  $image = "https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif";
612
  $imageb = "https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif";
613
  $imagecc = "https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif";
614
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
615
  } //English
616
 
617
  if ($value['language'] == "4") {
619
  $image = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynow_SM.gif";
620
  $imageb = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynow_LG.gif";
621
  $imagecc = "https://www.paypalobjects.com/fr_CA/i/btn/btn_buynowCC_LG.gif";
622
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
623
  } //French
624
 
625
  if ($value['language'] == "5") {
627
  $image = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynow_SM.gif";
628
  $imageb = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynow_LG.gif";
629
  $imagecc = "https://www.paypalobjects.com/de_DE/DE/i/btn/btn_buynowCC_LG.gif";
630
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
631
  } //German
632
 
633
  if ($value['language'] == "6") {
635
  $image = "https://www.paypalobjects.com/he_IL/i/btn/btn_buynow_SM.gif";
636
  $imageb = "https://www.paypalobjects.com/he_IL/i/btn/btn_buynow_LG.gif";
637
  $imagecc = "https://www.paypalobjects.com/he_IL/IL/i/btn/btn_buynowCC_LG.gif";
638
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
639
  } //Hebrew
640
 
641
  if ($value['language'] == "7") {
643
  $image = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynow_SM.gif";
644
  $imageb = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynow_LG.gif";
645
  $imagecc = "https://www.paypalobjects.com/it_IT/IT/i/btn/btn_buynowCC_LG.gif";
646
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
647
  } //Italian
648
 
649
  if ($value['language'] == "8") {
651
  $image = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynow_SM.gif";
652
  $imageb = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynow_LG.gif";
653
  $imagecc = "https://www.paypalobjects.com/ja_JP/JP/i/btn/btn_buynowCC_LG.gif";
654
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
655
  } //Japanese
656
 
657
  if ($value['language'] == "9") {
659
  $image = "https://www.paypalobjects.com/no_NO/i/btn/btn_buynow_SM.gif";
660
  $imageb = "https://www.paypalobjects.com/no_NO/i/btn/btn_buynow_LG.gif";
661
  $imagecc = "https://www.paypalobjects.com/no_NO/NO/i/btn/btn_buynowCC_LG.gif";
662
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
663
  } //Norwgian
664
 
665
  if ($value['language'] == "10") {
667
  $image = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynow_SM.gif";
668
  $imageb = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynow_LG.gif";
669
  $imagecc = "https://www.paypalobjects.com/pl_PL/PL/i/btn/btn_buynowCC_LG.gif";
670
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
671
  } //Polish
672
 
673
  if ($value['language'] == "11") {
675
  $image = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynow_SM.gif";
676
  $imageb = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynow_LG.gif";
677
  $imagecc = "https://www.paypalobjects.com/pt_PT/PT/i/btn/btn_buynowCC_LG.gif";
678
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
679
  } //Portuguese
680
 
681
  if ($value['language'] == "12") {
683
  $image = "https://www.paypalobjects.com/ru_RU/i/btn/btn_buynow_SM.gif";
684
  $imageb = "https://www.paypalobjects.com/ru_RU/i/btn/btn_buynow_LG.gif";
685
  $imagecc = "https://www.paypalobjects.com/ru_RU/RU/i/btn/btn_buynowCC_LG.gif";
686
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
687
  } //Russian
688
 
689
  if ($value['language'] == "13") {
691
  $image = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynow_SM.gif";
692
  $imageb = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynow_LG.gif";
693
  $imagecc = "https://www.paypalobjects.com/es_ES/ES/i/btn/btn_buynowCC_LG.gif";
694
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
695
  } //Spanish
696
 
697
  if ($value['language'] == "14") {
699
  $image = "https://www.paypalobjects.com/sv_SE/i/btn/btn_buynow_SM.gif";
700
  $imageb = "https://www.paypalobjects.com/sv_SE/i/btn/btn_buynow_LG.gif";
701
  $imagecc = "https://www.paypalobjects.com/sv_SE/SE/i/btn/btn_buynowCC_LG.gif";
702
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
703
  } //Swedish
704
 
705
  if ($value['language'] == "15") {
707
  $image = "https://www.paypalobjects.com/zh_XC/i/btn/btn_buynow_SM.gif";
708
  $imageb = "https://www.paypalobjects.com/zh_XC/i/btn/btn_buynow_LG.gif";
709
  $imagecc = "https://www.paypalobjects.com/zh_XC/C2/i/btn/btn_buynowCC_LG.gif";
710
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
711
  } //Simplified Chinese - China
712
 
713
  if ($value['language'] == "16") {
715
  $image = "https://www.paypalobjects.com/zh_HK/i/btn/btn_buynow_SM.gif";
716
  $imageb = "https://www.paypalobjects.com/zh_HK/i/btn/btn_buynow_LG.gif";
717
  $imagecc = "https://www.paypalobjects.com/zh_HK/HK/i/btn/btn_buynowCC_LG.gif";
718
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
719
  } //Traditional Chinese - Hong Kong
720
 
721
  if ($value['language'] == "17") {
723
  $image = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynow_SM.gif";
724
  $imageb = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynow_LG.gif";
725
  $imagecc = "https://www.paypalobjects.com/zh_TW/TW/i/btn/btn_buynowCC_LG.gif";
726
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
727
  } //Traditional Chinese - Taiwan
728
 
729
  if ($value['language'] == "18") {
731
  $image = "https://www.paypalobjects.com/tr_TR/i/btn/btn_buynow_SM.gif";
732
  $imageb = "https://www.paypalobjects.com/tr_TR/i/btn/btn_buynow_LG.gif";
733
  $imagecc = "https://www.paypalobjects.com/tr_TR/TR/i/btn/btn_buynowCC_LG.gif";
734
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
735
  } //Turkish
736
 
737
  if ($value['language'] == "19") {
739
  $image = "https://www.paypalobjects.com/th_TH/i/btn/btn_buynow_SM.gif";
740
  $imageb = "https://www.paypalobjects.com/th_TH/i/btn/btn_buynow_LG.gif";
741
  $imagecc = "https://www.paypalobjects.com/th_TH/TH/i/btn/btn_buynowCC_LG.gif";
742
+ $imagenew = "https://www.paypalobjects.com/webstatic/en_US/i/buttons/buy-logo-medium.png";
743
  } //Thai
744
 
745
  if (!empty($atts['size'])) {
746
  if ($atts['size'] == "1") { $img = $image; }
747
  if ($atts['size'] == "2") { $img = $imageb; }
748
  if ($atts['size'] == "3") { $img = $imagecc; }
749
+ if ($atts['size'] == "5") { $img = $imagenew; }
750
  } else {
751
  if ($value['size'] == "1") { $img = $image; }
752
  if ($value['size'] == "2") { $img = $imageb; }
753
  if ($value['size'] == "3") { $img = $imagecc; }
754
  if ($value['size'] == "4") { $img = $value['upload_image']; }
755
+ if ($value['size'] == "5") { $img = $imagenew; }
756
  }
757
 
758
  // window action
763
  if ($value['note'] == "1") { $note = "0"; }
764
  if ($value['note'] == "2") { $note = "1"; }
765
 
 
 
 
 
766
  // alignment
767
  if ($atts['align'] == "left") { $alignment = "style='float: left;'"; }
768
  if ($atts['align'] == "right") { $alignment = "style='float: right;'"; }
769
  if ($atts['align'] == "center") { $alignment = "style='margin-left: auto;margin-right: auto;width:107px'"; }
770
 
771
+ if (!isset($alignment)) { $alignment = ""; }
772
+
773
+ if (!isset($note)) { $note = ""; }
774
+
775
  $output = "";
776
  $output .= "<div $alignment>";
777
  $output .= "<form target='$target' action='https://www.$path.com/cgi-bin/webscr' method='post'>";
783
  $output .= "<input type='hidden' name='tax' value='". $value['tax'] ."' />";
784
  $output .= "<input type='hidden' name='tax_rate' value='". $value['tax_rate'] ."' />";
785
  $output .= "<input type='hidden' name='weight' value='". $atts['weight'] ."' />";
 
786
  $output .= "<input type='hidden' name='discount_amount' value='". $atts['discount_amount'] ."' />";
787
  $output .= "<input type='hidden' name='discount_rate' value='". $atts['discount_rate'] ."' />";
788
  $output .= "<input type='hidden' name='cbt' value='". $value['cbt'] ."' />";