| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Mfr. Image if No Product Image in Listing Results | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Mfr. Image if No Product Image in Listing Results
First, this mod may need tweaking for the latest version (4.1.x) of X-Cart. It has been tested with latest (4.0.x) version however.
Within a product listing page, such as a Category page, or search results, etc. Attempt to use the products manufacturer's logo if no product thumbnail is found. 1) Edit include/search.php and locate: Code:
2) Below the above found line add: Code:
3) Edit skin1/product_thumbnail and replace its contents with: Code:
4) Next edit skin1/main/customer/products.tpl (or products_t.tpl) and locate: Code:
5) Replace the found code with: Code:
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#2
|
|||||||
|
|||||||
Thank you for the mod. I tested it in 4.1.1 and it did not work.
It seems to me that 4.1.1 does not have the mlogo.php file.
__________________
version 4.1.1 |
|||||||
#3
|
|||||||||
|
|||||||||
Re: Mfr. Image if No Product Image in Listing Results
Here's the coding so it will work in v4.1.x branch (and its a lot easier, no need to edit any PHP files). I can confirm it works in v4.1.6 (Latest version).
1) Edit skin1/product_thumbnail.tpl and replace its contents with: Code:
Code:
__________________
Darren Kierman Carlisle Glass (http://www.carlisleglass.co.uk/) ... running X-Cart Gold 4.4.5 [unix] |
|||||||||
#4
|
|||||||
|
|||||||
Re: Mfr. Image if No Product Image in Listing Results
Can this mod be edited to lookfor "productID.jpg" in a particular folder if the image doesnt exist instead of Man-Logo
|
|||||||
|
|||
X-Cart forums © 2001-2020
|