Open up includes/classes/class.product
Find:
Code: Select all
public $_prodbrandname = "";
Code: Select all
public $_prodbrandimagefile = "";
Code: Select all
(SELECT brandname FROM [|PREFIX|]brands WHERE brandid=p.prodbrandid) AS prodbrandname,
Code: Select all
(SELECT brandimagefile FROM [|PREFIX|]brands WHERE brandid=p.prodbrandid) AS prodbrandimagefile,
Code: Select all
$this->_prodbrandname = $row['prodbrandname'];
Code: Select all
$this->_prodbrandimagefile = $row['prodbrandimagefile'];
Code: Select all
public function GetBrandName()
{
return $this->_prodbrandname;
}
Code: Select all
public function GetBrandImageFile()
{
return $this->_prodbrandimagefile;
}
Code: Select all
/**
* Setup selected brand for this product.
*/
public function SetBrandDetails()
{
if(!$this->productClass->GetBrandName() || !GetConfig('ShowProductBrand')) {
$GLOBALS['HideBrandLink'] = 'none';
return false;
}
$GLOBALS['BrandName'] = isc_html_escape($this->productClass->GetBrandName());
$GLOBALS['BrandLink'] = BrandLink($this->productClass->GetBrandName());
$GLOBALS['BrandImageFile'] = GetConfig('ShopPath') . '/' . GetConfig('ImageDirectory') . '/' . $this->productClass->GetBrandImageFile();
}
I've not tested it, but fingers crossed it should work for you
