WordPress Simple PayPal Shopping Cart - Version 3.1

Version Description

Download this release

Release Info

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

Code changes from version 2.8.4 to 3.1

images/Thumbs.db ADDED
Binary file
images/paypal_checkout_DE.png ADDED
Binary file
images/paypal_checkout_EN.png ADDED
Binary file
languages/WSPSC-de_DE.mo ADDED
Binary file
languages/WSPSC-de_DE.po ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:50+0100\n"
6
+ "PO-Revision-Date: 2011-03-16 22:24+0100\n"
7
+ "Last-Translator: Patrick Skiebe <patrick@skiebe.eu>\n"
8
+ "Language-Team: Patrick Skiebe <patrick@skiebe.eu>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: German\n"
15
+ "X-Poedit-Country: GERMANY\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../wp_shopping_cart.php:33
19
+ msgid "Your Shopping Cart"
20
+ msgstr "Ihr Warenkorb"
21
+
22
+ #: ../wp_shopping_cart.php:34
23
+ msgid "Your cart is empty"
24
+ msgstr "Ihr Warenkorb ist leer"
25
+
26
+ #: ../wp_shopping_cart.php:140
27
+ msgid "Shopping Cart Configuration Error! You must specify a value in the 'Checkout Page URL' field for the automatic redirection feature to work!"
28
+ msgstr "Fehlerhafte Konfiguration des Warenkorbs! Damit die automatische Weiterleitung funktioniert, müssen Sie in dem Feld 'Zur Kasse - Seite' eine URL eintragen."
29
+
30
+ #: ../wp_shopping_cart.php:197
31
+ msgid "Visit The Shop"
32
+ msgstr "Besuchen Sie den Shop"
33
+
34
+ #: ../wp_shopping_cart.php:209
35
+ #: ../wp_shopping_cart.php:606
36
+ msgid "USD"
37
+ msgstr "EUR"
38
+
39
+ #: ../wp_shopping_cart.php:213
40
+ #: ../wp_shopping_cart.php:609
41
+ msgid "$"
42
+ msgstr "€"
43
+
44
+ #: ../wp_shopping_cart.php:242
45
+ msgid "Cart"
46
+ msgstr "Warenkorb"
47
+
48
+ #: ../wp_shopping_cart.php:251
49
+ msgid "Hit enter to submit new Quantity."
50
+ msgstr "Drücken Sie Enter um eine neue Menge festzulegen"
51
+
52
+ #: ../wp_shopping_cart.php:262
53
+ msgid "Item Name"
54
+ msgstr "Artikel"
55
+
56
+ #: ../wp_shopping_cart.php:262
57
+ msgid "Quantity"
58
+ msgstr "Menge"
59
+
60
+ #: ../wp_shopping_cart.php:262
61
+ msgid "Price"
62
+ msgstr "Preis"
63
+
64
+ #: ../wp_shopping_cart.php:299
65
+ msgid "Remove"
66
+ msgstr "Entfernen"
67
+
68
+ #: ../wp_shopping_cart.php:329
69
+ msgid "Subtotal"
70
+ msgstr "Zwischensumme"
71
+
72
+ #: ../wp_shopping_cart.php:330
73
+ msgid "Shipping"
74
+ msgstr "Versand"
75
+
76
+ #: ../wp_shopping_cart.php:334
77
+ msgid "Total"
78
+ msgstr "Gesamtsumme"
79
+
80
+ #: ../wp_shopping_cart.php:339
81
+ msgid "paypal_checkout_EN.png"
82
+ msgstr "paypal_checkout_DE.png"
83
+
84
+ #: ../wp_shopping_cart.php:339
85
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
86
+ msgstr "Zahlen Sie mit PayPal - Es ist schnell, kostenlos und sicher!"
87
+
88
+ #: ../wp_shopping_cart.php:387
89
+ #: ../wp_shopping_cart.php:469
90
+ #: ../wp_shopping_cart.php:528
91
+ #: ../wp_shopping_cart.php:534
92
+ #: ../wp_shopping_cart.php:622
93
+ msgid "Add to Cart"
94
+ msgstr "Zum Warenkorb hinzufügen"
95
+
96
+ #: ../wp_shopping_cart.php:602
97
+ msgid "Options Updated!"
98
+ msgstr "Die Einstellungen wurden aktualisiert!"
99
+
100
+ #: ../wp_shopping_cart.php:662
101
+ msgid "Simple Paypal Shopping Cart Settings"
102
+ msgstr "Simple Paypal Shopping Cart Einstellungen"
103
+
104
+ #: ../wp_shopping_cart.php:664
105
+ msgid "For information, updates and detailed documentation, please visit:"
106
+ msgstr "Für Informationen, Updates und eine detailierte Dokumentation besuchen Sie bitte:"
107
+
108
+ #: ../wp_shopping_cart.php:668
109
+ msgid "Usage:"
110
+ msgstr "Verwendung:"
111
+
112
+ #: ../wp_shopping_cart.php:670
113
+ msgid "1. To add the 'Add to Cart' button simply add the trigger text"
114
+ msgstr "1. Um den 'Zum Warenkorb hinzufügen'-Button auf einer Seite oder in einem Artikel zu platzieren, verwenden Sie den Text"
115
+
116
+ #: ../wp_shopping_cart.php:670
117
+ msgid "PRODUCT-NAME"
118
+ msgstr "PRODUKTNAME"
119
+
120
+ #: ../wp_shopping_cart.php:670
121
+ msgid "PRODUCT-PRICE"
122
+ msgstr "PRODUKTPREIS"
123
+
124
+ #: ../wp_shopping_cart.php:670
125
+ msgid "to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]"
126
+ msgstr "in einem Artikel oder auf einer Seite neben dem Produkt. Ersetzen Sie bitte PRODUKTNAME und PRODUKTPREIS mit dem tatsächlichen Namen und Preis des Produkts. Zum Beispiel: [wp_cart:Testprodukt:price:15.00:end]"
127
+
128
+ #: ../wp_shopping_cart.php:671
129
+ msgid "2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode"
130
+ msgstr "2. Um den Warenkorb auf einer Seite oder in einem Artikel anzuzeigen (z.B. auf der 'Bestellung abschließen' Seite) verwenden sie einfach den Text"
131
+
132
+ #: ../wp_shopping_cart.php:671
133
+ msgid "to a post or page or use the sidebar widget to add the shopping cart to the sidebar."
134
+ msgstr "in einem Artikel oder auf einer Seite. Oder Sie aktivieren das Sidebar Widget um den Warenkorb in der Sidebar anzuzeigen."
135
+
136
+ #: ../wp_shopping_cart.php:679
137
+ msgid "PayPal and Shopping Cart Settings"
138
+ msgstr "PayPal und Warenkorb Einstellungen"
139
+
140
+ #: ../wp_shopping_cart.php:685
141
+ msgid "Paypal Email Address"
142
+ msgstr "Paypal E-Mail Adresse"
143
+
144
+ #: ../wp_shopping_cart.php:689
145
+ msgid "Shopping Cart title"
146
+ msgstr "Name des Warenkorbs"
147
+
148
+ #: ../wp_shopping_cart.php:693
149
+ msgid "Text/Image to Show When Cart Empty"
150
+ msgstr "Text/Bild für einen leeren Warenkorb"
151
+
152
+ #: ../wp_shopping_cart.php:694
153
+ msgid "You can either enter plain text or the URL of an image that you want to show when the shopping cart is empty"
154
+ msgstr "Sie können einfachen Text eintragen oder die URL eines Bildes angeben (wird bei einem leeren Warenkorb angezeigt)"
155
+
156
+ #: ../wp_shopping_cart.php:697
157
+ msgid "Currency"
158
+ msgstr "Währung"
159
+
160
+ #: ../wp_shopping_cart.php:698
161
+ #: ../wp_shopping_cart.php:702
162
+ #: ../wp_shopping_cart.php:728
163
+ msgid "e.g."
164
+ msgstr "z.B."
165
+
166
+ #: ../wp_shopping_cart.php:701
167
+ msgid "Currency Symbol"
168
+ msgstr "Währungssymbol"
169
+
170
+ #: ../wp_shopping_cart.php:707
171
+ msgid "Base Shipping Cost"
172
+ msgstr "Basisversandkosten"
173
+
174
+ #: ../wp_shopping_cart.php:708
175
+ msgid "This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost."
176
+ msgstr "Die Basisversandkosten werden zu der Summer der individuellen Versandkosten der Produkte addiert. Tragen Sie 0 ein wenn Sie keine Basisversandkosten oder gar keine Versandkosten berechnen wollen."
177
+
178
+ #: ../wp_shopping_cart.php:708
179
+ msgid "Learn More on Shipping Calculation"
180
+ msgstr "Weitere Informationen über die Versandkostenberechnung"
181
+
182
+ #: ../wp_shopping_cart.php:712
183
+ msgid "Free Shipping for Orders Over"
184
+ msgstr "Versandkostenfrei für Bestellungen über"
185
+
186
+ #: ../wp_shopping_cart.php:713
187
+ msgid "When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it."
188
+ msgstr "Wenn die Bestellung eines Kunden über diesen Betrag hinausgeht, entfallen die Versandkosten. Tragen Sie nichts ein, falls Sie diese Funktion nicht nutzen wollen."
189
+
190
+ #: ../wp_shopping_cart.php:717
191
+ msgid "Must Collect Shipping Address on PayPal"
192
+ msgstr "Der Kunde muss bei PayPal eine Versandadresse angeben"
193
+
194
+ #: ../wp_shopping_cart.php:718
195
+ msgid "If checked the customer will be forced to enter a shipping address on PayPal when checking out."
196
+ msgstr "Wenn diese Option aktiviert ist, müssen Kunden bei dem PayPal-Bestellvorgang eine Versandadresse angeben."
197
+
198
+ #: ../wp_shopping_cart.php:722
199
+ msgid "Use PayPal Profile Based Shipping"
200
+ msgstr "Die Versandkostenkalkulation von PayPal nutzen"
201
+
202
+ #: ../wp_shopping_cart.php:723
203
+ msgid "Check this if you want to use"
204
+ msgstr "Aktivieren Sie diese Option für"
205
+
206
+ #: ../wp_shopping_cart.php:723
207
+ msgid "PayPal profile based shipping"
208
+ msgstr "von PayPal berechnete Versandkosten"
209
+
210
+ #: ../wp_shopping_cart.php:723
211
+ msgid "Using this will ignore any other shipping options that you have specified in this plugin."
212
+ msgstr "Die Verwendung deaktiviert alle anderen Versandoptionen dieses Plugins."
213
+
214
+ #: ../wp_shopping_cart.php:727
215
+ msgid "Add to Cart button text or Image"
216
+ msgstr "Text oder Bild für den 'Zum Warenkorb hinzufügen'-Button"
217
+
218
+ #: ../wp_shopping_cart.php:728
219
+ msgid "To use a customized image as the button simply enter the URL of the image file."
220
+ msgstr "Um ein eigenes Bild für den Button zu verwenden, geben Sie einfach dessen URL an."
221
+
222
+ #: ../wp_shopping_cart.php:732
223
+ msgid "Return URL"
224
+ msgstr "Rückkehr URL"
225
+
226
+ #: ../wp_shopping_cart.php:733
227
+ msgid "This is the URL the customer will be redirected to after a successful payment"
228
+ msgstr "Zu dieser URL wird ein Kunde weitergeleitet wenn der Bestellvorgang erfogreich war"
229
+
230
+ #: ../wp_shopping_cart.php:737
231
+ msgid "Products Page URL"
232
+ msgstr "URL der Produktseite"
233
+
234
+ #: ../wp_shopping_cart.php:738
235
+ msgid "This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty"
236
+ msgstr "Falls Sie eine Produktseite haben, können Sie hier die URL eingeben. Wenn eine URL eingegeben und der Warenkorb leer ist wird ein Link zu dieser Seite im Warenkorb angezeigt."
237
+
238
+ #: ../wp_shopping_cart.php:742
239
+ msgid "Automatic redirection to checkout page"
240
+ msgstr "Automatische Weiterleitung zur 'Bestellung abschließen'-Seite"
241
+
242
+ #: ../wp_shopping_cart.php:744
243
+ msgid "Checkout Page URL"
244
+ msgstr "URL der 'Bestellung abschließen'-Seite"
245
+
246
+ #: ../wp_shopping_cart.php:745
247
+ msgid "If checked the visitor will be redirected to the Checkout page after a product is added to the cart. You must enter a URL in the Checkout Page URL field for this to work."
248
+ msgstr "Wenn diese Option aktiviert ist, werden Besucher zur 'Bestellung abschließen'-Seite weitergeleitet nachdem sie ein Produkt zum Warenkorb hinzugefügt haben. Sie müssen eine URL in dem Feld der 'Bestellung abschließen'-Seite eingeben um diese Funktion zu nutzen."
249
+
250
+ #: ../wp_shopping_cart.php:749
251
+ msgid "Reset Cart After Redirection to Return Page"
252
+ msgstr "Warenkorb zurücksetzen nach der Weiterleitung auf die Rückkehr URL"
253
+
254
+ #: ../wp_shopping_cart.php:751
255
+ msgid "If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page."
256
+ msgstr "Wenn diese Option aktiviert ist, wird der Warenkorb zurückgesetzt wenn ein Kunde auf die Rückkehr URL (die 'Vielen Dank für Ihren Einkauf'-Seite) geleitet wird."
257
+
258
+ #: ../wp_shopping_cart.php:758
259
+ msgid "Hide Shopping Cart Image"
260
+ msgstr "Bild des Warenkorb nicht anzeigen"
261
+
262
+ #: ../wp_shopping_cart.php:759
263
+ msgid "If ticked the shopping cart image will not be shown."
264
+ msgstr "Falls aktiviert, wird das Bild des Warenkorbs nicht angezeigt."
265
+
266
+ #: ../wp_shopping_cart.php:765
267
+ msgid "Use WP Affiliate Platform"
268
+ msgstr "Die WP Affiliate Platform benutzen"
269
+
270
+ #: ../wp_shopping_cart.php:767
271
+ msgid "Check this if using with the"
272
+ msgstr "Markieren für die Verwendung dieses Plugins mit dem"
273
+
274
+ #: ../wp_shopping_cart.php:767
275
+ msgid "This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales"
276
+ msgstr "Dieses Plugin ermöglicht Ihnen ein eigenes Affiliate-System zu betreiben und Ihre Vertriebspartner für an Sie verwiesene Kunden mit Provisionen zu vergüten"
277
+
278
+ #: ../wp_shopping_cart.php:772
279
+ msgid "Update Options &raquo;"
280
+ msgstr "Einstellungen speichern &raquo;"
281
+
282
+ #: ../wp_shopping_cart.php:776
283
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
284
+ msgstr "Gefällt Ihnen das Simple WordPress Shopping Cart Plugin?"
285
+
286
+ #: ../wp_shopping_cart.php:776
287
+ msgid "Give it a good rating"
288
+ msgstr "Bewerten Sie es positiv"
289
+
290
+ #: ../wp_shopping_cart.php:781
291
+ msgid "WP Paypal Shopping Cart Options"
292
+ msgstr "WP Paypal Warenkorb Einstellungen"
293
+
294
+ #: ../wp_shopping_cart.php:791
295
+ #: ../wp_shopping_cart.php:819
296
+ #: ../wp_shopping_cart.php:820
297
+ msgid "WP Paypal Shopping Cart"
298
+ msgstr "WP Paypal Warenkorb"
299
+
300
+ #: ../wp_shopping_cart.php:791
301
+ msgid "WP Shopping Cart"
302
+ msgstr "WP Warenkorb"
303
+
304
+ #: ../wp_shopping_cart.php:799
305
+ msgid "Shopping Cart"
306
+ msgstr "Warenkorb"
307
+
308
+ #: ../wp_shopping_cart.php:811
309
+ msgid "Set the Plugin Settings from the Settings menu"
310
+ msgstr "Ändern Sie die Konfiguration des Plugins im Einstellungsmenü"
311
+
312
+ #: ../wp_shopping_cart.php:818
313
+ msgid "Display WP Paypal Shopping Cart."
314
+ msgstr "WP Paypal Warenkorb anzeigen."
315
+
316
+ #: ../wp_shopping_cart.php:832
317
+ msgid "Settings"
318
+ msgstr "Einstellungen"
319
+
languages/WSPSC-en_EN.mo ADDED
Binary file
languages/WSPSC-en_EN.po ADDED
@@ -0,0 +1,329 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2011-03-16 22:25+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
+ "X-Poedit-Language: English\n"
14
+ "X-Poedit-Country: UNITED STATES\n"
15
+ "X-Poedit-SearchPath-0: ..\n"
16
+
17
+ #: ../wp_shopping_cart.php:33
18
+ msgid "Your Shopping Cart"
19
+ msgstr "Your Shopping Cart"
20
+
21
+ #: ../wp_shopping_cart.php:34
22
+ msgid "Your cart is empty"
23
+ msgstr "Your cart is empty"
24
+
25
+ #: ../wp_shopping_cart.php:140
26
+ msgid "Shopping Cart Configuration Error! You must specify a value in the 'Checkout Page URL' field for the automatic redirection feature to work!"
27
+ msgstr "Shopping Cart Configuration Error! You must specify a value in the 'Checkout Page URL' field for the automatic redirection feature to work!"
28
+
29
+ #: ../wp_shopping_cart.php:197
30
+ msgid "Visit The Shop"
31
+ msgstr "Visit The Shop"
32
+
33
+ #: ../wp_shopping_cart.php:209
34
+ #: ../wp_shopping_cart.php:606
35
+ msgid "USD"
36
+ msgstr "USD"
37
+
38
+ #: ../wp_shopping_cart.php:213
39
+ #: ../wp_shopping_cart.php:609
40
+ msgid "$"
41
+ msgstr "$"
42
+
43
+ #: ../wp_shopping_cart.php:242
44
+ msgid "Cart"
45
+ msgstr "Cart"
46
+
47
+ #: ../wp_shopping_cart.php:251
48
+ msgid "Hit enter to submit new Quantity."
49
+ msgstr "Hit enter to submit new Quantity."
50
+
51
+ #: ../wp_shopping_cart.php:262
52
+ msgid "Item Name"
53
+ msgstr "Item Name"
54
+
55
+ #: ../wp_shopping_cart.php:262
56
+ msgid "Quantity"
57
+ msgstr "Quantity"
58
+
59
+ #: ../wp_shopping_cart.php:262
60
+ msgid "Price"
61
+ msgstr "Price"
62
+
63
+ #: ../wp_shopping_cart.php:299
64
+ msgid "Remove"
65
+ msgstr "Remove"
66
+
67
+ #: ../wp_shopping_cart.php:329
68
+ msgid "Subtotal"
69
+ msgstr "Subtotal"
70
+
71
+ #: ../wp_shopping_cart.php:330
72
+ msgid "Shipping"
73
+ msgstr "Shipping"
74
+
75
+ #: ../wp_shopping_cart.php:334
76
+ msgid "Total"
77
+ msgstr "Total"
78
+
79
+ #: ../wp_shopping_cart.php:339
80
+ msgid "paypal_checkout_EN.png"
81
+ msgstr "paypal_checkout_EN.png"
82
+
83
+ #: ../wp_shopping_cart.php:339
84
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
85
+ msgstr "Make payments with PayPal - it\\'s fast, free and secure!"
86
+
87
+ #: ../wp_shopping_cart.php:387
88
+ #: ../wp_shopping_cart.php:469
89
+ #: ../wp_shopping_cart.php:528
90
+ #: ../wp_shopping_cart.php:534
91
+ #: ../wp_shopping_cart.php:622
92
+ msgid "Add to Cart"
93
+ msgstr "Add to Cart"
94
+
95
+ #: ../wp_shopping_cart.php:602
96
+ msgid "Options Updated!"
97
+ msgstr "Options Updated!"
98
+
99
+ #: ../wp_shopping_cart.php:662
100
+ msgid "Simple Paypal Shopping Cart Settings"
101
+ msgstr "Simple Paypal Shopping Cart Settings"
102
+
103
+ #: ../wp_shopping_cart.php:664
104
+ msgid "For information, updates and detailed documentation, please visit:"
105
+ msgstr "For information, updates and detailed documentation, please visit:"
106
+
107
+ #: ../wp_shopping_cart.php:668
108
+ msgid "Usage:"
109
+ msgstr "Usage:"
110
+
111
+ #: ../wp_shopping_cart.php:670
112
+ msgid "1. To add the 'Add to Cart' button simply add the trigger text"
113
+ msgstr "1. To add the 'Add to Cart' button simply add the trigger text"
114
+
115
+ #: ../wp_shopping_cart.php:670
116
+ msgid "PRODUCT-NAME"
117
+ msgstr "PRODUCT-NAME"
118
+
119
+ #: ../wp_shopping_cart.php:670
120
+ msgid "PRODUCT-PRICE"
121
+ msgstr "PRODUCT-PRICE"
122
+
123
+ #: ../wp_shopping_cart.php:670
124
+ msgid "to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]"
125
+ msgstr "to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]"
126
+
127
+ #: ../wp_shopping_cart.php:671
128
+ msgid "2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode"
129
+ msgstr "2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode"
130
+
131
+ #: ../wp_shopping_cart.php:671
132
+ msgid "to a post or page or use the sidebar widget to add the shopping cart to the sidebar."
133
+ msgstr "to a post or page or use the sidebar widget to add the shopping cart to the sidebar."
134
+
135
+ #: ../wp_shopping_cart.php:679
136
+ msgid "PayPal and Shopping Cart Settings"
137
+ msgstr "PayPal and Shopping Cart Settings"
138
+
139
+ #: ../wp_shopping_cart.php:685
140
+ msgid "Paypal Email Address"
141
+ msgstr "Paypal Email Address"
142
+
143
+ #: ../wp_shopping_cart.php:689
144
+ msgid "Shopping Cart title"
145
+ msgstr "Shopping Cart title"
146
+
147
+ #: ../wp_shopping_cart.php:693
148
+ msgid "Text/Image to Show When Cart Empty"
149
+ msgstr "Text/Image to Show When Cart Empty"
150
+
151
+ #: ../wp_shopping_cart.php:694
152
+ msgid "You can either enter plain text or the URL of an image that you want to show when the shopping cart is empty"
153
+ msgstr "You can either enter plain text or the URL of an image that you want to show when the shopping cart is empty"
154
+
155
+ #: ../wp_shopping_cart.php:697
156
+ msgid "Currency"
157
+ msgstr "Currency"
158
+
159
+ #: ../wp_shopping_cart.php:698
160
+ #: ../wp_shopping_cart.php:702
161
+ #: ../wp_shopping_cart.php:728
162
+ msgid "e.g."
163
+ msgstr "e.g."
164
+
165
+ #: ../wp_shopping_cart.php:701
166
+ msgid "Currency Symbol"
167
+ msgstr "Currency Symbol"
168
+
169
+ #: ../wp_shopping_cart.php:707
170
+ msgid "Base Shipping Cost"
171
+ msgstr "Base Shipping Cost"
172
+
173
+ #: ../wp_shopping_cart.php:708
174
+ msgid "This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost."
175
+ msgstr "This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost."
176
+
177
+ #: ../wp_shopping_cart.php:708
178
+ msgid "Learn More on Shipping Calculation"
179
+ msgstr "Learn More on Shipping Calculation"
180
+
181
+ #: ../wp_shopping_cart.php:712
182
+ msgid "Free Shipping for Orders Over"
183
+ msgstr "Free Shipping for Orders Over"
184
+
185
+ #: ../wp_shopping_cart.php:713
186
+ msgid "When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it."
187
+ msgstr "When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it."
188
+
189
+ #: ../wp_shopping_cart.php:717
190
+ msgid "Must Collect Shipping Address on PayPal"
191
+ msgstr "Must Collect Shipping Address on PayPal"
192
+
193
+ #: ../wp_shopping_cart.php:718
194
+ msgid "If checked the customer will be forced to enter a shipping address on PayPal when checking out."
195
+ msgstr "If checked the customer will be forced to enter a shipping address on PayPal when checking out."
196
+
197
+ #: ../wp_shopping_cart.php:722
198
+ msgid "Use PayPal Profile Based Shipping"
199
+ msgstr "Use PayPal Profile Based Shipping"
200
+
201
+ #: ../wp_shopping_cart.php:723
202
+ msgid "Check this if you want to use"
203
+ msgstr "Check this if you want to use"
204
+
205
+ #: ../wp_shopping_cart.php:723
206
+ msgid "PayPal profile based shipping"
207
+ msgstr "PayPal profile based shipping"
208
+
209
+ #: ../wp_shopping_cart.php:723
210
+ msgid "Using this will ignore any other shipping options that you have specified in this plugin."
211
+ msgstr "Using this will ignore any other shipping options that you have specified in this plugin."
212
+
213
+ #: ../wp_shopping_cart.php:727
214
+ msgid "Add to Cart button text or Image"
215
+ msgstr "Add to Cart button text or Image"
216
+
217
+ #: ../wp_shopping_cart.php:728
218
+ msgid "To use a customized image as the button simply enter the URL of the image file."
219
+ msgstr "To use a customized image as the button simply enter the URL of the image file."
220
+
221
+ #: ../wp_shopping_cart.php:732
222
+ msgid "Return URL"
223
+ msgstr "Return URL"
224
+
225
+ #: ../wp_shopping_cart.php:733
226
+ msgid "This is the URL the customer will be redirected to after a successful payment"
227
+ msgstr "This is the URL the customer will be redirected to after a successful payment"
228
+
229
+ #: ../wp_shopping_cart.php:737
230
+ msgid "Products Page URL"
231
+ msgstr "Products Page URL"
232
+
233
+ #: ../wp_shopping_cart.php:738
234
+ msgid "This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty"
235
+ msgstr "This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty"
236
+
237
+ #: ../wp_shopping_cart.php:742
238
+ msgid "Automatic redirection to checkout page"
239
+ msgstr "Automatic redirection to checkout page"
240
+
241
+ #: ../wp_shopping_cart.php:744
242
+ msgid "Checkout Page URL"
243
+ msgstr "Checkout Page URL"
244
+
245
+ #: ../wp_shopping_cart.php:745
246
+ msgid "If checked the visitor will be redirected to the Checkout page after a product is added to the cart. You must enter a URL in the Checkout Page URL field for this to work."
247
+ msgstr "If checked the visitor will be redirected to the Checkout page after a product is added to the cart. You must enter a URL in the Checkout Page URL field for this to work."
248
+
249
+ #: ../wp_shopping_cart.php:749
250
+ msgid "Reset Cart After Redirection to Return Page"
251
+ msgstr "Reset Cart After Redirection to Return Page"
252
+
253
+ #: ../wp_shopping_cart.php:751
254
+ msgid "If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page."
255
+ msgstr "If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page."
256
+
257
+ #: ../wp_shopping_cart.php:758
258
+ msgid "Hide Shopping Cart Image"
259
+ msgstr "Hide Shopping Cart Image"
260
+
261
+ #: ../wp_shopping_cart.php:759
262
+ msgid "If ticked the shopping cart image will not be shown."
263
+ msgstr "If ticked the shopping cart image will not be shown."
264
+
265
+ #: ../wp_shopping_cart.php:765
266
+ msgid "Use WP Affiliate Platform"
267
+ msgstr "Use WP Affiliate Platform"
268
+
269
+ #: ../wp_shopping_cart.php:767
270
+ msgid "Check this if using with the"
271
+ msgstr "Check this if using with the"
272
+
273
+ #: ../wp_shopping_cart.php:767
274
+ msgid "This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales"
275
+ msgstr "This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales"
276
+
277
+ #: ../wp_shopping_cart.php:772
278
+ msgid "Update Options &raquo;"
279
+ msgstr "Update Options &raquo;"
280
+
281
+ #: ../wp_shopping_cart.php:776
282
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
283
+ msgstr "Like the Simple WordPress Shopping Cart Plugin?"
284
+
285
+ #: ../wp_shopping_cart.php:776
286
+ msgid "Give it a good rating"
287
+ msgstr "Give it a good rating"
288
+
289
+ #: ../wp_shopping_cart.php:781
290
+ msgid "WP Paypal Shopping Cart Options"
291
+ msgstr "WP Paypal Shopping Cart Options"
292
+
293
+ #: ../wp_shopping_cart.php:791
294
+ #: ../wp_shopping_cart.php:819
295
+ #: ../wp_shopping_cart.php:820
296
+ msgid "WP Paypal Shopping Cart"
297
+ msgstr "WP Paypal Shopping Cart"
298
+
299
+ #: ../wp_shopping_cart.php:791
300
+ msgid "WP Shopping Cart"
301
+ msgstr "WP Shopping Cart"
302
+
303
+ #: ../wp_shopping_cart.php:799
304
+ msgid "Shopping Cart"
305
+ msgstr "Shopping Cart"
306
+
307
+ #: ../wp_shopping_cart.php:811
308
+ msgid "Set the Plugin Settings from the Settings menu"
309
+ msgstr "Set the Plugin Settings from the Settings menu"
310
+
311
+ #: ../wp_shopping_cart.php:818
312
+ msgid "Display WP Paypal Shopping Cart."
313
+ msgstr "Display WP Paypal Shopping Cart."
314
+
315
+ #: ../wp_shopping_cart.php:832
316
+ msgid "Settings"
317
+ msgstr "Settings"
318
+
319
+ #~ msgid "show-wp-shopping-cart"
320
+ #~ msgstr "show-wp-shopping-cart"
321
+
322
+ #~ msgid ""
323
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
324
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
325
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
326
+ #~ msgstr ""
327
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
328
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
329
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
languages/WSPSC.pot ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:48+0100\n"
6
+ "PO-Revision-Date: 2011-03-16 21:48+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
+ "X-Poedit-SearchPath-0: ..\n"
14
+
15
+ #: ../wp_shopping_cart.php:33
16
+ msgid "Your Shopping Cart"
17
+ msgstr ""
18
+
19
+ #: ../wp_shopping_cart.php:34
20
+ msgid "Your cart is empty"
21
+ msgstr ""
22
+
23
+ #: ../wp_shopping_cart.php:140
24
+ msgid "Shopping Cart Configuration Error! You must specify a value in the 'Checkout Page URL' field for the automatic redirection feature to work!"
25
+ msgstr ""
26
+
27
+ #: ../wp_shopping_cart.php:197
28
+ msgid "Visit The Shop"
29
+ msgstr ""
30
+
31
+ #: ../wp_shopping_cart.php:209
32
+ #: ../wp_shopping_cart.php:606
33
+ msgid "USD"
34
+ msgstr ""
35
+
36
+ #: ../wp_shopping_cart.php:213
37
+ #: ../wp_shopping_cart.php:609
38
+ msgid "$"
39
+ msgstr ""
40
+
41
+ #: ../wp_shopping_cart.php:242
42
+ msgid "Cart"
43
+ msgstr ""
44
+
45
+ #: ../wp_shopping_cart.php:251
46
+ msgid "Hit enter to submit new Quantity."
47
+ msgstr ""
48
+
49
+ #: ../wp_shopping_cart.php:262
50
+ msgid "Item Name"
51
+ msgstr ""
52
+
53
+ #: ../wp_shopping_cart.php:262
54
+ msgid "Quantity"
55
+ msgstr ""
56
+
57
+ #: ../wp_shopping_cart.php:262
58
+ msgid "Price"
59
+ msgstr ""
60
+
61
+ #: ../wp_shopping_cart.php:299
62
+ msgid "Remove"
63
+ msgstr ""
64
+
65
+ #: ../wp_shopping_cart.php:329
66
+ msgid "Subtotal"
67
+ msgstr ""
68
+
69
+ #: ../wp_shopping_cart.php:330
70
+ msgid "Shipping"
71
+ msgstr ""
72
+
73
+ #: ../wp_shopping_cart.php:334
74
+ msgid "Total"
75
+ msgstr ""
76
+
77
+ #: ../wp_shopping_cart.php:339
78
+ msgid "paypal_checkout_EN.png"
79
+ msgstr ""
80
+
81
+ #: ../wp_shopping_cart.php:339
82
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
83
+ msgstr ""
84
+
85
+ #: ../wp_shopping_cart.php:387
86
+ #: ../wp_shopping_cart.php:469
87
+ #: ../wp_shopping_cart.php:528
88
+ #: ../wp_shopping_cart.php:534
89
+ #: ../wp_shopping_cart.php:622
90
+ msgid "Add to Cart"
91
+ msgstr ""
92
+
93
+ #: ../wp_shopping_cart.php:602
94
+ msgid "Options Updated!"
95
+ msgstr ""
96
+
97
+ #: ../wp_shopping_cart.php:662
98
+ msgid "Simple Paypal Shopping Cart Settings"
99
+ msgstr ""
100
+
101
+ #: ../wp_shopping_cart.php:664
102
+ msgid "For information, updates and detailed documentation, please visit:"
103
+ msgstr ""
104
+
105
+ #: ../wp_shopping_cart.php:668
106
+ msgid "Usage:"
107
+ msgstr ""
108
+
109
+ #: ../wp_shopping_cart.php:670
110
+ msgid "1. To add the 'Add to Cart' button simply add the trigger text"
111
+ msgstr ""
112
+
113
+ #: ../wp_shopping_cart.php:670
114
+ msgid "PRODUCT-NAME"
115
+ msgstr ""
116
+
117
+ #: ../wp_shopping_cart.php:670
118
+ msgid "PRODUCT-PRICE"
119
+ msgstr ""
120
+
121
+ #: ../wp_shopping_cart.php:670
122
+ msgid "to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]"
123
+ msgstr ""
124
+
125
+ #: ../wp_shopping_cart.php:671
126
+ msgid "2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode"
127
+ msgstr ""
128
+
129
+ #: ../wp_shopping_cart.php:671
130
+ msgid "to a post or page or use the sidebar widget to add the shopping cart to the sidebar."
131
+ msgstr ""
132
+
133
+ #: ../wp_shopping_cart.php:679
134
+ msgid "PayPal and Shopping Cart Settings"
135
+ msgstr ""
136
+
137
+ #: ../wp_shopping_cart.php:685
138
+ msgid "Paypal Email Address"
139
+ msgstr ""
140
+
141
+ #: ../wp_shopping_cart.php:689
142
+ msgid "Shopping Cart title"
143
+ msgstr ""
144
+
145
+ #: ../wp_shopping_cart.php:693
146
+ msgid "Text/Image to Show When Cart Empty"
147
+ msgstr ""
148
+
149
+ #: ../wp_shopping_cart.php:694
150
+ msgid "You can either enter plain text or the URL of an image that you want to show when the shopping cart is empty"
151
+ msgstr ""
152
+
153
+ #: ../wp_shopping_cart.php:697
154
+ msgid "Currency"
155
+ msgstr ""
156
+
157
+ #: ../wp_shopping_cart.php:698
158
+ #: ../wp_shopping_cart.php:702
159
+ #: ../wp_shopping_cart.php:728
160
+ msgid "e.g."
161
+ msgstr ""
162
+
163
+ #: ../wp_shopping_cart.php:701
164
+ msgid "Currency Symbol"
165
+ msgstr ""
166
+
167
+ #: ../wp_shopping_cart.php:707
168
+ msgid "Base Shipping Cost"
169
+ msgstr ""
170
+
171
+ #: ../wp_shopping_cart.php:708
172
+ msgid "This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost."
173
+ msgstr ""
174
+
175
+ #: ../wp_shopping_cart.php:708
176
+ msgid "Learn More on Shipping Calculation"
177
+ msgstr ""
178
+
179
+ #: ../wp_shopping_cart.php:712
180
+ msgid "Free Shipping for Orders Over"
181
+ msgstr ""
182
+
183
+ #: ../wp_shopping_cart.php:713
184
+ msgid "When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it."
185
+ msgstr ""
186
+
187
+ #: ../wp_shopping_cart.php:717
188
+ msgid "Must Collect Shipping Address on PayPal"
189
+ msgstr ""
190
+
191
+ #: ../wp_shopping_cart.php:718
192
+ msgid "If checked the customer will be forced to enter a shipping address on PayPal when checking out."
193
+ msgstr ""
194
+
195
+ #: ../wp_shopping_cart.php:722
196
+ msgid "Use PayPal Profile Based Shipping"
197
+ msgstr ""
198
+
199
+ #: ../wp_shopping_cart.php:723
200
+ msgid "Check this if you want to use"
201
+ msgstr ""
202
+
203
+ #: ../wp_shopping_cart.php:723
204
+ msgid "PayPal profile based shipping"
205
+ msgstr ""
206
+
207
+ #: ../wp_shopping_cart.php:723
208
+ msgid "Using this will ignore any other shipping options that you have specified in this plugin."
209
+ msgstr ""
210
+
211
+ #: ../wp_shopping_cart.php:727
212
+ msgid "Add to Cart button text or Image"
213
+ msgstr ""
214
+
215
+ #: ../wp_shopping_cart.php:728
216
+ msgid "To use a customized image as the button simply enter the URL of the image file."
217
+ msgstr ""
218
+
219
+ #: ../wp_shopping_cart.php:732
220
+ msgid "Return URL"
221
+ msgstr ""
222
+
223
+ #: ../wp_shopping_cart.php:733
224
+ msgid "This is the URL the customer will be redirected to after a successful payment"
225
+ msgstr ""
226
+
227
+ #: ../wp_shopping_cart.php:737
228
+ msgid "Products Page URL"
229
+ msgstr ""
230
+
231
+ #: ../wp_shopping_cart.php:738
232
+ msgid "This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty"
233
+ msgstr ""
234
+
235
+ #: ../wp_shopping_cart.php:742
236
+ msgid "Automatic redirection to checkout page"
237
+ msgstr ""
238
+
239
+ #: ../wp_shopping_cart.php:744
240
+ msgid "Checkout Page URL"
241
+ msgstr ""
242
+
243
+ #: ../wp_shopping_cart.php:745
244
+ msgid "If checked the visitor will be redirected to the Checkout page after a product is added to the cart. You must enter a URL in the Checkout Page URL field for this to work."
245
+ msgstr ""
246
+
247
+ #: ../wp_shopping_cart.php:749
248
+ msgid "Reset Cart After Redirection to Return Page"
249
+ msgstr ""
250
+
251
+ #: ../wp_shopping_cart.php:751
252
+ msgid "If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page."
253
+ msgstr ""
254
+
255
+ #: ../wp_shopping_cart.php:758
256
+ msgid "Hide Shopping Cart Image"
257
+ msgstr ""
258
+
259
+ #: ../wp_shopping_cart.php:759
260
+ msgid "If ticked the shopping cart image will not be shown."
261
+ msgstr ""
262
+
263
+ #: ../wp_shopping_cart.php:765
264
+ msgid "Use WP Affiliate Platform"
265
+ msgstr ""
266
+
267
+ #: ../wp_shopping_cart.php:767
268
+ msgid "Check this if using with the"
269
+ msgstr ""
270
+
271
+ #: ../wp_shopping_cart.php:767
272
+ msgid "This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales"
273
+ msgstr ""
274
+
275
+ #: ../wp_shopping_cart.php:772
276
+ msgid "Update Options &raquo;"
277
+ msgstr ""
278
+
279
+ #: ../wp_shopping_cart.php:776
280
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
281
+ msgstr ""
282
+
283
+ #: ../wp_shopping_cart.php:776
284
+ msgid "Give it a good rating"
285
+ msgstr ""
286
+
287
+ #: ../wp_shopping_cart.php:781
288
+ msgid "WP Paypal Shopping Cart Options"
289
+ msgstr ""
290
+
291
+ #: ../wp_shopping_cart.php:791
292
+ #: ../wp_shopping_cart.php:819
293
+ #: ../wp_shopping_cart.php:820
294
+ msgid "WP Paypal Shopping Cart"
295
+ msgstr ""
296
+
297
+ #: ../wp_shopping_cart.php:791
298
+ msgid "WP Shopping Cart"
299
+ msgstr ""
300
+
301
+ #: ../wp_shopping_cart.php:799
302
+ msgid "Shopping Cart"
303
+ msgstr ""
304
+
305
+ #: ../wp_shopping_cart.php:811
306
+ msgid "Set the Plugin Settings from the Settings menu"
307
+ msgstr ""
308
+
309
+ #: ../wp_shopping_cart.php:818
310
+ msgid "Display WP Paypal Shopping Cart."
311
+ msgstr ""
312
+
313
+ #: ../wp_shopping_cart.php:832
314
+ msgid "Settings"
315
+ msgstr ""
316
+
paypal.php ADDED
@@ -0,0 +1,290 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include_once('../../../wp-load.php');
3
+ $debug_log = "ipn_handle_debug.log"; // Debug log file name
4
+
5
+ class paypal_ipn_handler {
6
+
7
+ var $last_error; // holds the last error encountered
8
+ var $ipn_log; // bool: log IPN results to text file?
9
+ var $ipn_log_file; // filename of the IPN log
10
+ var $ipn_response; // holds the IPN response from paypal
11
+ var $ipn_data = array(); // array contains the POST values for IPN
12
+ var $fields = array(); // array holds the fields to submit to paypal
13
+
14
+ function paypal_ipn_handler()
15
+ {
16
+ $this->paypal_url = 'https://www.paypal.com/cgi-bin/webscr';
17
+ $this->last_error = '';
18
+ $this->ipn_log_file = 'ipn_handle_debug.log';
19
+ $this->ipn_response = '';
20
+ }
21
+
22
+ function validate_and_dispatch_product()
23
+ {
24
+ // Check Product Name , Price , Currency , Receivers email ,
25
+ global $products,$currency,$paypal_email;
26
+
27
+ $transaction_type = $this->ipn_data['txn_type'];
28
+ $transaction_subject = $this->ipn_data['transaction_subject'];
29
+ if ($transaction_type == "cart")
30
+ {
31
+ $this->debug_log('Transaction Type: Shopping Cart',true);
32
+ // Cart Items
33
+ $num_cart_items = $this->ipn_data['num_cart_items'];
34
+ $this->debug_log('Number of Cart Items: '.$num_cart_items,true);
35
+
36
+ $i = 1;
37
+ $cart_items = array();
38
+ while($i < $num_cart_items+1)
39
+ {
40
+ $item_number = $this->ipn_data['item_number' . $i];
41
+ $item_name = $this->ipn_data['item_name' . $i];
42
+ $quantity = $this->ipn_data['quantity' . $i];
43
+ $mc_gross = $this->ipn_data['mc_gross_' . $i];
44
+ $mc_currency = $this->ipn_data['mc_currency'];
45
+
46
+ $current_item = array(
47
+ 'item_number' => $item_number,
48
+ 'item_name' => $item_name,
49
+ 'quantity' => $quantity,
50
+ 'mc_gross' => $mc_gross,
51
+ 'mc_currency' => $mc_currency,
52
+ );
53
+
54
+ array_push($cart_items, $current_item);
55
+ $i++;
56
+ }
57
+ }
58
+ else
59
+ {
60
+ $cart_items = array();
61
+ $this->debug_log('Transaction Type: Buy Now',true);
62
+ $item_number = $this->ipn_data['item_number'];
63
+ $item_name = $this->ipn_data['item_name'];
64
+ $quantity = $this->ipn_data['quantity'];
65
+ $mc_gross = $this->ipn_data['mc_gross'];
66
+ $mc_currency = $this->ipn_data['mc_currency'];
67
+
68
+ $current_item = array(
69
+ 'item_number' => $item_number,
70
+ 'item_name' => $item_name,
71
+ 'quantity' => $quantity,
72
+ 'mc_gross' => $mc_gross,
73
+ 'mc_currency' => $mc_currency,
74
+ );
75
+
76
+ array_push($cart_items, $current_item);
77
+ }
78
+
79
+ $product_id_array = Array();
80
+ $product_name_array = Array();
81
+ $product_price_array = Array();
82
+ $attachments_array = Array();
83
+ $download_link_array = Array();
84
+
85
+ $payment_currency = get_option('cart_payment_currency');
86
+
87
+ foreach ($cart_items as $current_cart_item)
88
+ {
89
+ $cart_item_data_num = $current_cart_item['item_number'];
90
+ $cart_item_data_name = $current_cart_item['item_name'];
91
+ $cart_item_data_quantity = $current_cart_item['quantity'];
92
+ $cart_item_data_total = $current_cart_item['mc_gross'];
93
+ $cart_item_data_currency = $current_cart_item['mc_currency'];
94
+
95
+ $this->debug_log('Item Number: '.$cart_item_data_num,true);
96
+ $this->debug_log('Item Name: '.$cart_item_data_name,true);
97
+ $this->debug_log('Item Quantity: '.$cart_item_data_quantity,true);
98
+ $this->debug_log('Item Total: '.$cart_item_data_total,true);
99
+ $this->debug_log('Item Currency: '.$cart_item_data_currency,true);
100
+
101
+ // Compare the values
102
+ if ($payment_currency != $cart_item_data_currency)
103
+ {
104
+ $this->debug_log('Invalid Product Currency : '.$payment_currency,false);
105
+ return false;
106
+ }
107
+ }
108
+
109
+ $this->debug_log('Updating Affiliate Database Table with Sales Data if Using the WP Affiliate Platform Plugin.',true);
110
+
111
+ if (function_exists('wp_aff_platform_install'))
112
+ {
113
+ $this->debug_log('WP Affiliate Platform is installed, registering sale...',true);
114
+ $referrer = $this->ipn_data['custom'];
115
+ $sale_amount = $this->ipn_data['mc_gross'];
116
+ if (!empty($referrer))
117
+ {
118
+ $clientdate = (date ("Y-m-d"));
119
+ $clienttime = (date ("H:i:s"));
120
+
121
+ global $wpdb;
122
+ $affiliates_table_name = $wpdb->prefix . "affiliates_tbl";
123
+ $aff_sales_table = $wpdb->prefix . "affiliates_sales_tbl";
124
+ $wp_aff_affiliates_db = $wpdb->get_row("SELECT * FROM $affiliates_table_name WHERE refid = '$referrer'", OBJECT);
125
+ $commission_level = $wp_aff_affiliates_db->commissionlevel;
126
+
127
+ $commission_amount = ($sale_amount*$commission_level)/100;
128
+
129
+ $updatedb = "INSERT INTO $aff_sales_table VALUES ('$referrer','$clientdate','$clienttime','','','$commission_amount','$sale_amount')";
130
+ $results = $wpdb->query($updatedb);
131
+
132
+ $message = 'The sale has been registered in the WP Affiliates Platform Database for referrer: '.$referrer.' with amount: '.$commission_amount;
133
+ $this->debug_log($message,true);
134
+ }
135
+ else
136
+ {
137
+ $this->debug_log('No Referrer Found. This is not an affiliate sale',true);
138
+ }
139
+ }
140
+ else
141
+ {
142
+ $this->debug_log('Not Using the WP Affiliate Platform Plugin.',true);
143
+ }
144
+
145
+ return true;
146
+ }
147
+
148
+ function validate_ipn() {
149
+
150
+ // parse the paypal URL
151
+ $url_parsed=parse_url($this->paypal_url);
152
+
153
+ // generate the post string from the _POST vars aswell as load the _POST vars into an arry
154
+ $post_string = '';
155
+ foreach ($_POST as $field=>$value) {
156
+ $this->ipn_data["$field"] = $value;
157
+ $post_string .= $field.'='.urlencode(stripslashes($value)).'&';
158
+ }
159
+
160
+ $this->post_string = $post_string;
161
+ $this->debug_log('Post string : '. $this->post_string,true);
162
+
163
+ $post_string.="cmd=_notify-validate"; // append ipn command
164
+
165
+ // open the connection to paypal
166
+ $fp = fsockopen($url_parsed['host'],"80",$err_num,$err_str,30);
167
+ if(!$fp)
168
+ {
169
+ // could not open the connection. If loggin is on, the error message
170
+ // will be in the log.
171
+ $this->debug_log('Connection to '.$url_parsed['host']." failed.fsockopen error no. $errnum: $errstr",false);
172
+ return false;
173
+
174
+ }
175
+ else
176
+ {
177
+ // Post the data back to paypal
178
+ fputs($fp, "POST $url_parsed[path] HTTP/1.1\r\n");
179
+ fputs($fp, "Host: $url_parsed[host]\r\n");
180
+ fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
181
+ fputs($fp, "Content-length: ".strlen($post_string)."\r\n");
182
+ fputs($fp, "Connection: close\r\n\r\n");
183
+ fputs($fp, $post_string . "\r\n\r\n");
184
+
185
+ // loop through the response from the server and append to variable
186
+ while(!feof($fp)) {
187
+ $this->ipn_response .= fgets($fp, 1024);
188
+ }
189
+
190
+ fclose($fp); // close connection
191
+
192
+ $this->debug_log('Connection to '.$url_parsed['host'].' successfuly completed.',true);
193
+ }
194
+
195
+ if (eregi("VERIFIED",$this->ipn_response))
196
+ {
197
+ // Valid IPN transaction.
198
+ $this->debug_log('IPN successfully verified.',true);
199
+ return true;
200
+
201
+ }
202
+ else
203
+ {
204
+ // Invalid IPN transaction. Check the log for details.
205
+ $this->debug_log('IPN validation failed.',false);
206
+ return false;
207
+ }
208
+ }
209
+
210
+ function log_ipn_results($success)
211
+ {
212
+ if (!$this->ipn_log) return; // is logging turned off?
213
+
214
+ // Timestamp
215
+ $text = '['.date('m/d/Y g:i A').'] - ';
216
+
217
+ // Success or failure being logged?
218
+ if ($success) $text .= "SUCCESS!\n";
219
+ else $text .= 'FAIL: '.$this->last_error."\n";
220
+
221
+ // Log the POST variables
222
+ $text .= "IPN POST Vars from Paypal:\n";
223
+ foreach ($this->ipn_data as $key=>$value) {
224
+ $text .= "$key=$value, ";
225
+ }
226
+
227
+ // Log the response from the paypal server
228
+ $text .= "\nIPN Response from Paypal Server:\n ".$this->ipn_response;
229
+
230
+ // Write to log
231
+ $fp=fopen($this->ipn_log_file,'a');
232
+ fwrite($fp, $text . "\n\n");
233
+
234
+ fclose($fp); // close file
235
+ }
236
+
237
+ function debug_log($message,$success,$end=false)
238
+ {
239
+
240
+ if (!$this->ipn_log) return; // is logging turned off?
241
+
242
+ // Timestamp
243
+ $text = '['.date('m/d/Y g:i A').'] - '.(($success)?'SUCCESS :':'FAILURE :').$message. "\n";
244
+
245
+ if ($end) {
246
+ $text .= "\n------------------------------------------------------------------\n\n";
247
+ }
248
+
249
+ // Write to log
250
+ $fp=fopen($this->ipn_log_file,'a');
251
+ fwrite($fp, $text );
252
+ fclose($fp); // close file
253
+ }
254
+ }
255
+
256
+ // Start of IPN handling (script execution)
257
+
258
+ $ipn_handler_instance = new paypal_ipn_handler();
259
+
260
+ $debug_enabled = true; //get_option('wp_cart_enable_debug');
261
+
262
+ if ($debug_enabled)
263
+ {
264
+ echo 'Debug is enabled. Check the '.$debug_log.' file for debug output.';
265
+ $ipn_handler_instance->ipn_log = true;
266
+ $ipn_handler_instance->ipn_log_file = $debug_log;
267
+ }
268
+
269
+ $sandbox = false; //get_option('wp_cart_enable_sandbox');
270
+
271
+ if ($sandbox) // Enable sandbox testing
272
+ {
273
+ $ipn_handler_instance->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
274
+ }
275
+
276
+ $ipn_handler_instance->debug_log('Paypal Class Initiated by '.$_SERVER['REMOTE_ADDR'],true);
277
+
278
+ // Validate the IPN
279
+ if ($ipn_handler_instance->validate_ipn())
280
+ {
281
+ $ipn_handler_instance->debug_log('Creating prodcut Information to send.',true);
282
+
283
+ if(!$ipn_handler_instance->validate_and_dispatch_product())
284
+ {
285
+ $ipn_handler_instance->debug_log('IPN product validation failed.',false);
286
+ }
287
+ }
288
+ $ipn_handler_instance->debug_log('Paypal class finished.',true,true);
289
+
290
+ ?>
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: 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
 
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.1.3
7
+ Stable tag:3.1
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.4
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
@@ -25,10 +25,14 @@ if(!isset($_SESSION))
25
 
26
  $siteurl = get_option('siteurl');
27
  define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
28
- define('WP_CART_URL', get_option('siteurl').'/wp-content/plugins/' . WP_CART_FOLDER);
 
29
 
30
- add_option('wp_cart_title', 'Your Shopping Cart');
31
- add_option('wp_cart_empty_text', 'Your cart is empty');
 
 
 
32
  add_option('cart_return_from_paypal_url', get_bloginfo('wpurl'));
33
 
34
  function always_show_cart_handler($atts)
@@ -61,15 +65,25 @@ function shopping_cart_show($content)
61
  }
62
 
63
  // Reset the Cart as this is a returned customer from Paypal
64
- $merchant_return_link = $_GET["merchant_return_link"];
65
- if (!empty($merchant_return_link))
66
  {
67
  reset_wp_cart();
 
68
  }
69
- $mc_gross = $_GET["mc_gross"];
70
- if ($mc_gross > 0)
71
  {
72
  reset_wp_cart();
 
 
 
 
 
 
 
 
 
 
73
  }
74
 
75
  function reset_wp_cart()
@@ -79,8 +93,7 @@ function reset_wp_cart()
79
  {
80
  unset($products[$key]);
81
  }
82
- $_SESSION['simpleCart'] = $products;
83
- header('Location: ' . get_option('cart_return_from_paypal_url'));
84
  }
85
 
86
  if ($_POST['addcart'])
@@ -119,6 +132,21 @@ if ($_POST['addcart'])
119
 
120
  sort($products);
121
  $_SESSION['simpleCart'] = $products;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  }
123
  else if ($_POST['cquantity'])
124
  {
@@ -155,12 +183,19 @@ function print_wp_shopping_cart()
155
  $empty_cart_text = get_option('wp_cart_empty_text');
156
  if (!empty($empty_cart_text))
157
  {
158
- $output .= $empty_cart_text;
 
 
 
 
 
 
 
159
  }
160
  $cart_products_page_url = get_option('cart_products_page_url');
161
  if (!empty($cart_products_page_url))
162
  {
163
- $output .= '<br /><a rel="nofollow" href="'.$cart_products_page_url.'">Visit The Shop</a>';
164
  }
165
  return $output;
166
  }
@@ -172,11 +207,11 @@ function print_wp_shopping_cart()
172
  if (!empty($defaultCurrency))
173
  $paypal_currency = $defaultCurrency;
174
  else
175
- $paypal_currency = 'USD';
176
  if (!empty($defaultSymbol))
177
  $paypal_symbol = $defaultSymbol;
178
  else
179
- $paypal_symbol = '$';
180
 
181
  if (!empty($defaultEmail))
182
  $email = $defaultEmail;
@@ -193,18 +228,19 @@ function print_wp_shopping_cart()
193
  {
194
  if (function_exists('wp_aff_platform_install'))
195
  {
196
- $notify = WP_CART_URL.'/paypal.php';
 
197
  $urls .= '<input type="hidden" name="notify_url" value="'.$notify.'" />';
198
  }
199
  }
200
  $title = get_option('wp_cart_title');
201
- //if (empty($title)) $title = 'Your Shopping Cart';
202
 
203
  global $plugin_dir_name;
204
  $output .= '<div class="shopping_cart" style=" padding: 5px;">';
205
  if (!get_option('wp_shopping_cart_image_hide'))
206
  {
207
- $output .= "<input type='image' src='".WP_CART_URL."/images/shopping_cart_icon.png' value='Cart' title='Cart' />";
208
  }
209
  if(!empty($title))
210
  {
@@ -213,7 +249,7 @@ function print_wp_shopping_cart()
213
  $output .= '</h2>';
214
  }
215
 
216
- $output .= '<br /><span id="pinfo" style="display: none; font-weight: bold; color: red;">Hit enter to submit new Quantity.</span>';
217
  $output .= '<table style="width: 100%;">';
218
 
219
  $count = 1;
@@ -224,7 +260,7 @@ function print_wp_shopping_cart()
224
  {
225
  $output .= '
226
  <tr>
227
- <th style="text-align: left">Item Name</th><th>Quantity</th><th>Price</th>
228
  </tr>';
229
 
230
  foreach ($_SESSION['simpleCart'] as $item)
@@ -233,8 +269,15 @@ function print_wp_shopping_cart()
233
  $item_total_shipping += $item['shipping'] * $item['quantity'];
234
  $total_items += $item['quantity'];
235
  }
236
- $baseShipping = get_option('cart_base_shipping_cost');
237
- $postage_cost = $item_total_shipping + $baseShipping;
 
 
 
 
 
 
 
238
 
239
  $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
240
  if (!empty($cart_free_shipping_threshold) && $total > $cart_free_shipping_threshold)
@@ -254,7 +297,7 @@ function print_wp_shopping_cart()
254
  <td><form method=\"post\" action=\"\">
255
  <input type=\"hidden\" name=\"product\" value=\"".$item['name']."\" />
256
  <input type='hidden' name='delcart' value='1' />
257
- <input type='image' src='".WP_CART_URL."/images/Shoppingcart_delete.png' value='Remove' title='Remove' /></form></td></tr>
258
  ";
259
 
260
  $form .= "
@@ -284,17 +327,17 @@ function print_wp_shopping_cart()
284
  if ($postage_cost != 0)
285
  {
286
  $output .= "
287
- <tr><td colspan='2' style='font-weight: bold; text-align: right;'>Subtotal: </td><td style='text-align: center'>".print_payment_currency($total, $paypal_symbol, $decimal)."</td><td></td></tr>
288
- <tr><td colspan='2' style='font-weight: bold; text-align: right;'>Shipping: </td><td style='text-align: center'>".print_payment_currency($postage_cost, $paypal_symbol, $decimal)."</td><td></td></tr>";
289
  }
290
 
291
  $output .= "
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
 
299
  $output .= $urls.'
300
  <input type="hidden" name="business" value="'.$email.'" />
@@ -342,7 +385,7 @@ function print_wp_cart_button_new($content)
342
 
343
  $addcart = get_option('addToCartButtonName');
344
  if (!$addcart || ($addcart == '') )
345
- $addcart = 'Add to Cart';
346
 
347
  $pattern = '#\[wp_cart:.+:price:.+:end]#';
348
  preg_match_all ($pattern, $content, $matches);
@@ -424,7 +467,7 @@ function print_wp_cart_button_new($content)
424
 
425
  if (preg_match("/http/", $addcart)) // Use the image as the 'add to cart' button
426
  {
427
- $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="Add to Cart"/>';
428
  }
429
  else
430
  {
@@ -483,13 +526,13 @@ function print_wp_cart_button_for_product($name, $price, $shipping=0)
483
  $addcart = get_option('addToCartButtonName');
484
 
485
  if (!$addcart || ($addcart == '') )
486
- $addcart = 'Add to Cart';
487
 
488
 
489
  $replacement = '<object><form method="post" action="" style="display:inline">';
490
  if (preg_match("/http:/", $addcart)) // Use the image as the 'add to cart' button
491
  {
492
- $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="Add to Cart"/>';
493
  }
494
  else
495
  {
@@ -532,7 +575,7 @@ function cart_current_page_url() {
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"]);
@@ -548,18 +591,23 @@ function show_wp_cart_options_page () {
548
  update_option('wp_cart_empty_text', (string)$_POST["wp_cart_empty_text"]);
549
  update_option('cart_return_from_paypal_url', (string)$_POST["cart_return_from_paypal_url"]);
550
  update_option('cart_products_page_url', (string)$_POST["cart_products_page_url"]);
 
 
 
 
 
551
  update_option('wp_shopping_cart_image_hide', ($_POST['wp_shopping_cart_image_hide']!='') ? 'checked="checked"':'' );
552
  update_option('wp_use_aff_platform', ($_POST['wp_use_aff_platform']!='') ? 'checked="checked"':'' );
553
 
554
  echo '<div id="message" class="updated fade">';
555
- echo '<p><strong>Options Updated!</strong></p></div>';
556
  }
557
 
558
  $defaultCurrency = get_option('cart_payment_currency');
559
- if (empty($defaultCurrency)) $defaultCurrency = 'USD';
560
 
561
  $defaultSymbol = get_option('cart_currency_symbol');
562
- if (empty($defaultSymbol)) $defaultSymbol = '$';
563
 
564
  $baseShipping = get_option('cart_base_shipping_cost');
565
  if (empty($baseShipping)) $baseShipping = 0;
@@ -572,14 +620,25 @@ function show_wp_cart_options_page () {
572
  $return_url = get_option('cart_return_from_paypal_url');
573
 
574
  $addcart = get_option('addToCartButtonName');
575
- if (empty($addcart)) $addcart = 'Add to Cart';
576
 
577
  $title = get_option('wp_cart_title');
578
- //if (empty($title)) $title = 'Your Shopping Cart';
579
 
580
  $emptyCartText = get_option('wp_cart_empty_text');
581
- $cart_products_page_url = get_option('cart_products_page_url');
582
-
 
 
 
 
 
 
 
 
 
 
 
583
  if (get_option('wp_shopping_cart_collect_address'))
584
  $wp_shopping_cart_collect_address = 'checked="checked"';
585
  else
@@ -601,16 +660,16 @@ function show_wp_cart_options_page () {
601
  $wp_use_aff_platform = '';
602
 
603
  ?>
604
- <h2>Simple Paypal Shopping Cart Settings v <?php echo $wp_simple_paypal_shopping_cart_version; ?></h2>
605
 
606
- <p>For information, updates and detailed documentation, please visit:<br />
607
  <a href="http://www.tipsandtricks-hq.com/?p=768">http://www.tipsandtricks-hq.com/?p=768</a></p>
608
 
609
  <fieldset class="options">
610
- <legend>Usage:</legend>
611
 
612
- <p>1. To add the 'Add to Cart' button simply add the trigger text <strong>[wp_cart:PRODUCT-NAME:price:PRODUCT-PRICE:end]</strong> to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]</p>
613
- <p>2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or page or use the sidebar widget to add the shopping cart to the sidebar.</p>
614
  </fieldset>
615
 
616
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
@@ -618,95 +677,109 @@ function show_wp_cart_options_page () {
618
  <?php
619
  echo '
620
  <div class="postbox">
621
- <h3><label for="title">PayPal and Shopping Cart Settings</label></h3>
622
  <div class="inside">';
623
 
624
  echo '
625
  <table class="form-table">
626
  <tr valign="top">
627
- <th scope="row">Paypal Email Address</th>
628
  <td><input type="text" name="cart_paypal_email" value="'.$defaultEmail.'" size="40" /></td>
629
  </tr>
630
  <tr valign="top">
631
- <th scope="row">Shopping Cart title</th>
632
  <td><input type="text" name="wp_cart_title" value="'.$title.'" size="40" /></td>
633
  </tr>
634
  <tr valign="top">
635
- <th scope="row">Text to show when Cart empty</th>
636
- <td><input type="text" name="wp_cart_empty_text" value="'.$emptyCartText.'" size="40" /></td>
637
  </tr>
638
  <tr valign="top">
639
- <th scope="row">Currency</th>
640
- <td><input type="text" name="cart_payment_currency" value="'.$defaultCurrency.'" size="6" /> (e.g. USD, EUR, GBP, AUD)</td>
641
  </tr>
642
  <tr valign="top">
643
- <th scope="row">Currency Sybmol</th>
644
- <td><input type="text" name="cart_currency_symbol" value="'.$defaultSymbol.'" size="2" style="width: 1.5em;" /> (e.g. $, &#163;, &#8364;)
645
  </td>
646
  </tr>
647
 
648
  <tr valign="top">
649
- <th scope="row">Base Shipping Cost</th>
650
- <td><input type="text" name="cart_base_shipping_cost" value="'.$baseShipping.'" size="5" /> <br />This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost. <a href="http://www.tipsandtricks-hq.com/ecommerce/?p=297" target="_blank">Learn More on Shipping Calculation</a></td>
651
  </tr>
652
 
653
  <tr valign="top">
654
- <th scope="row">Free Shipping for Orders Over</th>
655
- <td><input type="text" name="cart_free_shipping_threshold" value="'.$cart_free_shipping_threshold.'" size="5" /> <br />When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it.</td>
656
  </tr>
657
 
658
  <tr valign="top">
659
- <th scope="row">Must Collect Shipping Address on PayPal</th>
660
- <td><input type="checkbox" name="wp_shopping_cart_collect_address" value="1" '.$wp_shopping_cart_collect_address.' /><br />If checked the customer will be forced to enter a shipping address on PayPal when checking out.</td>
661
  </tr>
662
 
663
  <tr valign="top">
664
- <th scope="row">Use PayPal Profile Based Shipping</th>
665
- <td><input type="checkbox" name="wp_shopping_cart_use_profile_shipping" value="1" '.$wp_shopping_cart_use_profile_shipping.' /><br />Check this if you want to use <a href="https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_ProfileAndTools#id08A9EF00IQY" target="_blank">PayPal profile based shipping</a>. Using this will ignore any other shipping options that you have specified in this plugin.</td>
666
  </tr>
667
 
668
  <tr valign="top">
669
- <th scope="row">Add to Cart button text or Image</th>
670
- <td><input type="text" name="addToCartButtonName" value="'.$addcart.'" size="100" /><br />To use a cusomized image as the button simply enter the URL of the image file. eg. http://www.tipsandtricks-hq.com/wp-content/plugins/wordpress-paypal-shopping-cart/images/buy_now_button.png</td>
671
  </tr>
672
 
673
  <tr valign="top">
674
- <th scope="row">Return URL</th>
675
- <td><input type="text" name="cart_return_from_paypal_url" value="'.$return_url.'" size="100" /><br />This is the URL the customer will be redirected to after a successful payment</td>
676
  </tr>
677
 
678
  <tr valign="top">
679
- <th scope="row">Products Page URL</th>
680
- <td><input type="text" name="cart_products_page_url" value="'.$cart_products_page_url.'" size="100" /><br />This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty</td>
 
 
 
 
 
 
 
 
 
 
 
 
 
681
  </tr>
682
  </table>
683
 
684
 
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
 
692
  <table class="form-table">
693
  <tr valign="top">
694
- <th scope="row">Use WP Affiliate Platform</th>
695
- <td><input type="checkbox" name="wp_use_aff_platform" value="1" '.$wp_use_aff_platform.' /><br />Check this if using with the <a href="http://tipsandtricks-hq.com/?p=1474" target="_blank">WP Affiliate Platform plugin</a>.</td>
 
696
  </tr>
697
  </table>
698
  </div></div>
699
  <div class="submit">
700
- <input type="submit" name="info_update" value="Update Options &raquo;" />
701
  </div>
702
  </form>
703
  ';
704
- echo 'Like the Simple WordPress Shopping Cart Plugin? <a href="http://wordpress.org/extend/plugins/wordpress-simple-paypal-shopping-cart" target="_blank">Give it a good rating</a>';
705
  }
706
 
707
  function wp_cart_options()
708
  {
709
- echo '<div class="wrap"><h2>WP Paypal Shopping Cart Options</h2>';
710
  echo '<div id="poststuff"><div id="post-body">';
711
  show_wp_cart_options_page();
712
  echo '</div></div>';
@@ -716,7 +789,7 @@ function wp_cart_options()
716
  // Display The Options Page
717
  function wp_cart_options_page ()
718
  {
719
- add_options_page('WP Paypal Shopping Cart', 'WP Shopping Cart', 'manage_options', __FILE__, 'wp_cart_options');
720
  }
721
 
722
  function show_wp_paypal_shopping_cart_widget($args)
@@ -724,7 +797,7 @@ function show_wp_paypal_shopping_cart_widget($args)
724
  extract($args);
725
 
726
  $cart_title = get_option('wp_cart_title');
727
- if (empty($cart_title)) $cart_title = 'Shopping Cart';
728
 
729
  echo $before_widget;
730
  echo $before_title . $cart_title . $after_title;
@@ -736,16 +809,16 @@ function wp_paypal_shopping_cart_widget_control()
736
  {
737
  ?>
738
  <p>
739
- <? _e("Set the Plugin Settings from the Settings menu"); ?>
740
  </p>
741
  <?php
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' );
749
  }
750
 
751
  function wp_cart_css()
@@ -753,6 +826,17 @@ function wp_cart_css()
753
  echo '<link type="text/css" rel="stylesheet" href="'.WP_CART_URL.'/wp_shopping_cart_style.css" />'."\n";
754
  }
755
 
 
 
 
 
 
 
 
 
 
 
 
756
  // Insert the options page to the admin menu
757
  add_action('admin_menu','wp_cart_options_page');
758
  add_action('init', 'widget_wp_paypal_shopping_cart_init');
1
  <?php
2
  /*
3
  Plugin Name: WP Simple Paypal Shopping cart
4
+ Version: v3.1
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
25
 
26
  $siteurl = get_option('siteurl');
27
  define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
28
+ define('WP_CART_URL', plugins_url('',__FILE__));
29
+ //define('WP_CART_URL', get_option('siteurl').'/wp-content/plugins/' . WP_CART_FOLDER);
30
 
31
+ // loading language files
32
+ load_plugin_textdomain('WSPSC', false, WP_CART_FOLDER . '/languages');
33
+
34
+ add_option('wp_cart_title', __("Your Shopping Cart", "WSPSC"));
35
+ add_option('wp_cart_empty_text', __("Your cart is empty", "WSPSC"));
36
  add_option('cart_return_from_paypal_url', get_bloginfo('wpurl'));
37
 
38
  function always_show_cart_handler($atts)
65
  }
66
 
67
  // Reset the Cart as this is a returned customer from Paypal
68
+ if (isset($_GET["merchant_return_link"]) && !empty($_GET["merchant_return_link"]))
 
69
  {
70
  reset_wp_cart();
71
+ header('Location: ' . get_option('cart_return_from_paypal_url'));
72
  }
73
+
74
+ if (isset($_GET["mc_gross"])&& $_GET["mc_gross"]> 0)
75
  {
76
  reset_wp_cart();
77
+ header('Location: ' . get_option('cart_return_from_paypal_url'));
78
+ }
79
+
80
+ //Clear the cart if the customer landed on the thank you page
81
+ if (get_option('wp_shopping_cart_reset_after_redirection_to_return_page'))
82
+ {
83
+ if(get_option('cart_return_from_paypal_url') == cart_current_page_url())
84
+ {
85
+ reset_wp_cart();
86
+ }
87
  }
88
 
89
  function reset_wp_cart()
93
  {
94
  unset($products[$key]);
95
  }
96
+ $_SESSION['simpleCart'] = $products;
 
97
  }
98
 
99
  if ($_POST['addcart'])
132
 
133
  sort($products);
134
  $_SESSION['simpleCart'] = $products;
135
+
136
+ if (get_option('wp_shopping_cart_auto_redirect_to_checkout_page'))
137
+ {
138
+ $checkout_url = get_option('cart_checkout_page_url');
139
+ if(empty($checkout_url))
140
+ {
141
+ echo "<br /><strong>".(__("Shopping Cart Configuration Error! You must specify a value in the 'Checkout Page URL' field for the automatic redirection feature to work!", "WSPSC"))."</strong><br />";
142
+ }
143
+ else
144
+ {
145
+ $redirection_parameter = 'Location: '.$checkout_url;
146
+ header($redirection_parameter);
147
+ exit;
148
+ }
149
+ }
150
  }
151
  else if ($_POST['cquantity'])
152
  {
183
  $empty_cart_text = get_option('wp_cart_empty_text');
184
  if (!empty($empty_cart_text))
185
  {
186
+ if (preg_match("/http/", $empty_cart_text))
187
+ {
188
+ $output .= '<img src="'.$empty_cart_text.'" alt="'.$empty_cart_text.'" />';
189
+ }
190
+ else
191
+ {
192
+ $output .= $empty_cart_text;
193
+ }
194
  }
195
  $cart_products_page_url = get_option('cart_products_page_url');
196
  if (!empty($cart_products_page_url))
197
  {
198
+ $output .= '<br /><a rel="nofollow" href="'.$cart_products_page_url.'">'.(__("Visit The Shop", "WSPSC")).'</a>';
199
  }
200
  return $output;
201
  }
207
  if (!empty($defaultCurrency))
208
  $paypal_currency = $defaultCurrency;
209
  else
210
+ $paypal_currency = __("USD", "WSPSC");
211
  if (!empty($defaultSymbol))
212
  $paypal_symbol = $defaultSymbol;
213
  else
214
+ $paypal_symbol = __("$", "WSPSC");
215
 
216
  if (!empty($defaultEmail))
217
  $email = $defaultEmail;
228
  {
229
  if (function_exists('wp_aff_platform_install'))
230
  {
231
+ $notify = WP_AFF_PLATFORM_URL.'/api/ipn_handler.php';
232
+ //$notify = WP_CART_URL.'/paypal.php';
233
  $urls .= '<input type="hidden" name="notify_url" value="'.$notify.'" />';
234
  }
235
  }
236
  $title = get_option('wp_cart_title');
237
+ //if (empty($title)) $title = __("Your Shopping Cart", "WSPSC");
238
 
239
  global $plugin_dir_name;
240
  $output .= '<div class="shopping_cart" style=" padding: 5px;">';
241
  if (!get_option('wp_shopping_cart_image_hide'))
242
  {
243
+ $output .= "<input type='image' src='".WP_CART_URL."/images/shopping_cart_icon.png' value='".(__("Cart", "WSPSC"))."' title='".(__("Cart", "WSPSC"))."' />";
244
  }
245
  if(!empty($title))
246
  {
249
  $output .= '</h2>';
250
  }
251
 
252
+ $output .= '<br /><span id="pinfo" style="display: none; font-weight: bold; color: red;">'.(__("Hit enter to submit new Quantity.", "WSPSC")).'</span>';
253
  $output .= '<table style="width: 100%;">';
254
 
255
  $count = 1;
260
  {
261
  $output .= '
262
  <tr>
263
+ <th style="text-align: left">'.(__("Item Name", "WSPSC")).'</th><th>'.(__("Quantity", "WSPSC")).'</th><th>'.(__("Price", "WSPSC")).'</th>
264
  </tr>';
265
 
266
  foreach ($_SESSION['simpleCart'] as $item)
269
  $item_total_shipping += $item['shipping'] * $item['quantity'];
270
  $total_items += $item['quantity'];
271
  }
272
+ if(!empty($item_total_shipping))
273
+ {
274
+ $baseShipping = get_option('cart_base_shipping_cost');
275
+ $postage_cost = $item_total_shipping + $baseShipping;
276
+ }
277
+ else
278
+ {
279
+ $postage_cost = 0;
280
+ }
281
 
282
  $cart_free_shipping_threshold = get_option('cart_free_shipping_threshold');
283
  if (!empty($cart_free_shipping_threshold) && $total > $cart_free_shipping_threshold)
297
  <td><form method=\"post\" action=\"\">
298
  <input type=\"hidden\" name=\"product\" value=\"".$item['name']."\" />
299
  <input type='hidden' name='delcart' value='1' />
300
+ <input type='image' src='".WP_CART_URL."/images/Shoppingcart_delete.png' value='".(__("Remove", "WSPSC"))."' title='".(__("Remove", "WSPSC"))."' /></form></td></tr>
301
  ";
302
 
303
  $form .= "
327
  if ($postage_cost != 0)
328
  {
329
  $output .= "
330
+ <tr><td colspan='2' style='font-weight: bold; text-align: right;'>".(__("Subtotal", "WSPSC")).": </td><td style='text-align: center'>".print_payment_currency($total, $paypal_symbol, $decimal)."</td><td></td></tr>
331
+ <tr><td colspan='2' style='font-weight: bold; text-align: right;'>".(__("Shipping", "WSPSC")).": </td><td style='text-align: center'>".print_payment_currency($postage_cost, $paypal_symbol, $decimal)."</td><td></td></tr>";
332
  }
333
 
334
  $output .= "
335
+ <tr><td colspan='2' style='font-weight: bold; text-align: right;'>".(__("Total", "WSPSC")).": </td><td style='text-align: center'>".print_payment_currency(($total+$postage_cost), $paypal_symbol, $decimal)."</td><td></td></tr>
336
  <tr><td colspan='4'>";
337
 
338
  $output .= "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">$form";
339
  if ($count)
340
+ $output .= '<input type="image" src="'.WP_CART_URL.'/images/'.(__("paypal_checkout_EN.png", "WSPSC")).'" name="submit" class="wp_cart_checkout_button" alt="'.(__("Make payments with PayPal - it\'s fast, free and secure!", "WSPSC")).'" />';
341
 
342
  $output .= $urls.'
343
  <input type="hidden" name="business" value="'.$email.'" />
385
 
386
  $addcart = get_option('addToCartButtonName');
387
  if (!$addcart || ($addcart == '') )
388
+ $addcart = __("Add to Cart", "WSPSC");
389
 
390
  $pattern = '#\[wp_cart:.+:price:.+:end]#';
391
  preg_match_all ($pattern, $content, $matches);
467
 
468
  if (preg_match("/http/", $addcart)) // Use the image as the 'add to cart' button
469
  {
470
+ $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="'.(__("Add to Cart", "WSPSC")).'"/>';
471
  }
472
  else
473
  {
526
  $addcart = get_option('addToCartButtonName');
527
 
528
  if (!$addcart || ($addcart == '') )
529
+ $addcart = __("Add to Cart", "WSPSC");
530
 
531
 
532
  $replacement = '<object><form method="post" action="" style="display:inline">';
533
  if (preg_match("/http:/", $addcart)) // Use the image as the 'add to cart' button
534
  {
535
+ $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="'.(__("Add to Cart", "WSPSC")).'"/>';
536
  }
537
  else
538
  {
575
  }
576
 
577
  function show_wp_cart_options_page () {
578
+ $wp_simple_paypal_shopping_cart_version = "3.1";
579
  if (isset($_POST['info_update']))
580
  {
581
  update_option('cart_payment_currency', (string)$_POST["cart_payment_currency"]);
591
  update_option('wp_cart_empty_text', (string)$_POST["wp_cart_empty_text"]);
592
  update_option('cart_return_from_paypal_url', (string)$_POST["cart_return_from_paypal_url"]);
593
  update_option('cart_products_page_url', (string)$_POST["cart_products_page_url"]);
594
+
595
+ update_option('wp_shopping_cart_auto_redirect_to_checkout_page', ($_POST['wp_shopping_cart_auto_redirect_to_checkout_page']!='') ? 'checked="checked"':'' );
596
+ update_option('cart_checkout_page_url', (string)$_POST["cart_checkout_page_url"]);
597
+ update_option('wp_shopping_cart_reset_after_redirection_to_return_page', ($_POST['wp_shopping_cart_reset_after_redirection_to_return_page']!='') ? 'checked="checked"':'' );
598
+
599
  update_option('wp_shopping_cart_image_hide', ($_POST['wp_shopping_cart_image_hide']!='') ? 'checked="checked"':'' );
600
  update_option('wp_use_aff_platform', ($_POST['wp_use_aff_platform']!='') ? 'checked="checked"':'' );
601
 
602
  echo '<div id="message" class="updated fade">';
603
+ echo '<p><strong>'.(__("Options Updated!", "WSPSC")).'</strong></p></div>';
604
  }
605
 
606
  $defaultCurrency = get_option('cart_payment_currency');
607
+ if (empty($defaultCurrency)) $defaultCurrency = __("USD", "WSPSC");
608
 
609
  $defaultSymbol = get_option('cart_currency_symbol');
610
+ if (empty($defaultSymbol)) $defaultSymbol = __("$", "WSPSC");
611
 
612
  $baseShipping = get_option('cart_base_shipping_cost');
613
  if (empty($baseShipping)) $baseShipping = 0;
620
  $return_url = get_option('cart_return_from_paypal_url');
621
 
622
  $addcart = get_option('addToCartButtonName');
623
+ if (empty($addcart)) $addcart = __("Add to Cart", "WSPSC");
624
 
625
  $title = get_option('wp_cart_title');
626
+ //if (empty($title)) $title = __("Your Shopping Cart", "WSPSC");
627
 
628
  $emptyCartText = get_option('wp_cart_empty_text');
629
+ $cart_products_page_url = get_option('cart_products_page_url');
630
+
631
+ $cart_checkout_page_url = get_option('cart_checkout_page_url');
632
+ if (get_option('wp_shopping_cart_auto_redirect_to_checkout_page'))
633
+ $wp_shopping_cart_auto_redirect_to_checkout_page = 'checked="checked"';
634
+ else
635
+ $wp_shopping_cart_auto_redirect_to_checkout_page = '';
636
+
637
+ if (get_option('wp_shopping_cart_reset_after_redirection_to_return_page'))
638
+ $wp_shopping_cart_reset_after_redirection_to_return_page = 'checked="checked"';
639
+ else
640
+ $wp_shopping_cart_reset_after_redirection_to_return_page = '';
641
+
642
  if (get_option('wp_shopping_cart_collect_address'))
643
  $wp_shopping_cart_collect_address = 'checked="checked"';
644
  else
660
  $wp_use_aff_platform = '';
661
 
662
  ?>
663
+ <h2><?php _e("Simple Paypal Shopping Cart Settings", "WSPSC"); ?> v <?php echo $wp_simple_paypal_shopping_cart_version; ?></h2>
664
 
665
+ <p><?php _e("For information, updates and detailed documentation, please visit:", "WSPSC"); ?><br />
666
  <a href="http://www.tipsandtricks-hq.com/?p=768">http://www.tipsandtricks-hq.com/?p=768</a></p>
667
 
668
  <fieldset class="options">
669
+ <legend><?php _e("Usage:", "WSPSC"); ?></legend>
670
 
671
+ <p><?php _e("1. To add the 'Add to Cart' button simply add the trigger text", "WSPSC"); ?> <strong>[wp_cart:<?php _e("PRODUCT-NAME", "WSPSC"); ?>:price:<?php _e("PRODUCT-PRICE", "WSPSC"); ?>:end]</strong> <?php _e("to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price. For example: [wp_cart:Test Product:price:15.00:end]", "WSPSC"); ?></p>
672
+ <p><?php _e("2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode", "WSPSC"); ?> <strong>[show_wp_shopping_cart]</strong> <?php _e("to a post or page or use the sidebar widget to add the shopping cart to the sidebar.", "WSPSC"); ?></p>
673
  </fieldset>
674
 
675
  <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
677
  <?php
678
  echo '
679
  <div class="postbox">
680
+ <h3><label for="title">'.(__("PayPal and Shopping Cart Settings", "WSPSC")).'</label></h3>
681
  <div class="inside">';
682
 
683
  echo '
684
  <table class="form-table">
685
  <tr valign="top">
686
+ <th scope="row">'.(__("Paypal Email Address", "WSPSC")).'</th>
687
  <td><input type="text" name="cart_paypal_email" value="'.$defaultEmail.'" size="40" /></td>
688
  </tr>
689
  <tr valign="top">
690
+ <th scope="row">'.(__("Shopping Cart title", "WSPSC")).'</th>
691
  <td><input type="text" name="wp_cart_title" value="'.$title.'" size="40" /></td>
692
  </tr>
693
  <tr valign="top">
694
+ <th scope="row">'.(__("Text/Image to Show When Cart Empty", "WSPSC")).'</th>
695
+ <td><input type="text" name="wp_cart_empty_text" value="'.$emptyCartText.'" size="60" /><br />'.(__("You can either enter plain text or the URL of an image that you want to show when the shopping cart is empty", "WSPSC")).'</td>
696
  </tr>
697
  <tr valign="top">
698
+ <th scope="row">'.(__("Currency", "WSPSC")).'</th>
699
+ <td><input type="text" name="cart_payment_currency" value="'.$defaultCurrency.'" size="6" /> ('.(__("e.g.", "WSPSC")).' USD, EUR, GBP, AUD)</td>
700
  </tr>
701
  <tr valign="top">
702
+ <th scope="row">'.(__("Currency Symbol", "WSPSC")).'</th>
703
+ <td><input type="text" name="cart_currency_symbol" value="'.$defaultSymbol.'" size="2" style="width: 1.5em;" /> ('.(__("e.g.", "WSPSC")).' $, &#163;, &#8364;)
704
  </td>
705
  </tr>
706
 
707
  <tr valign="top">
708
+ <th scope="row">'.(__("Base Shipping Cost", "WSPSC")).'</th>
709
+ <td><input type="text" name="cart_base_shipping_cost" value="'.$baseShipping.'" size="5" /> <br />'.(__("This is the base shipping cost that will be added to the total of individual products shipping cost. Put 0 if you do not want to charge shipping cost or use base shipping cost.", "WSPSC")).' <a href="http://www.tipsandtricks-hq.com/ecommerce/?p=297" target="_blank">'.(__("Learn More on Shipping Calculation", "WSPSC")).'</a></td>
710
  </tr>
711
 
712
  <tr valign="top">
713
+ <th scope="row">'.(__("Free Shipping for Orders Over", "WSPSC")).'</th>
714
+ <td><input type="text" name="cart_free_shipping_threshold" value="'.$cart_free_shipping_threshold.'" size="5" /> <br />'.(__("When a customer orders more than this amount he/she will get free shipping. Leave empty if you do not want to use it.", "WSPSC")).'</td>
715
  </tr>
716
 
717
  <tr valign="top">
718
+ <th scope="row">'.(__("Must Collect Shipping Address on PayPal", "WSPSC")).'</th>
719
+ <td><input type="checkbox" name="wp_shopping_cart_collect_address" value="1" '.$wp_shopping_cart_collect_address.' /><br />'.(__("If checked the customer will be forced to enter a shipping address on PayPal when checking out.", "WSPSC")).'</td>
720
  </tr>
721
 
722
  <tr valign="top">
723
+ <th scope="row">'.(__("Use PayPal Profile Based Shipping", "WSPSC")).'</th>
724
+ <td><input type="checkbox" name="wp_shopping_cart_use_profile_shipping" value="1" '.$wp_shopping_cart_use_profile_shipping.' /><br />'.(__("Check this if you want to use", "WSPSC")).' <a href="https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/e_howto_html_ProfileAndTools#id08A9EF00IQY" target="_blank">'.(__("PayPal profile based shipping", "WSPSC")).'</a>. '.(__("Using this will ignore any other shipping options that you have specified in this plugin.", "WSPSC")).'</td>
725
  </tr>
726
 
727
  <tr valign="top">
728
+ <th scope="row">'.(__("Add to Cart button text or Image", "WSPSC")).'</th>
729
+ <td><input type="text" name="addToCartButtonName" value="'.$addcart.'" size="100" /><br />'.(__("To use a customized image as the button simply enter the URL of the image file.", "WSPSC")).' '.(__("e.g.", "WSPSC")).' http://www.your-domain.com/wp-content/plugins/wordpress-paypal-shopping-cart/images/buy_now_button.png</td>
730
  </tr>
731
 
732
  <tr valign="top">
733
+ <th scope="row">'.(__("Return URL", "WSPSC")).'</th>
734
+ <td><input type="text" name="cart_return_from_paypal_url" value="'.$return_url.'" size="100" /><br />'.(__("This is the URL the customer will be redirected to after a successful payment", "WSPSC")).'</td>
735
  </tr>
736
 
737
  <tr valign="top">
738
+ <th scope="row">'.(__("Products Page URL", "WSPSC")).'</th>
739
+ <td><input type="text" name="cart_products_page_url" value="'.$cart_products_page_url.'" size="100" /><br />'.(__("This is the URL of your products page if you have any. If used, the shopping cart widget will display a link to this page when cart is empty", "WSPSC")).'</td>
740
+ </tr>
741
+
742
+ <tr valign="top">
743
+ <th scope="row">'.(__("Automatic redirection to checkout page", "WSPSC")).'</th>
744
+ <td><input type="checkbox" name="wp_shopping_cart_auto_redirect_to_checkout_page" value="1" '.$wp_shopping_cart_auto_redirect_to_checkout_page.' />
745
+ '.(__("Checkout Page URL", "WSPSC")).': <input type="text" name="cart_checkout_page_url" value="'.$cart_checkout_page_url.'" size="60" />
746
+ <br />'.(__("If checked the visitor will be redirected to the Checkout page after a product is added to the cart. You must enter a URL in the Checkout Page URL field for this to work.", "WSPSC")).'</td>
747
+ </tr>
748
+
749
+ <tr valign="top">
750
+ <th scope="row">'.(__("Reset Cart After Redirection to Return Page", "WSPSC")).'</th>
751
+ <td><input type="checkbox" name="wp_shopping_cart_reset_after_redirection_to_return_page" value="1" '.$wp_shopping_cart_reset_after_redirection_to_return_page.' />
752
+ <br />'.(__("If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page.", "WSPSC")).'</td>
753
  </tr>
754
  </table>
755
 
756
 
757
  <table class="form-table">
758
  <tr valign="top">
759
+ <th scope="row">'.(__("Hide Shopping Cart Image", "WSPSC")).'</th>
760
+ <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.", "WSPSC")).'</td>
761
  </tr>
762
  </table>
763
 
764
  <table class="form-table">
765
  <tr valign="top">
766
+ <th scope="row">'.(__("Use WP Affiliate Platform", "WSPSC")).'</th>
767
+ <td><input type="checkbox" name="wp_use_aff_platform" value="1" '.$wp_use_aff_platform.' />
768
+ <br />'.(__("Check this if using with the", "WSPSC")).' <a href="http://tipsandtricks-hq.com/?p=1474" target="_blank">WP Affiliate Platform plugin</a>. '.(__("This plugin lets you run your own affiliate campaign/program and allows you to reward (pay commission) your affiliates for referred sales", "WSPSC")).'</td>
769
  </tr>
770
  </table>
771
  </div></div>
772
  <div class="submit">
773
+ <input type="submit" name="info_update" value="'.(__("Update Options &raquo;", "WSPSC")).'" />
774
  </div>
775
  </form>
776
  ';
777
+ echo (__("Like the Simple WordPress Shopping Cart Plugin?", "WSPSC")).' <a href="http://wordpress.org/extend/plugins/wordpress-simple-paypal-shopping-cart" target="_blank">'.(__("Give it a good rating", "WSPSC")).'</a>';
778
  }
779
 
780
  function wp_cart_options()
781
  {
782
+ echo '<div class="wrap"><h2>'.(__("WP Paypal Shopping Cart Options", "WSPSC")).'</h2>';
783
  echo '<div id="poststuff"><div id="post-body">';
784
  show_wp_cart_options_page();
785
  echo '</div></div>';
789
  // Display The Options Page
790
  function wp_cart_options_page ()
791
  {
792
+ add_options_page(__("WP Paypal Shopping Cart", "WSPSC"), __("WP Shopping Cart", "WSPSC"), 'manage_options', __FILE__, 'wp_cart_options');
793
  }
794
 
795
  function show_wp_paypal_shopping_cart_widget($args)
797
  extract($args);
798
 
799
  $cart_title = get_option('wp_cart_title');
800
+ if (empty($cart_title)) $cart_title = __("Shopping Cart", "WSPSC");
801
 
802
  echo $before_widget;
803
  echo $before_title . $cart_title . $after_title;
809
  {
810
  ?>
811
  <p>
812
+ <?php _e("Set the Plugin Settings from the Settings menu", "WSPSC"); ?>
813
  </p>
814
  <?php
815
  }
816
 
817
  function widget_wp_paypal_shopping_cart_init()
818
  {
819
+ $widget_options = array('classname' => 'widget_wp_paypal_shopping_cart', 'description' => __("Display WP Paypal Shopping Cart.", "WSPSC") );
820
+ wp_register_sidebar_widget('wp_paypal_shopping_cart_widgets', __("WP Paypal Shopping Cart", "WSPSC"), 'show_wp_paypal_shopping_cart_widget', $widget_options);
821
+ wp_register_widget_control('wp_paypal_shopping_cart_widgets', __("WP Paypal Shopping Cart", "WSPSC"), 'wp_paypal_shopping_cart_widget_control' );
822
  }
823
 
824
  function wp_cart_css()
826
  echo '<link type="text/css" rel="stylesheet" href="'.WP_CART_URL.'/wp_shopping_cart_style.css" />'."\n";
827
  }
828
 
829
+ // Add the settings link
830
+ function wp_simple_cart_add_settings_link($links, $file)
831
+ {
832
+ if ($file == plugin_basename(__FILE__)){
833
+ $settings_link = '<a href="options-general.php?page='.dirname(plugin_basename(__FILE__)).'/wp_shopping_cart.php">'.(__("Settings", "WSPSC")).'</a>';
834
+ array_unshift($links, $settings_link);
835
+ }
836
+ return $links;
837
+ }
838
+ add_filter('plugin_action_links', 'wp_simple_cart_add_settings_link', 10, 2 );
839
+
840
  // Insert the options page to the admin menu
841
  add_action('admin_menu','wp_cart_options_page');
842
  add_action('init', 'widget_wp_paypal_shopping_cart_init');
wp_shopping_cart_style.css CHANGED
@@ -4,7 +4,6 @@ font-size:12px;
4
  .shopping_cart h2{
5
  font-size:14px;
6
  }
7
-
8
  .wp_cart_checkout_button:hover{
9
  opacity:0.7;
10
  }
4
  .shopping_cart h2{
5
  font-size:14px;
6
  }
 
7
  .wp_cart_checkout_button:hover{
8
  opacity:0.7;
9
  }