Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Detailed Pic

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-09-2006, 04:42 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Detailed Pic

Can someone help out with where I need to change/add code for the following:-

I would like the user to click on a category and see a particular thumbnail for each product within that category.

Once they have selected a product to view, I would like the thumbnail in the details screen to change and point to the thumbnail in "detailed images".

This would mean I dont have to activate the additional box the "Detailed Image" option gives us.
__________________
version 4.018 xcart
Reply With Quote
  #2  
Old 11-09-2006, 05:13 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Detailed Pic

http://forum.x-cart.com/showthread.php?t=15579&highlight=first+detailed+im age
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 11-10-2006, 03:55 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Detailed Pic

Thanks Balinor, but this isn't exactly what I'm after.

What I would like is when the user views that category of products the original thumbnail (which i think is currently product_thumbnail.tpl) appears on screen.

When the user clicks on the product they would like to view a new screen appears with the detail of the product, with the option of choosing a quantity to add to cart.
In this screen currently the same thumbnail appears as in the category screen. What I would like to do is make a different image appear on the details screen. That is, where ever this section of the code for only the detailed screen points to the original thumbnail I'd like it to point it to the detaled image thumbnail.

Not sure if this all makes sense so:-

- When user clicks on category 1 - Product thumbnail 1 is displayed
- When Product thumbnail 1 is selected - details of the product appear with the Product thumbnail 2

Hope you can help.
__________________
version 4.018 xcart
Reply With Quote
  #4  
Old 11-10-2006, 04:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Detailed Pic

That is exactly what that mod does.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 11-10-2006, 05:25 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Detailed Pic

Sorry I guess I read it differently.

Thanks, maybe you can help me out I can't locate the code the mod is refering to in product_images.tpl

The mod says to replace :-

[img]{$images[image].tmbn_url}[/img]

but this is what is within my product_images.tpl:-

{if $images ne ""}
{capture name=dialog}
<DIV align="center">
{section name=image loop=$images}
{if $images[image].avail eq "Y"}
{if $images[image].tmbn_url}
<IMG src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}">
{else}
<IMG src="{$xcart_web_dir}/product_image.php?imageid={$images[image].imageid}" alt="{$images[image].alt|escape}">
{/if}
<BR>
<BR>
{/if}
{/section}
</DIV>
{/capture}
{if $smarty.capture.dialog ne ""}
{include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}
{/if}
{/if}

Where am I meant to change the code?
__________________
version 4.018 xcart
Reply With Quote
  #6  
Old 11-10-2006, 05:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Detailed Pic

Oops...looks like the new forum corrupted the code. the [img] tags shouldn't be there. Replace this:

<img src="{$images[image].tmbn_url}">

with this:

{***----ORIGINAL CODE-------
<img src="{$images[image].tmbn_url}">
--------ORIGINAL CODE***}

{***--Startwithsecondimage---***}
{if $images[image].tmbn_url ne $images[0].tmbn_url }
<img src="{$images[image].tmbn_url}">
{/if}
{***--Startwithsecondimage---***}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 11-10-2006, 05:46 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Detailed Pic

Thanks that makes a bit more sense.

I guess this means the rest of the code should be rehashed?
__________________
version 4.018 xcart
Reply With Quote
  #8  
Old 11-10-2006, 05:49 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Detailed Pic

Just the [img] tags
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 11-10-2006, 05:56 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Detailed Pic

Sorry Balinor but just looking at the code where is that line exactly?

Am I meant to replace this whole line?

<IMG src="{$images[image].tmbn_url}" alt="{$images[image].alt|escape}">
__________________
version 4.018 xcart
Reply With Quote
  #10  
Old 11-10-2006, 06:40 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Detailed Pic

Yes
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:58 AM.

   

 
X-Cart forums © 2001-2020