View Single Post
  #2  
Old 03-04-2017, 09:39 AM
 
benlind benlind is offline
 

Member
  
Join Date: Feb 2016
Posts: 24
 

Default Re: Increase brand image on product pages (Shop By Brand module)

I solved this problem by overriding the module's View/Product/Details/Brand.php file's getLogoWidth() and getLogoHeight() methods.

This is the file I created at classes/XLite/Module/<dev_id>/<module_id>/Module/QSL/ShopByBrand/View/Product/Details/Brand.php:

PHP Code:
<?php
// vim: set ts=4 sw=4 sts=4 et:

namespace XLite\Module\<dev_id>\<module_id>\Module\QSL\ShopByBrand\View\Product\Details;

class 
Brand extends XLite\Module\QSL\ShopByBrand\View\Product\Details\Brand implements \XLite\Base\IDecorator
{
    
/**
     * Get the width of the product's brand logo.
     *
     * @return integer
     */
    
public function getLogoWidth()
    {
        return 
200;
    }

    
/**
     * Get the width of the product's brand logo.
     *
     * @return integer
     */
    
public function getLogoHeight()
    {
        return 
150;
    }
}

I then redeployed the store, and the brand images were now bigger on individual product pages.
__________________
X-Cart version 5.2
Reply With Quote