WordPress Simple PayPal Shopping Cart - Version 2.8.4

Version Description

Download this release

Release Info

Developer mra13
Plugin Icon 128x128 WordPress Simple PayPal Shopping Cart
Version 2.8.4
Comparing to
See all releases

Code changes from version 2.8.1 to 2.8.4

Files changed (2) hide show
  1. readme.txt +2 -2
  2. wp_shopping_cart.php +10 -7
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Ruhul Amin
3
Donate link: http://www.tipsandtricks-hq.com
4
Tags: WordPress shopping cart, Paypal shopping cart, online shop, shopping cart, wordperss ecommerce, sell digital products
5
Requires at least: 2.6
6
- Tested up to: 2.9.2
7
- Stable tag:2.8
8
9
Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
10
3
Donate link: http://www.tipsandtricks-hq.com
4
Tags: WordPress shopping cart, Paypal shopping cart, online shop, shopping cart, wordperss ecommerce, sell digital products
5
Requires at least: 2.6
6
+ Tested up to: 3.0
7
+ Stable tag:2.8.4
8
9
Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
10
wp_shopping_cart.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: WP Simple Paypal Shopping cart
4
- Version: v2.8.1
5
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
Author: Ruhul Amin
7
Author URI: http://www.tipsandtricks-hq.com/
@@ -18,8 +18,10 @@ Description: Simple WordPress Shopping Cart Plugin, very easy to use and great f
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
20
*/
21
-
22
- session_start();
23
24
$siteurl = get_option('siteurl');
25
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
@@ -290,7 +292,7 @@ function print_wp_shopping_cart()
290
<tr><td colspan='2' style='font-weight: bold; text-align: right;'>Total: </td><td style='text-align: center'>".print_payment_currency(($total+$postage_cost), $paypal_symbol, $decimal)."</td><td></td></tr>
291
<tr><td colspan='4'>";
292
293
- $output .= "<form action=\"https://www.paypal.com/us/cgi-bin/webscr\" method=\"post\">$form";
294
if ($count)
295
$output .= '<input type="image" src="'.WP_CART_URL.'/images/paypal_checkout.png" name="submit" class="wp_cart_checkout_button" alt="Make payments with PayPal - it\'s fast, free and secure!" />';
296
@@ -299,6 +301,7 @@ function print_wp_shopping_cart()
299
<input type="hidden" name="currency_code" value="'.$paypal_currency.'" />
300
<input type="hidden" name="cmd" value="_cart" />
301
<input type="hidden" name="upload" value="1" />
302
<input type="hidden" name="mrb" value="3FWGC6LFTMTUG" />';
303
if ($use_affiliate_platform)
304
{
@@ -529,7 +532,7 @@ function cart_current_page_url() {
529
}
530
531
function show_wp_cart_options_page () {
532
- $wp_simple_paypal_shopping_cart_version = "2.8.1";
533
if (isset($_POST['info_update']))
534
{
535
update_option('cart_payment_currency', (string)$_POST["cart_payment_currency"]);
@@ -682,7 +685,7 @@ echo '
682
<table class="form-table">
683
<tr valign="top">
684
<th scope="row">Hide Shopping Cart Image</th>
685
- <td><input type="checkbox" name="wp_shopping_cart_image_hide" value="1" '.$wp_cart_image_hide.' /><br />If ticked the shopping cart image will no be shown.</td>
686
</tr>
687
</table>
688
@@ -739,7 +742,7 @@ function wp_paypal_shopping_cart_widget_control()
739
}
740
741
function widget_wp_paypal_shopping_cart_init()
742
- {
743
$widget_options = array('classname' => 'widget_wp_paypal_shopping_cart', 'description' => __( "Display WP Paypal Shopping Cart.") );
744
wp_register_sidebar_widget('wp_paypal_shopping_cart_widgets', __('WP Paypal Shopping Cart'), 'show_wp_paypal_shopping_cart_widget', $widget_options);
745
wp_register_widget_control('wp_paypal_shopping_cart_widgets', __('WP Paypal Shopping Cart'), 'wp_paypal_shopping_cart_widget_control' );
1
<?php
2
/*
3
Plugin Name: WP Simple Paypal Shopping cart
4
+ Version: v2.8.4
5
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
Author: Ruhul Amin
7
Author URI: http://www.tipsandtricks-hq.com/
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
GNU General Public License for more details.
20
*/
21
+ if(!isset($_SESSION))
22
+ {
23
+ session_start();
24
+ }
25
26
$siteurl = get_option('siteurl');
27
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
292
<tr><td colspan='2' style='font-weight: bold; text-align: right;'>Total: </td><td style='text-align: center'>".print_payment_currency(($total+$postage_cost), $paypal_symbol, $decimal)."</td><td></td></tr>
293
<tr><td colspan='4'>";
294
295
+ $output .= "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">$form";
296
if ($count)
297
$output .= '<input type="image" src="'.WP_CART_URL.'/images/paypal_checkout.png" name="submit" class="wp_cart_checkout_button" alt="Make payments with PayPal - it\'s fast, free and secure!" />';
298
301
<input type="hidden" name="currency_code" value="'.$paypal_currency.'" />
302
<input type="hidden" name="cmd" value="_cart" />
303
<input type="hidden" name="upload" value="1" />
304
+ <input type="hidden" name="rm" value="2" />
305
<input type="hidden" name="mrb" value="3FWGC6LFTMTUG" />';
306
if ($use_affiliate_platform)
307
{
532
}
533
534
function show_wp_cart_options_page () {
535
+ $wp_simple_paypal_shopping_cart_version = "2.8.3";
536
if (isset($_POST['info_update']))
537
{
538
update_option('cart_payment_currency', (string)$_POST["cart_payment_currency"]);
685
<table class="form-table">
686
<tr valign="top">
687
<th scope="row">Hide Shopping Cart Image</th>
688
+ <td><input type="checkbox" name="wp_shopping_cart_image_hide" value="1" '.$wp_cart_image_hide.' /><br />If ticked the shopping cart image will not be shown.</td>
689
</tr>
690
</table>
691
742
}
743
744
function widget_wp_paypal_shopping_cart_init()
745
+ {
746
$widget_options = array('classname' => 'widget_wp_paypal_shopping_cart', 'description' => __( "Display WP Paypal Shopping Cart.") );
747
wp_register_sidebar_widget('wp_paypal_shopping_cart_widgets', __('WP Paypal Shopping Cart'), 'show_wp_paypal_shopping_cart_widget', $widget_options);
748
wp_register_widget_control('wp_paypal_shopping_cart_widgets', __('WP Paypal Shopping Cart'), 'wp_paypal_shopping_cart_widget_control' );