Jump to content

10rous

Members
  • Posts

    30
  • Joined

  • Last visited

3 Followers

About 10rous

  • Birthday 03/01/1977

Profile Information

  • Location
    barcelona
  • Interests
    web programming
  • Activity
    Developer

Recent Profile Visitors

2,810,494 profile views

10rous's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. here's the controller file class ShoponlineControllerCore extends FrontController { public $php_self = 'shoponline'; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); // Cargamos las categorías $categorias = Category::getCategories(); unset($categorias[0]); unset($categorias[1]); $categorias_final = array(); foreach ($categorias as $key => $categoria) { foreach ($categoria as $key2 => $value) { if ($value['infos']['id_parent'] == 2) { // Categoria root $categorias_final[$value['infos']['id_category']]['id'] = $value['infos']['id_category']; $categorias_final[$value['infos']['id_category']]['link'] = $value['infos']['link_rewrite']; $categorias_final[$value['infos']['id_category']]['name'] = $value['infos']['name']; $categorias_final[$value['infos']['id_category']]['hijos'] = ''; } else { $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['id'] = $value['infos']['id_category']; $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['link'] = $value['infos']['link_rewrite']; $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['name'] = $value['infos']['name']; } } } /*echo "<pre>"; print_r($categorias_final); echo "</pre>";*/ $this->context->smarty->assign('categorias', $categorias_final); $this->setTemplate(_PS_THEME_DIR_.'shoponline.tpl'); } }
  2. adjunto el código del controlador también: class ShoponlineControllerCore extends FrontController { public $php_self = 'shoponline'; /** * Assign template vars related to page content * @see FrontController::initContent() */ public function initContent() { parent::initContent(); // Cargamos las categorías $categorias = Category::getCategories(); unset($categorias[0]); unset($categorias[1]); $categorias_final = array(); foreach ($categorias as $key => $categoria) { foreach ($categoria as $key2 => $value) { if ($value['infos']['id_parent'] == 2) { // Categoria root $categorias_final[$value['infos']['id_category']]['id'] = $value['infos']['id_category']; $categorias_final[$value['infos']['id_category']]['link'] = $value['infos']['link_rewrite']; $categorias_final[$value['infos']['id_category']]['name'] = $value['infos']['name']; $categorias_final[$value['infos']['id_category']]['hijos'] = ''; } else { $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['id'] = $value['infos']['id_category']; $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['link'] = $value['infos']['link_rewrite']; $categorias_final[$value['infos']['id_parent']]['hijos'][$value['infos']['id_category']]['name'] = $value['infos']['name']; } } } /*echo "<pre>"; print_r($categorias_final); echo "</pre>";*/ $this->context->smarty->assign('categorias', $categorias_final); $this->setTemplate(_PS_THEME_DIR_.'shoponline.tpl'); } }
  3. he conseguido solucionar el problema de los max_input_vars cambiando la versión php a 5.2 en aruba.it pero el foreach sigue sin mostrar la versión traducida alguien me puede ayudar por favor {foreach from=$categorias item=categoria}<li> <a href="{$categoria.id}-{$categoria.link}">{$categoria.name}</a> {/foreach} en las páginas de categoría no tengo problemas arredi/furniture es la categoría de ejemplo, las demás no tienen traducción añadida http://www.curiosandoingiardino.it/it/shoponline http://www.curiosandoingiardino.it/en/shoponline http://www.curiosandoingiardino.it/it/12-arredi
  4. figured out the max_input_vars at aruba.it by changing php version to PHP5.2.x buy i still can't get the categories translated, evrything else works fine as you can see I got variables translated but not what is inside foreach first category is the only one translated at the back office (furniture/arredi) it only dispplays the english version, the other ones ara in italian in both languages category pages work fine http://www.curiosandoingiardino.it/it/shoponline http://www.curiosandoingiardino.it/en/shoponline http://www.curiosandoingiardino.it/it/12-arredi can anyone help with this? here's the foreach {foreach from=$categorias item=categoria}<li> <a href="{$categoria.id}-{$categoria.link}">{$categoria.name}</a> {/foreach}
  5. por fin he conseguido acceder al panel de control del servidor allí se existe una ventana con los siguientes posibilidades: he probado http extension, wordpress y no he conseguido que funcione también se puede modificar la versión de php default Standard PHP.INI PHPinfo() mail_head_off Advanced settings for experienced users with: mail.add_x_header = Off PHPinfo() joomla Setting optimized for Joomla Applications. PHPinfo() wordpress Setting optimized for WordPress Applications. PHPinfo() output_buffering_off Advanced settings for experienced users with: output_buffering = Off PHPinfo() HTTP_extension Advanced settings for experienced users with: HTTP Extension PHPinfo() ZendGuardLoader Advanced settings for experienced users with: Zend Guard Loader Enabled PHPinfo() cgi.fix_pathinfo Advanced settings for experienced users with: cgi.fix_pathinfo = 1 PHPinfo() PDFlib_extension Advanced settings for experienced users with: PDFlib Extension PHPinfo() Moodle Setting optimized for Moodle 2.3 Applications. PHPinfo() magic_quotes_off Advanced settings for experienced users with: magic_quotes_gpc = Off PHPinfo() magic_quotes_on Advanced settings for experienced users with: magic_quotes_gpc = On PHPinfo() display_errors_off Advanced settings for experienced users with: display_errors = Off PHPinfo() zip_cgi.fix_pathinfo Advanced settings for experienced users with: cgi.fix_pathinfo = 1 and Extension Zip Enabled PHPinfo() Selection of PHP version Select the PHP version you want. The most osolete PHP versions, which will lose the support of the producer house, will be therefore deleted from the possible choices. 5.4.17 PHP5.4.x New version of the 5.x series, that includes new features. 5.3.27 PHP5.3.x The most updated and supported version. Recommended. 5.2.17 PHP5.2.x Version is no longer supported by PHP.net. We recommend using the version 5.3.x Alguna idea?
  6. he conseguido traducir las variables manualmente y el menú vuelve a funcionar pero no las categorías me temo que hasta que no pueda acceder al panel de control de aruba.it no podré hacer nada http://www.curiosandoingiardino.it/it/shoponline http://www.curiosandoingiardino.it/en/shoponline perdonad pero no se de donde sale el foreach porque la plantilla no la monté yo
  7. Pero si quieres hacer una traduccion de algo nuevo que no esta traducido, mira esta guía: http://victor-rodenas.com/2012/05/04/como-generar-traducciones-manuales-en-prestashop/ he probado la solución manual y funciona perfecto!
  8. hola he probado añadir un archivo con solamente la linea max_input_vars=7000 y ahora la url del administrador aparece el error 500 Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.
  9. hola el archivo tpl no lo creé yo, es un proyecto que he retomado y del que tengo que solucionar problemas como este es una tpl de plantilla, no de módulo lo malo es que no puedo hablar con el programador que lo hizo y no se de donde sale el for each etc.
  10. hola, probé lo del archivo php.ini en la carpeta raíz y no funcionó, hoy mismo lo pruebo de nuevo en la carpeta ps_admin de todas maneras si consigo los datos del cliente y pueeo entrar en el panel de control de aruba.it parece que te dan la opción de cambiarlo gracias
  11. el patron I've already tried that and it didn't work out vekia, I think that's the solution, thanks what I don't understand is why the transation works in the category pages and not with that particular tpl Category list page (tpl above): http://www.curiosandoingiardino.it/en/shoponline as you can see it displays furniture in english (the other categories are in italian in both languages) Category page works perfectly well: http://www.curiosandoingiardino.it/en/12-furniture (english) http://www.curiosandoingiardino.it/it/12-arredi (italian)
  12. I don't understand what can I change on the php nag files, I don't see how it affects that tpl
×
×
  • Create New...