Ruan Serra Posted August 15, 2016 Share Posted August 15, 2016 Boa tarde Amigos, no carrinho de compra há uma informação referente a periodicidade de pagamento, conforme a imagem em anexo. Neste caso aparece "/mo" mas eu gostaria que fosse "/mês". Podem ajudar? abs 0 Quote Link to comment Share on other sites More sharing options...
Guest varallo Posted August 16, 2016 Share Posted August 16, 2016 Fala aí, beleza? Vá até o arquivo products.tpl (templates/orderforms/premium_comparison/products.tpl) e edite a linha 85. Substitua a original: {$product.pricing.minprice.cycleText} Por este comando: {$product.pricing.minprice.cycleText|replace:'/mo':'/por mês'} Neste caso, é apenas para mudar o /mo. =========================================== Caso precise alterar múltiplos períodos, use este: {$product.pricing.minprice.cycleText|replace:'/mo':'<br />per month'|replace:'/3 mo':'<br />por 3 meses'|replace:'/6 mo':'<br />por 6 meses'|replace:'/yr':'<br />per ano'|replace:'/2 yr':'<br />a cada 2 anos'|replace:'/3 yr':'<br />a cada 3 anos'} =========================================== É possível usar traduções também, segue código: {$product.pricing.minprice.cycleText|replace:'/mo':$LANG.orderpaymentterm1month|replace:'/3 mo':$LANG.orderpaymentterm3month|replace:'/6 mo':$LANG.orderpaymentterm6month|replace:'/yr':$LANG.orderpaymenttermannually|replace:'/2 yr':$LANG.orderpaymenttermbiennially|replace:'/3 yr':$LANG.orderpaymenttermtriennially} Abraços amigo :D 0 Quote Link to comment Share on other sites More sharing options...
edvan Posted August 16, 2016 Share Posted August 16, 2016 6 horas atrás, Joao Marcos Sampaio disse: Fala aí, beleza? Vá até o arquivo products.tpl (templates/orderforms/premium_comparison/products.tpl) e edite a linha 85. Substitua a original: {$product.pricing.minprice.cycleText} Por este comando: {$product.pricing.minprice.cycleText|replace:'/mo':'/por mês'} Neste caso, é apenas para mudar o /mo. =========================================== Caso precise alterar múltiplos períodos, use este: {$product.pricing.minprice.cycleText|replace:'/mo':'<br />per month'|replace:'/3 mo':'<br />por 3 meses'|replace:'/6 mo':'<br />por 6 meses'|replace:'/yr':'<br />per ano'|replace:'/2 yr':'<br />a cada 2 anos'|replace:'/3 yr':'<br />a cada 3 anos'} =========================================== É possível usar traduções também, segue código: {$product.pricing.minprice.cycleText|replace:'/mo':$LANG.orderpaymentterm1month|replace:'/3 mo':$LANG.orderpaymentterm3month|replace:'/6 mo':$LANG.orderpaymentterm6month|replace:'/yr':$LANG.orderpaymenttermannually|replace:'/2 yr':$LANG.orderpaymenttermbiennially|replace:'/3 yr':$LANG.orderpaymenttermtriennially} Abraços amigo :D Antigamente essa era a única solução, hoje basta inserir no arquivo de tradução. $_LANG['shoppingCartProductPerMonth'] = "<span>:price</span>/:countMês"; $_LANG['shoppingCartProductPerYear'] = "<span>:price</span>/:countAno"; 1 Quote Link to comment Share on other sites More sharing options...
Ruan Serra Posted August 16, 2016 Author Share Posted August 16, 2016 Perfeito!! valeu pessoal!! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.