Skip to content

Commit 2e6ffae

Browse files
Pay in 4 widget (#27)
1 parent dd9ec1a commit 2e6ffae

File tree

7 files changed

+134
-82
lines changed

7 files changed

+134
-82
lines changed

plugin/aplazame.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ class WC_Aplazame_Install {
335335
'product_widget_border' => 'yes',
336336
'product_widget_align' => 'center',
337337
'cart_widget_align' => 'center',
338+
'product_pay_in_4' => 'no',
339+
'cart_pay_in_4' => 'no',
338340
);
339341

340342
public static function upgrade() {

plugin/classes/wc-aplazame-gateway.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,12 @@ public function init_form_fields() {
272272
'description' => __( 'Show legal notice in product widget', 'aplazame' ),
273273
'label' => __( 'Show legal notice', 'aplazame' ),
274274
),
275+
'product_pay_in_4' => array(
276+
'type' => 'checkbox',
277+
'title' => __( 'Pay in 4', 'aplazame' ),
278+
'description' => __( 'Enable product widget pay in 4 (if available)', 'aplazame' ),
279+
'label' => __( 'Enable pay in 4', 'aplazame' ),
280+
),
275281
'product_widget_border' => array(
276282
'type' => 'checkbox',
277283
'title' => __( 'Border', 'aplazame' ),
@@ -359,6 +365,12 @@ public function init_form_fields() {
359365
'description' => __( 'Show legal notice in cart widget', 'aplazame' ),
360366
'label' => __( 'Show legal notice', 'aplazame' ),
361367
),
368+
'cart_pay_in_4' => array(
369+
'type' => 'checkbox',
370+
'title' => __( 'Pay in 4', 'aplazame' ),
371+
'description' => __( 'Enable cart widget pay in 4 (if available)', 'aplazame' ),
372+
'label' => __( 'Enable pay in 4', 'aplazame' ),
373+
),
362374
'cart_widget_primary_color' => array(
363375
'type' => 'text',
364376
'css' => 'width:100px;',
313 Bytes
Binary file not shown.

plugin/i18n/languages/aplazame.po

Lines changed: 55 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n"
4-
"POT-Creation-Date: 2021-05-18 10:47+0000\n"
4+
"POT-Creation-Date: 2021-09-08 14:25+0000\n"
55
"Language: es_ES\n"
66
"MIME-Version: 1.0\n"
77
"Content-Type: text/plain; charset=UTF-8\n"
@@ -109,15 +109,15 @@ msgstr "Descripción del método de pago"
109109
msgid "Product widget"
110110
msgstr "Widget del producto"
111111

112-
#: classes/wc-aplazame-gateway.php:252 classes/wc-aplazame-gateway.php:340
112+
#: classes/wc-aplazame-gateway.php:252 classes/wc-aplazame-gateway.php:346
113113
msgid "Place to show"
114114
msgstr "Lugar a mostrar"
115115

116116
#: classes/wc-aplazame-gateway.php:253
117117
msgid "Widget place on product page"
118118
msgstr "Lugar del widget en la página del producto"
119119

120-
#: classes/wc-aplazame-gateway.php:255 classes/wc-aplazame-gateway.php:343
120+
#: classes/wc-aplazame-gateway.php:255 classes/wc-aplazame-gateway.php:349
121121
msgid "~ Not show ~"
122122
msgstr "~ No mostrar ~"
123123

@@ -133,159 +133,175 @@ msgstr "Después del botón de añadir al carrito"
133133
msgid "After summary"
134134
msgstr "Después del resumen"
135135

136-
#: classes/wc-aplazame-gateway.php:265 classes/wc-aplazame-gateway.php:352
136+
#: classes/wc-aplazame-gateway.php:265 classes/wc-aplazame-gateway.php:358
137137
msgid "Default instalments"
138138
msgstr "Cuotas por defecto"
139139

140140
#: classes/wc-aplazame-gateway.php:266
141141
msgid "Number of default instalments in product widget"
142142
msgstr "Número de cuotas por defecto en el widget del producto"
143143

144-
#: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:354
144+
#: classes/wc-aplazame-gateway.php:267 classes/wc-aplazame-gateway.php:360
145145
msgid "Optional (only numbers)"
146146
msgstr "Opcional (solo números)"
147147

148-
#: classes/wc-aplazame-gateway.php:271 classes/wc-aplazame-gateway.php:358
148+
#: classes/wc-aplazame-gateway.php:271 classes/wc-aplazame-gateway.php:364
149149
msgid "Legal notice"
150150
msgstr "Texto legal"
151151

152152
#: classes/wc-aplazame-gateway.php:272
153153
msgid "Show legal notice in product widget"
154154
msgstr "Mostrar texto legal en el widget del producto"
155155

156-
#: classes/wc-aplazame-gateway.php:273 classes/wc-aplazame-gateway.php:360
156+
#: classes/wc-aplazame-gateway.php:273 classes/wc-aplazame-gateway.php:366
157157
msgid "Show legal notice"
158158
msgstr "Mostrar texto legal"
159159

160-
#: classes/wc-aplazame-gateway.php:277
160+
#: classes/wc-aplazame-gateway.php:277 classes/wc-aplazame-gateway.php:370
161+
msgid "Pay in 4"
162+
msgstr "Paga en 4"
163+
164+
#: classes/wc-aplazame-gateway.php:278
165+
msgid "Enable product widget pay in 4 (if available)"
166+
msgstr "Activar widget del producto paga en 4 (si disponible)"
167+
168+
#: classes/wc-aplazame-gateway.php:279 classes/wc-aplazame-gateway.php:372
169+
msgid "Enable pay in 4"
170+
msgstr "Activar paga en 4"
171+
172+
#: classes/wc-aplazame-gateway.php:283
161173
msgid "Border"
162174
msgstr "Marco"
163175

164-
#: classes/wc-aplazame-gateway.php:278
176+
#: classes/wc-aplazame-gateway.php:284
165177
msgid "Show border in product widget (only new widget)"
166178
msgstr "Mostrar marco en el widget del producto (sólo nuevo widget)"
167179

168-
#: classes/wc-aplazame-gateway.php:279
180+
#: classes/wc-aplazame-gateway.php:285
169181
msgid "Show border"
170182
msgstr "Mostrar marco"
171183

172-
#: classes/wc-aplazame-gateway.php:285 classes/wc-aplazame-gateway.php:366
184+
#: classes/wc-aplazame-gateway.php:291 classes/wc-aplazame-gateway.php:378
173185
msgid "Primary color"
174186
msgstr "Color principal"
175187

176-
#: classes/wc-aplazame-gateway.php:286
188+
#: classes/wc-aplazame-gateway.php:292
177189
msgid "Primary color hexadecimal code for product widget (only new widget)"
178190
msgstr ""
179191
"Código hexadecimal del color principal para el widget del producto (sólo "
180192
"nuevo widget)"
181193

182-
#: classes/wc-aplazame-gateway.php:292 classes/wc-aplazame-gateway.php:373
194+
#: classes/wc-aplazame-gateway.php:298 classes/wc-aplazame-gateway.php:385
183195
msgid "Layout"
184196
msgstr "Disposición"
185197

186-
#: classes/wc-aplazame-gateway.php:293
198+
#: classes/wc-aplazame-gateway.php:299
187199
msgid "Layout of product widget (only new widget)"
188200
msgstr "Disposición del widget del producto (sólo nuevo widget)"
189201

190-
#: classes/wc-aplazame-gateway.php:302 classes/wc-aplazame-gateway.php:383
202+
#: classes/wc-aplazame-gateway.php:308 classes/wc-aplazame-gateway.php:395
191203
msgid "Alignment"
192204
msgstr "Alineación"
193205

194-
#: classes/wc-aplazame-gateway.php:303
206+
#: classes/wc-aplazame-gateway.php:309
195207
msgid "Product widget alignment (only new widget)"
196208
msgstr "Alineación del widget del producto (sólo nuevo widget)"
197209

198-
#: classes/wc-aplazame-gateway.php:305 classes/wc-aplazame-gateway.php:386
210+
#: classes/wc-aplazame-gateway.php:311 classes/wc-aplazame-gateway.php:398
199211
msgid "Left"
200212
msgstr "Izquierda"
201213

202-
#: classes/wc-aplazame-gateway.php:306 classes/wc-aplazame-gateway.php:387
214+
#: classes/wc-aplazame-gateway.php:312 classes/wc-aplazame-gateway.php:399
203215
msgid "Center"
204216
msgstr "Centro"
205217

206-
#: classes/wc-aplazame-gateway.php:307 classes/wc-aplazame-gateway.php:388
218+
#: classes/wc-aplazame-gateway.php:313 classes/wc-aplazame-gateway.php:400
207219
msgid "Right"
208220
msgstr "Derecha"
209221

210-
#: classes/wc-aplazame-gateway.php:313
222+
#: classes/wc-aplazame-gateway.php:319
211223
msgid "Product quantity CSS selector"
212224
msgstr "Selector CSS del número de unidades del producto"
213225

214-
#: classes/wc-aplazame-gateway.php:314
226+
#: classes/wc-aplazame-gateway.php:320
215227
msgid "CSS selector pointing to product quantity"
216228
msgstr "Selector CSS para obtener la cantidad de producto"
217229

218-
#: classes/wc-aplazame-gateway.php:319
230+
#: classes/wc-aplazame-gateway.php:325
219231
msgid "Product price CSS selector"
220232
msgstr "Selector CSS del precio del producto"
221233

222-
#: classes/wc-aplazame-gateway.php:320
234+
#: classes/wc-aplazame-gateway.php:326
223235
msgid "CSS selector pointing to product price"
224236
msgstr "Selector CSS para obtener el precio del producto"
225237

226-
#: classes/wc-aplazame-gateway.php:325
238+
#: classes/wc-aplazame-gateway.php:331
227239
msgid "Variable product price CSS selector"
228240
msgstr "Selector CSS del precio variable del producto"
229241

230-
#: classes/wc-aplazame-gateway.php:326
242+
#: classes/wc-aplazame-gateway.php:332
231243
msgid "CSS selector pointing to variable product price"
232244
msgstr "Selector CSS para obtener el precio variable del producto"
233245

234-
#: classes/wc-aplazame-gateway.php:334
246+
#: classes/wc-aplazame-gateway.php:340
235247
msgid "Cart widget"
236248
msgstr "Widget del carrito"
237249

238-
#: classes/wc-aplazame-gateway.php:341
250+
#: classes/wc-aplazame-gateway.php:347
239251
msgid "Widget place on cart page"
240252
msgstr "Lugar del widget en la página del carrito"
241253

242-
#: classes/wc-aplazame-gateway.php:344
254+
#: classes/wc-aplazame-gateway.php:350
243255
msgid "Before cart totals"
244256
msgstr "Antes del total"
245257

246-
#: classes/wc-aplazame-gateway.php:345
258+
#: classes/wc-aplazame-gateway.php:351
247259
msgid "After cart totals"
248260
msgstr "Después del total"
249261

250-
#: classes/wc-aplazame-gateway.php:353
262+
#: classes/wc-aplazame-gateway.php:359
251263
msgid "Number of default instalments in cart widget"
252264
msgstr "Número de cuotas por defecto en el widget del carrito"
253265

254-
#: classes/wc-aplazame-gateway.php:359
266+
#: classes/wc-aplazame-gateway.php:365
255267
msgid "Show legal notice in cart widget"
256268
msgstr "Mostrar texto legal en el widget del carrito"
257269

258-
#: classes/wc-aplazame-gateway.php:367
270+
#: classes/wc-aplazame-gateway.php:371
271+
msgid "Enable cart widget pay in 4 (if available)"
272+
msgstr "Activar widget del carrito paga en 4 (si disponible)"
273+
274+
#: classes/wc-aplazame-gateway.php:379
259275
msgid "Primary color hexadecimal code for cart widget (only new widget)"
260276
msgstr ""
261277
"Código hexadecimal del color principal para el widget del carrito (sólo "
262278
"nuevo widget)"
263279

264-
#: classes/wc-aplazame-gateway.php:374
280+
#: classes/wc-aplazame-gateway.php:386
265281
msgid "Layout of cart widget (only new widget)"
266282
msgstr "Disposición del widget del carrito (sólo nuevo widget)"
267283

268-
#: classes/wc-aplazame-gateway.php:384
284+
#: classes/wc-aplazame-gateway.php:396
269285
msgid "Cart widget alignment (only new widget)"
270286
msgstr "Alineación del widget del carrito (sólo nuevo widget)"
271287

272-
#: classes/wc-aplazame-gateway.php:393
288+
#: classes/wc-aplazame-gateway.php:405
273289
msgid "Button"
274290
msgstr "Botón"
275291

276-
#: classes/wc-aplazame-gateway.php:399
292+
#: classes/wc-aplazame-gateway.php:411
277293
msgid "Button Selector"
278294
msgstr "Selector del botón"
279295

280-
#: classes/wc-aplazame-gateway.php:400
296+
#: classes/wc-aplazame-gateway.php:412
281297
msgid "Aplazame Button CSS Selector"
282298
msgstr "Selector CSS del botón de pago con Aplazame"
283299

284-
#: classes/wc-aplazame-gateway.php:408
300+
#: classes/wc-aplazame-gateway.php:420
285301
msgid "Button Image"
286302
msgstr "Imagen del botón"
287303

288-
#: classes/wc-aplazame-gateway.php:409
304+
#: classes/wc-aplazame-gateway.php:421
289305
msgid "Aplazame Button Image that you want to show"
290306
msgstr "Imagen del botón de pago con Aplazame que quieres mostrar"
291307

0 commit comments

Comments
 (0)