Skip to content

Commit cae16c9

Browse files
Release v4.2.0
* [ADD] PT widget.
2 parents bdef652 + 0d612db commit cae16c9

File tree

11 files changed

+206
-152
lines changed

11 files changed

+206
-152
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ aplazame.latest.zip
55
composer.lock
66
docker-compose.override.yml
77
package-lock.json
8+
/.idea/

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Change Log
22

3+
#### [v4.2.0](https://github.com/aplazame/woocommerce/tree/v4.2.0) (2025-09-29)
4+
5+
* [ADD] PT widget.
6+
37
#### [v4.1.3](https://github.com/aplazame/woocommerce/tree/v4.1.3) (2025-01-21)
48

59
* Update license and tested versions.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugin_path ?= plugin
22
i18n_path ?= i18n/languages
33
i18n_name ?= aplazame-es_ES
4-
version ?= v4.1.3
5-
errors = $(shell find . -type f -name "*.php" -exec php -l "{}" \;| grep "Errors parsing ";)
4+
version ?= v4.2.0
5+
errors = $(shell find plugin/. -type f -name "*.php" -exec php -l "{}" \;| grep "Errors parsing ";)
66

77
clean:
88
@rm -f aplazame.latest.zip

plugin/README.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
Contributors: aplazame
33
Tags: aplazame,woocommerce,ecommerce,payment,checkout,credit,aplazar,financiar,financiera,financiación,pago aplazado,método de pago
44
Requires at least: 4.0.1
5-
Tested up to: 6.7.1
5+
Tested up to: 6.8.2
66
Requires PHP: 5.3.0
7-
Stable tag: 4.1.3
7+
Stable tag: 4.2.0
88
License: BSD-3-Clause
99
License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE
1010

@@ -77,6 +77,10 @@ Of course, simply select an *"Aplazame refund"* in the product detail.
7777

7878
== Changelog ==
7979

80+
#### [v4.2.0](https://github.com/aplazame/woocommerce/tree/v4.2.0) (2025-09-29)
81+
82+
* [ADD] PT widget.
83+
8084
#### [v4.1.3](https://github.com/aplazame/woocommerce/tree/v4.1.3) (2025-01-21)
8185

8286
* Update license and tested versions.

plugin/aplazame.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* Plugin Name: Aplazame
44
* Plugin URI: https://github.com/aplazame/woocommerce
5-
* Version: 4.1.3
5+
* Version: 4.2.0
66
* Description: Aplazame offers a payment method to receive funding for the purchases.
77
* Author: Aplazame
88
* Author URI: https://aplazame.com
@@ -11,7 +11,7 @@
1111
* Domain Path: /i18n/languages/
1212
*
1313
* WC requires at least: 3.0.0
14-
* WC tested up to: 9.6.0
14+
* WC tested up to: 10.2.1
1515
*
1616
* License: GNU General Public License v3.0
1717
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -25,7 +25,7 @@
2525
require_once 'lib/Aplazame/Aplazame/autoload.php';
2626

2727
class WC_Aplazame {
28-
const VERSION = '4.1.3';
28+
const VERSION = '4.2.0';
2929
const METHOD_ID = 'aplazame';
3030
const METHOD_TITLE = 'Aplazame';
3131

@@ -385,6 +385,7 @@ class WC_Aplazame_Install {
385385
'cart_widget_ver' => 'v5',
386386
'product_slider' => 'yes',
387387
'cart_slider' => 'yes',
388+
'widget_country' => 'es',
388389
);
389390

390391
public static function upgrade() {

plugin/classes/wc-aplazame-gateway.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ public function init_form_fields() {
232232
),
233233
'default' => WC_Aplazame_Install::$defaultSettings['widget_out_of_limits'],
234234
),
235+
'widget_country' => array(
236+
'type' => 'select',
237+
'title' => __( 'Widget country', 'aplazame' ),
238+
'description' => __( 'Select widget country', 'aplazame' ),
239+
'options' => array(
240+
'es' => __( 'ES (Spain)', 'aplazame' ),
241+
'pt' => __( 'PT (Portugal)', 'aplazame' ),
242+
),
243+
'default' => WC_Aplazame_Install::$defaultSettings['widget_country'],
244+
),
235245
'payment_section' => array(
236246
'title' => __( 'Payment method title and description', 'aplazame' ),
237247
'type' => 'title',
199 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)