Jump to content

Thickbox still doesn't work!!


Recommended Posts

Having searched this forum for answers and tried several solutions, the thickbox on my website still doesn't work!
The thumbnail below the product image still opens up in a new window instead of the thickbox.

I have edited the product.tpl file as recommended. Please help me to identify what has gone wrong!

Thanks a million!

jude

getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox{if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">

Link to comment
Share on other sites

Some older templates have incorrect code for thickbox. the code below works

{foreach from=$images item=image name=thumbnails}
               {assign var=imageIds value=`$product->id`-`$image.id_image`}

                   <!-- ##### UDDHAVA Changes ##### -->getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}"><!-- ##### UDDHAVA Changes ##### --> 
getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />


               {/foreach}

Link to comment
Share on other sites

  • 1 year later...

<p>

Some older templates have incorrect code for thickbox. the code below works<br />

<br />

{foreach from=$images item=image name=thumbnails}<br />
{assign var=imageIds value=`$product->id`-`$image.id_image`}</p>
<p><br />
{/foreach}

</p>

<p> </p>

<p>Does not work for me. Or where exacly i have to insert this code? I tried to insert the code between the HTML comments in the href="" parameter , but it stlii does not work.</p>

<ul>

<li id="thumbnail_{$image.id_image}"><br />

<!-- ##### UDDHAVA Changes ##### --><a>getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">{C}<!-- ##### UDDHAVA Changes ##### --><br />

<img id="thumb_{$image.id_image}" />getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" /></a><br />

 </li>

</ul>

 

Link to comment
Share on other sites

Some older templates have incorrect code for thickbox. the code below works

 

{foreach from=$images item=image name=thumbnails}
{assign var=imageIds value=`$product->id`-`$image.id_image`}

{/foreach}
getImageLink($product->link_rewrite, $imageIds, 'thickbox')}" rel="other-views" class="thickbox {if $smarty.foreach.thumbnails.first}shown{/if}" title="{$image.legend|htmlspecialchars}">{C}
getImageLink($product->link_rewrite, $imageIds, 'medium')}" alt="{$image.legend|htmlspecialchars}" height="{$mediumSize.height}" width="{$mediumSize.width}" />

 

This does not work for me. Or please tell us where exatly we have to insert this code? Thanks.

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