Jump to content

xmathiasdf

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by xmathiasdf

  1. OOOK, i fixed my self and this work. I hope it works for someone /* CustomField ID 5 = Region */ public function getCustomField5($id) { $custom_fields5 = Db::getInstance()->executeS(' SELECT `value` FROM `'._DB_PREFIX_.'customer_custom_field_value` WHERE `id_customer` = '.(int)$id.' AND `id_custom_field` = 5'); // Set the number corresponding the field you want to get the value from foreach ($custom_fields5 as $custom_field5) $results = $custom_field5['value']; if($results == 'a:1:{i:0;s:1:"1";}') { $result = 'Region de Arica y Parinacota'; return $result; } if($results == 'a:1:{i:0;s:1:"2";}') { $result = 'Region de Arica y Parinacota'; return $result; } if($results == 'a:1:{i:0;s:1:"3";}') { $result = 'Region de Antofagasta'; return $result; } if($results == 'a:1:{i:0;s:1:"4";}') { $result = 'Region de Atacama'; return $result; } if($results == 'a:1:{i:0;s:1:"5";}') { $result = 'Region de Coquimbo'; return $result; } if($results == 'a:1:{i:0;s:1:"6";}') { $result = 'Region de Valparaiso'; return $result; } if($results == 'a:1:{i:0;s:1:"7";}') { $result = 'Region del Libertador General Bernardo O`Higgins'; return $result; } if($results == 'a:1:{i:0;s:1:"8";}') { $result = 'Region del Maule'; return $result; } if($results == 'a:1:{i:0;s:1:"9";}') { $result = 'Region del Bío Bío'; return $result; } if($results == 'a:1:{i:0;s:2:"10";}') { $result = 'Region de la Araucania'; return $result; } if($results == 'a:1:{i:0;s:2:"11";}') { $result = 'Region de los Rios'; return $result; } if($results == 'a:1:{i:0;s:2:"12";}') { $result = 'Region de los Lagos'; return $result; } if($results == 'a:1:{i:0;s:2:"13";}') { $result = 'Region Aysen del General Carlos Ibañez del Campo'; return $result; } if($results == 'a:1:{i:0;s:2:"14";}') { $result = 'Region de Magallanes y de la Antartica Chilena'; return $result; } if($results == 'a:1:{i:0;s:2:"15";}') { $result = 'Region Metropolitana'; return $result; } return $results; } Old NewOrder Mail New NewOrder Mail:
  2. i know this is something old but... Man, thanks you, this work i make 4 function ( getCustomField1, getCustomField2,getCustomField3,getCustomField4 ) and this work so well. very very thanks you. now i have a question, i make a list with custom field, and try to select and send by mail this show Region: a:1:{i:0;s:1:"2";} the " a:1:{i:0;s:1:"2";} " is the option i choice and doesnt show his name only this code. if i make a filter like this on fuction maybe this work? Select the result = Compare with 15 codes like " a:1:{i:0;s:1:"2"; " and send a name if a:1:{i:0;s:1:"2";} = "Región de Tarapacá" a:1:{i:0;s:1:"9";} = "Región del Bio Bio" i explain my self? sorry for bad english
  3. Hola mis estimados, Tengo un problema, hace poco empece administrando una tienda online, la tienda en cuestión esta muy desactualizado usa prestashop 1.5.6.2 y su anterior administrador se fue y nunca mas volvio, les tuve que recuperar todos los datos via BD. volviendo al tema. Esta pagina tiene un cotizador, lo cual solo es como un quick order, no registra a los usuarios con contraseñas pero si guarda los datos de la persona para devolver llamados. El tema es que si alguien se equivoca en la completar los campos el boton submit (enviar datos en este caso) desaparece y aun que rellenes los datos no puedes enviar la cotización hasta recargar la pagina y completar todo de nuevo, el tema es que nuestros clientes nos llaman y nos indicaron de esto. Busque lo mas que pude, intente lo mas que pude, y no logre dar con la solución, favor ayudarme en esta travesía, en la que me acabo de incorporar. PD: tienen planeado actualizar pero mientras solo quieren dejarla operativa y luego hacer pruebas en otro dominio / host / prestashop. Imagenes secuenciales : 1.- http://prntscr.com/ecxb99 2.- http://prntscr.com/ecxbo2 3.- http://prntscr.com/ecxbwg (Ya no esta el boton)
×
×
  • Create New...