X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Thumbnails in 'Modify Product' Search Box (https://forum.x-cart.com/showthread.php?t=5288)

carlisleglass 11-20-2003 11:52 PM

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.

maki 11-21-2003 12:06 AM

comfortable and pretty detail :)

greetings

Alltribes 03-07-2005 07:42 PM

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>



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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.