| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Detailed Pic | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
#2
|
|||||||
|
|||||||
Re: Detailed Pic
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
#4
|
|||||||
|
|||||||
Re: Detailed Pic
That is exactly what that mod does.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
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 |
|||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
#7
|
|||||||
|
|||||||
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 |
|||||||
#8
|
|||||||
|
|||||||
Re: Detailed Pic
Just the [img] tags
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
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 |
|||||||
#10
|
|||||||
|
|||||||
Re: Detailed Pic
Yes
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|