Jump to content

[SOLVED] url link product-list


Danny4444

Recommended Posts

It depend on how you insert the URL as a link to another website.

You can use Product Reference to insert the URL as a link to another website

Then you just have to replace the default URL linked to product image on your product-list.tpl file.

 

{$product.link|escape:'htmlall':'UTF-8'} Replace with {$product.reference|escape:'htmlall':'UTF-8'}

<a href="{$product.reference|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
   <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home_default')|escape:'html'}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />
   {if isset($product.new) && $product.new == 1}<span class="new">{l s='New'}</span>{/if}
</a>
Link to comment
Share on other sites

Hi

 

Thanks for your quick reply

 

2 errors

 

 field ref too lang (32max)

 ref  not valid   (= &)

 

Any ideas?

 

You may consider to use bitly or any other shortener URL service out there to get rid of your long URL and restricted characters issues.

 

But if you insist to use the original URL which is long and contains restricted characters, then you should modify the core files and try vekia modifications (create custom product vars)

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