Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Thumbnail size in xc5

 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #21  
Old 04-02-2015, 05:55 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Thumbnail size in xc5

Hello,

You need to extend the \XLite\View\ItemsList\Product\Customer\ACustomer class instead of \XLite\View\ProductBox one. Please, let me know if it works out for you.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #22  
Old 04-02-2015, 08:47 AM
 
flipp2k flipp2k is offline
 

Newbie
  
Join Date: Feb 2015
Posts: 2
 

Default Re: Thumbnail size in xc5

Thanks for the response Tony. As a temporary fix I went ahead and disabled the image re-sizing from the image.tpl template file.
__________________
xcart 5.1.1
Reply With Quote
  #23  
Old 05-04-2015, 09:07 PM
 
Tomek Tomek is offline
 

Newbie
  
Join Date: May 2015
Location: Australia
Posts: 9
 

Default Re: Thumbnail size in xc5

Hi Tony,

Thanks for the instructions. I have followed them and made the changes.

It didn't work and found that some of the directory listings are not the same for the version I'm using.

Ver. 5.2.4 (recently updated)

All I want to do is enlarge the "product_thumbnail" in the subcategories.php?

(I hope these are the right terminology)

Any tips, guidance would be appreciated as there is not much info on the latest version.

Cheers, Tom


Quote:
Originally Posted by tony_sologubov
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:
<?php

namespace XLite\Module\Dev-ID\Module-ID\View;

abstract class 
Subcategories extends \XLite\View\Subcategories implements \XLite\Base\IDecorator
{
    public function 
setWidgetParams(array $params)
    {
        
parent::setWidgetParams($params);

        
$this->widgetParams[static::PARAM_ICON_MAX_WIDTH]->setValue(300);
        
$this->widgetParams[static::PARAM_ICON_MAX_HEIGHT]->setValue(300);
    }
}

In other words, you should decorate the setWidgetParams() method instead of defineWidgetParams() one.
__________________
Tom
Reply With Quote
  #24  
Old 05-05-2015, 02:36 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Thumbnail size in xc5

Hello @Tomek,

Could you please send me the module you wrote? I will try to point the problem.

Tony
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #25  
Old 05-05-2015, 05:14 PM
 
Tomek Tomek is offline
 

Newbie
  
Join Date: May 2015
Location: Australia
Posts: 9
 

Default Re: Thumbnail size in xc5

Thanks Tony for your quick response.
I have not written a module.
All I did, was edit the source files (of course made backups and restored back to original afterwards)
Fairly new to this, so might not understand all the jargon and how to's.

Tom
__________________
Tom
Reply With Quote
  #26  
Old 05-05-2015, 05:18 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Thumbnail size in xc5

Tomek,
I have a simple tutorial that may help you tremendously: https://www.youtube.com/watch?v=jGmeHJKP_c8

You do not edit anything in the core files. You always create a module for use in your store.

Tony also has a webinar recording about creating a module: https://www.youtube.com/watch?v=mOzC7mknjwQ

And this KB article: http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module

You may also find X-Cart 5 SDK useful: http://kb.x-cart.com/display/XDD/X-Cart+SDK
__________________
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.
Reply With Quote

The following 2 users thank totaltec for this useful post:
qualiteam (05-19-2015), Tomek (05-06-2015)
  #27  
Old 05-06-2015, 04:58 AM
 
Tomek Tomek is offline
 

Newbie
  
Join Date: May 2015
Location: Australia
Posts: 9
 

Default Re: Thumbnail size in xc5

Thanks Totaltec for all the information.

The first video definitely explains what needs to be done. So easy to understand!

Will need to go through a learning curve now and will let you now later how I go.

In the meantime, if there are any more simple tutorials, please post them,

Cheers, Tomek.
__________________
Tom
Reply With Quote
  #28  
Old 05-19-2015, 03:45 AM
 
Tomek Tomek is offline
 

Newbie
  
Join Date: May 2015
Location: Australia
Posts: 9
 

Default Re: Thumbnail size in xc5

Thank you Tony and totaltec for your help in this forum.

Once I understood about custom templates, the rest was fairly simple.

Cheers!
__________________
Tom
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:57 PM.

   

 
X-Cart forums © 2001-2020