WordPress Simple PayPal Shopping Cart - Version 3.5

Version Description

Download this release

Release Info

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

Code changes from version 3.3.1 to 3.5

images/paypal_checkout_ES.png ADDED
Binary file
languages/WSPSC-es_ES.mo ADDED
Binary file
languages/WSPSC-es_ES.po ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 2012-04-04 17:16+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
+ "Last-Translator: Ignacio Gallego Puyol <ignavago@gmail.com>\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../wp_shopping_cart.php:33
19
+ msgid "Your Shopping Cart"
20
+ msgstr "Su carrito de compra"
21
+
22
+ #: ../wp_shopping_cart.php:34
23
+ msgid "Your cart is empty"
24
+ msgstr "Su cesta está vacía"
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 "¡Error en la configuración! Debe especificar un valor en el campo 'Checkout Page URL' para que la opción de redirección automática funcione."
29
+
30
+ #: ../wp_shopping_cart.php:197
31
+ msgid "Visit The Shop"
32
+ msgstr "Visitar la tienda"
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 "Carro"
47
+
48
+ #: ../wp_shopping_cart.php:251
49
+ msgid "Hit enter to submit new Quantity."
50
+ msgstr "Pulse Intro para enviar nueva cantidad."
51
+
52
+ #: ../wp_shopping_cart.php:262
53
+ msgid "Item Name"
54
+ msgstr "Nombre del artículo"
55
+
56
+ #: ../wp_shopping_cart.php:262
57
+ msgid "Quantity"
58
+ msgstr "Cantidad"
59
+
60
+ #: ../wp_shopping_cart.php:262
61
+ msgid "Price"
62
+ msgstr "Precio"
63
+
64
+ #: ../wp_shopping_cart.php:299
65
+ msgid "Remove"
66
+ msgstr "Quitar"
67
+
68
+ #: ../wp_shopping_cart.php:329
69
+ msgid "Subtotal"
70
+ msgstr "Subtotal"
71
+
72
+ #: ../wp_shopping_cart.php:330
73
+ msgid "Shipping"
74
+ msgstr "Gastos de envío"
75
+
76
+ #: ../wp_shopping_cart.php:334
77
+ msgid "Total"
78
+ msgstr "Total"
79
+
80
+ #: ../wp_shopping_cart.php:339
81
+ msgid "paypal_checkout_EN.png"
82
+ msgstr "paypal_checkout_ES.png"
83
+
84
+ #: ../wp_shopping_cart.php:339
85
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
86
+ msgstr "Realice pagos con PayPal - ¡es rápido, gratis y seguro!"
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 "Añadir a la cesta"
95
+
96
+ #: ../wp_shopping_cart.php:602
97
+ msgid "Options Updated!"
98
+ msgstr "¡Opciones actualizadas!"
99
+
100
+ #: ../wp_shopping_cart.php:662
101
+ msgid "Simple Paypal Shopping Cart Settings"
102
+ msgstr "Opciones de Simple Paypal Shopping Cart"
103
+
104
+ #: ../wp_shopping_cart.php:664
105
+ msgid "For information, updates and detailed documentation, please visit:"
106
+ msgstr "Para más información, actualizaciones y documentación detallada, por favor visite:"
107
+
108
+ #: ../wp_shopping_cart.php:668
109
+ msgid "Usage:"
110
+ msgstr "Utilización:"
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. Para añadir un botón 'Añadir al carro' simplemente escribe el sigiuente texto"
115
+
116
+ #: ../wp_shopping_cart.php:670
117
+ msgid "PRODUCT-NAME"
118
+ msgstr "NOMBRE-PRODUCTO"
119
+
120
+ #: ../wp_shopping_cart.php:670
121
+ msgid "PRODUCT-PRICE"
122
+ msgstr "PRECIO-PRODUCTO"
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 "en una entrada o tu página de productos. Coloca NOMBRE-PRODUCTO y PRECIO-PRODUCTO con el nombre real y el precio. Por ejemplo: [wp_cart: Producto de prueba: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. Para agregar el carro de la compra a una entrada o página (ej. página de pago) sólo tiene que añadir el siguiente código"
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 "en la entrada o página o la barra lateral para añadir el carrito en la zona de la barra."
135
+
136
+ #: ../wp_shopping_cart.php:679
137
+ msgid "PayPal and Shopping Cart Settings"
138
+ msgstr "Opciones PayPal and Shopping Cart"
139
+
140
+ #: ../wp_shopping_cart.php:685
141
+ msgid "Paypal Email Address"
142
+ msgstr "Dirección Email en Paypal"
143
+
144
+ #: ../wp_shopping_cart.php:689
145
+ msgid "Shopping Cart title"
146
+ msgstr "Título del Carro de la Compra"
147
+
148
+ #: ../wp_shopping_cart.php:693
149
+ msgid "Text/Image to Show When Cart Empty"
150
+ msgstr "Texto/Imagen para mostrar cuando el carrito está vacío"
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 "Puede introducir texto o la URL de una imagen que quieres mostrar cuando el carrito de la compra está vacío"
155
+
156
+ #: ../wp_shopping_cart.php:697
157
+ msgid "Currency"
158
+ msgstr "Moneda"
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 "e.j."
165
+
166
+ #: ../wp_shopping_cart.php:701
167
+ msgid "Currency Symbol"
168
+ msgstr "Símbolo de la moneda"
169
+
170
+ #: ../wp_shopping_cart.php:707
171
+ msgid "Base Shipping Cost"
172
+ msgstr "Coste base del envío"
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 "Esta es el coste base de los gastos de envío, que se sumará al total de los costes unitarios de envío del producto. Ponga 0 si no quiere cargar el coste de envío o use el coste base."
177
+
178
+ #: ../wp_shopping_cart.php:708
179
+ msgid "Learn More on Shipping Calculation"
180
+ msgstr "Lea más información sobre el cálculo de envío"
181
+
182
+ #: ../wp_shopping_cart.php:712
183
+ msgid "Free Shipping for Orders Over"
184
+ msgstr "Envío gratuito para pedidos superiores a"
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 "Cuando un cliente ordena una cantidad mayor recibirá el envío gratis. Dejar en blanco si no desea utilizarlo."
189
+
190
+ #: ../wp_shopping_cart.php:717
191
+ msgid "Must Collect Shipping Address on PayPal"
192
+ msgstr "Recoger la dirección de envío en Paypal"
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 "Si está marcado, el cliente será obligado a introducir una dirección de envío en PayPal al momento de pagar."
197
+
198
+ #: ../wp_shopping_cart.php:722
199
+ msgid "Use PayPal Profile Based Shipping"
200
+ msgstr "Utilice gastos de envío basado en el perfíl de PayPal"
201
+
202
+ #: ../wp_shopping_cart.php:723
203
+ msgid "Check this if you want to use"
204
+ msgstr "Marque esta opción si desea utilizar"
205
+
206
+ #: ../wp_shopping_cart.php:723
207
+ msgid "PayPal profile based shipping"
208
+ msgstr "Envío basado en el perfil de Paypal"
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 "Usando esto se ignorará cualquier otra opción de gastos de envío que tu tengas especificada en este plugin."
213
+
214
+ #: ../wp_shopping_cart.php:727
215
+ msgid "Add to Cart button text or Image"
216
+ msgstr "Añadir al botón del carro un texto o imagen "
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 "Para utilizar una imagen personalizada como botón sólo escriba la dirección URL del archivo de la imagen."
221
+
222
+ #: ../wp_shopping_cart.php:732
223
+ msgid "Return URL"
224
+ msgstr "URL de vuelta a la web"
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 "Esta es la URL que el cliente va a ser redirigido después de haber pagado."
229
+
230
+ #: ../wp_shopping_cart.php:737
231
+ msgid "Products Page URL"
232
+ msgstr "URL de Página de productos"
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 "Esta es la URL de la página de productos si usted tiene alguna. Si es usado, el widget de carrito de la compra mostrará un enlace a esta página cuando la está vacío."
237
+
238
+ #: ../wp_shopping_cart.php:742
239
+ msgid "Automatic redirection to checkout page"
240
+ msgstr "Redirección automática a página de la caja."
241
+
242
+ #: ../wp_shopping_cart.php:744
243
+ msgid "Checkout Page URL"
244
+ msgstr "URL de página de la caja"
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 "Si es marcado el visitante será redirigido a la página de la caja después de añadir un producto al carro. Debes escribir la URL en 'URL de página de la caja' para qeu funcione."
249
+
250
+ #: ../wp_shopping_cart.php:749
251
+ msgid "Reset Cart After Redirection to Return Page"
252
+ msgstr "Vaciar el carro después de volver a la página."
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 "Si es marcado, el carrito de la compra estará limpio cuando vuelva, con una página de gratitud."
257
+
258
+ #: ../wp_shopping_cart.php:758
259
+ msgid "Hide Shopping Cart Image"
260
+ msgstr "Ocultar imagen de carrito de compra"
261
+
262
+ #: ../wp_shopping_cart.php:759
263
+ msgid "If ticked the shopping cart image will not be shown."
264
+ msgstr "Si es marcado la imagen del carrito de compra no se mostrará."
265
+
266
+ #: ../wp_shopping_cart.php:765
267
+ msgid "Use WP Affiliate Platform"
268
+ msgstr "Usar WP Plataforma de Afiliados"
269
+
270
+ #: ../wp_shopping_cart.php:767
271
+ msgid "Check this if using with the"
272
+ msgstr "Marca esto si utilizas "
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 "Este complemento le permite añadir su propia programa de fidelización y le permite recompensar con (pago por comisión) a sus afiliados por las ventas referenciadas."
277
+
278
+ #: ../wp_shopping_cart.php:772
279
+ msgid "Update Options &raquo;"
280
+ msgstr "Actualiza los cambios &raquo;"
281
+
282
+ #: ../wp_shopping_cart.php:776
283
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
284
+ msgstr "¿Te gusta Simple WordPress Shopping Cart Plugin?"
285
+
286
+ #: ../wp_shopping_cart.php:776
287
+ msgid "Give it a good rating"
288
+ msgstr "Dale una buena valoración"
289
+
290
+ #: ../wp_shopping_cart.php:781
291
+ msgid "WP Paypal Shopping Cart Options"
292
+ msgstr "Opciones WP Paypal Shopping Cart"
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 Shopping Cart"
299
+
300
+ #: ../wp_shopping_cart.php:791
301
+ msgid "WP Shopping Cart"
302
+ msgstr "WP Shopping Cart"
303
+
304
+ #: ../wp_shopping_cart.php:799
305
+ msgid "Shopping Cart"
306
+ msgstr "Carrito de Compras"
307
+
308
+ #: ../wp_shopping_cart.php:811
309
+ msgid "Set the Plugin Settings from the Settings menu"
310
+ msgstr "Establecer las opciones del complemento desde el menú de Ajustes"
311
+
312
+ #: ../wp_shopping_cart.php:818
313
+ msgid "Display WP Paypal Shopping Cart."
314
+ msgstr "Muestra WP Paypal Shopping Cart."
315
+
316
+ #: ../wp_shopping_cart.php:832
317
+ msgid "Settings"
318
+ msgstr "Opciones"
319
+
320
+ #~ msgid "show-wp-shopping-cart"
321
+ #~ msgstr "show-wp-shopping-cart"
322
+
323
+ #~ msgid ""
324
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
325
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
326
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
327
+ #~ msgstr ""
328
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
329
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
330
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
languages/WSPSC-fr_FR.mo ADDED
Binary file
languages/WSPSC-fr_FR.po ADDED
@@ -0,0 +1,326 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WSPSC v2.8.9\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-03-26 01:16+0100\n"
6
+ "PO-Revision-Date: 2012-04-04 00:41+0100\n"
7
+ "Last-Translator: Fred <fredaubailly@yahoo.fr>\n"
8
+ "Language-Team: Ruhul Amin\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: English\n"
15
+ "X-Poedit-Country: UNITED STATES\n"
16
+ "X-Poedit-SearchPath-0: ..\n"
17
+
18
+ #: ../wp_shopping_cart.php:32
19
+ msgid "Your Shopping Cart"
20
+ msgstr "Votre panier"
21
+
22
+ #: ../wp_shopping_cart.php:33
23
+ msgid "Your cart is empty"
24
+ msgstr "Votre panier est vide"
25
+
26
+ #: ../wp_shopping_cart.php:155
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 "Erreur de configuration! Vous devez spécifier une url dans le champ 'Checkout Page URL' pour que la redirection fonctionne!"
29
+
30
+ #: ../wp_shopping_cart.php:212
31
+ msgid "Visit The Shop"
32
+ msgstr "Visiter la boutique"
33
+
34
+ #: ../wp_shopping_cart.php:224
35
+ #: ../wp_shopping_cart.php:624
36
+ msgid "USD"
37
+ msgstr "USD"
38
+
39
+ #: ../wp_shopping_cart.php:228
40
+ #: ../wp_shopping_cart.php:627
41
+ msgid "$"
42
+ msgstr "$"
43
+
44
+ #: ../wp_shopping_cart.php:257
45
+ msgid "Cart"
46
+ msgstr "Panier"
47
+
48
+ #: ../wp_shopping_cart.php:266
49
+ msgid "Hit enter to submit new Quantity."
50
+ msgstr "Appuyez sur entrée pour soumettre la nouvelle quantité."
51
+
52
+ #: ../wp_shopping_cart.php:277
53
+ msgid "Item Name"
54
+ msgstr "Nom du produit"
55
+
56
+ #: ../wp_shopping_cart.php:277
57
+ msgid "Quantity"
58
+ msgstr "Quantité"
59
+
60
+ #: ../wp_shopping_cart.php:277
61
+ msgid "Price"
62
+ msgstr "Prix"
63
+
64
+ #: ../wp_shopping_cart.php:314
65
+ msgid "Remove"
66
+ msgstr "Supprimer"
67
+
68
+ #: ../wp_shopping_cart.php:345
69
+ msgid "Subtotal"
70
+ msgstr "Sous-total"
71
+
72
+ #: ../wp_shopping_cart.php:346
73
+ msgid "Shipping"
74
+ msgstr "Frais d'envoi"
75
+
76
+ #: ../wp_shopping_cart.php:350
77
+ msgid "Total"
78
+ msgstr "Total"
79
+
80
+ #: ../wp_shopping_cart.php:355
81
+ msgid "paypal_checkout_EN.png"
82
+ msgstr "paypal_checkout_EN.png"
83
+
84
+ #: ../wp_shopping_cart.php:355
85
+ msgid "Make payments with PayPal - it\\'s fast, free and secure!"
86
+ msgstr "Payez avec Paypal - C\\'est simple, rapide et sécurisé!"
87
+
88
+ #: ../wp_shopping_cart.php:403
89
+ #: ../wp_shopping_cart.php:486
90
+ #: ../wp_shopping_cart.php:546
91
+ #: ../wp_shopping_cart.php:552
92
+ #: ../wp_shopping_cart.php:640
93
+ msgid "Add to Cart"
94
+ msgstr "Ajouter au panier"
95
+
96
+ #: ../wp_shopping_cart.php:620
97
+ msgid "Options Updated!"
98
+ msgstr "Options mises à jour!"
99
+
100
+ #: ../wp_shopping_cart.php:680
101
+ msgid "Simple Paypal Shopping Cart Settings"
102
+ msgstr "Réglages Simple Paypal Shopping Cart"
103
+
104
+ #: ../wp_shopping_cart.php:682
105
+ msgid "For information, updates and detailed documentation, please visit:"
106
+ msgstr "Pour information, mises à jour et documentation détaillée, visitez:"
107
+
108
+ #: ../wp_shopping_cart.php:686
109
+ msgid "Usage:"
110
+ msgstr "Usage:"
111
+
112
+ #: ../wp_shopping_cart.php:688
113
+ msgid "1. To add the 'Add to Cart' button simply add the trigger text"
114
+ msgstr "1. Pour ajouter le bouton 'Add to Cart' ajoutez simplement le shortcode"
115
+
116
+ #: ../wp_shopping_cart.php:688
117
+ msgid "PRODUCT-NAME"
118
+ msgstr "NOM-DU-PRODUIT"
119
+
120
+ #: ../wp_shopping_cart.php:688
121
+ msgid "PRODUCT-PRICE"
122
+ msgstr "PRIX-DU-PRODUIT"
123
+
124
+ #: ../wp_shopping_cart.php:688
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 "dans l'article ou la page qui contient le produit. Remplacez NOM-DU-PRODUIT et PRIX_DU_PRODUIT par le nom et le prix. Par exemple: [wp-cart:Produit Test:prix:15.00:end]"
127
+
128
+ #: ../wp_shopping_cart.php:689
129
+ msgid "2. To add the shopping cart to a post or page (eg. checkout page) simply add the shortcode"
130
+ msgstr "2. Pour ajouter le panier sur un article ou une page (ex. page checkout) ajoutez simplement le code"
131
+
132
+ #: ../wp_shopping_cart.php:689
133
+ msgid "to a post or page or use the sidebar widget to add the shopping cart to the sidebar."
134
+ msgstr "dans une article ou une page ou utilisez le widget pour ajouter le panier dans la barre latérale."
135
+
136
+ #: ../wp_shopping_cart.php:697
137
+ msgid "PayPal and Shopping Cart Settings"
138
+ msgstr "Réglages panier et Paypal"
139
+
140
+ #: ../wp_shopping_cart.php:703
141
+ msgid "Paypal Email Address"
142
+ msgstr "Adresse email Paypal"
143
+
144
+ #: ../wp_shopping_cart.php:707
145
+ msgid "Shopping Cart title"
146
+ msgstr "Titre du panier"
147
+
148
+ #: ../wp_shopping_cart.php:711
149
+ msgid "Text/Image to Show When Cart Empty"
150
+ msgstr "Texte/Image à afficher quand le panier est vide"
151
+
152
+ #: ../wp_shopping_cart.php:712
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 "Vous pouvez saisir du texte ou l'url d'une image que vous voulez afficher quand le panier est vide"
155
+
156
+ #: ../wp_shopping_cart.php:715
157
+ msgid "Currency"
158
+ msgstr "Monnaie"
159
+
160
+ #: ../wp_shopping_cart.php:716
161
+ #: ../wp_shopping_cart.php:720
162
+ #: ../wp_shopping_cart.php:746
163
+ msgid "e.g."
164
+ msgstr "e.g."
165
+
166
+ #: ../wp_shopping_cart.php:719
167
+ msgid "Currency Symbol"
168
+ msgstr "Symbole de la monnaie"
169
+
170
+ #: ../wp_shopping_cart.php:725
171
+ msgid "Base Shipping Cost"
172
+ msgstr "Frais d'envoi de base"
173
+
174
+ #: ../wp_shopping_cart.php:726
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 "Ceci est le montant des frais d'envoi qui seront ajoutés au total des frais d'envoi de chaque produit. Saisissez 0 si vous ne voulez pas ajouter des frais d'envoi."
177
+
178
+ #: ../wp_shopping_cart.php:726
179
+ msgid "Learn More on Shipping Calculation"
180
+ msgstr "En savoir plus sur le calcul des frais d'envoi"
181
+
182
+ #: ../wp_shopping_cart.php:730
183
+ msgid "Free Shipping for Orders Over"
184
+ msgstr "Envoi gratuit pour les commandes supérieures à"
185
+
186
+ #: ../wp_shopping_cart.php:731
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 "Quand la commande est supérieure à ce montant les frais d'envoi sont gratuits. Laissez vide si vous ne souhaitez pas utiliser cette fonction."
189
+
190
+ #: ../wp_shopping_cart.php:735
191
+ msgid "Must Collect Shipping Address on PayPal"
192
+ msgstr "L'adresse postale sera précisée sur la page Paypal"
193
+
194
+ #: ../wp_shopping_cart.php:736
195
+ msgid "If checked the customer will be forced to enter a shipping address on PayPal when checking out."
196
+ msgstr "Si la case est cochée, le client devra préciser son adresse postale sur la page Paypal au moment du paiement."
197
+
198
+ #: ../wp_shopping_cart.php:740
199
+ msgid "Use PayPal Profile Based Shipping"
200
+ msgstr "Utiliser le calcul des frais d'envoi Paypal"
201
+
202
+ #: ../wp_shopping_cart.php:741
203
+ msgid "Check this if you want to use"
204
+ msgstr "Cochez cette case si vous souhaitez utiliser"
205
+
206
+ #: ../wp_shopping_cart.php:741
207
+ msgid "PayPal profile based shipping"
208
+ msgstr "le calcul des frais d'envoi Paypal"
209
+
210
+ #: ../wp_shopping_cart.php:741
211
+ msgid "Using this will ignore any other shipping options that you have specified in this plugin."
212
+ msgstr "Utiliser ce système désactivera toutes les autres options de calcul des frais d'envoi que vous aurez spécifiées."
213
+
214
+ #: ../wp_shopping_cart.php:745
215
+ msgid "Add to Cart button text or Image"
216
+ msgstr "Texte ou image Ajouter au panier"
217
+
218
+ #: ../wp_shopping_cart.php:746
219
+ msgid "To use a customized image as the button simply enter the URL of the image file."
220
+ msgstr "Pour utiliser une image personnalisée, indiquez l'url du fichier."
221
+
222
+ #: ../wp_shopping_cart.php:750
223
+ msgid "Return URL"
224
+ msgstr "Adresse de redirection vers la page retour"
225
+
226
+ #: ../wp_shopping_cart.php:751
227
+ msgid "This is the URL the customer will be redirected to after a successful payment"
228
+ msgstr "C'est l'url où sera redirigé le client après un paiement effectué"
229
+
230
+ #: ../wp_shopping_cart.php:755
231
+ msgid "Products Page URL"
232
+ msgstr "Url de la page produits"
233
+
234
+ #: ../wp_shopping_cart.php:756
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 "C'est l'adresse de la page qui contient vos produits. Si ce champ est rempli, le widget panier affichera un lien vers cette page tant qu'il est vide."
237
+
238
+ #: ../wp_shopping_cart.php:760
239
+ msgid "Automatic redirection to checkout page"
240
+ msgstr "Redirection automatique vers la page Checkout"
241
+
242
+ #: ../wp_shopping_cart.php:762
243
+ msgid "Checkout Page URL"
244
+ msgstr "URL de la page checkout"
245
+
246
+ #: ../wp_shopping_cart.php:763
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 "Si cette case est cochée, le client sera redirigé vers la page Checkout après avoir ajouter un produit dans le panier. Vous devez préciser l'adresse de la page Checkout dans le champ."
249
+
250
+ #: ../wp_shopping_cart.php:767
251
+ msgid "Reset Cart After Redirection to Return Page"
252
+ msgstr "Vider le panier après une redirection vers la page de retour"
253
+
254
+ #: ../wp_shopping_cart.php:769
255
+ msgid "If checked the shopping cart will be reset when the customer lands on the return URL (Thank You) page."
256
+ msgstr "Si la case est cochée, le panier sera vide à nouveau quand le client arrive sur la page retour."
257
+
258
+ #: ../wp_shopping_cart.php:776
259
+ msgid "Hide Shopping Cart Image"
260
+ msgstr "Masquer l'image Panier"
261
+
262
+ #: ../wp_shopping_cart.php:777
263
+ msgid "If ticked the shopping cart image will not be shown."
264
+ msgstr "Si la case est cochée l'image du panier ne sera pas affichée."
265
+
266
+ #: ../wp_shopping_cart.php:783
267
+ msgid "Use WP Affiliate Platform"
268
+ msgstr "Utiliser la plateforme d'affiliation WP"
269
+
270
+ #: ../wp_shopping_cart.php:785
271
+ msgid "Check this if using with the"
272
+ msgstr "Cochez cette case si vous voulez que"
273
+
274
+ #: ../wp_shopping_cart.php:785
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 "le plugin vous permette d'utiliser votre propre programme d'affiliation et vous autorise à commissioner vos affiliés pour les ventes qu'ils vous apportent"
277
+
278
+ #: ../wp_shopping_cart.php:790
279
+ msgid "Update Options &raquo;"
280
+ msgstr "Mettre à jour les options &raquo;"
281
+
282
+ #: ../wp_shopping_cart.php:794
283
+ msgid "Like the Simple WordPress Shopping Cart Plugin?"
284
+ msgstr "Vous aimez le plugin Simple Wordpress Shopping Cart?"
285
+
286
+ #: ../wp_shopping_cart.php:794
287
+ msgid "Give it a good rating"
288
+ msgstr "Donnez un avis favorable"
289
+
290
+ #: ../wp_shopping_cart.php:811
291
+ msgid "WP Paypal Shopping Cart Options"
292
+ msgstr "Options Panier WP Paypal"
293
+
294
+ #: ../wp_shopping_cart.php:821
295
+ msgid "WP Paypal Shopping Cart"
296
+ msgstr "Panier WP Paypal"
297
+
298
+ #: ../wp_shopping_cart.php:821
299
+ msgid "WP Shopping Cart"
300
+ msgstr "Panier WP"
301
+
302
+ #: ../wp_shopping_cart.php:844
303
+ msgid "Shopping Cart"
304
+ msgstr "Panier"
305
+
306
+ #: ../wp_shopping_cart.php:862
307
+ msgid "Settings"
308
+ msgstr "Réglages"
309
+
310
+ #~ msgid "Set the Plugin Settings from the Settings menu"
311
+ #~ msgstr "Régler le plugin depuis le menu réglages"
312
+
313
+ #~ msgid "Display WP Paypal Shopping Cart."
314
+ #~ msgstr "Afficher le panier WP Paypal"
315
+
316
+ #~ msgid "show-wp-shopping-cart"
317
+ #~ msgstr "show-wp-shopping-cart"
318
+
319
+ #~ msgid ""
320
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
321
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
322
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
323
+ #~ msgstr ""
324
+ #~ "2. To add the shopping cart to a post or page (eg. checkout page) simply "
325
+ #~ "add the shortcode <strong>[show_wp_shopping_cart]</strong> to a post or "
326
+ #~ "page or use the sidebar widget to add the shopping cart to the sidebar."
readme.txt CHANGED
@@ -1,19 +1,19 @@
1
  === WordPress Simple Paypal Shopping Cart ===
2
  Contributors: Ruhul Amin, Tips and Tricks HQ
3
  Donate link: http://www.tipsandtricks-hq.com
4
- Tags: shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, PayPal cart widget, sell digital products
5
- Requires at least: 2.8
6
- Tested up to: 3.4.1
7
- Stable tag: 3.3.0
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.
11
 
12
  == Description ==
13
 
14
- WordPress Simple Paypal Shopping Cart allows you to add an 'Add to Cart' button for your product on any posts or pages.
15
 
16
- It also allows you to add/display the shopping cart on any post or page or sidebar easily. The shopping cart shows the user what they currently have in the cart and allows them to remove the items.
17
 
18
  It can be easily integrated with the NextGen Photo Gallery plugin to acomodate the selling of photographs from your gallery.
19
 
@@ -32,6 +32,7 @@ or
32
  * Use a function to add dynamic "add to cart" button directly in your theme.
33
  * Minimal number of configuration items to keep the plugin lightweight.
34
  * You can use Paypal sandbox to do testing if needed.
 
35
  * and more...
36
 
37
  = Note =
@@ -44,7 +45,7 @@ There are a few exact duplicate copies of this plugin that other people made. We
44
  * Check the developer's site.
45
 
46
  == Usage ==
47
- 1. To add the 'Add to Cart' button simply add the trigger text [wp_cart:PRODUCT-NAME:price:PRODUCT-PRICE:end] to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
48
  2. To add the 'Add to Cart' button on the sidebar or from other template files use the following function:
49
  <?php echo print_wp_cart_button_for_product('PRODUCT-NAME', PRODUCT-PRICE); ?>
50
  Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
@@ -87,7 +88,8 @@ example, [wp_cart:Demo Product 1:price:15:shipping:2:var1[Size|Small|Medium|Larg
87
  4. Does this plugin has multiple currency support? Yes.
88
  5. Is the 'Add to Cart' button customizable? Yes.
89
  6. Does this plugin use a return URL to redirect customers to a specified page after Paypal has processed the payment? Yes.
90
-
 
91
 
92
  == Screenshots ==
93
  Visit the plugin site at http://www.tipsandtricks-hq.com/?p=768 for screenshots.
1
  === WordPress Simple Paypal Shopping Cart ===
2
  Contributors: Ruhul Amin, Tips and Tricks HQ
3
  Donate link: http://www.tipsandtricks-hq.com
4
+ Tags: shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, PayPal cart widget, sell digital products, paypal
5
+ Requires at least: 3.0
6
+ Tested up to: 3.5.1
7
+ Stable tag: 3.5
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.
11
 
12
  == Description ==
13
 
14
+ WordPress Simple Paypal Shopping Cart allows you to add an 'Add to Cart' button for your product on any posts or pages. This simple shopping cart plugin lets you sell products and services directly from your own wordpress site and turns your WP blog into an ecommerce site.
15
 
16
+ It also allows you to add/display the shopping cart on any post or page or sidebar easily. The shopping cart shows the user what they currently have in the cart and allows them to change quantity or remove the items.
17
 
18
  It can be easily integrated with the NextGen Photo Gallery plugin to acomodate the selling of photographs from your gallery.
19
 
32
  * Use a function to add dynamic "add to cart" button directly in your theme.
33
  * Minimal number of configuration items to keep the plugin lightweight.
34
  * You can use Paypal sandbox to do testing if needed.
35
+ * Collect special instruction from your customers on the PayPal checkout page.
36
  * and more...
37
 
38
  = Note =
45
  * Check the developer's site.
46
 
47
  == Usage ==
48
+ 1. To add an 'Add to Cart' button for a product, simply add the shortcode [wp_cart:PRODUCT-NAME:price:PRODUCT-PRICE:end] to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
49
  2. To add the 'Add to Cart' button on the sidebar or from other template files use the following function:
50
  <?php echo print_wp_cart_button_for_product('PRODUCT-NAME', PRODUCT-PRICE); ?>
51
  Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.
88
  4. Does this plugin has multiple currency support? Yes.
89
  5. Is the 'Add to Cart' button customizable? Yes.
90
  6. Does this plugin use a return URL to redirect customers to a specified page after Paypal has processed the payment? Yes.
91
+ 7. How can I add a buy button on the sidebar widget of my site?
92
+ Check the documentation on [how to add buy buttons to the sidebar](http://www.tipsandtricks-hq.com/ecommerce/wordpress-shopping-cart-additional-resources-322#add_button_in_sidebar)
93
 
94
  == Screenshots ==
95
  Visit the plugin site at http://www.tipsandtricks-hq.com/?p=768 for screenshots.
wp_shopping_cart.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP Simple Paypal Shopping cart
4
- Version: v3.3.1
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
@@ -35,6 +35,8 @@ 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)
39
  {
40
  return print_wp_shopping_cart();
@@ -106,9 +108,16 @@ if (isset($_POST['addcart']))
106
  $domain_url = $_SERVER['SERVER_NAME'];
107
  $cookie_domain = str_replace("www","",$domain_url);
108
  setcookie("cart_in_use","true",time()+21600,"/",$cookie_domain); //useful to not serve cached page when using with a caching plugin
109
- $count = 1;
110
- $products = $_SESSION['simpleCart'];
111
-
 
 
 
 
 
 
 
112
  if (is_array($products))
113
  {
114
  foreach ($products as $key => $item)
@@ -368,8 +377,11 @@ function print_wp_shopping_cart()
368
  <input type="hidden" name="rm" value="2" />
369
  <input type="hidden" name="charset" value="utf-8" />
370
  <input type="hidden" name="mrb" value="3FWGC6LFTMTUG" />';
371
- if ($use_affiliate_platform)
372
- {
 
 
 
373
  $output .= wp_cart_add_custom_field();
374
  }
375
  $output .= '</form>';
@@ -477,7 +489,7 @@ function print_wp_cart_button_new($content)
477
 
478
  $pieces = explode(':',$m);
479
 
480
- $replacement = '<object>';
481
  $replacement .= '<form method="post" class="wp-cart-button-form" action="" style="display:inline" onsubmit="return ReadForm(this, true);">';
482
  if (!empty($var_output))
483
  {
@@ -502,7 +514,7 @@ function print_wp_cart_button_new($content)
502
  }
503
  $replacement .= '<input type="hidden" name="cartLink" value="'.cart_current_page_url().'" />';
504
  $replacement .= '<input type="hidden" name="addcart" value="1" /></form>';
505
- $replacement .= '</object>';
506
  $content = str_replace ($match, $replacement, $content);
507
  }
508
  return $content;
@@ -543,13 +555,12 @@ function wp_cart_add_read_form_javascript()
543
  }
544
  function print_wp_cart_button_for_product($name, $price, $shipping=0)
545
  {
546
- $addcart = get_option('addToCartButtonName');
547
-
548
  if (!$addcart || ($addcart == '') )
549
  $addcart = __("Add to Cart", "WSPSC");
550
-
551
 
552
- $replacement = '<object><form method="post" class="wp-cart-button-form" action="" style="display:inline">';
 
553
  if (preg_match("/http:/", $addcart)) // Use the image as the 'add to cart' button
554
  {
555
  $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="'.(__("Add to Cart", "WSPSC")).'"/>';
@@ -557,10 +568,10 @@ function print_wp_cart_button_for_product($name, $price, $shipping=0)
557
  else
558
  {
559
  $replacement .= '<input type="submit" value="'.$addcart.'" />';
560
- }
561
-
562
- $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().'" /></form></object>';
563
-
564
  return $replacement;
565
  }
566
 
@@ -583,19 +594,23 @@ function print_payment_currency($price, $symbol, $decimal)
583
  }
584
 
585
  function cart_current_page_url() {
586
- $pageURL = 'http';
587
- if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
588
- $pageURL .= "://";
589
- if ($_SERVER["SERVER_PORT"] != "80") {
590
- $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
591
- } else {
592
- $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
593
- }
594
- return $pageURL;
 
 
 
 
595
  }
596
 
597
  function show_wp_cart_options_page () {
598
- $wp_simple_paypal_shopping_cart_version = "3.3.1";
599
  if (isset($_POST['info_update']))
600
  {
601
  update_option('cart_payment_currency', (string)$_POST["cart_payment_currency"]);
@@ -617,6 +632,7 @@ function show_wp_cart_options_page () {
617
  update_option('wp_shopping_cart_reset_after_redirection_to_return_page', ($_POST['wp_shopping_cart_reset_after_redirection_to_return_page']!='') ? 'checked="checked"':'' );
618
 
619
  update_option('wp_shopping_cart_image_hide', ($_POST['wp_shopping_cart_image_hide']!='') ? 'checked="checked"':'' );
 
620
  update_option('wp_use_aff_platform', ($_POST['wp_use_aff_platform']!='') ? 'checked="checked"':'' );
621
 
622
  update_option('wp_shopping_cart_enable_sandbox', ($_POST['wp_shopping_cart_enable_sandbox']!='') ? 'checked="checked"':'' );
@@ -676,6 +692,8 @@ function show_wp_cart_options_page () {
676
  else
677
  $wp_cart_image_hide = '';
678
 
 
 
679
  if (get_option('wp_use_aff_platform'))
680
  $wp_use_aff_platform = 'checked="checked"';
681
  else
@@ -797,6 +815,14 @@ echo '
797
  </tr>
798
  </table>
799
 
 
 
 
 
 
 
 
 
800
  <table class="form-table">
801
  <tr valign="top">
802
  <th scope="row">'.(__("Use WP Affiliate Platform", "WSPSC")).'</th>
@@ -810,7 +836,13 @@ echo '
810
  </div>
811
  </form>
812
  ';
813
- 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>';
 
 
 
 
 
 
814
  }
815
 
816
  function simple_cart_total()
@@ -898,6 +930,7 @@ if (!is_admin())
898
 
899
  add_shortcode('show_wp_shopping_cart', 'show_wp_shopping_cart_handler');
900
  add_shortcode('always_show_wp_shopping_cart', 'always_show_cart_handler');
 
901
 
902
  add_action('wp_head', 'wp_cart_css');
903
  add_action('wp_head', 'wp_cart_add_read_form_javascript');
1
  <?php
2
  /*
3
  Plugin Name: WP Simple Paypal Shopping cart
4
+ Version: v3.5
5
  Plugin URI: http://www.tipsandtricks-hq.com/?p=768
6
  Author: Ruhul Amin
7
  Author URI: http://www.tipsandtricks-hq.com/
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
+ include_once('wp_shopping_cart_shortcodes.php');
39
+
40
  function always_show_cart_handler($atts)
41
  {
42
  return print_wp_shopping_cart();
108
  $domain_url = $_SERVER['SERVER_NAME'];
109
  $cookie_domain = str_replace("www","",$domain_url);
110
  setcookie("cart_in_use","true",time()+21600,"/",$cookie_domain); //useful to not serve cached page when using with a caching plugin
111
+
112
+ //sanitize data
113
+ $_POST['product'] = strip_tags($_POST['product']);//for PHP5.2 use filter_var($_POST['product'], FILTER_SANITIZE_STRING);
114
+ $_POST['item_number'] = strip_tags($_POST['item_number']);
115
+ if(isset($_POST['price']))$_POST['price'] = strip_tags($_POST['price']);
116
+ isset($_POST['shipping'])?$_POST['shipping'] = strip_tags($_POST['shipping']):$_POST['shipping']='';
117
+ isset($_POST['cartLink'])?$_POST['cartLink'] = strip_tags($_POST['cartLink']):$_POST['cartLink']='';
118
+
119
+ $count = 1;
120
+ $products = $_SESSION['simpleCart'];
121
  if (is_array($products))
122
  {
123
  foreach ($products as $key => $item)
377
  <input type="hidden" name="rm" value="2" />
378
  <input type="hidden" name="charset" value="utf-8" />
379
  <input type="hidden" name="mrb" value="3FWGC6LFTMTUG" />';
380
+ $wp_cart_note_to_seller_text = get_option('wp_cart_note_to_seller_text');
381
+ if(!empty($wp_cart_note_to_seller_text)){
382
+ $output .= '<input type="hidden" name="no_note" value="0" /><input type="hidden" name="cn" value="'.$wp_cart_note_to_seller_text.'" />';
383
+ }
384
+ if ($use_affiliate_platform){
385
  $output .= wp_cart_add_custom_field();
386
  }
387
  $output .= '</form>';
489
 
490
  $pieces = explode(':',$m);
491
 
492
+ $replacement = '<div class="wp_cart_button_wrapper">';
493
  $replacement .= '<form method="post" class="wp-cart-button-form" action="" style="display:inline" onsubmit="return ReadForm(this, true);">';
494
  if (!empty($var_output))
495
  {
514
  }
515
  $replacement .= '<input type="hidden" name="cartLink" value="'.cart_current_page_url().'" />';
516
  $replacement .= '<input type="hidden" name="addcart" value="1" /></form>';
517
+ $replacement .= '</div>';
518
  $content = str_replace ($match, $replacement, $content);
519
  }
520
  return $content;
555
  }
556
  function print_wp_cart_button_for_product($name, $price, $shipping=0)
557
  {
558
+ $addcart = get_option('addToCartButtonName');
 
559
  if (!$addcart || ($addcart == '') )
560
  $addcart = __("Add to Cart", "WSPSC");
 
561
 
562
+ $replacement = '<div class="wp_cart_button_wrapper">';
563
+ $replacement .= '<form method="post" class="wp-cart-button-form" action="" style="display:inline">';
564
  if (preg_match("/http:/", $addcart)) // Use the image as the 'add to cart' button
565
  {
566
  $replacement .= '<input type="image" src="'.$addcart.'" class="wp_cart_button" alt="'.(__("Add to Cart", "WSPSC")).'"/>';
568
  else
569
  {
570
  $replacement .= '<input type="submit" value="'.$addcart.'" />';
571
+ }
572
+ $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().'" />';
573
+ $replacement .= '</form>';
574
+ $replacement .= '</div>';
575
  return $replacement;
576
  }
577
 
594
  }
595
 
596
  function cart_current_page_url() {
597
+ $pageURL = 'http';
598
+ if(!isset($_SERVER["HTTPS"])){$_SERVER["HTTPS"]="";}
599
+ if(!isset($_SERVER["SERVER_PORT"])){$_SERVER["SERVER_PORT"]="";}
600
+
601
+ if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
602
+ $pageURL .= "://";
603
+ if ($_SERVER["SERVER_PORT"] != "80") {
604
+ $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
605
+ }
606
+ else {
607
+ $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
608
+ }
609
+ return $pageURL;
610
  }
611
 
612
  function show_wp_cart_options_page () {
613
+ $wp_simple_paypal_shopping_cart_version = "3.5";
614
  if (isset($_POST['info_update']))
615
  {
616
  update_option('cart_payment_currency', (string)$_POST["cart_payment_currency"]);
632
  update_option('wp_shopping_cart_reset_after_redirection_to_return_page', ($_POST['wp_shopping_cart_reset_after_redirection_to_return_page']!='') ? 'checked="checked"':'' );
633
 
634
  update_option('wp_shopping_cart_image_hide', ($_POST['wp_shopping_cart_image_hide']!='') ? 'checked="checked"':'' );
635
+ update_option('wp_cart_note_to_seller_text', (string)$_POST["wp_cart_note_to_seller_text"]);
636
  update_option('wp_use_aff_platform', ($_POST['wp_use_aff_platform']!='') ? 'checked="checked"':'' );
637
 
638
  update_option('wp_shopping_cart_enable_sandbox', ($_POST['wp_shopping_cart_enable_sandbox']!='') ? 'checked="checked"':'' );
692
  else
693
  $wp_cart_image_hide = '';
694
 
695
+ $wp_cart_note_to_seller_text = get_option('wp_cart_note_to_seller_text');
696
+
697
  if (get_option('wp_use_aff_platform'))
698
  $wp_use_aff_platform = 'checked="checked"';
699
  else
815
  </tr>
816
  </table>
817
 
818
+ <table class="form-table">
819
+ <tr valign="top">
820
+ <th scope="row">'.(__("Customize the Note to Seller Text", "WSPSC")).'</th>
821
+ <td><input type="text" name="wp_cart_note_to_seller_text" value="'.$wp_cart_note_to_seller_text.'" size="100" />
822
+ <br />'.(__("Specify the text that you want to use for the note field on PayPal checkout page to collect special instruction (leave this field empty if you don't need to customize it). The default label for the note field is \"Add special instructions to merchant\".", "WSPSC")).'</td>
823
+ </tr>
824
+ </table>
825
+
826
  <table class="form-table">
827
  <tr valign="top">
828
  <th scope="row">'.(__("Use WP Affiliate Platform", "WSPSC")).'</th>
836
  </div>
837
  </form>
838
  ';
839
+ 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>';
840
+ ?>
841
+ <div style="background: none repeat scroll 0 0 #FFF6D5;border: 1px solid #D1B655;color: #3F2502;margin: 10px 0;padding: 5px 5px 5px 10px;text-shadow: 1px 1px #FFFFFF;">
842
+ <p><?php _e("Need a shopping cart plugin with more features? Checkout my ", "WSPSC"); ?>
843
+ <a href="http://www.tipsandtricks-hq.com/?p=1059" target="_blank"><?php _e("WP eStore Plugin", "WSPSC"); ?></a></p>
844
+ </div>
845
+ <?php
846
  }
847
 
848
  function simple_cart_total()
930
 
931
  add_shortcode('show_wp_shopping_cart', 'show_wp_shopping_cart_handler');
932
  add_shortcode('always_show_wp_shopping_cart', 'always_show_cart_handler');
933
+ add_shortcode('wp_cart_button', 'wp_cart_button_handler');
934
 
935
  add_action('wp_head', 'wp_cart_css');
936
  add_action('wp_head', 'wp_cart_add_read_form_javascript');
wp_shopping_cart_shortcodes.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function wp_cart_button_handler($atts){
4
+ extract(shortcode_atts(array(
5
+ 'name' => '',
6
+ 'price' => '',
7
+ 'shipping' => '0',
8
+ ), $atts));
9
+
10
+ if(empty($name)){
11
+ return '<div style="color:red;">Error! You must specify a product name in the shortcode.</div>';
12
+ }
13
+ if(empty($price)){
14
+ return '<div style="color:red;">Error! You must specify a price for your product in the shortcode.</div>';
15
+ }
16
+ return print_wp_cart_button_for_product($name, $price, $shipping);
17
+ }