Jadorebio Posted April 18, 2017 Share Posted April 18, 2017 (edited) Witam, Proszę o pomoc. Tak jak w tytule staram się zmienić kod tak, aby po wybraniu waluty przerzucało na stronę główną. Poniżej kod (w pogrubionym kodzie próbowałem dodać <a href="http://abc.com/" onclick="javascript:setCurrency({$f_currency.id_currency});" ...> funkcja dalej działa, ale nie przerzuca na strone.) {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 $cookie->id_currency == $f_currency.id_currency}<span>{$f_currency.iso_code}</span>{/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} <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> Czekam na wskazowki i z gory dziekuje. Edited April 18, 2017 by Jadorebio (see edit history) 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