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

Thumbnails in 'Modify Product' Search Box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 11-20-2003, 11:52 PM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Thumbnails in 'Modify Product' Search Box

One thing which is lacking in the admin side of x-cart is a way of being able to see instantly which products in a category doesn't a picture. Currently you have to go into each products page and check. With this mod a small icon sized thumbnail will appear next to your product name in the search page.

PS You only need to edit one file, so is very easy to do ...

Filename: main/products.tpl

replace
Code:
<td>ID</td>
with
Code:
<td>ID</td><td></td>

just after
Code:
<td width=1%>#{$products[cat_num].productid}</td>
insert
Code:
<td width=20 align=center> {include file="product_thumbnail.tpl" productid=$products[cat_num].productid product=$product.product tmbn_url=$products[cat_num].tmbn_url image_x=20} </td>

If you want the thumbnail icons at a different size, just adjust the image_x setting in the include statement.
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
  #2  
Old 11-21-2003, 12:06 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default

comfortable and pretty detail

greetings
Reply With Quote
  #3  
Old 03-07-2005, 07:42 PM
  Alltribes's Avatar 
Alltribes Alltribes is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 192
 

Default

This works in 4.x:

Code:
<td width=20 align=center> {include file="product_thumbnail.tpl" productid=$products[prod].productid product=$product.product tmbn_url=$products[cat_num].tmbn_url image_x=20} </td>
__________________
Alltribes.com
Native American Jewelry
Pottery, Baskets, Kachinas & More

X-cart Gold Version 4.0.17 Live
PHP 5.2.6
MySQL 4.1.25
(mt)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 06:11 AM.

   

 
X-Cart forums © 2001-2020