Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Additional default thumbnail sizes Rate Topic   - - - - -

 
  • Page
  • Senior Member
  • Members
  • Join Date: 06-Sep 07
  • 491 posts

Posted 28 September 2007 - 12:08 PM #1

I want my main image thumbnails a different default size from my additional image thumbnails.

The category images can be given a separate setting why not the additional images.

I have to change this manually and it is easy to forget.:oops:

 
  • bholland
  • Senior Member
  • Members
  • Join Date: 16-May 06
  • 129 posts

Posted 28 September 2007 - 09:33 PM #2

Agreed. There is a big difference between the main product "thumbnail" and an additional image thumbnail (or at least there should be).

 
  • pbannette
  • Senior Member
  • Members
  • Join Date: 09-Aug 07
  • 1036 posts

Posted 11 July 2008 - 10:16 AM #3

Any update to this post. I also would like the thumbnail for the product picture to be larger than the ones in the image tab for additional images.
Thanks

 
  • Page
  • Senior Member
  • Members
  • Join Date: 06-Sep 07
  • 491 posts

Posted 12 July 2008 - 06:13 AM #4

They say that 1.3.6 is having a major change in the back end - so maybe then.
*** Trying to help and trying to learn ***
Running an upgraded v135sp3 to v2.0.12 on live store(05/02/10) but not really right after update by Dr SnoRocket

 
  • csc
  • Member
  • Members
  • Join Date: 15-May 08
  • 34 posts

Posted 13 July 2008 - 06:13 PM #5

I want my main image thumbnails a different default size from my additional image thumbnails.

The category images can be given a separate setting why not the additional images.

I have to change this manually and it is easy to forget.:oops:

try to change in additional_images.tpl
{include file="common_templates/image.tpl" images=$image_pair object_type="product"}

to

{include file="common_templates/image.tpl" image_width="100" show_thumbnail="Y" images=$image_pair no_ids=true object_type="product"}

where image_width is 100,200,300.etc....
CS Cart 1.3.5 SP3

 
  • grayloon
  • Senior Member
  • Members
  • Join Date: 29-May 08
  • 450 posts

Posted 19 August 2008 - 08:55 PM #6

In my additional images tab, I'm trying to display a thumbnail that's clickable to a larger image, but I don't want the "View Larger Image" text to appear underneath it. Any ideas on how to accomplish this? Neither of the options below get rid of the magnifying glass and accompanying text.
{include file="common_templates/image.tpl" images=$image_pair}
{include file="common_templates/image.tpl" image_width="73" show_thumbnail="Y" images=$image_pair no_ids=true object_type="product"}

7 CS-Cart licenses - 2.2 through 4.2

 
  • sonjay
  • Junior Member
  • Members
  • Join Date: 13-Aug 08
  • 3 posts

Posted 20 August 2008 - 12:53 PM #7

I just did that myself -- I wanted to display the "view larger" text only for the main image link, and not for each secondary image.

What I did was, I created my own variable, which I called $showtextdetaillink.

In additional_images.tpl, I put this code immediately before the {if $image_pair} line:
{assign var="showtextdetaillink" value=false}

So that block looks like this:
{assign var="showtextdetaillink" value=false}
{if $image_pair}
	{include file="common_templates/image.tpl" images=$image_pair object_type="product"}
{/if}

Then, in common_templates/image.tpl, I enclosed the block that displays that text within an {if} statement that checks that variable:
{if $showtextdetaillink}
		<p {if !$detailed_href}style="display: none;"{/if} align="center">
		<a {if $obj_id && !$no_ids}id="detailed_href2_{$obj_id}"{/if} href="{$detailed_href|escape:html}" {$window_target} class="view-large-image-link">{$lang.view_larger_image}</a>
		</p>
{/if}

I'm not sure that would be the "best" way to do it, but it accomplished exactly what I wanted.

 
  • grayloon
  • Senior Member
  • Members
  • Join Date: 29-May 08
  • 450 posts

Posted 20 August 2008 - 02:07 PM #8

I tweaked the code just a bit, but the concept worked.
7 CS-Cart licenses - 2.2 through 4.2