Jump to content

URL problem


ach34

Recommended Posts

I enabled "Simplified URL": yes

In my product page I have a choice of color but when I click on the link it does not work when I am in "Simplified URL"

Here is the generated link: https://....../peaux-de-betes/9-elitis-anguille-big-croco-galuchat-big-croco.html&ref=VP%20423%2008#/117-couleur-dore1

My url has parameters in the url but I think I have the problem in htaccess or in the generated URL.

When do I add "?" in the url it works.
https://....../peaux-de-betes/9-elitis-anguille-big-croco-galuchat-big-croco.html?&ref=VP%20423%2008#/117-couleur-dore1

My code :

 

<ul id="color_to_pick_list" class="clearfix">
	{assign var="default_colorpicker" value=""}
	{assign var="REF" value=""}
	{assign var="IDImg" value=""}
	{foreach from=$group.attributes key=id_attribute item=group_attribute}
		{assign var='img_color_exists' value=file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
			{foreach from=$combinations key=k item=v}
				{if ($v.attributes[0] == $id_attribute)}
					<span></span>
					{$REF = $v.reference}
					{$IDImg = $v.id_image}
				{/if}
			{/foreach}
			<li{if $group.default == $id_attribute} class="selected"{/if}>
				<a href="{$link->getProductLink($product)|escape:'html':'UTF-8'}?" id="color_{$id_attribute|intval}" name="{$colors.$id_attribute.name|escape:'html':'UTF-8'}" class="color_pick{if ($group.default == $id_attribute)} selected{/if}"{if !$img_color_exists && isset($colors.$id_attribute.value) && $colors.$id_attribute.value} style="background:{$colors.$id_attribute.value|escape:'html':'UTF-8'};"{/if} title="{$colors.$id_attribute.name|escape:'html':'UTF-8'} - {$REF}">

					<img class="img-responsive" id="thumb_{$k}" src="{$link->getImageLink($product->link_rewrite, $IDImg, 'small_default')|escape:'html':'UTF-8'}" alt="{$product->name|escape:'html':'UTF-8'} - {$product->manufacturer_name|escape:'htmlall':'UTF-8'} - {$REF}" title="{$product->name|escape:'html':'UTF-8'} - {$product->manufacturer_name|escape:'htmlall':'UTF-8'} - {$REF}" />
					<span>{$colors.$id_attribute.name|escape:'html':'UTF-8'} - {$REF}</span>
				</a>
			</li>
			{if ($group.default == $id_attribute)}
				{$default_colorpicker = $id_attribute}
			{/if}
	{/foreach}
</ul>

Thanks for your help

 

Link to comment
Share on other sites

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...