Jump to content

andresams

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Location
    Brazil
  • Activity
    Developer

Recent Profile Visitors

630 profile views

andresams's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. I have a solution that will help you while it is not clear what causes this. The fact is that the loaded template should be index.tpl and not /index.tpl. Somehow Prestashop is adding a / before the template name, but I do not know how that happens yet, since I had no time to look into it more deeply. To solve this problem and get your store running again, open the following file: /home2/casav287/public_html/novo/classes/controller/FrontController.php At line 649, you are going to find this function : protected function smartyOutputContent($content) { $this->context->cookie->write(); $html = ''; if (is_array($content)) { foreach ($content as $tpl) { $html .= $this->context->smarty->fetch($tpl, null, $this->getLayout()); } } else { $html = $this->context->smarty->fetch($content, null, $this->getLayout()); } Hook::exec('actionOutputHTMLBefore', array('html' => &$html)); echo trim($html); } Now we will made a small change at line 660. The function will be like this now: protected function smartyOutputContent($content) { $this->context->cookie->write(); $html = ''; if (is_array($content)) { foreach ($content as $tpl) { $html .= $this->context->smarty->fetch($tpl, null, $this->getLayout()); } } else { if(substr($content, 0, 1) == '/') $content = substr($content, 1); $html = $this->context->smarty->fetch($content, null, $this->getLayout()); } Hook::exec('actionOutputHTMLBefore', array('html' => &$html)); echo trim($html); } This code will remove the / from the template name. Save it and everything will be ok. When I have more time I will update this thread with the real solution.
  2. I solved this, I realized that the function php_strip_whitespace at AdminPerformanceController.php was returning NULL. That was because I edited my defines.inc.php on cpanel to enable and then disable the debug mode, and that corrupted or turned the file into binary. I solved this by uploading a new defines.inc.php, overwriting the existent file.
  3. Here is the solution: 1 - Open the file /themes/classic/assets/css/theme.css 2 - Search for: top-menu .sub-menu ul[data-depth=1]>li and remove the property float:left 3 - Search for .popover and remove the property left:0 4 - Search for .popover and remove the property width 5 - Search for .popover and remove the property min-width Or you cay use the file attached. Do not forget to clear your cache after the changes are made. theme.css
  4. I have this exact same problem and it just goes away when I enable the Debug Mode. My debug.log file has only a few notifications about missing translations, but not a single fatal error that could justify an error 500. PHP error log is also empty. I also tried with PHP 7.0 and the problem persists. It is annoying having to enable debug mode in order to access my product catalog. If I ever find a solution I will update here.
  5. I investigated this a lot and was able to reach the piece of code causing this error. However, it didn't make any sense, so I moved the website to another server with the same php config and it worked. It was probably some damaged php extension in the old server, but I had no time to investigate further because it didn't worth it.
  6. I am having this exact same problem with a store where all products have combinations. This same query is performing very slow, taking up to 10 seconds to execute. It is probably not necessary to select the combinations only to display a list of products, so I will try to simplify this query too. It is happening on Prestashop 1.7, they should have fixed it years ago.
  7. Disable profiling if you are using it and if it is not enough manually clear the cache. If it is not possible, disable it using phpmyadmin.
  8. The same thing is happening to me and the developer mode shows no error. I am going to update this when I figure out.
  9. Este módulo é pago, você pode comprá-lo aqui - http://www.consultoriadaweb.com.br/index.php?route=product/product&path=59&product_id=53
  10. I have a date input on my form, but the date format used is YYYY-mm-dd. However, the default date format on my prestashop config is dd/mm/YYYY. All the other controllers are using the default date format, except the controller created by me. How can I change the date format? This is my field: array( 'type' => 'date', 'name' => 'data_inicial', 'label' => $this->l('Date:'), 'filter_key' => 'a!data_inicial', 'size' => 10, 'required' => true )
  11. Módulo para Prestashop Pagseguro com Checkout Transparente. Pagamentos do Pagseguro dentro do seu site, sem ser redirecionado para a página do Pagseguro. DEMO - http://consultoriadaweb.com.br/prestashop/ LINK PARA COMPRAR - http://www.consultoriadaweb.com.br/index.php?route=product/product&path=59&product_id=53 Funcionalidades: Totalmente transparente - o cliente efetua todo o pagamento dentro do seu site, sem ser redirecionado para a página do Pagseguro e sem cadastros adicionais. Não é necessário alterar os campos do seu formulário de checkout Pode ser adaptado para utilizar campos adicionais do seu checkout Possui templates para se adaptar às cores de sua loja Validação em todos os campos do formulário Retorno automático - atualiza automaticamente o status do pedido Notificação por e-mail - notifica o seu cliente quando o status do pagamento for alterado Configure os status desejados para cada etapa do pagamento Boleto, cartões de crédito e transferência bancária
  12. Estou lançando agora o Checkout Transparente para o PayU Latam. O checkout transparente possui pagamento via boleto bancário e cartões de crédito visa, mastercard, diners, american express e elo. O comprador efetua todo o processo de compra dentro da sua loja, e recebe o e-mail de confirmação de pagamento também dentro da sua loja - nenhuma comunicação é enviada pelo PayU. Também possui retorno automático, atualizando o status do pedido quando o pagamento é confirmado, e avisando o usuário por e-mail. Possui uma lindíssima e super útil tela de pagamento para o cartão de crédito, onde o sistema reconhece automaticamente a bandeira do cartão de crédito, valida o telefone, cpf, número do cartão e demais dados presentes na tela antes de enviar os dados para o processamento. Quem quiser ver o demo, está aqui, faça uma compra de testes - http://consultoriadaweb.com.br/prestashop/ Quem quiser adquirir o módulo, a licença por domínio é vendida aqui - http://www.consultoriadaweb.com.br/index.php?route=product/product&product_id=50 A licença já inclui instalação grátis caso precise, todas as atualizações futuras e pequenas adaptações ao template, caso necessário.
×
×
  • Create New...