Re: Thumbnail size in xc5
Is there a way to disable the resizing of the icons so we can control our layout without software intervention?
|
Re: Thumbnail size in xc5
Quote:
That would be a starting point, but I see so much code that depends upon this that I think it would be a massive undertaking to disable it completely. Much easier to simply embrace it and twist it to your own advantage. |
Re: Thumbnail size in xc5
Guys, I just wrote an article about disabling resizing routine here:
http://kb.x-cart.com/display/XDD/Working+with+image+resizing+routine Check it out! |
Re: Thumbnail size in xc5
Very cool Tony! Your mod is an elegant way to handle this.
|
Re: Thumbnail size in xc5
Hi Tony,
I'm also having trouble with resizing thumbnail images. I tried the solution you suggested but it also isn't working for me. Any Ideas? |
Re: Thumbnail size in xc5
Hello @flipp2k and welcome to X-Cart community.
Could you please give me more details about what you were trying to achieve, what you did and what actually happened instead of what you expected to see? |
Re: Thumbnail size in xc5
Everything here seems really useful and exactly fitting for what I need. I am wanting to change the category thumbnail size to 300x300. I'm also wanting to change the product thumbnail size to 300x300. As of now, the categories are showing 160x160. Also the products in the grid view are showing 160x160.
However, I tried integrating this into my theme and it doesn't seem to be working at all? What am I missing? Attached are the files that I've added to my module. Any insight is appreciated! /XLite/Module/DevID/ModuleID/View/ProductBox.php PHP Code:
/XLite/Module/DevID/ModuleID/View/Subcategories.php PHP Code:
|
Re: Thumbnail size in xc5
@ant99 it should have worked out. Could you please send me your module, so I could check out what is wrong exactly?
Tony. |
Re: Thumbnail size in xc5
Thanks for sending me the module.
The correct implementation of the \XLite\Module\Dev-ID\Module-ID\View\Subcategories class should be as follows: PHP Code:
In other words, you should decorate the setWidgetParams() method instead of defineWidgetParams() one. |
Re: Thumbnail size in xc5
Quote:
Thank you, that works perfectly for the Category images. However, I tried to apply the fix for Product thumbnail images also and had no success. Here is what I have. PHP Code:
Any suggestions? Thanks for your help. |
All times are GMT -8. The time now is 09:03 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.