| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Need help configuring "Best Sellers" module to call thumbnail images via filesystem! | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() Just to update everyone on this thread, I contacted the X-cart team and Eugene Kaznacheev in the technical support team was able to ressolve the issue. Of course that cost me some support point, but I thought it was well worth it. All of my images from the "Best Sellers" and "Recommended Products" are now being referenced via the direct filesystem path and no longer being pulled via "image.php" file. WOW, they are so much faster. Night and day difference!!!
With that being said, I'm posting the code modification required to make this work down below. Hopefully this will help someone in the future. Cheers -Tuan 1. Edit <xcart_dir>/modules/Bestsellers/bestsellers.php script and replace: Code:
with Code:
2. Then edit <xcart_dir>/recommends.php file and replace: Code:
with Code:
--------------------------------------------------------------------------------------------------------------------- After that, you would need to modify the "xcart_dir\skin1\modules\Bestsellers\bestsellers.t pl" and "xcart_dir\skin1\modules\Recommended_Products\reco mmends.tpl" files as well. And below is how I currently have those two files configure. Cheers -Tuan "xcart_dir\skin1\modules\Bestsellers\bestsellers.t pl" File Code:
Code:
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9 |
|||||||
#12
|
|||||||
|
|||||||
![]() In order to keep the markup valid while using this mod...
In the bestsellers.tpl change: <a href="product.php?productid={$bestseller.productid }&cat={$cat}&bestseller"> to <a href="product.php?productid={$bestseller.productid }&cat={$cat}&bestseller"> and in the recommends.tpl change: <a href=product.php?productid={$recommends[num].productid}&cat={$cat}&page={$navigation_page}> to <a href=product.php?productid={$recommends[num].productid}&cat={$cat}&page={$navigation_p age}>
__________________
4.0x - 4.5x |
|||||||
#13
|
|||||||
|
|||||||
![]() Has anyone tested the script on 4.1.7 or 4.1.8? Would it work?
__________________
Polren x-cart 4.1.7, On Sale from alteredcart.com One Page Checkout from alteredcart.com XC-SEO |
|||||||
#14
|
|||||||
|
|||||||
![]() I did add the bestsellers mod to 4.18.
I was having errors thrown from the addition of the following code to the bestsellers.php. ------------------------------------------------------------------------------------------------- foreach ($bestsellers as $i=>$item) { $bestsellers[$i]["tmbn_url"] = func_get_image_url($item[productid],"T"); } $smarty->assign("bestsellers",$bestsellers); --------------------------------------------------------------------------------------------------- Since it didn't make sense to me on why this was added, I just left the original code on that page and modified the .tpls. (Appears to work fine.) http://www.naplesvalley.com/ PS. I didn't try the "recommends" mod.
__________________
4.0x - 4.5x |
|||||||
#15
|
|||||||
|
|||||||
![]() Thanks Chris. I believe the code that causes errors is destined to show thumbnails in the bestsellers table in the left panel (nice feature to have), but someone needs to "convert" this code to the 4.1.x standard...
__________________
Polren x-cart 4.1.7, On Sale from alteredcart.com One Page Checkout from alteredcart.com XC-SEO |
|||||||
|
|||
X-Cart forums © 2001-2020
|