Bonjour à tous,
J'ai une variable id_product= qui s'ajoute en fin d'URL sur les modules de selection de langage et de devise.
{foreach from=$languages item=language} <a rel="nofollow" class="dropdown-item{if $language.id_lang == $current_language.id_lang} active{/if}" href="{$link->getLanguageLink($language.id_lang.link_rewrite|escape:'htmlall':'UTF-8')}">{$language.iso_code}</a> {/foreach}
Ce qui donne :
<a rel="nofollow" class="dropdown-item active" href="https://www.domaine.com/en/categorie/8963-nom-de-larticle.html?id_product=8963">en</a>
<a rel="nofollow" class="dropdown-item" href="https://www.domaine.com/fr/categorie/8963-nom-de-larticle.html?id_product=8963">fr</a>
Comment faire disparaitre ?id_product=8963 ?
Côté devise :
{foreach from=$currencies item=currency} <a rel="nofollow" class="dropdown-item{if $currency.current} active{/if}" href="{$currency.url}"> {$currency.iso_code} {$currency.sign} </a> {/foreach}
<a rel="nofollow" class="dropdown-item" href="https://www.domaine.com/en/categorie/8963-nom-de-larticle.html?id_product=8963&SubmitCurrency=1&id_currency=7">
AUD $</a>
<a rel="nofollow" class="dropdown-item" href="https://www.domaine.com/en/categorie/8963-nom-de-larticle.html?id_product=8963&SubmitCurrency=1&id_currency=5">
CAD $</a>
<a rel="nofollow" class="dropdown-item" href="https://www.domaine.com/en/categorie/8963-nom-de-larticle.html?id_product=8963&SubmitCurrency=1&id_currency=6">
CHF CHF</a>
<a rel="nofollow" class="dropdown-item" href="https://www.domaine.com/en/categorie/8963-nom-de-larticle.html?id_product=8963&SubmitCurrency=1&id_currency=9">
CNY ¥</a>
Comment faire disparaitre ?id_product=8963&SubmitCurrency=1&id_currency=7 ?
Merci par avance pour toute aide.