
FelipeGallo
Members-
Posts
95 -
Joined
-
Last visited
Profile Information
-
Location
Brazil
-
Activity
Agency
Recent Profile Visitors
3,096,374 profile views
FelipeGallo's Achievements
Newbie (1/14)
11
Reputation
-
[SOLVED] - Get products from shopping cart into array
FelipeGallo replied to prestatent's topic in Core developers
Hello! Back to my previous post, works fine in order_payment.tpl but didn't works in order_carrier.tpl or order_adress.tpl. Why is that? I put $products = $params['cart']->getProducts(true) in the shopping_cart.tpl. Regards, Felipe -
[SOLVED] - Get products from shopping cart into array
FelipeGallo replied to prestatent's topic in Core developers
Hi Vekia! Works in order_payment.tpl the foreach. {foreach from=$products item=produtos} {$produtos.name} {/foreach} This code above return correct products names. But i want to put this names inside another array in javascript code like this: {foreach from=$products item=produtos} <script type="text/javascript" src="integration.js"></script> <script type="text/javascript">{literal} var data_array=[ { name: 'identificador', value: 'name' }, { name: 'email', value: '{/literal}{$cookie->email|escape:'htmlall':'UTF-8'}{literal}' }, { name: 'Produto1', value: '{/literal}{$produtos.name}{literal}' }, { name: 'Produto2', value: '{/literal}{$produtos.name}{literal}' } ]; Integration.post(data_array, function(){ return false; }) }{/literal} </script> {/foreach} This code returns: var data_array=[ { name: 'identificador', value: 'name' }, { name: 'email', value: 'email' }, { name: 'Produto1', value: 'Shampoo Tânagra Néctar da Terra Açaí 320ml' }, { name: 'Produto2', value: 'Shampoo Tânagra Néctar da Terra Açaí 320ml' } ]; var data_array=[ { name: 'identificador', value: 'name' }, { name: 'email', value: 'email' }, { name: 'Produto1', value: 'Condicionador Tânagra Néctar da Terra Açaí 320ml' }, { name: 'Produto2', value: 'Condicionador Tânagra Néctar da Terra Açaí 320ml' } ]; I want to get de products name like this: var data_array=[ { name: 'identificador', value: 'name' }, { name: 'email', value: 'email' }, { name: 'Produto1', value: 'Shampoo Tânagra Néctar da Terra Açaí 320ml' }, { name: 'Produto2', value: 'Condicionador Tânagra Néctar da Terra Açaí 320ml' } ]; UPDATE DONE! {foreach from=$products item=produtos key=k} { name: 'Produto{/literal}{$k}{literal}', value: '{/literal}{$produtos.name}{literal}' } Thks!! -
OK Vekia! Tks!
-
[SOLVED] - Get products from shopping cart into array
FelipeGallo replied to prestatent's topic in Core developers
I tryed $products = $params['cart']->getProducts(true) in the blockcart.tpl But when i print {$products} retur 'Array' I wawnt to print the name of the products in this cart -
Hello guys! I want to get a cart url to send to my customers. I tryed like this www.mysite.com/cart.php?&id_cart=00001 or www.mysite.com/cart.php?id_cart=00001 Cart 0001 is im my database. It shows me a empty cart. Anyone knows how i get the cart url by ID?
-
Hello! I was tryed put $cookie->email|escape:'htmlall':'UTF-8' inside a script core (below), to capture customer email after a registration into the shopping-cart.tpl. <script type="text/javascript">{literal} var emailLead = "{$cookie->email|escape:'htmlall':'UTF-8'}" . . </literal></script> The variable is not load, anyone knows why? Sorry my bad english Felipe Please mark as solved
-
Ativar SSL
FelipeGallo replied to impressorasmooca's topic in PrestaShop Download: instalação, atualização e configuração
Aqui eu consegui carregar o https em todas as páginas EXCETO na de produtos. Prestashop 1.5.4 aqui. Primeiro comprei e certificado e o pessoal de minha hospedagem instalou, essa parte não sei como foi feita. Depois de instalado, entre em preferências e habilitei o SSL. Depois fiz esse processo que vi aqui no fórum: classes/Tools.php: Na função abaixo exclui a linha do http e substituir pela https public static function getShopDomain($http = false, $entities = false) $domain = .$domain; Aqui funcionou para todas as páginas mas a página de produtos não, deve ser algo a ver com o product.list que carrega uma variavel de link que está puxando sem o https. Espero ter ajudado! Abraços Felipe Es -
Ativar SSL
FelipeGallo replied to impressorasmooca's topic in PrestaShop Download: instalação, atualização e configuração
Aqui eu consegui carregar o https em todas as páginas EXCETO na de produtos. Prestashop 1.5.4 aqui. Primeiro comprei e certificado e o pessoal de minha hospedagem instalou, essa parte não sei como foi feita. Depois de instalado, entre em preferências e habilitei o SSL. Depois fiz esse processo que vi aqui no fórum: classes/Tools.php: Na função abaixo exclui a linha do http e substituir pela https public static function getShopDomain if ($http) //$domain = 'http://'.$domain; $domain = 'https://'.$domain; return $domain; } Aqui funcionou para todas as páginas mas a página de produtos não, deve ser algo a ver com o product.list que carrega uma variavel de link que está puxando sem o https. Espero ter ajudado! Abraços, Felipe -
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/home/tanagra/public_html/loja/themes/default/order-confirmation.tpl" on line 65 ""category":"{/literal}{$product.category}{literal}"," missing or misspelled literal closing tag' in /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_templatelexer.php(1008): Smarty_Internal_TemplateCompilerBase->trigger_template_error('missing or miss...') #1 /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_templatelexer.php(930): Smarty_Internal_Templatelexer->yy_r3_7(Array) #2 /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_templatelexer.php(100): Smarty_Internal_Templatelexer->yylex3() #3 /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(100): Smarty_Internal_ in /home/tanagra/public_html/loja/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665
-
The code in OrderConfirmationController.php is like this? $order_id = new Order($this->id_order); $produto = $order_id->getProducts(); $this->context->smarty->assign(array( 'id_order' => $this->id_order, 'id_product' => $this->product.id, 'nome_product' => $this->product.link_rewrite, "price_unit" => $this->product.price, "category" => $this-> product.category ));
-
Olá Artur, você é brasileiro também? Hi Artur, you is brazilian too? Eu coloco as variáveis no OrderConfirmationController.php dentro de alguma função ou posso colocar no fim do arquivo mesmo? I put the variables no OrderConfirmationController.php inside any function ou just in the last line of the code? Obrigado! Thanks!
-
Hi! I need to put a list of products of my order in confirmation page script like this: try{ bs.addProdutoComprado({ "cod_compra":"{$id_order}", "id_product":"{$product.id_product}", "nome_product":"{$product.link_rewrite}", "price_unit":"{$product.price}", "category":"{$product.category}", }); }catch(e){ } The variables of the products does not working.
-
passo 5 não aparece
FelipeGallo replied to FelipeGallo's topic in PrestaShop Download: instalação, atualização e configuração
Desculpe minha ignorância, é que os meus produtos de testes estavamcom preço no valor de 0,00 então tele pulava o passo do pagamento. Está tudo certo.