Jump to content

id_product= dans l'url de currencyselector et languageselector (PS 1.7)


Recommended Posts

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&amp;SubmitCurrency=1&amp;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&amp;SubmitCurrency=1&amp;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&amp;SubmitCurrency=1&amp;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&amp;SubmitCurrency=1&amp;id_currency=9">
CNY ¥</a>

 

Comment faire disparaitre ?id_product=8963&amp;SubmitCurrency=1&amp;id_currency=7 ?

 

Merci par avance pour toute aide. 

Edited by SPKF (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...