Buenas a todos!
Estoy liado con la creación de formularios en prestashop, hace poco tiempo relativamente que uso este gestor y la verdad es que funciona muy bien!
Mi problema es el siguiente:
Como ya sabeis en prestashop 1.5 se ha integrado la funcionalidad de crear formularios de una forma 'mas limpia' por así decirlo. Podeis ver la documentación oficial aquí: http://doc.prestashop.com/display/PS15/HelperForm a mi personalmente me gusta la forma de hacerlo, metiendo todos los inputs en un array.
El problema viene cuando estoy creando un checkbox, os pego el ejemplo de la documentación:
array(
'type' => 'checkbox', // This is an <input type="checkbox"> tag.
'label' => $this->l('Options'), // The <label> for this <input> tag.
'desc' => $this->l('Choose options.'), // A help text, displayed right next to the <input> tag.
'name' => 'options', // The content of the 'id' attribute of the <input> tag.
'values' => array(
'query' => $options, // $options contains the data itself.
'id' => 'id_option', // The value of the 'id' key must be the same as the key for 'value' attribute of the <option> tag in each $options sub-array.
'name' => 'name' // The value of the 'name' key must be the same as the key for the text content of the <option> tag in each $options sub-array.
),
),
El tema es que con 1.4 el formulario devolvia un booleano en valor positivo si estava 'check' y negativo si no lo estaba y con esta nueva forma aún no he encontrado metodo alguno de hacerlo.
Soy nuevo en este foro y si no he respetado las reglas os agradeceria que me deis un toque.
Muchisimas grácias a los que ofrezcan su apoyo de antemano!