eduardocp25 Posted July 4, 2015 Share Posted July 4, 2015 Hola, necesito un poco de ayuda, tengo prestashop 1.6 y en back office tengo moneda por defecto "Dolar" pero quiero que en el front office se vea en Guaranies. He leido que tengo que modificar el codigo de Prestashop. En algunos hilos parese ser que resolvieron pero no compartieron como, es por eso que les agradeceria su ayuda para poder darle una solucion al tema. Link to comment Share on other sites More sharing options...
shacker Posted July 10, 2015 Share Posted July 10, 2015 en el back office debes tener las dos monedas instaladas. Luego deberas modificar el blockcurrencies.tpl, para que solo aparezca la moneda con el ID que deseas. Supongamos que es el id 1, el codigo deberia quedarte asi {if count($currencies) > 1} <div id="currencies-block-top"> <form id="setCurrency" action="{$request_uri}" method="post"> <div class="current"> <input type="hidden" name="id_currency" id="id_currency" value=""/> <input type="hidden" name="SubmitCurrency" value="" /> <span class="cur-label">{l s='Currency' mod='blockcurrencies'} :</span> {foreach from=$currencies key=k item=f_currency} {if $f_currency.id_currency eq 1} {if $cookie->id_currency == $f_currency.id_currency}<strong>{$f_currency.iso_code}</strong>{/if} {/if} {/foreach} </div> <ul id="first-currencies" class="currencies_ul toogle_content"> {foreach from=$currencies key=k item=f_currency} {if strpos($f_currency.name, '('|cat:$f_currency.iso_code:')') === false} {assign var="currency_name" value={l s='%s (%s)' sprintf=[$f_currency.name, $f_currency.iso_code][spam-filter] {else} {assign var="currency_name" value=$f_currency.name} {/if} {if $f_currency.id_currency eq 1} <li {if $cookie->id_currency == $f_currency.id_currency}class="selected"{/if}> <a href="javascript:setCurrency({$f_currency.id_currency});" rel="nofollow" title="{$currency_name}"> {$currency_name} </a> </li> {/if} {/foreach} </ul> </form> </div> {/if} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now