| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Rebuild thumbs | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Rebuild thumbs
How can I rebuild thumbs to size 270px on this site http://squirrelpoker.co.uk/xcart/?
__________________
xcart5 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Rebuild thumbs
Hello @Roman,
Check this thread out: http://forum.x-cart.com/showthread.php?t=69263&highlight=image+size and let me know if there is any question after that. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Rebuild thumbs
Quote:
IT would be better if u write full code of this decorator and say me where must it be located
__________________
xcart5 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Rebuild thumbs
Roman,
I assume you already have a custom module. Therefore your module has a name and a directory: classes/XLite/Module/YourDevID/YourModuleName/ If you are decorating XLite/View/ProductBox.php, then you place the file in your module: classes/XLite/Module/YourDevID/YourModuleName/View/ProductBox.php Then you can determine the namespace, in the case above it would be: namespace XLite\Module\YourDevID\YourModuleName\View;
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: Rebuild thumbs
I did as you say but it does not work, store still generates 160px thumbs
http://squirrelpoker.co.uk/xcart/ I even tried to change paratemers in function defineWidgetParams in classes/Xlite/view/ProductBox but it still does not work
__________________
xcart5 |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Rebuild thumbs
Hello Roman,
I believe you need to decorate the \XLite\View\ItemsList\Product\Customer\Category\AC ategroy class instead of \XLite\View\ProductBox one. Please, let me know if it works out. Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#7
|
|||||||
|
|||||||
Re: Rebuild thumbs
Here is a code of ACategory.php
PHP Code:
__________________
xcart5 |
|||||||
#8
|
|||||||||
|
|||||||||
Re: Rebuild thumbs
Hello Roman.
You should change class declaration from PHP Code:
to PHP Code:
I.e. replace ACategroy with ACategory. Please, let me know if it works out. Tony Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#9
|
|||||||
|
|||||||
Re: Rebuild thumbs
changed to ACategory, but still it does not work
__________________
xcart5 |
|||||||
#10
|
|||||||||
|
|||||||||
Re: Rebuild thumbs
Oh, yes, sorry, the correct instruction on setting image sizes is here:
http://forum.x-cart.com/showthread.php?t=69263&page=2&highlight=image+size So, eventually, I had the following code in my decorating class: PHP Code:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|