Contributions
Bestseller Box Image (+ db)
This is an image addon for the best_sellers box. Image size is controlled through admin>configuration>images.
You can resize the images to make the bestsellers box completely fill the left/right column.
I maintained the product number but if you only want to show the picture and name delete the following:
line 41:
' . tep_row_number_format($rows) .
Enjoy!
Expand All / Collapse All
Corrected some spelling mistakes that were causing the images to display incorrectly.
BACK UP! BACK UP!
Simply overwrite your current file in /catalog/includes/boxes with this file.
excuse my english.
just for resize images from admin.
in catalog/includes/boxes/best_sellers
Find
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMG_PRODUITS . $best_sellers['products_image'], $best_sellers['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br>' . tep_row_number_format($rows) . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a>');
REPLACE
'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers["products_id"], 'NONSSL') . '">' . tep_image(DIR_WS_IMG_PRODUITS . $best_sellers['products_image'], $best_sellers['products_name'], BESTSELLER_IMAGE_WIDTH, BESTSELLER_IMAGE_HEIGHT) . '</a><br>' . tep_row_number_format($rows) . '. <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id'], 'NONSSL') . '">' . $best_sellers['products_name'] . '</a>');
same text in download
Francois.
Bestseller Box Image (+ db) with small image
This is an image addon for the best_sellers box. Image size is controlled through admin>configuration>images.
You can resize the images to make the bestsellers box completely fill the left/right column.
I maintained the product number but if you only want to show the picture and name delete the following:
line 41:
' . tep_row_number_format($rows) .
Enjoy!
Note: Contributions are used at own risk.