Version Description
- Fixed a minor bug in the new compact cart shortcode [wp_compact_cart]
Download this release
Release Info
Developer | mra13 |
Plugin | WordPress Simple PayPal Shopping Cart |
Version | 3.9.4 |
Comparing to | |
See all releases |
Code changes from version 3.9.2 to 3.9.4
- class-coupon.php +4 -4
- languages/WSPSC.pot +478 -117
- readme.txt +20 -3
- wp_shopping_cart.php +5 -3
- wp_shopping_cart_discounts_menu.php +8 -8
- wp_shopping_cart_misc_functions.php +2 -1
- wp_shopping_cart_orders.php +32 -32
- wp_shopping_cart_settings.php +15 -15
- wp_shopping_cart_shortcodes.php +33 -5
- wp_shopping_cart_style.css +32 -0
- wp_shopping_cart_utility_functions.php +25 -0
class-coupon.php
CHANGED
@@ -16,7 +16,7 @@ class WPSPSC_Coupons_Collection
|
|
16 |
function find_coupon_by_code($coupon_code)
|
17 |
{
|
18 |
if(empty($this->coupon_items)){
|
19 |
-
echo "<br />Admin needs to configure some discount coupons before it can be used";
|
20 |
return new stdClass();
|
21 |
}
|
22 |
foreach($this->coupon_items as $key => $coupon)
|
@@ -82,9 +82,9 @@ class WPSPSC_COUPON_ITEM
|
|
82 |
|
83 |
function print_coupon_item_details()
|
84 |
{
|
85 |
-
echo "<br />Coupon ID: ".$this->id;
|
86 |
-
echo "<br />Coupon Code: ".$this->coupon_code;
|
87 |
-
echo "<br />Discount Amt: ".$this->discount_rate;
|
88 |
}
|
89 |
}
|
90 |
|
16 |
function find_coupon_by_code($coupon_code)
|
17 |
{
|
18 |
if(empty($this->coupon_items)){
|
19 |
+
echo "<br />".(__("Admin needs to configure some discount coupons before it can be used", "WSPSC"));
|
20 |
return new stdClass();
|
21 |
}
|
22 |
foreach($this->coupon_items as $key => $coupon)
|
82 |
|
83 |
function print_coupon_item_details()
|
84 |
{
|
85 |
+
echo "<br />".(__("Coupon ID: ", "WSPSC")).$this->id;
|
86 |
+
echo "<br />".(__("Coupon Code: ", "WSPSC")).$this->coupon_code;
|
87 |
+
echo "<br />".(__("Discount Amt: ", "WSPSC")).$this->discount_rate;
|
88 |
}
|
89 |
}
|
90 |
|
languages/WSPSC.pot
CHANGED
@@ -1,316 +1,677 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version:
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"Language-Team:
|
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:
|
14 |
|
15 |
-
#:
|
16 |
-
msgid "
|
17 |
msgstr ""
|
18 |
|
19 |
-
#:
|
20 |
-
msgid "
|
|
|
|
|
|
|
|
|
21 |
msgstr ""
|
22 |
|
23 |
-
#:
|
24 |
-
msgid "
|
25 |
msgstr ""
|
26 |
|
27 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Visit The Shop"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#:
|
32 |
-
#: ../wp_shopping_cart.php:606
|
33 |
msgid "USD"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#:
|
37 |
-
#: ../wp_shopping_cart.php:609
|
38 |
msgid "$"
|
39 |
msgstr ""
|
40 |
|
41 |
-
#:
|
42 |
msgid "Cart"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#:
|
46 |
msgid "Hit enter to submit new Quantity."
|
47 |
msgstr ""
|
48 |
|
49 |
-
#:
|
50 |
msgid "Item Name"
|
51 |
msgstr ""
|
52 |
|
53 |
-
#:
|
54 |
msgid "Quantity"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#:
|
58 |
msgid "Price"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#:
|
62 |
msgid "Remove"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#:
|
66 |
msgid "Subtotal"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#:
|
70 |
msgid "Shipping"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#:
|
|
|
74 |
msgid "Total"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
msgid "paypal_checkout_EN.png"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#:
|
82 |
msgid "Make payments with PayPal - it\\'s fast, free and secure!"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#:
|
86 |
-
#:
|
87 |
-
#:
|
88 |
-
#: ../wp_shopping_cart.php:534
|
89 |
-
#: ../wp_shopping_cart.php:622
|
90 |
msgid "Add to Cart"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
msgid "Options Updated!"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#:
|
98 |
-
msgid "Simple
|
99 |
msgstr ""
|
100 |
|
101 |
-
#:
|
102 |
-
msgid "
|
103 |
msgstr ""
|
104 |
|
105 |
-
#:
|
106 |
-
msgid "
|
107 |
msgstr ""
|
108 |
|
109 |
-
#:
|
110 |
-
msgid "
|
111 |
msgstr ""
|
112 |
|
113 |
-
#:
|
114 |
msgid "PRODUCT-NAME"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#:
|
118 |
msgid "PRODUCT-PRICE"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#:
|
122 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
msgstr ""
|
124 |
|
125 |
-
#:
|
126 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
msgstr ""
|
128 |
|
129 |
-
#:
|
130 |
-
msgid "
|
131 |
msgstr ""
|
132 |
|
133 |
-
#:
|
134 |
msgid "PayPal and Shopping Cart Settings"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#:
|
138 |
msgid "Paypal Email Address"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#:
|
142 |
msgid "Shopping Cart title"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#:
|
146 |
msgid "Text/Image to Show When Cart Empty"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#:
|
150 |
-
msgid "
|
|
|
|
|
151 |
msgstr ""
|
152 |
|
153 |
-
#:
|
154 |
msgid "Currency"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#:
|
158 |
-
#:
|
159 |
-
#: ../wp_shopping_cart.php:728
|
160 |
msgid "e.g."
|
161 |
msgstr ""
|
162 |
|
163 |
-
#:
|
164 |
msgid "Currency Symbol"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#:
|
168 |
msgid "Base Shipping Cost"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#:
|
172 |
-
msgid "
|
|
|
|
|
|
|
173 |
msgstr ""
|
174 |
|
175 |
-
#:
|
176 |
msgid "Learn More on Shipping Calculation"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#:
|
180 |
msgid "Free Shipping for Orders Over"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#:
|
184 |
-
msgid "
|
|
|
|
|
185 |
msgstr ""
|
186 |
|
187 |
-
#:
|
188 |
msgid "Must Collect Shipping Address on PayPal"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#:
|
192 |
-
msgid "
|
|
|
|
|
193 |
msgstr ""
|
194 |
|
195 |
-
#:
|
196 |
msgid "Use PayPal Profile Based Shipping"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#:
|
200 |
msgid "Check this if you want to use"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#:
|
204 |
msgid "PayPal profile based shipping"
|
205 |
msgstr ""
|
206 |
|
207 |
-
#:
|
208 |
-
msgid "
|
|
|
|
|
209 |
msgstr ""
|
210 |
|
211 |
-
#:
|
212 |
msgid "Add to Cart button text or Image"
|
213 |
msgstr ""
|
214 |
|
215 |
-
#:
|
216 |
-
msgid "
|
|
|
|
|
217 |
msgstr ""
|
218 |
|
219 |
-
#:
|
220 |
msgid "Return URL"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#:
|
224 |
-
msgid "
|
|
|
225 |
msgstr ""
|
226 |
|
227 |
-
#:
|
228 |
msgid "Products Page URL"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#:
|
232 |
-
msgid "
|
|
|
|
|
233 |
msgstr ""
|
234 |
|
235 |
-
#:
|
236 |
msgid "Automatic redirection to checkout page"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#:
|
240 |
msgid "Checkout Page URL"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#:
|
244 |
-
msgid "
|
|
|
|
|
|
|
245 |
msgstr ""
|
246 |
|
247 |
-
#:
|
248 |
msgid "Reset Cart After Redirection to Return Page"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#:
|
252 |
-
msgid "
|
|
|
|
|
253 |
msgstr ""
|
254 |
|
255 |
-
#:
|
256 |
msgid "Hide Shopping Cart Image"
|
257 |
msgstr ""
|
258 |
|
259 |
-
#:
|
260 |
msgid "If ticked the shopping cart image will not be shown."
|
261 |
msgstr ""
|
262 |
|
263 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
msgid "Use WP Affiliate Platform"
|
265 |
msgstr ""
|
266 |
|
267 |
-
#:
|
268 |
msgid "Check this if using with the"
|
269 |
msgstr ""
|
270 |
|
271 |
-
#:
|
272 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
msgstr ""
|
274 |
|
275 |
-
#:
|
276 |
msgid "Update Options »"
|
277 |
msgstr ""
|
278 |
|
279 |
-
#:
|
280 |
msgid "Like the Simple WordPress Shopping Cart Plugin?"
|
281 |
msgstr ""
|
282 |
|
283 |
-
#:
|
284 |
msgid "Give it a good rating"
|
285 |
msgstr ""
|
286 |
|
287 |
-
#:
|
288 |
-
msgid "
|
289 |
msgstr ""
|
290 |
|
291 |
-
#:
|
292 |
-
|
293 |
-
#: ../wp_shopping_cart.php:820
|
294 |
-
msgid "WP Paypal Shopping Cart"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#:
|
298 |
-
msgid "
|
299 |
msgstr ""
|
300 |
|
301 |
-
#:
|
302 |
-
msgid "
|
|
|
|
|
303 |
msgstr ""
|
304 |
|
305 |
-
#:
|
306 |
-
msgid "
|
307 |
msgstr ""
|
308 |
|
309 |
-
#:
|
310 |
-
msgid "
|
|
|
|
|
|
|
311 |
msgstr ""
|
312 |
|
313 |
-
#:
|
314 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
msgstr ""
|
316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: WordPress Simple PayPal Shopping Cart\n"
|
4 |
+
"POT-Creation-Date: 2014-01-24 16:14+1000\n"
|
5 |
+
"PO-Revision-Date: 2014-01-24 16:15+1000\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"X-Generator: Poedit 1.5.5\n"
|
12 |
"X-Poedit-KeywordsList: _e;__\n"
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SearchPath-0: .\n"
|
15 |
|
16 |
+
#: class-coupon.php:19
|
17 |
+
msgid "Admin needs to configure some discount coupons before it can be used"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: class-coupon.php:85
|
21 |
+
msgid "Coupon ID: "
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: class-coupon.php:86
|
25 |
+
msgid "Coupon Code: "
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: class-coupon.php:87
|
29 |
+
msgid "Discount Amt: "
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: class-coupon.php:96
|
33 |
+
msgid "Coupon code used does not exist!"
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: class-coupon.php:101
|
37 |
+
msgid "Discount can only be applied once per checkout!"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: class-coupon.php:123
|
41 |
+
msgid "Discount applied successfully! Total Discount: "
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: wp_shopping_cart.php:167
|
45 |
+
msgid "Error! Your session is out of sync. Please reset your session."
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: wp_shopping_cart.php:177
|
49 |
+
msgid ""
|
50 |
+
"Shopping Cart Configuration Error! You must specify a value in the 'Checkout "
|
51 |
+
"Page URL' field for the automatic redirection feature to work!"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: wp_shopping_cart.php:259
|
55 |
msgid "Visit The Shop"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: wp_shopping_cart.php:271 wp_shopping_cart_settings.php:101
|
|
|
59 |
msgid "USD"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: wp_shopping_cart.php:275 wp_shopping_cart_settings.php:104
|
|
|
63 |
msgid "$"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: wp_shopping_cart.php:301
|
67 |
msgid "Cart"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: wp_shopping_cart.php:310
|
71 |
msgid "Hit enter to submit new Quantity."
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: wp_shopping_cart.php:321
|
75 |
msgid "Item Name"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: wp_shopping_cart.php:321
|
79 |
msgid "Quantity"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: wp_shopping_cart.php:321
|
83 |
msgid "Price"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: wp_shopping_cart.php:355
|
87 |
msgid "Remove"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: wp_shopping_cart.php:384
|
91 |
msgid "Subtotal"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: wp_shopping_cart.php:385
|
95 |
msgid "Shipping"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: wp_shopping_cart.php:388 wp_shopping_cart_orders.php:89
|
99 |
+
#: wp_shopping_cart_orders.php:152
|
100 |
msgid "Total"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: wp_shopping_cart.php:397
|
104 |
+
msgid "Enter Coupon Code"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: wp_shopping_cart.php:400
|
108 |
+
msgid "Apply"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: wp_shopping_cart.php:414
|
112 |
msgid "paypal_checkout_EN.png"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: wp_shopping_cart.php:414
|
116 |
msgid "Make payments with PayPal - it\\'s fast, free and secure!"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: wp_shopping_cart.php:476 wp_shopping_cart.php:559 wp_shopping_cart.php:618
|
120 |
+
#: wp_shopping_cart.php:666 wp_shopping_cart.php:672
|
121 |
+
#: wp_shopping_cart_settings.php:117
|
|
|
|
|
122 |
msgid "Add to Cart"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: wp_shopping_cart.php:744
|
126 |
+
msgid "WP Paypal Shopping Cart"
|
127 |
+
msgstr ""
|
128 |
+
|
129 |
+
#: wp_shopping_cart.php:744
|
130 |
+
msgid "WP Shopping Cart"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: wp_shopping_cart.php:767
|
134 |
+
msgid "Shopping Cart"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: wp_shopping_cart.php:793
|
138 |
+
msgid "Settings"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: wp_shopping_cart_discounts_menu.php:51 wp_shopping_cart_settings.php:172
|
142 |
+
#: wp_shopping_cart_settings.php:366
|
143 |
+
msgid ""
|
144 |
+
"For more information, updates, detailed documentation and video tutorial, "
|
145 |
+
"please visit:"
|
146 |
+
msgstr ""
|
147 |
+
|
148 |
+
#: wp_shopping_cart_discounts_menu.php:52 wp_shopping_cart_settings.php:173
|
149 |
+
#: wp_shopping_cart_settings.php:367
|
150 |
+
msgid "WP Simple Cart Homepage"
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#: wp_shopping_cart_discounts_menu.php:60
|
154 |
+
msgid "Coupon/Discount Settings"
|
155 |
+
msgstr ""
|
156 |
+
|
157 |
+
#: wp_shopping_cart_discounts_menu.php:67
|
158 |
+
msgid "Enable Discount Coupon Feature"
|
159 |
+
msgstr ""
|
160 |
+
|
161 |
+
#: wp_shopping_cart_discounts_menu.php:70
|
162 |
+
msgid ""
|
163 |
+
"When checked your customers will be able to enter a coupon code in the "
|
164 |
+
"shopping cart before checkout."
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: wp_shopping_cart_discounts_menu.php:77
|
168 |
+
msgid "Update »"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: wp_shopping_cart_discounts_menu.php:93
|
172 |
+
msgid "Add Coupon/Discount"
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#: wp_shopping_cart_discounts_menu.php:113
|
176 |
+
msgid "Save Coupon »"
|
177 |
+
msgstr ""
|
178 |
+
|
179 |
+
#: wp_shopping_cart_discounts_menu.php:131
|
180 |
+
msgid "Coupon Code"
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: wp_shopping_cart_discounts_menu.php:132
|
184 |
+
msgid "Discount Rate (%)"
|
185 |
+
msgstr ""
|
186 |
+
|
187 |
+
#: wp_shopping_cart_discounts_menu.php:161
|
188 |
+
msgid "No Coupons Configured."
|
189 |
+
msgstr ""
|
190 |
+
|
191 |
+
#: wp_shopping_cart_discounts_menu.php:166
|
192 |
+
msgid "No Record found"
|
193 |
+
msgstr ""
|
194 |
+
|
195 |
+
#: wp_shopping_cart_misc_functions.php:155
|
196 |
+
msgid "Your Shopping Cart"
|
197 |
+
msgstr ""
|
198 |
+
|
199 |
+
#: wp_shopping_cart_misc_functions.php:156
|
200 |
+
msgid "Your cart is empty"
|
201 |
+
msgstr ""
|
202 |
+
|
203 |
+
#: wp_shopping_cart_orders.php:10
|
204 |
+
msgid "Cart Orders"
|
205 |
+
msgstr ""
|
206 |
+
|
207 |
+
#: wp_shopping_cart_orders.php:11
|
208 |
+
msgid "Cart Order"
|
209 |
+
msgstr ""
|
210 |
+
|
211 |
+
#: wp_shopping_cart_orders.php:12
|
212 |
+
msgid "Add New"
|
213 |
+
msgstr ""
|
214 |
+
|
215 |
+
#: wp_shopping_cart_orders.php:13
|
216 |
+
msgid "Add New Order"
|
217 |
+
msgstr ""
|
218 |
+
|
219 |
+
#: wp_shopping_cart_orders.php:14
|
220 |
+
msgid "Edit"
|
221 |
+
msgstr ""
|
222 |
+
|
223 |
+
#: wp_shopping_cart_orders.php:15
|
224 |
+
msgid "Edit Order"
|
225 |
+
msgstr ""
|
226 |
+
|
227 |
+
#: wp_shopping_cart_orders.php:16
|
228 |
+
msgid "New Order"
|
229 |
+
msgstr ""
|
230 |
+
|
231 |
+
#: wp_shopping_cart_orders.php:17
|
232 |
+
msgid "View"
|
233 |
+
msgstr ""
|
234 |
+
|
235 |
+
#: wp_shopping_cart_orders.php:18
|
236 |
+
msgid "View Order"
|
237 |
+
msgstr ""
|
238 |
+
|
239 |
+
#: wp_shopping_cart_orders.php:19
|
240 |
+
msgid "Search Order"
|
241 |
+
msgstr ""
|
242 |
+
|
243 |
+
#: wp_shopping_cart_orders.php:20
|
244 |
+
msgid "No order found"
|
245 |
+
msgstr ""
|
246 |
+
|
247 |
+
#: wp_shopping_cart_orders.php:21
|
248 |
+
msgid "No order found in Trash"
|
249 |
+
msgstr ""
|
250 |
+
|
251 |
+
#: wp_shopping_cart_orders.php:22
|
252 |
+
msgid "Parent Order"
|
253 |
+
msgstr ""
|
254 |
+
|
255 |
+
#: wp_shopping_cart_orders.php:38
|
256 |
+
msgid "Order Review"
|
257 |
+
msgstr ""
|
258 |
+
|
259 |
+
#: wp_shopping_cart_orders.php:68
|
260 |
+
msgid "Order ID: #"
|
261 |
+
msgstr ""
|
262 |
+
|
263 |
+
#: wp_shopping_cart_orders.php:70
|
264 |
+
msgid "Transaction ID: #"
|
265 |
+
msgstr ""
|
266 |
+
|
267 |
+
#: wp_shopping_cart_orders.php:73 wp_shopping_cart_orders.php:149
|
268 |
+
msgid "First Name"
|
269 |
+
msgstr ""
|
270 |
+
|
271 |
+
#: wp_shopping_cart_orders.php:77 wp_shopping_cart_orders.php:150
|
272 |
+
msgid "Last Name"
|
273 |
+
msgstr ""
|
274 |
+
|
275 |
+
#: wp_shopping_cart_orders.php:81
|
276 |
+
msgid "Email Address"
|
277 |
+
msgstr ""
|
278 |
+
|
279 |
+
#: wp_shopping_cart_orders.php:85
|
280 |
+
msgid "IP Address"
|
281 |
+
msgstr ""
|
282 |
+
|
283 |
+
#: wp_shopping_cart_orders.php:93
|
284 |
+
msgid "Address"
|
285 |
+
msgstr ""
|
286 |
+
|
287 |
+
#: wp_shopping_cart_orders.php:97
|
288 |
+
msgid "Buyer Email Sent?"
|
289 |
+
msgstr ""
|
290 |
+
|
291 |
+
#: wp_shopping_cart_orders.php:101
|
292 |
+
msgid "Item(s) Ordered:"
|
293 |
+
msgstr ""
|
294 |
+
|
295 |
+
#: wp_shopping_cart_orders.php:105
|
296 |
+
msgid "Applied Coupon Code:"
|
297 |
+
msgstr ""
|
298 |
+
|
299 |
+
#: wp_shopping_cart_orders.php:148
|
300 |
+
msgid "Order ID"
|
301 |
+
msgstr ""
|
302 |
+
|
303 |
+
#: wp_shopping_cart_orders.php:151
|
304 |
+
msgid "Email"
|
305 |
+
msgstr ""
|
306 |
+
|
307 |
+
#: wp_shopping_cart_orders.php:153
|
308 |
+
msgid "Status"
|
309 |
+
msgstr ""
|
310 |
+
|
311 |
+
#: wp_shopping_cart_orders.php:154
|
312 |
+
msgid "Date"
|
313 |
+
msgstr ""
|
314 |
+
|
315 |
+
#: wp_shopping_cart_settings.php:10
|
316 |
+
msgid "WP Paypal Shopping Cart Options"
|
317 |
+
msgstr ""
|
318 |
+
|
319 |
+
#: wp_shopping_cart_settings.php:97
|
320 |
msgid "Options Updated!"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: wp_shopping_cart_settings.php:169
|
324 |
+
msgid "Simple PayPal Shopping Cart Settings"
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: wp_shopping_cart_settings.php:177
|
328 |
+
msgid "Quick Usage Guide"
|
329 |
msgstr ""
|
330 |
|
331 |
+
#: wp_shopping_cart_settings.php:180
|
332 |
+
msgid "Step 1) "
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: wp_shopping_cart_settings.php:180
|
336 |
+
msgid "To add an 'Add to Cart' button for a product simply add the shortcode"
|
337 |
msgstr ""
|
338 |
|
339 |
+
#: wp_shopping_cart_settings.php:180
|
340 |
msgid "PRODUCT-NAME"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: wp_shopping_cart_settings.php:180
|
344 |
msgid "PRODUCT-PRICE"
|
345 |
msgstr ""
|
346 |
|
347 |
+
#: wp_shopping_cart_settings.php:180
|
348 |
+
msgid ""
|
349 |
+
"to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-"
|
350 |
+
"PRICE with the actual name and price of your product."
|
351 |
+
msgstr ""
|
352 |
+
|
353 |
+
#: wp_shopping_cart_settings.php:181
|
354 |
+
msgid "Example add to cart button shortcode usage:"
|
355 |
+
msgstr ""
|
356 |
+
|
357 |
+
#: wp_shopping_cart_settings.php:182
|
358 |
+
msgid "Step 2) "
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: wp_shopping_cart_settings.php:182
|
362 |
+
msgid ""
|
363 |
+
"To add the shopping cart to a post or page (example: a checkout page) simply "
|
364 |
+
"add the shortcode"
|
365 |
+
msgstr ""
|
366 |
+
|
367 |
+
#: wp_shopping_cart_settings.php:182
|
368 |
+
msgid ""
|
369 |
+
"to a post or page or use the sidebar widget to add the shopping cart to the "
|
370 |
+
"sidebar."
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: wp_shopping_cart_settings.php:183
|
374 |
+
msgid "Example shopping cart shortcode usage:"
|
375 |
msgstr ""
|
376 |
|
377 |
+
#: wp_shopping_cart_settings.php:192
|
378 |
msgid "PayPal and Shopping Cart Settings"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: wp_shopping_cart_settings.php:198
|
382 |
msgid "Paypal Email Address"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: wp_shopping_cart_settings.php:202
|
386 |
msgid "Shopping Cart title"
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: wp_shopping_cart_settings.php:206
|
390 |
msgid "Text/Image to Show When Cart Empty"
|
391 |
msgstr ""
|
392 |
|
393 |
+
#: wp_shopping_cart_settings.php:207
|
394 |
+
msgid ""
|
395 |
+
"You can either enter plain text or the URL of an image that you want to show "
|
396 |
+
"when the shopping cart is empty"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: wp_shopping_cart_settings.php:210
|
400 |
msgid "Currency"
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: wp_shopping_cart_settings.php:211 wp_shopping_cart_settings.php:215
|
404 |
+
#: wp_shopping_cart_settings.php:242
|
|
|
405 |
msgid "e.g."
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: wp_shopping_cart_settings.php:214
|
409 |
msgid "Currency Symbol"
|
410 |
msgstr ""
|
411 |
|
412 |
+
#: wp_shopping_cart_settings.php:220
|
413 |
msgid "Base Shipping Cost"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: wp_shopping_cart_settings.php:221
|
417 |
+
msgid ""
|
418 |
+
"This is the base shipping cost that will be added to the total of individual "
|
419 |
+
"products shipping cost. Put 0 if you do not want to charge shipping cost or "
|
420 |
+
"use base shipping cost."
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: wp_shopping_cart_settings.php:221
|
424 |
msgid "Learn More on Shipping Calculation"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: wp_shopping_cart_settings.php:225
|
428 |
msgid "Free Shipping for Orders Over"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: wp_shopping_cart_settings.php:226
|
432 |
+
msgid ""
|
433 |
+
"When a customer orders more than this amount he/she will get free shipping. "
|
434 |
+
"Leave empty if you do not want to use it."
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: wp_shopping_cart_settings.php:230
|
438 |
msgid "Must Collect Shipping Address on PayPal"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: wp_shopping_cart_settings.php:231
|
442 |
+
msgid ""
|
443 |
+
"If checked the customer will be forced to enter a shipping address on PayPal "
|
444 |
+
"when checking out."
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: wp_shopping_cart_settings.php:235
|
448 |
msgid "Use PayPal Profile Based Shipping"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: wp_shopping_cart_settings.php:236
|
452 |
msgid "Check this if you want to use"
|
453 |
msgstr ""
|
454 |
|
455 |
+
#: wp_shopping_cart_settings.php:236
|
456 |
msgid "PayPal profile based shipping"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: wp_shopping_cart_settings.php:236
|
460 |
+
msgid ""
|
461 |
+
"Using this will ignore any other shipping options that you have specified in "
|
462 |
+
"this plugin."
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: wp_shopping_cart_settings.php:240
|
466 |
msgid "Add to Cart button text or Image"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: wp_shopping_cart_settings.php:242
|
470 |
+
msgid ""
|
471 |
+
"To use a customized image as the button simply enter the URL of the image "
|
472 |
+
"file."
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: wp_shopping_cart_settings.php:248
|
476 |
msgid "Return URL"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: wp_shopping_cart_settings.php:249
|
480 |
+
msgid ""
|
481 |
+
"This is the URL the customer will be redirected to after a successful payment"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: wp_shopping_cart_settings.php:253
|
485 |
msgid "Products Page URL"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: wp_shopping_cart_settings.php:254
|
489 |
+
msgid ""
|
490 |
+
"This is the URL of your products page if you have any. If used, the shopping "
|
491 |
+
"cart widget will display a link to this page when cart is empty"
|
492 |
msgstr ""
|
493 |
|
494 |
+
#: wp_shopping_cart_settings.php:258
|
495 |
msgid "Automatic redirection to checkout page"
|
496 |
msgstr ""
|
497 |
|
498 |
+
#: wp_shopping_cart_settings.php:260
|
499 |
msgid "Checkout Page URL"
|
500 |
msgstr ""
|
501 |
|
502 |
+
#: wp_shopping_cart_settings.php:261
|
503 |
+
msgid ""
|
504 |
+
"If checked the visitor will be redirected to the Checkout page after a "
|
505 |
+
"product is added to the cart. You must enter a URL in the Checkout Page URL "
|
506 |
+
"field for this to work."
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: wp_shopping_cart_settings.php:265
|
510 |
msgid "Reset Cart After Redirection to Return Page"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: wp_shopping_cart_settings.php:267
|
514 |
+
msgid ""
|
515 |
+
"If checked the shopping cart will be reset when the customer lands on the "
|
516 |
+
"return URL (Thank You) page."
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: wp_shopping_cart_settings.php:274
|
520 |
msgid "Hide Shopping Cart Image"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: wp_shopping_cart_settings.php:275
|
524 |
msgid "If ticked the shopping cart image will not be shown."
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: wp_shopping_cart_settings.php:281
|
528 |
+
msgid "Customize the Note to Seller Text"
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#: wp_shopping_cart_settings.php:283
|
532 |
+
msgid ""
|
533 |
+
"Specify the text that you want to use for the note field on PayPal checkout "
|
534 |
+
"page to collect special instruction (leave this field empty if you don't "
|
535 |
+
"need to customize it). The default label for the note field is \"Add special "
|
536 |
+
"instructions to merchant\"."
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#: wp_shopping_cart_settings.php:289
|
540 |
msgid "Use WP Affiliate Platform"
|
541 |
msgstr ""
|
542 |
|
543 |
+
#: wp_shopping_cart_settings.php:291
|
544 |
msgid "Check this if using with the"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: wp_shopping_cart_settings.php:291
|
548 |
+
msgid ""
|
549 |
+
"This plugin lets you run your own affiliate campaign/program and allows you "
|
550 |
+
"to reward (pay commission) your affiliates for referred sales"
|
551 |
+
msgstr ""
|
552 |
+
|
553 |
+
#: wp_shopping_cart_settings.php:297
|
554 |
+
msgid "Testing and Debugging Settings"
|
555 |
+
msgstr ""
|
556 |
+
|
557 |
+
#: wp_shopping_cart_settings.php:303
|
558 |
+
msgid "Enable Debug"
|
559 |
+
msgstr ""
|
560 |
+
|
561 |
+
#: wp_shopping_cart_settings.php:305
|
562 |
+
msgid ""
|
563 |
+
"If checked, debug output will be written to the log file. This is useful for "
|
564 |
+
"troubleshooting post payment failures"
|
565 |
+
msgstr ""
|
566 |
+
|
567 |
+
#: wp_shopping_cart_settings.php:315
|
568 |
+
msgid "Enable Sandbox Testing"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: wp_shopping_cart_settings.php:317
|
572 |
+
msgid ""
|
573 |
+
"Check this option if you want to do PayPal sandbox testing. You will need to "
|
574 |
+
"create a PayPal sandbox account from PayPal Developer site"
|
575 |
msgstr ""
|
576 |
|
577 |
+
#: wp_shopping_cart_settings.php:326 wp_shopping_cart_settings.php:415
|
578 |
msgid "Update Options »"
|
579 |
msgstr ""
|
580 |
|
581 |
+
#: wp_shopping_cart_settings.php:330
|
582 |
msgid "Like the Simple WordPress Shopping Cart Plugin?"
|
583 |
msgstr ""
|
584 |
|
585 |
+
#: wp_shopping_cart_settings.php:330
|
586 |
msgid "Give it a good rating"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: wp_shopping_cart_settings.php:333
|
590 |
+
msgid "Need a shopping cart plugin with more features? Checkout my "
|
591 |
msgstr ""
|
592 |
|
593 |
+
#: wp_shopping_cart_settings.php:334
|
594 |
+
msgid "WP eStore Plugin"
|
|
|
|
|
595 |
msgstr ""
|
596 |
|
597 |
+
#: wp_shopping_cart_settings.php:375
|
598 |
+
msgid "Purchase Confirmation Email Settings"
|
599 |
msgstr ""
|
600 |
|
601 |
+
#: wp_shopping_cart_settings.php:378
|
602 |
+
msgid ""
|
603 |
+
"The following options affect the emails that gets sent to your buyers after "
|
604 |
+
"a purchase."
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: wp_shopping_cart_settings.php:383
|
608 |
+
msgid "Send Emails to Buyer After Purchase"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: wp_shopping_cart_settings.php:384
|
612 |
+
msgid ""
|
613 |
+
"If checked the plugin will send an email to the buyer with the sale details. "
|
614 |
+
"If digital goods are purchased then the email will contain the download "
|
615 |
+
"links for the purchased products."
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: wp_shopping_cart_settings.php:388
|
619 |
+
msgid "From Email Address"
|
620 |
+
msgstr ""
|
621 |
+
|
622 |
+
#: wp_shopping_cart_settings.php:390
|
623 |
+
msgid ""
|
624 |
+
"Example: Your Name <sales@your-domain.com> This is the email address "
|
625 |
+
"that will be used to send the email to the buyer. This name and email "
|
626 |
+
"address will appear in the from field of the email."
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: wp_shopping_cart_settings.php:394
|
630 |
+
msgid "Buyer Email Subject"
|
631 |
+
msgstr ""
|
632 |
+
|
633 |
+
#: wp_shopping_cart_settings.php:396
|
634 |
+
msgid "This is the subject of the email that will be sent to the buyer."
|
635 |
+
msgstr ""
|
636 |
+
|
637 |
+
#: wp_shopping_cart_settings.php:400
|
638 |
+
msgid "Buyer Email Body"
|
639 |
+
msgstr ""
|
640 |
+
|
641 |
+
#: wp_shopping_cart_settings.php:403
|
642 |
+
msgid ""
|
643 |
+
"This is the body of the email that will be sent to the buyer. Do not change "
|
644 |
+
"the text within the braces {}. You can use the following email tags in this "
|
645 |
+
"email body field:"
|
646 |
+
msgstr ""
|
647 |
+
|
648 |
+
#: wp_shopping_cart_settings.php:404
|
649 |
+
msgid "First name of the buyer"
|
650 |
+
msgstr ""
|
651 |
+
|
652 |
+
#: wp_shopping_cart_settings.php:405
|
653 |
+
msgid "Last name of the buyer"
|
654 |
+
msgstr ""
|
655 |
+
|
656 |
+
#: wp_shopping_cart_settings.php:406
|
657 |
+
msgid ""
|
658 |
+
"The item details of the purchased product (this will include the download "
|
659 |
+
"link for digital items)."
|
660 |
+
msgstr ""
|
661 |
+
|
662 |
+
#: wp_shopping_cart_shortcodes.php:16 wp_shopping_cart_shortcodes.php:40
|
663 |
+
msgid "Error! You must specify a product name in the shortcode."
|
664 |
+
msgstr ""
|
665 |
+
|
666 |
+
#: wp_shopping_cart_shortcodes.php:19 wp_shopping_cart_shortcodes.php:43
|
667 |
+
msgid "Error! You must specify a price for your product in the shortcode."
|
668 |
+
msgstr ""
|
669 |
+
|
670 |
+
#: wp_shopping_cart_shortcodes.php:46
|
671 |
+
msgid ""
|
672 |
+
"Error! You must specify a thumbnail image for your product in the shortcode."
|
673 |
+
msgstr ""
|
674 |
+
|
675 |
+
#: lib/gallery-wp-cart.php:32
|
676 |
+
msgid "[View with PicLens]"
|
677 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WordPress Simple Paypal Shopping Cart ===
|
2 |
Contributors: Ruhul Amin, Tips and Tricks HQ
|
3 |
Donate link: http://www.tipsandtricks-hq.com
|
4 |
-
Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 3.8
|
7 |
-
Stable tag: 3.9.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Very easy to use Simple WordPress Paypal Shopping Cart Plugin. Great for selling products online in one click from your WordPress site.
|
@@ -47,6 +47,7 @@ or
|
|
47 |
* Ability to specify SKU (item number) for each of your products in the shortcode.
|
48 |
* Ability to customize the add to cart button image and use a custom image for your purchase buttons.
|
49 |
* Track coupons with the order to see which customer used which coupon code.
|
|
|
50 |
* Can be translated into any language.
|
51 |
* and more...
|
52 |
|
@@ -76,6 +77,12 @@ Here is an exmaple shortcode that shows you how to use a product display box.
|
|
76 |
|
77 |
Simply replace the values with your product specific data
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= Using Shipping =
|
80 |
|
81 |
1. To use shipping cost for your product, use the "shipping" parameter. Here is an example shortcode usage:
|
@@ -124,6 +131,16 @@ Visit the plugin site at http://www.tipsandtricks-hq.com/?p=768 for screenshots.
|
|
124 |
None
|
125 |
|
126 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
= 3.9.2 =
|
128 |
- Added an option to specify a custom button image for the add to cart buttons. You can use the "button_image" parameter in the shortcode to customize the add to cart button image.
|
129 |
- Coupon code that is used in a transaciton will be saved with the order so you can see it in the back end.
|
1 |
=== WordPress Simple Paypal Shopping Cart ===
|
2 |
Contributors: Ruhul Amin, Tips and Tricks HQ
|
3 |
Donate link: http://www.tipsandtricks-hq.com
|
4 |
+
Tags: cart, shopping cart, WordPress shopping cart, Paypal shopping cart, sell products, online shop, shop, e-commerce, wordpress ecommerce, wordpress store, store, PayPal cart widget, sell digital products, digital downloads, paypal, paypal cart, e-shop, compact cart,
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 3.8.1
|
7 |
+
Stable tag: 3.9.4
|
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.
|
47 |
* Ability to specify SKU (item number) for each of your products in the shortcode.
|
48 |
* Ability to customize the add to cart button image and use a custom image for your purchase buttons.
|
49 |
* Track coupons with the order to see which customer used which coupon code.
|
50 |
+
* Ability to add a compact shopping cart to your site using a shortcode.
|
51 |
* Can be translated into any language.
|
52 |
* and more...
|
53 |
|
77 |
|
78 |
Simply replace the values with your product specific data
|
79 |
|
80 |
+
= Using a compact shopping cart =
|
81 |
+
|
82 |
+
Add the following shortcode where you want to show the compact shopping cart:
|
83 |
+
|
84 |
+
[wp_compact_cart]
|
85 |
+
|
86 |
= Using Shipping =
|
87 |
|
88 |
1. To use shipping cost for your product, use the "shipping" parameter. Here is an example shortcode usage:
|
131 |
None
|
132 |
|
133 |
== Changelog ==
|
134 |
+
|
135 |
+
= 3.9.4 =
|
136 |
+
- Fixed a minor bug in the new compact cart shortcode [wp_compact_cart]
|
137 |
+
|
138 |
+
= 3.9.3 =
|
139 |
+
- Added a new feature to show a compact shopping cart. You can show the compact shopping cart anywhere on your site (example: sidebar, header etc).
|
140 |
+
- Language translation strings updated. Translation instruction here - http://www.tipsandtricks-hq.com/ecommerce/translating-the-wp-simple-shopping-cart-plugin-2627
|
141 |
+
- Added a new function for getting the total cart item quantity (wpspc_get_total_cart_qty).
|
142 |
+
- Added a new function to get the sub total amount of the cart (wpspc_get_total_cart_sub_total).
|
143 |
+
|
144 |
= 3.9.2 =
|
145 |
- Added an option to specify a custom button image for the add to cart buttons. You can use the "button_image" parameter in the shortcode to customize the add to cart button image.
|
146 |
- Coupon code that is used in a transaciton will be saved with the order so you can see it in the back end.
|
wp_shopping_cart.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Simple Paypal Shopping cart
|
4 |
-
Version: v3.9.
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
@@ -12,7 +12,7 @@ if(!isset($_SESSION)){
|
|
12 |
session_start();
|
13 |
}
|
14 |
|
15 |
-
define('WP_CART_VERSION', '3.9.
|
16 |
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
|
18 |
define('WP_CART_URL', plugins_url('',__FILE__));
|
@@ -23,6 +23,7 @@ define('WP_CART_SANDBOX_PAYPAL_URL', 'https://www.sandbox.paypal.com/cgi-bin/web
|
|
23 |
// loading language files
|
24 |
load_plugin_textdomain('WSPSC', false, WP_CART_FOLDER . '/languages');
|
25 |
|
|
|
26 |
include_once('wp_shopping_cart_shortcodes.php');
|
27 |
include_once('wp_shopping_cart_misc_functions.php');
|
28 |
include_once('wp_shopping_cart_orders.php');
|
@@ -164,7 +165,7 @@ function wpspc_cart_actions_handler()
|
|
164 |
wpspc_update_cart_items_record();
|
165 |
}
|
166 |
else{
|
167 |
-
echo "<p>Error! Your session is out of sync. Please reset your session
|
168 |
}
|
169 |
}
|
170 |
|
@@ -815,6 +816,7 @@ add_shortcode('show_wp_shopping_cart', 'show_wp_shopping_cart_handler');
|
|
815 |
add_shortcode('always_show_wp_shopping_cart', 'always_show_cart_handler');
|
816 |
add_shortcode('wp_cart_button', 'wp_cart_button_handler');
|
817 |
add_shortcode('wp_cart_display_product', 'wp_cart_display_product_handler');
|
|
|
818 |
|
819 |
add_action('wp_head', 'wp_cart_css');
|
820 |
add_action('wp_head', 'wp_cart_add_read_form_javascript');
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Simple Paypal Shopping cart
|
4 |
+
Version: v3.9.4
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=768
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
12 |
session_start();
|
13 |
}
|
14 |
|
15 |
+
define('WP_CART_VERSION', '3.9.4');
|
16 |
define('WP_CART_FOLDER', dirname(plugin_basename(__FILE__)));
|
17 |
define('WP_CART_PATH',plugin_dir_path( __FILE__ ));
|
18 |
define('WP_CART_URL', plugins_url('',__FILE__));
|
23 |
// loading language files
|
24 |
load_plugin_textdomain('WSPSC', false, WP_CART_FOLDER . '/languages');
|
25 |
|
26 |
+
include_once('wp_shopping_cart_utility_functions.php');
|
27 |
include_once('wp_shopping_cart_shortcodes.php');
|
28 |
include_once('wp_shopping_cart_misc_functions.php');
|
29 |
include_once('wp_shopping_cart_orders.php');
|
165 |
wpspc_update_cart_items_record();
|
166 |
}
|
167 |
else{
|
168 |
+
echo "<p>".(__("Error! Your session is out of sync. Please reset your session.", "WSPSC"))."</p>";
|
169 |
}
|
170 |
}
|
171 |
|
816 |
add_shortcode('always_show_wp_shopping_cart', 'always_show_cart_handler');
|
817 |
add_shortcode('wp_cart_button', 'wp_cart_button_handler');
|
818 |
add_shortcode('wp_cart_display_product', 'wp_cart_display_product_handler');
|
819 |
+
add_shortcode('wp_compact_cart', 'wspsc_compact_cart_handler');
|
820 |
|
821 |
add_action('wp_head', 'wp_cart_css');
|
822 |
add_action('wp_head', 'wp_cart_add_read_form_javascript');
|
wp_shopping_cart_discounts_menu.php
CHANGED
@@ -57,17 +57,17 @@ function show_wp_cart_coupon_discount_settings_page()
|
|
57 |
<input type="hidden" name="coupon_settings_update" id="coupon_settings_update" value="true" />
|
58 |
|
59 |
<div class="postbox">
|
60 |
-
<h3><label for="title"
|
61 |
<div class="inside">
|
62 |
|
63 |
<form method="post" action="">
|
64 |
<table class="form-table" width="100%" border="0" cellspacing="0" cellpadding="6">
|
65 |
|
66 |
<tr valign="top">
|
67 |
-
<th scope="row"
|
68 |
<td>
|
69 |
<input type="checkbox" name="wpspsc_enable_coupon" value="1" <?php echo $wpspsc_enable_coupon; ?> />
|
70 |
-
<span class="description"
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
@@ -90,7 +90,7 @@ function show_wp_cart_coupon_discount_settings_page()
|
|
90 |
<input type="hidden" name="info_update" id="info_update" value="true" />
|
91 |
|
92 |
<div class="postbox">
|
93 |
-
<h3><label for="title"
|
94 |
<div class="inside">
|
95 |
|
96 |
<form method="post" action="">
|
@@ -128,8 +128,8 @@ function show_wp_cart_coupon_discount_settings_page()
|
|
128 |
$output .= '
|
129 |
<table class="widefat" style="max-width:800px;">
|
130 |
<thead><tr>
|
131 |
-
<th scope="col">Coupon Code</th>
|
132 |
-
<th scope="col">Discount Rate (%)</th>
|
133 |
<th scope="col"></th>
|
134 |
</tr></thead>
|
135 |
<tbody>';
|
@@ -158,12 +158,12 @@ function show_wp_cart_coupon_discount_settings_page()
|
|
158 |
}
|
159 |
else
|
160 |
{
|
161 |
-
$output .= '<tr><td colspan="5">No Coupons Configured
|
162 |
}
|
163 |
}
|
164 |
else
|
165 |
{
|
166 |
-
$output .= '<tr><td colspan="5">No Record found</td></tr>';
|
167 |
}
|
168 |
|
169 |
$output .= '</tbody>
|
57 |
<input type="hidden" name="coupon_settings_update" id="coupon_settings_update" value="true" />
|
58 |
|
59 |
<div class="postbox">
|
60 |
+
<h3><label for="title"><?php _e("Coupon/Discount Settings", "WSPSC");?></label></h3>
|
61 |
<div class="inside">
|
62 |
|
63 |
<form method="post" action="">
|
64 |
<table class="form-table" width="100%" border="0" cellspacing="0" cellpadding="6">
|
65 |
|
66 |
<tr valign="top">
|
67 |
+
<th scope="row"><?php _e("Enable Discount Coupon Feature", "WSPSC");?></th>
|
68 |
<td>
|
69 |
<input type="checkbox" name="wpspsc_enable_coupon" value="1" <?php echo $wpspsc_enable_coupon; ?> />
|
70 |
+
<span class="description"><?php _e("When checked your customers will be able to enter a coupon code in the shopping cart before checkout.", "WSPSC");?></span>
|
71 |
</td>
|
72 |
</tr>
|
73 |
|
90 |
<input type="hidden" name="info_update" id="info_update" value="true" />
|
91 |
|
92 |
<div class="postbox">
|
93 |
+
<h3><label for="title"><?php _e("Add Coupon/Discount", "WSPSC");?></label></h3>
|
94 |
<div class="inside">
|
95 |
|
96 |
<form method="post" action="">
|
128 |
$output .= '
|
129 |
<table class="widefat" style="max-width:800px;">
|
130 |
<thead><tr>
|
131 |
+
<th scope="col">'.(__("Coupon Code", "WSPSC")).'</th>
|
132 |
+
<th scope="col">'.(__("Discount Rate (%)", "WSPSC")).'</th>
|
133 |
<th scope="col"></th>
|
134 |
</tr></thead>
|
135 |
<tbody>';
|
158 |
}
|
159 |
else
|
160 |
{
|
161 |
+
$output .= '<tr><td colspan="5">'.(__("No Coupons Configured.", "WSPSC")).'</td></tr>';
|
162 |
}
|
163 |
}
|
164 |
else
|
165 |
{
|
166 |
+
$output .= '<tr><td colspan="5">'.(__("No Record found", "WSPSC")).'</td></tr>';
|
167 |
}
|
168 |
|
169 |
$output .= '</tbody>
|
wp_shopping_cart_misc_functions.php
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
<?php
|
2 |
|
3 |
/* TODO
|
|
|
4 |
- After processing an IPN, call a function to clear all trash orders that are older than 6 hours.
|
5 |
- add an option for the admin email notification.
|
6 |
-
- add a reset cart button
|
7 |
- Mention the available languages
|
|
|
8 |
*/
|
9 |
|
10 |
/* this function gets called when init is fired */
|
1 |
<?php
|
2 |
|
3 |
/* TODO
|
4 |
+
- add a reset cart button
|
5 |
- After processing an IPN, call a function to clear all trash orders that are older than 6 hours.
|
6 |
- add an option for the admin email notification.
|
|
|
7 |
- Mention the available languages
|
8 |
+
- Add more filters and hooks
|
9 |
*/
|
10 |
|
11 |
/* this function gets called when init is fired */
|
wp_shopping_cart_orders.php
CHANGED
@@ -7,19 +7,19 @@ function wpspc_create_orders_page()
|
|
7 |
register_post_type( 'wpsc_cart_orders',
|
8 |
array(
|
9 |
'labels' => array(
|
10 |
-
'name' =>
|
11 |
-
'singular_name' =>
|
12 |
-
'add_new' =>
|
13 |
-
'add_new_item' =>
|
14 |
-
'edit' =>
|
15 |
-
'edit_item' =>
|
16 |
-
'new_item' =>
|
17 |
-
'view' =>
|
18 |
-
'view_item' =>
|
19 |
-
'search_items' =>
|
20 |
-
'not_found' =>
|
21 |
-
'not_found_in_trash' =>
|
22 |
-
'parent' =>
|
23 |
),
|
24 |
|
25 |
'public' => true,
|
@@ -35,7 +35,7 @@ function wpspc_create_orders_page()
|
|
35 |
function wpspc_add_meta_boxes()
|
36 |
{
|
37 |
add_meta_box( 'order_review_meta_box',
|
38 |
-
|
39 |
'wpspc_order_review_meta_box',
|
40 |
'wpsc_cart_orders',
|
41 |
'normal',
|
@@ -65,44 +65,44 @@ function wpspc_order_review_meta_box($wpsc_cart_orders)
|
|
65 |
$applied_coupon = get_post_meta( $wpsc_cart_orders->ID, 'wpsc_applied_coupon', true );
|
66 |
?>
|
67 |
<table>
|
68 |
-
<p
|
69 |
<?php if($txn_id){?>
|
70 |
-
<p
|
71 |
<?php } ?>
|
72 |
<tr>
|
73 |
-
<td
|
74 |
<td><input type="text" size="40" name="wpsc_first_name" value="<?php echo $first_name; ?>" /></td>
|
75 |
</tr>
|
76 |
<tr>
|
77 |
-
<td
|
78 |
<td><input type="text" size="40" name="wpsc_last_name" value="<?php echo $last_name; ?>" /></td>
|
79 |
</tr>
|
80 |
<tr>
|
81 |
-
<td
|
82 |
<td><input type="text" size="40" name="wpsc_email_address" value="<?php echo $email; ?>" /></td>
|
83 |
</tr>
|
84 |
<tr>
|
85 |
-
<td
|
86 |
<td><input type="text" size="40" name="wpsc_ipaddress" value="<?php echo $ip_address; ?>" /></td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
-
<td
|
90 |
<td><input type="text" size="20" name="wpsc_total_amount" value="<?php echo $total_amount; ?>" /></td>
|
91 |
</tr>
|
92 |
<tr>
|
93 |
-
<td
|
94 |
<td><textarea name="wpsc_address" cols="83" rows="2"><?php echo $address;?></textarea></td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
-
<td
|
98 |
<td><input type="text" size="80" name="wpsc_buyer_email_sent" value="<?php echo $email_sent_field_msg; ?>" readonly /></td>
|
99 |
</tr>
|
100 |
<tr>
|
101 |
-
<td
|
102 |
<td><textarea name="wpspsc_items_ordered" cols="83" rows="5"><?php echo $items_ordered;?></textarea></td>
|
103 |
</tr>
|
104 |
<tr>
|
105 |
-
<td
|
106 |
<td><input type="text" size="20" name="wpsc_applied_coupon" value="<?php echo $applied_coupon; ?>" readonly /></td>
|
107 |
</tr>
|
108 |
|
@@ -145,13 +145,13 @@ function wpspc_orders_display_columns( $columns )
|
|
145 |
unset( $columns['comments'] );
|
146 |
unset( $columns['date'] );
|
147 |
//$columns['wpsc_order_id'] = 'Order ID';
|
148 |
-
$columns['title'] =
|
149 |
-
$columns['wpsc_first_name'] =
|
150 |
-
$columns['wpsc_last_name'] =
|
151 |
-
$columns['wpsc_email_address'] =
|
152 |
-
$columns['wpsc_total_amount'] =
|
153 |
-
$columns['wpsc_order_status'] = "Status";
|
154 |
-
$columns['date'] =
|
155 |
return $columns;
|
156 |
}
|
157 |
|
7 |
register_post_type( 'wpsc_cart_orders',
|
8 |
array(
|
9 |
'labels' => array(
|
10 |
+
'name' => __("Cart Orders", "WSPSC"),
|
11 |
+
'singular_name' => __("Cart Order", "WSPSC"),
|
12 |
+
'add_new' => __("Add New", "WSPSC"),
|
13 |
+
'add_new_item' => __("Add New Order", "WSPSC"),
|
14 |
+
'edit' => __("Edit", "WSPSC"),
|
15 |
+
'edit_item' => __("Edit Order", "WSPSC"),
|
16 |
+
'new_item' => __("New Order", "WSPSC"),
|
17 |
+
'view' => __("View", "WSPSC"),
|
18 |
+
'view_item' => __("View Order", "WSPSC"),
|
19 |
+
'search_items' => __("Search Order", "WSPSC"),
|
20 |
+
'not_found' => __("No order found", "WSPSC"),
|
21 |
+
'not_found_in_trash' => __("No order found in Trash", "WSPSC"),
|
22 |
+
'parent' => __("Parent Order", "WSPSC")
|
23 |
),
|
24 |
|
25 |
'public' => true,
|
35 |
function wpspc_add_meta_boxes()
|
36 |
{
|
37 |
add_meta_box( 'order_review_meta_box',
|
38 |
+
__("Order Review", "WSPSC"),
|
39 |
'wpspc_order_review_meta_box',
|
40 |
'wpsc_cart_orders',
|
41 |
'normal',
|
65 |
$applied_coupon = get_post_meta( $wpsc_cart_orders->ID, 'wpsc_applied_coupon', true );
|
66 |
?>
|
67 |
<table>
|
68 |
+
<p><?php _e("Order ID: #", "WSPSC"); echo $order_id;?></p>
|
69 |
<?php if($txn_id){?>
|
70 |
+
<p><?php _e("Transaction ID: #", "WSPSC"); echo $txn_id;?></p>
|
71 |
<?php } ?>
|
72 |
<tr>
|
73 |
+
<td><?php _e("First Name", "WSPSC");?></td>
|
74 |
<td><input type="text" size="40" name="wpsc_first_name" value="<?php echo $first_name; ?>" /></td>
|
75 |
</tr>
|
76 |
<tr>
|
77 |
+
<td><?php _e("Last Name", "WSPSC");?></td>
|
78 |
<td><input type="text" size="40" name="wpsc_last_name" value="<?php echo $last_name; ?>" /></td>
|
79 |
</tr>
|
80 |
<tr>
|
81 |
+
<td><?php _e("Email Address", "WSPSC");?></td>
|
82 |
<td><input type="text" size="40" name="wpsc_email_address" value="<?php echo $email; ?>" /></td>
|
83 |
</tr>
|
84 |
<tr>
|
85 |
+
<td><?php _e("IP Address", "WSPSC");?></td>
|
86 |
<td><input type="text" size="40" name="wpsc_ipaddress" value="<?php echo $ip_address; ?>" /></td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
+
<td><?php _e("Total", "WSPSC");?></td>
|
90 |
<td><input type="text" size="20" name="wpsc_total_amount" value="<?php echo $total_amount; ?>" /></td>
|
91 |
</tr>
|
92 |
<tr>
|
93 |
+
<td><?php _e("Address", "WSPSC");?></td>
|
94 |
<td><textarea name="wpsc_address" cols="83" rows="2"><?php echo $address;?></textarea></td>
|
95 |
</tr>
|
96 |
<tr>
|
97 |
+
<td><?php _e("Buyer Email Sent?", "WSPSC");?></td>
|
98 |
<td><input type="text" size="80" name="wpsc_buyer_email_sent" value="<?php echo $email_sent_field_msg; ?>" readonly /></td>
|
99 |
</tr>
|
100 |
<tr>
|
101 |
+
<td><?php _e("Item(s) Ordered:", "WSPSC");?></td>
|
102 |
<td><textarea name="wpspsc_items_ordered" cols="83" rows="5"><?php echo $items_ordered;?></textarea></td>
|
103 |
</tr>
|
104 |
<tr>
|
105 |
+
<td><?php _e("Applied Coupon Code:", "WSPSC");?></td>
|
106 |
<td><input type="text" size="20" name="wpsc_applied_coupon" value="<?php echo $applied_coupon; ?>" readonly /></td>
|
107 |
</tr>
|
108 |
|
145 |
unset( $columns['comments'] );
|
146 |
unset( $columns['date'] );
|
147 |
//$columns['wpsc_order_id'] = 'Order ID';
|
148 |
+
$columns['title'] = __("Order ID", "WSPSC");
|
149 |
+
$columns['wpsc_first_name'] = __("First Name", "WSPSC");
|
150 |
+
$columns['wpsc_last_name'] = __("Last Name", "WSPSC");
|
151 |
+
$columns['wpsc_email_address'] = __("Email", "WSPSC");
|
152 |
+
$columns['wpsc_total_amount'] = __("Total", "WSPSC");
|
153 |
+
$columns['wpsc_order_status'] = __("Status", "WSPSC");
|
154 |
+
$columns['date'] = __("Date", "WSPSC");
|
155 |
return $columns;
|
156 |
}
|
157 |
|
wp_shopping_cart_settings.php
CHANGED
@@ -178,9 +178,9 @@ function show_wp_cart_options_page ()
|
|
178 |
<div class="inside">
|
179 |
|
180 |
<p><strong><?php _e("Step 1) ","WSPSC"); ?></strong><?php _e("To add an 'Add to Cart' button for a product simply add the shortcode", "WSPSC"); ?> [wp_cart_button name="<?php _e("PRODUCT-NAME", "WSPSC"); ?>" price="<?php _e("PRODUCT-PRICE", "WSPSC"); ?>"] <?php _e("to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price of your product.", "WSPSC"); ?></p>
|
181 |
-
<p
|
182 |
<p><strong><?php _e("Step 2) ","WSPSC"); ?></strong><?php _e("To add the shopping cart to a post or page (example: a checkout page) simply add the shortcode", "WSPSC"); ?> [show_wp_shopping_cart] <?php _e("to a post or page or use the sidebar widget to add the shopping cart to the sidebar.", "WSPSC"); ?></p>
|
183 |
-
<p
|
184 |
</div></div>
|
185 |
|
186 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
@@ -372,38 +372,38 @@ function show_wp_cart_email_settings_page()
|
|
372 |
<input type="hidden" name="info_update" id="info_update" value="true" />
|
373 |
|
374 |
<div class="postbox">
|
375 |
-
<h3><label for="title"
|
376 |
<div class="inside">
|
377 |
|
378 |
-
<p><i
|
379 |
|
380 |
<table class="form-table">
|
381 |
|
382 |
<tr valign="top">
|
383 |
-
<th scope="row"
|
384 |
-
<td><input type="checkbox" name="wpspc_send_buyer_email" value="1" <?php echo $wpspc_send_buyer_email; ?> /><span class="description"
|
385 |
</tr>
|
386 |
|
387 |
<tr valign="top">
|
388 |
-
<th scope="row"
|
389 |
<td><input type="text" name="wpspc_buyer_from_email" value="<?php echo $wpspc_buyer_from_email; ?>" size="50" />
|
390 |
-
<br /><p class="description"
|
391 |
</tr>
|
392 |
|
393 |
<tr valign="top">
|
394 |
-
<th scope="row"
|
395 |
<td><input type="text" name="wpspc_buyer_email_subj" value="<?php echo $wpspc_buyer_email_subj; ?>" size="50" />
|
396 |
-
<br /><p class="description"
|
397 |
</tr>
|
398 |
|
399 |
<tr valign="top">
|
400 |
-
<th scope="row"
|
401 |
<td>
|
402 |
<textarea name="wpspc_buyer_email_body" cols="90" rows="7"><?php echo $wpspc_buyer_email_body; ?></textarea>
|
403 |
-
<br /><p class="description"
|
404 |
-
<br />{first_name} – First name of the buyer
|
405 |
-
<br />{last_name} – Last name of the buyer
|
406 |
-
<br />{product_details} – The item details of the purchased product (this will include the download link for digital items).
|
407 |
</p></td>
|
408 |
</tr>
|
409 |
|
178 |
<div class="inside">
|
179 |
|
180 |
<p><strong><?php _e("Step 1) ","WSPSC"); ?></strong><?php _e("To add an 'Add to Cart' button for a product simply add the shortcode", "WSPSC"); ?> [wp_cart_button name="<?php _e("PRODUCT-NAME", "WSPSC"); ?>" price="<?php _e("PRODUCT-PRICE", "WSPSC"); ?>"] <?php _e("to a post or page next to the product. Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price of your product.", "WSPSC"); ?></p>
|
181 |
+
<p><?php _e("Example add to cart button shortcode usage:", "WSPSC");?> <p style="background-color: #DDDDDD; padding: 5px; display: inline;">[wp_cart_button name="Test Product" price="29.95"]</p></p>
|
182 |
<p><strong><?php _e("Step 2) ","WSPSC"); ?></strong><?php _e("To add the shopping cart to a post or page (example: a checkout page) simply add the shortcode", "WSPSC"); ?> [show_wp_shopping_cart] <?php _e("to a post or page or use the sidebar widget to add the shopping cart to the sidebar.", "WSPSC"); ?></p>
|
183 |
+
<p><?php _e("Example shopping cart shortcode usage:", "WSPSC");?> <p style="background-color: #DDDDDD; padding: 5px; display: inline;">[show_wp_shopping_cart]</p></p>
|
184 |
</div></div>
|
185 |
|
186 |
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
|
372 |
<input type="hidden" name="info_update" id="info_update" value="true" />
|
373 |
|
374 |
<div class="postbox">
|
375 |
+
<h3><label for="title"><?php _e("Purchase Confirmation Email Settings", "WSPSC");?></label></h3>
|
376 |
<div class="inside">
|
377 |
|
378 |
+
<p><i><?php _e("The following options affect the emails that gets sent to your buyers after a purchase.", "WSPSC");?></i></p>
|
379 |
|
380 |
<table class="form-table">
|
381 |
|
382 |
<tr valign="top">
|
383 |
+
<th scope="row"><?php _e("Send Emails to Buyer After Purchase", "WSPSC");?></th>
|
384 |
+
<td><input type="checkbox" name="wpspc_send_buyer_email" value="1" <?php echo $wpspc_send_buyer_email; ?> /><span class="description"><?php _e("If checked the plugin will send an email to the buyer with the sale details. If digital goods are purchased then the email will contain the download links for the purchased products.", "WSPSC");?></a></span></td>
|
385 |
</tr>
|
386 |
|
387 |
<tr valign="top">
|
388 |
+
<th scope="row"><?php _e("From Email Address", "WSPSC");?></th>
|
389 |
<td><input type="text" name="wpspc_buyer_from_email" value="<?php echo $wpspc_buyer_from_email; ?>" size="50" />
|
390 |
+
<br /><p class="description"><?php _e("Example: Your Name <sales@your-domain.com> This is the email address that will be used to send the email to the buyer. This name and email address will appear in the from field of the email.", "WSPSC");?></p></td>
|
391 |
</tr>
|
392 |
|
393 |
<tr valign="top">
|
394 |
+
<th scope="row"><?php _e("Buyer Email Subject", "WSPSC");?></th>
|
395 |
<td><input type="text" name="wpspc_buyer_email_subj" value="<?php echo $wpspc_buyer_email_subj; ?>" size="50" />
|
396 |
+
<br /><p class="description"><?php _e("This is the subject of the email that will be sent to the buyer.", "WSPSC");?></p></td>
|
397 |
</tr>
|
398 |
|
399 |
<tr valign="top">
|
400 |
+
<th scope="row"><?php _e("Buyer Email Body", "WSPSC");?></th>
|
401 |
<td>
|
402 |
<textarea name="wpspc_buyer_email_body" cols="90" rows="7"><?php echo $wpspc_buyer_email_body; ?></textarea>
|
403 |
+
<br /><p class="description"><?php _e("This is the body of the email that will be sent to the buyer. Do not change the text within the braces {}. You can use the following email tags in this email body field:", "WSPSC");?>
|
404 |
+
<br />{first_name} – <?php _e("First name of the buyer", "WSPSC");?>
|
405 |
+
<br />{last_name} – <?php _e("Last name of the buyer", "WSPSC");?>
|
406 |
+
<br />{product_details} – <?php _e("The item details of the purchased product (this will include the download link for digital items).", "WSPSC");?>
|
407 |
</p></td>
|
408 |
</tr>
|
409 |
|
wp_shopping_cart_shortcodes.php
CHANGED
@@ -13,10 +13,10 @@ function wp_cart_button_handler($atts){
|
|
13 |
), $atts));
|
14 |
|
15 |
if(empty($name)){
|
16 |
-
return '<div style="color:red;">Error! You must specify a product name in the shortcode
|
17 |
}
|
18 |
if(empty($price)){
|
19 |
-
return '<div style="color:red;">Error! You must specify a price for your product in the shortcode
|
20 |
}
|
21 |
return print_wp_cart_button_for_product($name, $price, $shipping, $var1, $var2, $var3, $atts);
|
22 |
}
|
@@ -37,13 +37,13 @@ function wp_cart_display_product_handler($atts)
|
|
37 |
), $atts));
|
38 |
|
39 |
if(empty($name)){
|
40 |
-
return '<div style="color:red;">Error! You must specify a product name in the shortcode
|
41 |
}
|
42 |
if(empty($price)){
|
43 |
-
return '<div style="color:red;">Error! You must specify a price for your product in the shortcode
|
44 |
}
|
45 |
if(empty($thumbnail)){
|
46 |
-
return '<div style="color:red;">Error! You must specify a thumbnail image for your product in the shortcode
|
47 |
}
|
48 |
$currency_symbol = get_option('cart_currency_symbol');
|
49 |
$button_code = print_wp_cart_button_for_product($name, $price, $shipping, $var1, $var2, $var3, $atts);
|
@@ -70,3 +70,31 @@ function wp_cart_display_product_handler($atts)
|
|
70 |
EOT;
|
71 |
return $display_code;
|
72 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
), $atts));
|
14 |
|
15 |
if(empty($name)){
|
16 |
+
return '<div style="color:red;">'.(__("Error! You must specify a product name in the shortcode.", "WSPSC")).'</div>';
|
17 |
}
|
18 |
if(empty($price)){
|
19 |
+
return '<div style="color:red;">'.(__("Error! You must specify a price for your product in the shortcode.", "WSPSC")).'</div>';
|
20 |
}
|
21 |
return print_wp_cart_button_for_product($name, $price, $shipping, $var1, $var2, $var3, $atts);
|
22 |
}
|
37 |
), $atts));
|
38 |
|
39 |
if(empty($name)){
|
40 |
+
return '<div style="color:red;">'.(__("Error! You must specify a product name in the shortcode.", "WSPSC")).'</div>';
|
41 |
}
|
42 |
if(empty($price)){
|
43 |
+
return '<div style="color:red;">'.(__("Error! You must specify a price for your product in the shortcode.", "WSPSC")).'</div>';
|
44 |
}
|
45 |
if(empty($thumbnail)){
|
46 |
+
return '<div style="color:red;">'.(__("Error! You must specify a thumbnail image for your product in the shortcode.", "WSPSC")).'</div>';
|
47 |
}
|
48 |
$currency_symbol = get_option('cart_currency_symbol');
|
49 |
$button_code = print_wp_cart_button_for_product($name, $price, $shipping, $var1, $var2, $var3, $atts);
|
70 |
EOT;
|
71 |
return $display_code;
|
72 |
}
|
73 |
+
|
74 |
+
function wspsc_compact_cart_handler($args)
|
75 |
+
{
|
76 |
+
$num_items = wpspc_get_total_cart_qty();
|
77 |
+
$curSymbol = get_option('cart_currency_symbol');
|
78 |
+
$checkout_url = get_option('cart_checkout_page_url');
|
79 |
+
|
80 |
+
$output = "";
|
81 |
+
$output .= '<div class="wpsps_compact_cart wpsps-cart-wrapper">';
|
82 |
+
$output .= '<div class="wpsps_compact_cart_container">';
|
83 |
+
if($num_items>0){
|
84 |
+
$cart_total = wpspc_get_total_cart_sub_total();
|
85 |
+
$item_message = ($num_items == 1)? "Item" : "Items";
|
86 |
+
$output .= $num_items . " " . $item_message;
|
87 |
+
$output .= '<span class="wpsps_compact_cart_price"> '. print_payment_currency($cart_total,$curSymbol).'</span>';
|
88 |
+
if(!empty($checkout_url)){
|
89 |
+
$output .= '<a class="wpsps_compact_cart_co_btn" href="'.$checkout_url.'">'.__("View Cart", "WSPSC").'</a>';
|
90 |
+
}
|
91 |
+
}
|
92 |
+
else{
|
93 |
+
$cart_total = 0;
|
94 |
+
$output .= __("Cart is empty", "WSPSC");
|
95 |
+
$output .= '<span class="wpsps_compact_cart_price"> '. print_payment_currency($cart_total,$curSymbol).'</span>';
|
96 |
+
}
|
97 |
+
$output .= '</div>';
|
98 |
+
$output .= '</div>';
|
99 |
+
return $output;
|
100 |
+
}
|
wp_shopping_cart_style.css
CHANGED
@@ -68,3 +68,35 @@ margin: 0;
|
|
68 |
padding: 10px 10px 10px 0;
|
69 |
}
|
70 |
/* end of product display specific CSS */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
padding: 10px 10px 10px 0;
|
69 |
}
|
70 |
/* end of product display specific CSS */
|
71 |
+
|
72 |
+
/* Compact cart css */
|
73 |
+
.wpsps_compact_cart{
|
74 |
+
font-family:helvetica;
|
75 |
+
background-color:#DDDDDD;
|
76 |
+
border:1px solid #CCCCCC;
|
77 |
+
max-width: 240px;
|
78 |
+
min-width: 200px;
|
79 |
+
padding: 10px 7px;
|
80 |
+
margin:5px 0;
|
81 |
+
}
|
82 |
+
.wpsps_compact_cart_container{
|
83 |
+
background:url("images/shopping_basket_icon_small.png") no-repeat scroll 0 50% transparent;
|
84 |
+
padding-left: 15px;
|
85 |
+
font-size: 14px;
|
86 |
+
}
|
87 |
+
.wpsps_compact_cart_price{
|
88 |
+
color: #6A872D;
|
89 |
+
font-weight: bold;
|
90 |
+
}
|
91 |
+
.wpsps_compact_cart_co_btn{
|
92 |
+
background-color: #A3A3A3 !important;
|
93 |
+
color: #162636 !important;
|
94 |
+
font-size: 14px !important;
|
95 |
+
font-weight:normal !important;
|
96 |
+
margin-left: 10px !important;
|
97 |
+
padding: 5px 7px !important;
|
98 |
+
text-decoration: none !important;
|
99 |
+
width:auto !important;
|
100 |
+
height:auto !important;
|
101 |
+
}
|
102 |
+
/* End of compact cart css */
|
wp_shopping_cart_utility_functions.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
function wpspc_get_total_cart_qty()
|
4 |
+
{
|
5 |
+
$total_items = 0;
|
6 |
+
if(!isset($_SESSION['simpleCart'])){
|
7 |
+
return $total_items;
|
8 |
+
}
|
9 |
+
foreach ($_SESSION['simpleCart'] as $item){
|
10 |
+
$total_items += $item['quantity'];
|
11 |
+
}
|
12 |
+
return $total_items;
|
13 |
+
}
|
14 |
+
|
15 |
+
function wpspc_get_total_cart_sub_total()
|
16 |
+
{
|
17 |
+
$sub_total = 0;
|
18 |
+
if(!isset($_SESSION['simpleCart'])){
|
19 |
+
return $sub_total;
|
20 |
+
}
|
21 |
+
foreach ($_SESSION['simpleCart'] as $item){
|
22 |
+
$sub_total += $item['price'] * $item['quantity'];
|
23 |
+
}
|
24 |
+
return $sub_total;
|
25 |
+
}
|