[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] re: results.html
ok, at first it didn't want to work, I quickly realized that you have to
name the thumb images to whatever the SKU number is or item-code for that
product and add a .jpg to it..
say glass-01.jpg my thumbs were named something else and I couldn't
figure it out at first :- ) but now it works..
question:
are the thumb image supposed to be also a link ? because it is not, here is
what I stuck into the code in my results.html
you can see it at:
www.blunt-brothers.com
select glass products... I tried centering it, but for some reason it's
all aligned to the left...
thanks for all the help....
[search-list]
[item-change 1][condition][item-field category][/condition]
<tr class="contentbar1">
<td colspan="6"> [either][value banner_text][or][item-field
category][/either]</td>
</tr>
[/item-change 1]
<tr valign="middle">
<td>
<INPUT TYPE=hidden NAME="mv_order_item" VALUE="[item-code]">
<a href="[area [item-code]]">[item-description]</a>
</td>
<td align="center">[item-code]</td>
<td align="center">
[item-calc]
my $q = q{[item-data inventory quantity]};
if($q > 0) {
return <<EOF;
<font __FFACE__ size="1" color="#008000"><b>Y</b></font>
EOF
}
else {
return <<EOF;
<a href="[area stock-alert [item-code]]"><b>N</b></a>
EOF
}
[/item-calc]
</td>
<td align="center">[item-price]</td>
<td align="center"><input type=hidden name="mv_oi[item-increment]"
value=""><input type=text name=mv_order_quantity size=2 value=""></td>
<td align="center">
[if session browser =~ /mac/]
<input type=submit value="[L]Buy now[/L]"
onClick="this.form.mv_oi[item-increment].value='[item-code]'" border=0>
[else]
<input type=image src="__THEME_IMG_DIR__buynow.gif"
onClick="this.form.mv_oi[item-increment].value='[item-code]'" border=0>
[/else]
[/if]
<td align="center>
<center><a href="[area [item-code]]"><img
src="__THUMB_DIR__/[item-code].jpg" border="0"></a><br>
<a href="[area [item-code]]">[item-description]</a></center>
</td>
</td>
</tr>
[/search-list]
on 3/29/02 8:16 AM, Paul Jordan at paul@gishnetwork.com wrote:
>>
>> thanks for all the responses, but I am confused as to where I put
>> that thumb
>> code in the source of results.html I've pasted it here...
>>
>> the dir.. where my thumbs are located are:
>>
>> /home/cart/store/foundation/images/thumb
>>
>> so what would the path be ? the full path ?
>>
>> this is what I am going to insert:
>>
>> <a href="[area [item-code]]"><img src="thumb/[item-code].jpg" border="0">
>> <br></a><a href="[area [item-code]]">[item-description]</a>
>>
>> and this is the current contents of results.html:
>>
>
> Anywhere between the [search list] .... [/search list] set.
>
> It looks like you going with my suggestion I *think. If you are, you would
> need to go:
>
>> <a href="[area [item-code]]"><img src="__THUMB_DIR__/[item-code].jpg"
> border="0">
>> <br></a><a href="[area [item-code]]">[item-description]</a>
>
> Then you must add this in variables.txt:
>
> THUMB_DIR /foo/images/thumb Directories and Paths
>
>
> where foo is most likely in your http (or www, httpdocs, etc) directory, it
> is the folder that holds your IC images. There will be an entry for
> IMAGE_DIR in there, to give you a hint. YOU MUST obviously add this thumb
> dir in your images dir.
>
> Alternatively, you could simply go:
>
> <a href="[area [item-code]]"><img src="__IMAGE_DIR__/thumb/[item-code].jpg"
> border="0">
> <br></a><a href="[area [item-code]]">[item-description]</a>
>
> and all you would have to do is add the folder "thumb" in the dir "images".
>
>
> These should give you an idea:
> __IMAGE_DIR__/thumb .... __IMGAE_DIR__/buttons ... __IMAGE_DIR__/elements
>
>
> for order I like __THUMB_DIR__ .... __BUTTON_DIR__ ... and __ELEMENT_DIR__
>
>
> you could probably put your images inside the pages dir like you have it
> above, but I am guessing Foundation doesn't do that by default for a reason.
>
> Paul
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
>