Commit 4d93fdeec61a4dbee45f130cbdb49935be80aa12

Authored by Adrian
1 parent 18479c48

Solucionado error en la ficha de producto de prestashop 8.

config.xml
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <module> 2 <module>
3 <name>imaxmultiean</name> 3 <name>imaxmultiean</name>
4 <displayName><![CDATA[Gestor de EANs Múltiples]]></displayName> 4 <displayName><![CDATA[Gestor de EANs Múltiples]]></displayName>
5 - <version><![CDATA[1.4]]></version> 5 + <version><![CDATA[1.5]]></version>
6 <description><![CDATA[Permite añadir y gestionar múltiples códigos EAN para cada producto y combinación.]]></description> 6 <description><![CDATA[Permite añadir y gestionar múltiples códigos EAN para cada producto y combinación.]]></description>
7 <author><![CDATA[Informax]]></author> 7 <author><![CDATA[Informax]]></author>
8 <tab><![CDATA[administration]]></tab> 8 <tab><![CDATA[administration]]></tab>
imaxmultiean.php
@@ -22,7 +22,7 @@ class ImaxMultiEAN extends Module { @@ -22,7 +22,7 @@ class ImaxMultiEAN extends Module {
22 $this->name = 'imaxmultiean'; 22 $this->name = 'imaxmultiean';
23 $this->tab = 'administration'; 23 $this->tab = 'administration';
24 $this->path = _PS_MODULE_DIR_ . $this->name . '/'; 24 $this->path = _PS_MODULE_DIR_ . $this->name . '/';
25 - $this->version = '1.4'; 25 + $this->version = '1.5';
26 $this->author = 'Informax'; 26 $this->author = 'Informax';
27 $this->need_instance = 0; 27 $this->need_instance = 0;
28 $this->idManual = ''; 28 $this->idManual = '';
templates/hook/admin_products_extra.tpl
@@ -93,7 +93,8 @@ @@ -93,7 +93,8 @@
93 93
94 <script> 94 <script>
95 $(function(){ 95 $(function(){
96 - $('.guardarEAN').click(function(){ 96 + $('.guardarEAN').click(function(ev){
  97 + ev.preventDefault();
97 let data = { 98 let data = {
98 accion: 'storeEAN', 99 accion: 'storeEAN',
99 productId: "{$product_id}", 100 productId: "{$product_id}",