| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to make thumbnails larger in Category view | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to make thumbnails larger in Category view
Is there a way to make the size of the thumbnails larger in the category view?
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#2
|
|||||||||
|
|||||||||
Re: How to make thumbnails larger in Category view
I think it requires some modification to the core, I have asked this before
__________________
Richard Ultimate 5.4 testing |
|||||||||
#3
|
|||||||
|
|||||||
Re: How to make thumbnails larger in Category view
Well I think I could make a Mod to do this, but there's no telling where the settings are for this.
Then if it was a Mod, you'd need have it on the back end to make the changes. However, I think this should be in Look & Feel, because there's nothing else in that area that worth having there lol Or better yet, why doesn't it just size to the white area? If you look at my current site I'm working on, We made this Mod for the front page that uses the Category listing and it looks like this because the Thumbnails are so small! It makes it difficult to see the dogs. http://i21.photobucket.com/albums/b298/fasterthanyours/frontpageexample.jpg I'd also like to know how to change the Category listing to 2 columns that take up to whole width of the same area.
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#4
|
|||||||||
|
|||||||||
Re: How to make thumbnails larger in Category view
Hi Michael!
In order to apply this change, you need to decorate the getIconSizes() method of the \XLite\View\ItemsList\Product\Customer\ACustomer class. You will see that now thumbnail sizes are hard-coded to 160x160px. The basic guide about how to perform a decoration is here: http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes Finally, I will pass the feedback about creating options for thumbnail sizes to the team. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: How to make thumbnails larger in Category view
Alternatively, you can simply override the skins/default/en/items_list/product/center/list/parts/body/thumbnail.tpl
template using Custom Skin module and hard-code your thumbnail sizes in this piece: Code:
The basic guide about overriding templates is here: http://kb.x-cart.com/display/XDD/Step+2+-+applying+design+changes
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#6
|
|||||||
|
|||||||
Re: How to make thumbnails larger in Category view
Tony,
So help me out again if you would... I got as far as making to the Main.php and the ACustomer.php files But I'm not 100% what to do with the getIconSize function PHP Code:
I was able to get it Installed and Enabled. However, I'm not sure what to do about putting in my own sizes. I also think this could be better handled by having a Settings option. Here's a link to the packed files https://www.dropbox.com/s/zdjnzjt6e5no5hh/FasterThanYours-LargerThumbnails-v5_1_6.tar?dl=0
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#7
|
|||||||||
|
|||||||||
Re: How to make thumbnails larger in Category view
Your implementation of getIconSizes() sizes must be similar to its default implementation in the classes/XLite/View/ItemsList/Product/Customer/ACustomer.php file.
Its default implementation is: Code:
These lines: Code:
define sizes of thumbnails in central area. You can change them to: Code:
and thumbnails will become 200x200 size. Please, let me know if it makes sense to you. Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#8
|
|||||||
|
|||||||
Re: How to make thumbnails larger in Category view
I found on this thread where totaltec had suggested the same thing
http://forum.x-cart.com/showpost.php?p=376532&postcount=4 Based on his recommendation I removed it from the original Mod location namespace XLite\Module\FasterThanYours\LargerThumbnails\View\ItemsList\Product\Customer; I place the ACustomer.php in XLite\Module\XC\CustomSkin\View\Items_List\Product \Customer\ACustomer.php But I don't get any results. Here's the current PHP PHP Code:
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
#9
|
|||||||||
|
|||||||||
Re: How to make thumbnails larger in Category view
In your code, you should replace the following string:
abstract class ACustomer extends \XLite\Module\CDev\Sale\View\ItemsList implements \XLite\Base\IDecorator { with the next one: abstract class ACustomer extends \XLite\View\ItemsList\Product\Customer\ACustomer implements \XLite\Base\IDecorator { I.e. your previous code was right and new one is not.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#10
|
|||||||
|
|||||||
Re: How to make thumbnails larger in Category view
Do I need to change my Namespace and file path? I went back to using the other Custom Mod and disable Custom Skins.
Current Code: PHP Code:
__________________
X-Cart 4.3 Joomla Among other things |
|||||||
|
|||
X-Cart forums © 2001-2020
|