Skip to content

Commit

Permalink
Release v8.1.2
Browse files Browse the repository at this point in the history
* [ADD] Widget loading animation.
* [DEL] Deprecated options.
  • Loading branch information
alexhernandezord authored Nov 19, 2024
2 parents a370e0b + a79d115 commit 7552a04
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 49 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Change Log

#### [v8.1.2](https://github.com/aplazame/prestashop/tree/v8.1.2) (2024-11-19)

* [ADD] Widget loading animation.
* [DEL] Deprecated options.

#### [v8.1.1](https://github.com/aplazame/prestashop/tree/v8.1.1) (2024-09-18)

* [FIX] Error at admin product hook for campaigns.
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version ?= v8.1.1
version ?= v8.1.2
errors = $(shell find aplazame -type f -name "*.php" -exec php -l "{}" \;| grep "Errors parsing ";)

syntax.checker:
Expand Down
42 changes: 1 addition & 41 deletions aplazame/aplazame.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct()
{
$this->name = 'aplazame';
$this->tab = 'payments_gateways';
$this->version = '8.1.1';
$this->version = '8.1.2';
$this->author = 'Aplazame SL';
$this->author_uri = 'https://aplazame.com';
$this->module_key = '64b13ea3527b4df3fe2e3fc1526ce515';
Expand Down Expand Up @@ -129,14 +129,12 @@ public function install()
Configuration::updateValue('PRODUCT_WIDGET_ALIGN', 'center');
Configuration::updateValue('PRODUCT_WIDGET_MAX_DESIRED', false);
Configuration::updateValue('PRODUCT_WIDGET_SLIDER', true);
Configuration::updateValue('PRODUCT_WIDGET_SMALL_SIZE', false);
Configuration::updateValue('CART_WIDGET_VER', 'v5');
Configuration::updateValue('CART_WIDGET_PRIMARY_COLOR', '#334bff');
Configuration::updateValue('CART_WIDGET_LAYOUT', 'horizontal');
Configuration::updateValue('CART_WIDGET_ALIGN', 'center');
Configuration::updateValue('CART_WIDGET_MAX_DESIRED', false);
Configuration::updateValue('CART_WIDGET_SLIDER', true);
Configuration::updateValue('CART_WIDGET_SMALL_SIZE', false);

return ($this->registerHook('actionOrderSlipAdd')
&& $this->registerHook('actionOrderStatusUpdate')
Expand Down Expand Up @@ -288,14 +286,12 @@ public function getContent()
'PRODUCT_WIDGET_ALIGN',
'PRODUCT_WIDGET_MAX_DESIRED',
'PRODUCT_WIDGET_SLIDER',
'PRODUCT_WIDGET_SMALL_SIZE',
'CART_WIDGET_VER',
'CART_WIDGET_PRIMARY_COLOR',
'CART_WIDGET_LAYOUT',
'CART_WIDGET_ALIGN',
'CART_WIDGET_MAX_DESIRED',
'CART_WIDGET_SLIDER',
'CART_WIDGET_SMALL_SIZE',
);

if (Tools::isSubmit('submitAplazameModule')) {
Expand Down Expand Up @@ -720,23 +716,6 @@ protected function getConfigForm()
),
),
),
array(
'type' => $switch_or_radio,
'label' => $this->l('Small size'),
'name' => 'PRODUCT_WIDGET_SMALL_SIZE',
'is_bool' => true,
'desc' => $this->l('Reduce size of product widget (only v5)'),
'values' => array(
array(
'id' => 'active_on',
'value' => true,
),
array(
'id' => 'active_off',
'value' => false,
),
),
),
),
),
);
Expand Down Expand Up @@ -939,23 +918,6 @@ protected function getConfigForm()
),
),
),
array(
'type' => $switch_or_radio,
'label' => $this->l('Small size'),
'name' => 'CART_WIDGET_SMALL_SIZE',
'is_bool' => true,
'desc' => $this->l('Reduce size of cart widget (only v5)'),
'values' => array(
array(
'id' => 'active_on',
'value' => true,
),
array(
'id' => 'active_off',
'value' => false,
),
),
),
),
),
);
Expand Down Expand Up @@ -1174,7 +1136,6 @@ public function hookDisplayShoppingCart($params)
'aplazame_layout' => Configuration::get('CART_WIDGET_LAYOUT'),
'aplazame_align' => Configuration::get('CART_WIDGET_ALIGN'),
'aplazame_slider' => Configuration::get('CART_WIDGET_SLIDER') ? 'true' : 'false',
'aplazame_small_size' => Configuration::get('CART_WIDGET_SMALL_SIZE') ? 'true' : 'false',
'aplazame_customer_id' => $address->dni,
));

Expand Down Expand Up @@ -1305,7 +1266,6 @@ public function getWidget($params)
'aplazame_align' => Configuration::get('PRODUCT_WIDGET_ALIGN'),
'aplazame_border' => Configuration::get('PRODUCT_WIDGET_BORDER') ? 'true' : 'false',
'aplazame_slider' => Configuration::get('PRODUCT_WIDGET_SLIDER') ? 'true' : 'false',
'aplazame_small_size' => Configuration::get('PRODUCT_WIDGET_SMALL_SIZE') ? 'true' : 'false',
'aplazame_customer_id' => $address->dni,
));

Expand Down
3 changes: 0 additions & 3 deletions aplazame/translations/es.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
$_MODULE['<{aplazame}prestashop>aplazame_92b09c7c48c520c3c55e497875da437c'] = 'Derecha';
$_MODULE['<{aplazame}prestashop>aplazame_2d9b9a764fb0be4be10e1b2fce63f561'] = 'Barra deslizante';
$_MODULE['<{aplazame}prestashop>aplazame_8ef92d35d7d12b08a60225681be988d4'] = 'Muestra la barra deslizante para el widget del producto (sólo v5)';
$_MODULE['<{aplazame}prestashop>aplazame_e561a17d2d2af23ac1739a039d5183b2'] = 'Tamaño pequeño';
$_MODULE['<{aplazame}prestashop>aplazame_3d2d1a70abdf687f9588d8b03b0086c3'] = 'Reduce el tamaño para el widget del producto (sólo v5)';
$_MODULE['<{aplazame}prestashop>aplazame_6151f2846e2bcd1447c9756bd339b653'] = 'Widget del carrito';
$_MODULE['<{aplazame}prestashop>aplazame_e8a85e59184709600e66388e2f4d5564'] = 'Mostrar el widget en la página del carrito';
$_MODULE['<{aplazame}prestashop>aplazame_ecc88bc7b64ad18502efcd50658125cd'] = 'Elige la versión deseada para el widget del carrito';
Expand All @@ -67,7 +65,6 @@
$_MODULE['<{aplazame}prestashop>aplazame_df27acff074f51ec46c3230352ddec7c'] = 'Disposición del widget del carrito (sólo v4)';
$_MODULE['<{aplazame}prestashop>aplazame_185766927c36dcf84932c0399879c4d7'] = 'Alineación del widget del carrito (sólo v4/v5)';
$_MODULE['<{aplazame}prestashop>aplazame_83e25b928e28d5fd7b21ca47e762e4b6'] = 'Muestra la barra deslizante para el widget del carrito (sólo v5)';
$_MODULE['<{aplazame}prestashop>aplazame_89d7629124431074ce3caa264fb02aee'] = 'Reduce el tamaño para el widget del carrito (sólo v5)';
$_MODULE['<{aplazame}prestashop>aplazame_87b7760f14fbff78d8819291f36ab9a0'] = 'Botón';
$_MODULE['<{aplazame}prestashop>aplazame_f81428bbd6a2b25b57f576a38e2df9a5'] = 'Título del botón de pago con Aplazame';
$_MODULE['<{aplazame}prestashop>aplazame_c5baa25af2b90d1919c6d0e0f674976b'] = 'Título del botón';
Expand Down
20 changes: 20 additions & 0 deletions aplazame/upgrade/Upgrade-8.1.2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* This file is part of the official Aplazame module for PrestaShop.
*
* @author Aplazame <soporte@aplazame.com>
* @copyright 2015-2024 Aplazame
* @license see file: LICENSE
*/

if (!defined('_PS_VERSION_')) {
exit;
}

function upgrade_module_8_1_2(Aplazame $module)
{
Configuration::deleteByName('PRODUCT_WIDGET_SMALL_SIZE');
Configuration::deleteByName('CART_WIDGET_SMALL_SIZE');

return true;
}
5 changes: 3 additions & 2 deletions aplazame/views/templates/hook/product.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
data-aplazame-widget-instalments="v5"
data-type="product"
data-option-slider="{$aplazame_slider|escape:'htmlall':'UTF-8'}"
data-option-small-size="{$aplazame_small_size|escape:'htmlall':'UTF-8'}"
data-option-align="{$aplazame_align|escape:'htmlall':'UTF-8'}"
{/if}
data-amount="{$aplazame_amount|escape:'htmlall':'UTF-8'}"
Expand All @@ -43,4 +42,6 @@
{if $aplazame_customer_id}
data-option-customer-id="{$aplazame_customer_id|escape:'htmlall':'UTF-8'}"
{/if}
></div>
>
<div data-aplazame-loading></div>
</div>
5 changes: 3 additions & 2 deletions aplazame/views/templates/hook/shoppingcart.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
data-aplazame-widget-instalments="v5"
data-type="cart"
data-option-slider="{$aplazame_slider|escape:'htmlall':'UTF-8'}"
data-option-small-size="{$aplazame_small_size|escape:'htmlall':'UTF-8'}"
data-option-align="{$aplazame_align|escape:'htmlall':'UTF-8'}"
{/if}
data-amount="{$aplazame_cart_total|escape:'htmlall':'UTF-8'}"
Expand All @@ -39,4 +38,6 @@
{if $aplazame_customer_id}
data-option-customer-id="{$aplazame_customer_id|escape:'htmlall':'UTF-8'}"
{/if}
></div>
>
<div data-aplazame-loading></div>
</div>

0 comments on commit 7552a04

Please sign in to comment.