WordPress Simple PayPal Shopping Cart - Version 3.8.9

Version Description

uncommitted =

  • WP Super Cache workaround - http://www.tipsandtricks-hq.com/ecommerce/wp-shopping-cart-and-wp-super-cache-workaround-334
  • Added a new shortcode argument to specify a SKU number for your product.
  • Fixed a few debug warnings/notices
Download this release

Release Info

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

Code changes from version 3.8.8 to 3.8.9

languages/WSPSC-it_IT.mo ADDED
Binary file
languages/WSPSC-it_IT.po ADDED
@@ -0,0 +1,392 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WSPSC v2.8.9\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-03-16 21:49+0100\n"
6
+ "PO-Revision-Date: 2013-11-04 11:46+0100\n"
7
+ "Language-Team: Ruhul Amin\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Poedit-KeywordsList: _e;__\n"
12
+ "X-Poedit-Basepath: .\n"
13
+ "Last-Translator: \n"
14
+ "Language: en_US\n"
15
+ "X-Generator: Poedit 1.5.7\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../wp_shopping_cart.php:33
19
+ msgid "Your Shopping Cart"
20
+ msgstr "Il tuo Carrello della spesa"
21
+
22
+ #: ../wp_shopping_cart.php:34
23
+ msgid "Your cart is empty"
24
+ msgstr "Il tuo carrello è vuoto"
25
+
26
+ #: ../wp_shopping_cart.php:140
27
+ msgid ""
28
+ "Shopping Cart Configuration Error! You must specify a value in the 'Checkout "
29
+ "Page URL' field for the automatic redirection feature to work!"
30
+ msgstr ""
31
+ "Errore di configurazione Carrello! È necessario specificare un valore nel "
32
+ "campo 'URL della pagina Carrello' per la funzione di reindirizzamento "
33
+ "automatico per lavorare correttamente!"
34
+
35
+ #: ../wp_shopping_cart.php:197
36
+ msgid "Visit The Shop"
37
+ msgstr "Visita lo Shop"
38
+
39
+ #: ../wp_shopping_cart.php:209 ../wp_shopping_cart.php:606
40
+ msgid "USD"
41
+ msgstr "EUR"
42
+
43
+ #: ../wp_shopping_cart.php:213 ../wp_shopping_cart.php:609
44
+ msgid "$"
45
+ msgstr "$"
46
+
47
+ #: ../wp_shopping_cart.php:242
48
+ msgid "Cart"
49
+ msgstr "Carrello"
50
+
51
+ #: ../wp_shopping_cart.php:251
52
+ msgid "Hit enter to submit new Quantity."
53
+ msgstr "Premere Invio per presentare nuovi pezzi."
54
+
55
+ #: ../wp_shopping_cart.php:262
56
+ msgid "Item Name"
57
+ msgstr "Nome Oggetto"
58
+
59
+ #: ../wp_shopping_cart.php:262
60
+ msgid "Quantity"
61
+ msgstr "Quantità"
62
+
63
+ #: ../wp_shopping_cart.php:262
64
+ msgid "Price"
65
+ msgstr "Prezzo"
66
+
67
+ #: ../wp_shopping_cart.php:299
68
+ msgid "Remove"
69
+ msgstr "Rimuovi"
70
+
71
+ #: ../wp_shopping_cart.php:329
72
+ msgid "Subtotal"
73
+ msgstr "Subtotale"
74
+
75
+ #: ../wp_shopping_cart.php:330
76
+ msgid "Shipping"
77
+ msgstr "Spedizione"
78
+
79
+ #: ../wp_shopping_cart.php:334
80
+ msgid "Total"
81
+ msgstr "Totale"
82
+
83
+ #: ../wp_shopping_cart.php:339
84
+ msgid "paypal_checkout_EN.png"
85
+ msgstr "paypal_checkout_EN.png"
86
+
87
+ #: ../wp_shopping_cart.php:339
88
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
89
+ msgstr "Make payments with PayPal - it\\'s fast, free and secure!"
90
+
91
+ #: ../wp_shopping_cart.php:387 ../wp_shopping_cart.php:469
92
+ #: ../wp_shopping_cart.php:528 ../wp_shopping_cart.php:534
93
+ #: ../wp_shopping_cart.php:622
94
+ msgid "Add to Cart"
95
+ msgstr "Aggiungi al carrello"
96
+
97
+ #: ../wp_shopping_cart.php:602
98
+ msgid "Options Updated!"
99
+ msgstr "Opzioni aggiornate!"
100
+
101
+ #: ../wp_shopping_cart.php:662
102
+ msgid "Simple Paypal Shopping Cart Settings"
103
+ msgstr "Impostazioni Carrello Paypal Semplice"
104
+
105
+ #: ../wp_shopping_cart.php:664
106
+ msgid "For information, updates and detailed documentation, please visit:"
107
+ msgstr "Per informazioni, per favore visitare il sito:"
108
+
109
+ #: ../wp_shopping_cart.php:668
110
+ msgid "Usage:"
111
+ msgstr "Istruzioni:"
112
+
113
+ #: ../wp_shopping_cart.php:670
114
+ msgid "1. To add the 'Add to Cart' button simply add the trigger text"
115
+ msgstr "1. Aggiungi il bottone 'Aggiungi al Carrello'"
116
+
117
+ #: ../wp_shopping_cart.php:670
118
+ msgid "PRODUCT-NAME"
119
+ msgstr "PRODOTTO-NOME"
120
+
121
+ #: ../wp_shopping_cart.php:670
122
+ msgid "PRODUCT-PRICE"
123
+ msgstr "PRODOTTO-PREZZO"
124
+
125
+ #: ../wp_shopping_cart.php:670
126
+ msgid ""
127
+ "to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-"
128
+ "PRICE with the actual name and price. For example: [wp_cart:Test Product:"
129
+ "price:15.00:end]"
130
+ msgstr ""
131
+ "ad un articolo od a una pagina accanto al prodotto. Sostituire PRODOTTO-NOME "
132
+ "e di PRODOTTO-PREZZO con il nome e prezzo effettivo. Per esempio: [wp_cart: "
133
+ "Test di prodotto: Prezzo: 15.00:fine]"
134
+
135
+ #: ../wp_shopping_cart.php:671
136
+ msgid ""
137
+ "2. To add the shopping cart to a post or page (eg. checkout page) simply add "
138
+ "the shortcode"
139
+ msgstr ""
140
+ "2. Per aggiungere il carrello di un articolo od una pagina (es. checkout "
141
+ "pagina) semplicemente aggiungere il shortcode"
142
+
143
+ #: ../wp_shopping_cart.php:671
144
+ msgid ""
145
+ "to a post or page or use the sidebar widget to add the shopping cart to the "
146
+ "sidebar."
147
+ msgstr ""
148
+ "a un articolo od una pagina oppure utilizzare il widget sidebar per "
149
+ "aggiungere il carrello per la sidebar."
150
+
151
+ #: ../wp_shopping_cart.php:679
152
+ msgid "PayPal and Shopping Cart Settings"
153
+ msgstr "Impostazioni Carrello PayPal"
154
+
155
+ #: ../wp_shopping_cart.php:685
156
+ msgid "Paypal Email Address"
157
+ msgstr "Indirizzo Email Paypal"
158
+
159
+ #: ../wp_shopping_cart.php:689
160
+ msgid "Shopping Cart title"
161
+ msgstr "Titolo Shop"
162
+
163
+ #: ../wp_shopping_cart.php:693
164
+ msgid "Text/Image to Show When Cart Empty"
165
+ msgstr "Testo/Immagine quando il carrello è vuoto"
166
+
167
+ #: ../wp_shopping_cart.php:694
168
+ msgid ""
169
+ "You can either enter plain text or the URL of an image that you want to show "
170
+ "when the shopping cart is empty"
171
+ msgstr ""
172
+ "È possibile inserire testo o l'URL di un'immagine che si desidera "
173
+ "visualizzare quando il carrello è vuoto"
174
+
175
+ #: ../wp_shopping_cart.php:697
176
+ msgid "Currency"
177
+ msgstr "Valuta"
178
+
179
+ #: ../wp_shopping_cart.php:698 ../wp_shopping_cart.php:702
180
+ #: ../wp_shopping_cart.php:728
181
+ msgid "e.g."
182
+ msgstr "es."
183
+
184
+ #: ../wp_shopping_cart.php:701
185
+ msgid "Currency Symbol"
186
+ msgstr "Simbolo Valuta"
187
+
188
+ #: ../wp_shopping_cart.php:707
189
+ msgid "Base Shipping Cost"
190
+ msgstr "Costo Spedizione di base"
191
+
192
+ #: ../wp_shopping_cart.php:708
193
+ msgid ""
194
+ "This is the base shipping cost that will be added to the total of individual "
195
+ "products shipping cost. Put 0 if you do not want to charge shipping cost or "
196
+ "use base shipping cost."
197
+ msgstr ""
198
+ "Questo è il costo di trasporto di base che verrà aggiunto al totale dei "
199
+ "singoli prodotti costo di trasporto. Mettere 0 se non si vuole far pagare il "
200
+ "costo di trasporto o l'uso di costo di trasporto di base."
201
+
202
+ #: ../wp_shopping_cart.php:708
203
+ msgid "Learn More on Shipping Calculation"
204
+ msgstr "Per saperne di più sul calcolo di trasporto"
205
+
206
+ #: ../wp_shopping_cart.php:712
207
+ msgid "Free Shipping for Orders Over"
208
+ msgstr "Spedizione gratuita per ordini superiori"
209
+
210
+ #: ../wp_shopping_cart.php:713
211
+ msgid ""
212
+ "When a customer orders more than this amount he/she will get free shipping. "
213
+ "Leave empty if you do not want to use it."
214
+ msgstr ""
215
+ "Quando un cliente ordina più di questo importo otterrà la spedizione "
216
+ "gratuita. Lascia vuoto se non si desidera utilizzarlo."
217
+
218
+ #: ../wp_shopping_cart.php:717
219
+ msgid "Must Collect Shipping Address on PayPal"
220
+ msgstr "Deve raccogliere indirizzo di spedizione su PayPal"
221
+
222
+ #: ../wp_shopping_cart.php:718
223
+ msgid ""
224
+ "If checked the customer will be forced to enter a shipping address on PayPal "
225
+ "when checking out."
226
+ msgstr ""
227
+ "Se selezionato il cliente sarà costretto a inserire un indirizzo di "
228
+ "spedizione su PayPal al momento del check out."
229
+
230
+ #: ../wp_shopping_cart.php:722
231
+ msgid "Use PayPal Profile Based Shipping"
232
+ msgstr "Utilizzare Profilo di spedizione base di PayPal "
233
+
234
+ #: ../wp_shopping_cart.php:723
235
+ msgid "Check this if you want to use"
236
+ msgstr "Selezionare questa se si desidera utilizzare"
237
+
238
+ #: ../wp_shopping_cart.php:723
239
+ msgid "PayPal profile based shipping"
240
+ msgstr "Spedizione basata sul profilo PayPal"
241
+
242
+ #: ../wp_shopping_cart.php:723
243
+ msgid ""
244
+ "Using this will ignore any other shipping options that you have specified in "
245
+ "this plugin."
246
+ msgstr ""
247
+ "L'utilizzo di questo ignorerà le altre opzioni di spedizione che avete "
248
+ "specificato in questo plugin."
249
+
250
+ #: ../wp_shopping_cart.php:727
251
+ msgid "Add to Cart button text or Image"
252
+ msgstr "Testo del pulsante e/o immagine Aggiungi al Carrello"
253
+
254
+ #: ../wp_shopping_cart.php:728
255
+ msgid ""
256
+ "To use a customized image as the button simply enter the URL of the image "
257
+ "file."
258
+ msgstr ""
259
+ "Per utilizzare un'immagine personalizzata come il pulsante è sufficiente "
260
+ "inserire l'URL del file di immagine."
261
+
262
+ #: ../wp_shopping_cart.php:732
263
+ msgid "Return URL"
264
+ msgstr "URL ritorno"
265
+
266
+ #: ../wp_shopping_cart.php:733
267
+ msgid ""
268
+ "This is the URL the customer will be redirected to after a successful payment"
269
+ msgstr ""
270
+ "Questo è l'URL del cliente che verrà reindirizzato dopo un pagamento di "
271
+ "successo"
272
+
273
+ #: ../wp_shopping_cart.php:737
274
+ msgid "Products Page URL"
275
+ msgstr "URL Pagina Prodotti"
276
+
277
+ #: ../wp_shopping_cart.php:738
278
+ msgid ""
279
+ "This is the URL of your products page if you have any. If used, the shopping "
280
+ "cart widget will display a link to this page when cart is empty"
281
+ msgstr ""
282
+ "Questo è l'URL della pagina di prodotti, se ne avete. Se utilizzato, il "
283
+ "widget carrello della spesa verrà visualizzato un link a questa pagina, "
284
+ "quando è vuoto"
285
+
286
+ #: ../wp_shopping_cart.php:742
287
+ msgid "Automatic redirection to checkout page"
288
+ msgstr "Reindirizzamento automatico alla pagina di checkout"
289
+
290
+ #: ../wp_shopping_cart.php:744
291
+ msgid "Checkout Page URL"
292
+ msgstr "URL Pagina Checkout "
293
+
294
+ #: ../wp_shopping_cart.php:745
295
+ msgid ""
296
+ "If checked the visitor will be redirected to the Checkout page after a "
297
+ "product is added to the cart. You must enter a URL in the Checkout Page URL "
298
+ "field for this to work."
299
+ msgstr ""
300
+ "Se selezionato il visitatore verrà reindirizzato alla pagina di checkout "
301
+ "dopo che un prodotto viene aggiunto al carrello. È necessario immettere un "
302
+ "URL nel campo URL pagina Checkout per questo al lavoro."
303
+
304
+ #: ../wp_shopping_cart.php:749
305
+ msgid "Reset Cart After Redirection to Return Page"
306
+ msgstr "Ripristinare Carrello Dopo reindirizzamento alla pagina di ritorno"
307
+
308
+ #: ../wp_shopping_cart.php:751
309
+ msgid ""
310
+ "If checked the shopping cart will be reset when the customer lands on the "
311
+ "return URL (Thank You) page."
312
+ msgstr ""
313
+ "Se selezionata verrà ripristinato il carrello della spesa, quando le i "
314
+ "clienti ritorneranno sulla pagina URL di ritorno (grazie per l'acquisto)."
315
+
316
+ #: ../wp_shopping_cart.php:758
317
+ msgid "Hide Shopping Cart Image"
318
+ msgstr "Nascondi Immagine Carrello"
319
+
320
+ #: ../wp_shopping_cart.php:759
321
+ msgid "If ticked the shopping cart image will not be shown."
322
+ msgstr "Se selezionato non verrà mostrato l 'immagine del carrello."
323
+
324
+ #: ../wp_shopping_cart.php:765
325
+ msgid "Use WP Affiliate Platform"
326
+ msgstr "Utilizza Piattaforma Affiliazione WP"
327
+
328
+ #: ../wp_shopping_cart.php:767
329
+ msgid "Check this if using with the"
330
+ msgstr "Controllare questo se si utilizza con il"
331
+
332
+ #: ../wp_shopping_cart.php:767
333
+ msgid ""
334
+ "This plugin lets you run your own affiliate campaign/program and allows you "
335
+ "to reward (pay commission) your affiliates for referred sales"
336
+ msgstr ""
337
+ "Questo plugin consente di eseguire la propria campagna / programma di "
338
+ "affiliazione e ti permette di premiare (pagare le commissioni) i tuoi "
339
+ "affiliati per le vendite di cui"
340
+
341
+ #: ../wp_shopping_cart.php:772
342
+ msgid "Update Options »"
343
+ msgstr "Aggiorna opzioni »"
344
+
345
+ #: ../wp_shopping_cart.php:776
346
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
347
+ msgstr "Ti piace il Plugin Shop Paypal?"
348
+
349
+ #: ../wp_shopping_cart.php:776
350
+ msgid "Give it a good rating"
351
+ msgstr "Dategli un buon rating"
352
+
353
+ #: ../wp_shopping_cart.php:781
354
+ msgid "WP Paypal Shopping Cart Options"
355
+ msgstr "Opzioni Carrello della Spesa WP Paypal"
356
+
357
+ #: ../wp_shopping_cart.php:791 ../wp_shopping_cart.php:819
358
+ #: ../wp_shopping_cart.php:820
359
+ msgid "WP Paypal Shopping Cart"
360
+ msgstr "Carrello Spesa WP Paypal"
361
+
362
+ #: ../wp_shopping_cart.php:791
363
+ msgid "WP Shopping Cart"
364
+ msgstr "WP Carrello Spesa"
365
+
366
+ #: ../wp_shopping_cart.php:799
367
+ msgid "Shopping Cart"
368
+ msgstr "Carrello della Spesa"
369
+
370
+ #: ../wp_shopping_cart.php:811
371
+ msgid "Set the Plugin Settings from the Settings menu"
372
+ msgstr "Impostare le impostazioni del plugin dal menu Impostazioni"
373
+
374
+ #: ../wp_shopping_cart.php:818
375
+ msgid "Display WP Paypal Shopping Cart."
376
+ msgstr "Visualizzare WP Carrello PayPal."
377
+
378
+ #: ../wp_shopping_cart.php:832
379
+ msgid "Settings"
380
+ msgstr "Impostazioni"
381
+
382
+ #~ msgid "show-wp-shopping-cart"
383
+ #~ msgstr "show-wp-shopping-cart"
384
+
385
+ #~ msgid ""
386
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
387
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
388
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
389
+ #~ msgstr ""
390
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
391
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
392
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Ruhul Amin, Tips and Tricks HQ
3
  Donate link: http://www.tipsandtricks-hq.com
4
  Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop
5
  Requires at least: 3.0
6
- Tested up to: 3.7
7
- Stable tag: 3.8.8
8
  License: GPLv2 or later
9
 
10
  Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
@@ -44,6 +44,8 @@ or
44
  * Ability to configure discount coupons.
45
  * You can create coupons and give to your customers. When they use coupons during the checkout they will receive a discount.
46
  * Compatible with WordPress Multi-site Installation.
 
 
47
  * and more...
48
 
49
  = Note =
@@ -121,6 +123,12 @@ None
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
124
  = 3.8.8 =
125
  - Added a discount coupon feature to the shopping cart. You can now configure discount coupon via the Simple cart settings -> Coupon/Discount menu
126
  - View link now shows the order details
3
  Donate link: http://www.tipsandtricks-hq.com
4
  Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop
5
  Requires at least: 3.0
6
+ Tested up to: 3.7.1
7
+ Stable tag: 3.8.9
8
  License: GPLv2 or later
9
 
10
  Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
44
  * Ability to configure discount coupons.
45
  * You can create coupons and give to your customers. When they use coupons during the checkout they will receive a discount.
46
  * Compatible with WordPress Multi-site Installation.
47
+ * Ability to specify SKU (item number) for each of your products in the shortcode.
48
+ * Can be translated into any language.
49
  * and more...
50
 
51
  = Note =
123
 
124
  == Changelog ==
125
 
126
+ = 3.8.9 uncommitted =
127
+
128
+ - WP Super Cache workaround - http://www.tipsandtricks-hq.com/ecommerce/wp-shopping-cart-and-wp-super-cache-workaround-334
129
+ - Added a new shortcode argument to specify a SKU number for your product.
130
+ - Fixed a few debug warnings/notices
131
+
132
  = 3.8.8 =
133
  - Added a discount coupon feature to the shopping cart. You can now configure discount coupon via the Simple cart settings -> Coupon/Discount menu
134
  - View link now shows the order details
wp_shopping_cart.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Simple Paypal Shopping cart
4
- Version: v3.8.8
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
@@ -12,7 +12,7 @@ if(!isset($_SESSION)){
12
  session_start();
13
  }
14
 
15
- define('WP_CART_VERSION', '3.8.8');
16
  define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
17
  define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
18
  define('WP_CART_URL', plugins_url('',__FILE__));
@@ -35,6 +35,7 @@ function always_show_cart_handler($atts)
35
 
36
  function show_wp_shopping_cart_handler()
37
  {
 
38
  if (cart_not_empty())
39
  {
40
  $output = print_wp_shopping_cart();
@@ -90,10 +91,11 @@ function wpspc_cart_actions_handler()
90
  {
91
  unset($_SESSION['wpspsc_cart_action_msg']);
92
  if (isset($_POST['addcart']))
93
- {
94
- $domain_url = $_SERVER['SERVER_NAME'];
95
- $cookie_domain = str_replace("www","",$domain_url);
96
- setcookie("cart_in_use","true",time()+21600,"/",$cookie_domain); //useful to not serve cached page when using with a caching plugin
 
97
 
98
  //sanitize data
99
  $_POST['product'] = strip_tags($_POST['product']);//for PHP5.2 use filter_var($_POST['product'], FILTER_SANITIZE_STRING);
@@ -236,6 +238,7 @@ function wpspc_cart_actions_handler()
236
 
237
  function print_wp_shopping_cart()
238
  {
 
239
  if (!cart_not_empty())
240
  {
241
  $empty_cart_text = get_option('wp_cart_empty_text');
@@ -317,7 +320,8 @@ function print_wp_shopping_cart()
317
  <tr>
318
  <th style="text-align: left">'.(__("Item Name", "WSPSC")).'</th><th>'.(__("Quantity", "WSPSC")).'</th><th>'.(__("Price", "WSPSC")).'</th><th></th>
319
  </tr>';
320
-
 
321
  foreach ($_SESSION['simpleCart'] as $item)
322
  {
323
  $total += $item['price'] * $item['quantity'];
@@ -329,10 +333,6 @@ function print_wp_shopping_cart()
329
  $baseShipping = get_option('cart_base_shipping_cost');
330
  $postage_cost = $item_total_shipping + $baseShipping;
331
  }
332
- else
333
- {
334
- $postage_cost = 0;
335
- }
336
 
337
  $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
338
  if (!empty($cart_free_shipping_threshold) && $total > $cart_free_shipping_threshold)
@@ -359,7 +359,7 @@ function print_wp_shopping_cart()
359
  <input type=\"hidden\" name=\"item_name_$count\" value=\"".$item['name']."\" />
360
  <input type=\"hidden\" name=\"amount_$count\" value='".wpspsc_number_format_price($item['price'])."' />
361
  <input type=\"hidden\" name=\"quantity_$count\" value=\"".$item['quantity']."\" />
362
- <input type='hidden' name='item_number' value='".$item['item_number']."' />
363
  ";
364
  $count++;
365
  }
@@ -665,7 +665,10 @@ function print_wp_cart_button_for_product($name, $price, $shipping=0, $var1='',
665
  }
666
  $replacement .= '<input type="hidden" name="product" value="'.$name.'" /><input type="hidden" name="price" value="'.$price.'" /><input type="hidden" name="shipping" value="'.$shipping.'" /><input type="hidden" name="addcart" value="1" /><input type="hidden" name="cartLink" value="'.cart_current_page_url().'" />';
667
  $replacement .= '<input type="hidden" name="product_tmp" value="'.$name.'" />';
668
- if($atts['file_url']){
 
 
 
669
  $file_url = $atts['file_url'];
670
  $file_url = base64_encode($file_url);
671
  $replacement .= '<input type="hidden" name="file_url" value="'.$file_url.'" />';
1
  <?php
2
  /*
3
  Plugin Name: WP Simple Paypal Shopping cart
4
+ Version: v3.8.9
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
12
  session_start();
13
  }
14
 
15
+ define('WP_CART_VERSION', '3.8.9');
16
  define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
17
  define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
18
  define('WP_CART_URL', plugins_url('',__FILE__));
35
 
36
  function show_wp_shopping_cart_handler()
37
  {
38
+ $output = "";
39
  if (cart_not_empty())
40
  {
41
  $output = print_wp_shopping_cart();
91
  {
92
  unset($_SESSION['wpspsc_cart_action_msg']);
93
  if (isset($_POST['addcart']))
94
+ {
95
+ setcookie("cart_in_use","true",time()+21600,"/",COOKIE_DOMAIN); //useful to not serve cached page when using with a caching plugin
96
+ if (function_exists('wp_cache_serve_cache_file')){//WP Super cache workaround
97
+ setcookie("comment_author_","wp_cart",time()+21600,"/",COOKIE_DOMAIN);
98
+ }
99
 
100
  //sanitize data
101
  $_POST['product'] = strip_tags($_POST['product']);//for PHP5.2 use filter_var($_POST['product'], FILTER_SANITIZE_STRING);
238
 
239
  function print_wp_shopping_cart()
240
  {
241
+ $output = "";
242
  if (!cart_not_empty())
243
  {
244
  $empty_cart_text = get_option('wp_cart_empty_text');
320
  <tr>
321
  <th style="text-align: left">'.(__("Item Name", "WSPSC")).'</th><th>'.(__("Quantity", "WSPSC")).'</th><th>'.(__("Price", "WSPSC")).'</th><th></th>
322
  </tr>';
323
+ $item_total_shipping = 0;
324
+ $postage_cost = 0;
325
  foreach ($_SESSION['simpleCart'] as $item)
326
  {
327
  $total += $item['price'] * $item['quantity'];
333
  $baseShipping = get_option('cart_base_shipping_cost');
334
  $postage_cost = $item_total_shipping + $baseShipping;
335
  }
 
 
 
 
336
 
337
  $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
338
  if (!empty($cart_free_shipping_threshold) && $total > $cart_free_shipping_threshold)
359
  <input type=\"hidden\" name=\"item_name_$count\" value=\"".$item['name']."\" />
360
  <input type=\"hidden\" name=\"amount_$count\" value='".wpspsc_number_format_price($item['price'])."' />
361
  <input type=\"hidden\" name=\"quantity_$count\" value=\"".$item['quantity']."\" />
362
+ <input type='hidden' name='item_number_$count' value='".$item['item_number']."' />
363
  ";
364
  $count++;
365
  }
665
  }
666
  $replacement .= '<input type="hidden" name="product" value="'.$name.'" /><input type="hidden" name="price" value="'.$price.'" /><input type="hidden" name="shipping" value="'.$shipping.'" /><input type="hidden" name="addcart" value="1" /><input type="hidden" name="cartLink" value="'.cart_current_page_url().'" />';
667
  $replacement .= '<input type="hidden" name="product_tmp" value="'.$name.'" />';
668
+ isset($atts['item_number'])?$item_num = $atts['item_number']: $item_num = '';
669
+ $replacement .= '<input type="hidden" name="item_number" value="'.$item_num.'" />';
670
+
671
+ if(isset($atts['file_url'])){
672
  $file_url = $atts['file_url'];
673
  $file_url = base64_encode($file_url);
674
  $replacement .= '<input type="hidden" name="file_url" value="'.$file_url.'" />';
wp_shopping_cart_misc_functions.php CHANGED
@@ -163,7 +163,7 @@ function wpspc_run_activation()
163
  add_option('wpspc_buyer_from_email', $from_email_address);
164
  $buyer_email_subj = "Thank you for the purchase";
165
  add_option('wpspc_buyer_email_subj', $buyer_email_subj);
166
- $email_body .= "Dear {first_name} {last_name}"."\n";
167
  $email_body .= "\nThank you for your purchase! You ordered the following item(s):\n";
168
  $email_body .= "\n{product_details}";
169
  add_option('wpspc_buyer_email_body', $email_body);
163
  add_option('wpspc_buyer_from_email', $from_email_address);
164
  $buyer_email_subj = "Thank you for the purchase";
165
  add_option('wpspc_buyer_email_subj', $buyer_email_subj);
166
+ $email_body = "Dear {first_name} {last_name}"."\n";
167
  $email_body .= "\nThank you for your purchase! You ordered the following item(s):\n";
168
  $email_body .= "\n{product_details}";
169
  add_option('wpspc_buyer_email_body', $email_body);
wp_shopping_cart_settings.php CHANGED
@@ -29,19 +29,22 @@ function wp_cart_options()
29
  $content .= '</h2>';
30
  echo $content;
31
  echo '<div id="poststuff"><div id="post-body">';
32
-
33
- switch ($_GET['action'])
 
 
 
 
 
 
 
 
 
 
 
 
34
  {
35
- case 'email-settings':
36
- show_wp_cart_email_settings_page();
37
- break;
38
- case 'discount-settings':
39
- include_once ('wp_shopping_cart_discounts_menu.php');
40
- show_wp_cart_coupon_discount_settings_page();
41
- break;
42
- default:
43
- show_wp_cart_options_page();
44
- break;
45
  }
46
  echo '</div></div>';
47
  echo '</div>';
29
  $content .= '</h2>';
30
  echo $content;
31
  echo '<div id="poststuff"><div id="post-body">';
32
+ if(isset($_GET['action']))
33
+ {
34
+ switch ($_GET['action'])
35
+ {
36
+ case 'email-settings':
37
+ show_wp_cart_email_settings_page();
38
+ break;
39
+ case 'discount-settings':
40
+ include_once ('wp_shopping_cart_discounts_menu.php');
41
+ show_wp_cart_coupon_discount_settings_page();
42
+ break;
43
+ }
44
+ }
45
+ else
46
  {
47
+ show_wp_cart_options_page();
 
 
 
 
 
 
 
 
 
48
  }
49
  echo '</div></div>';
50
  echo '</div>';
wp_shopping_cart_shortcodes.php CHANGED
@@ -3,6 +3,7 @@
3
  function wp_cart_button_handler($atts){
4
  extract(shortcode_atts(array(
5
  'name' => '',
 
6
  'price' => '',
7
  'shipping' => '0',
8
  'var1' => '',
@@ -23,11 +24,12 @@ function wp_cart_display_product_handler($atts)
23
  {
24
  extract(shortcode_atts(array(
25
  'name' => '',
 
26
  'price' => '',
27
  'shipping' => '0',
28
- 'var1' => '',
29
- 'var2' => '',
30
- 'var3' => '',
31
  'thumbnail' => '',
32
  'description' => '',
33
  ), $atts));
3
  function wp_cart_button_handler($atts){
4
  extract(shortcode_atts(array(
5
  'name' => '',
6
+ 'item_number' =>'',
7
  'price' => '',
8
  'shipping' => '0',
9
  'var1' => '',
24
  {
25
  extract(shortcode_atts(array(
26
  'name' => '',
27
+ 'item_number' =>'',
28
  'price' => '',
29
  'shipping' => '0',
30
+ 'var1' => '',
31
+ 'var2' => '',
32
+ 'var3' => '',
33
  'thumbnail' => '',
34
  'description' => '',
35
  ), $atts));