From 03ad6d198913c80079862fb4bc91f3f162725007 Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 25 Nov 2024 11:35:35 +0100 Subject: [PATCH] Mejoras estéticas en la intefaz del módulo en la ficha del producto. Implementación con prestashop 8. --- config.xml | 2 +- functionsForm.php | 2 +- imaxAcordeon.php | 1 + imaxmultiean.php | 4 ++-- templates/hook/admin_products_extra.tpl | 155 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------- 5 files changed, 87 insertions(+), 77 deletions(-) diff --git a/config.xml b/config.xml index 1189044..319cfaf 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ imaxmultiean - + diff --git a/functionsForm.php b/functionsForm.php index 50efe5d..c3007a0 100644 --- a/functionsForm.php +++ b/functionsForm.php @@ -5,7 +5,7 @@ */ class imaxForm { - private $sinFormulario, $formulario = '', $modulo; + private $sinFormulario, $formulario = '', $modulo, $context, $_path, $_modulePath, $ajax, $idLang, $idShop; function __construct($modulo, $modulePath = '', $action = '', $method = 'post', $name = '', $enctype = '', $extras = false, $sinFormulario = false, $pathToModule = '', $ajax = false) { if ($action == '') { diff --git a/imaxAcordeon.php b/imaxAcordeon.php index d3f0472..0ad8941 100644 --- a/imaxAcordeon.php +++ b/imaxAcordeon.php @@ -3,6 +3,7 @@ * @version 1.3 */ class imaxAcordeon { + private $context, $_path; function __construct($modulePath) { $this->context = Context::getContext(); diff --git a/imaxmultiean.php b/imaxmultiean.php index 85fac73..6ab2811 100644 --- a/imaxmultiean.php +++ b/imaxmultiean.php @@ -11,7 +11,7 @@ class ImaxMultiEAN extends Module { var $idShop; var $idLang; var $idTab; - private $_html = ''; + private $_html = '', $path, $idManual, $forceCheck, $sufijo, $prefijo; private static $funciones; @@ -22,7 +22,7 @@ class ImaxMultiEAN extends Module { $this->name = 'imaxmultiean'; $this->tab = 'administration'; $this->path = _PS_MODULE_DIR_ . $this->name . '/'; - $this->version = '1.6'; + $this->version = '1.7'; $this->author = 'Informax'; $this->need_instance = 0; $this->idManual = ''; diff --git a/templates/hook/admin_products_extra.tpl b/templates/hook/admin_products_extra.tpl index 6dbe926..df57ea7 100644 --- a/templates/hook/admin_products_extra.tpl +++ b/templates/hook/admin_products_extra.tpl @@ -3,24 +3,30 @@ font-family: Arial, sans-serif; width: 50%; } - - #multiEAN h3, #multiEAN h4 { + + #multiEAN h3{ + padding-top: 25px; + } + + #multiEAN h3, + #multiEAN h4 { color: #333; + } + + #multiEAN hr { border-bottom: 2px solid #ddd; - padding-bottom: 10px; - margin-bottom: 15px; } - + #multiEAN p { color: #555; margin-bottom: 10px; } - + #multiEAN ul { list-style-type: none; padding: 0; } - + #multiEAN li { margin: 10px 0; background: #f9f9f9; @@ -28,7 +34,7 @@ border-radius: 5px; position: relative; } - + #multiEAN .borrarEAN { color: #f44336; cursor: pointer; @@ -39,7 +45,7 @@ text-decoration: none; font-size: 0.9em; } - + #multiEAN button { background-color: #4CAF50; color: white; @@ -48,14 +54,14 @@ border-radius: 5px; cursor: pointer; transition: background-color 0.2s; - display: block; + display: block; margin: 10px 0; } - + #multiEAN button:hover { background-color: #45a049; } - + #multiEAN input[type="text"] { padding: 10px; border: 1px solid #ddd; @@ -64,7 +70,6 @@ box-sizing: border-box; margin-bottom: 10px; } -
@@ -77,50 +82,56 @@ - -{foreach $combinations_details as $combination} -

Combinación: {$combination.attribute_name}

-

EANs:

-
    - {foreach $combination.eans as $ean} -
  • {$ean.ean13} [Eliminar]
  • - {/foreach} -
- - -{/foreach} +
+ {foreach $combinations_details as $combination} +

Combinación: {$combination.attribute_name}

+

EANs:

+
    + {foreach $combination.eans as $ean} +
  • {$ean.ean13} [Eliminar]
  • + {/foreach} +
+ + +
+ {/foreach}
\ No newline at end of file -- libgit2 0.21.4