Admin Product image thumbnail


english 2284

Admin Product image thumbnail

Thumbnail Display in the product listings of each category of the admin panel.
Find in catalog/admin/categories.php

require('includes/application_top.php');

Add below:

  define(CATEGORIES_IMAGE_HEIGHT, 35);
  define(CATEGORIES_IMAGE_WIDTH, 35);

Search in standard version: 2.3.4

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $products['products_name']; ?></td>

Change to:

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview') . '">' . tep_info_image($products['products_image'], $products['products_name'], CATEGORIES_IMAGE_WIDTH, CATEGORIES_IMAGE_HEIGHT) . '</a>&nbsp;' . $products['products_name']; ?></td>

Search in BS EDGE-Version:

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link('categories.php', 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview') . '">' . tep_image('images/icons/preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $products['products_name']; ?></td>

Change:

<td class="dataTableContent"><?php echo '<a href="' . tep_href_link('categories.php', 'cPath=' . $cPath . '&pID=' . $products['products_id'] . '&action=new_product_preview') . '">' . tep_info_image($products['products_image'], $products['products_name'], CATEGORIES_IMAGE_WIDTH, CATEGORIES_IMAGE_HEIGHT) . '</a>&nbsp;' . $products['products_name']; ?></td>

Why your email address?
If necessary, I will contact you to help you with the implementation.
Your email address will not be made public.
Is this post helpful to you?
There are currently no product reviews.
Information(1)
General information
 Free advertising
Tips & Tricks(1)
Quellcode box
 Array, $variable, $counter
Post counter
Current information status:
Categories: 9
Posts: 104
Support pages: 56
Downloads for members: 104
Download counter: 646
Reviews total61
Companies: 26
Support: 28
Information: 7