View Single Post
  #5  
Old 11-11-2014, 03:37 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: ShopBy Brand - brand page layout changes

Thanks.

I have changed my code but am still getting empty output:

Code:
public function getBrandsAlpha() { if (!isset($this->brands)) { $this->brands = $this->getBrands(); } $this->aBrandsAlpha = array(); foreach ($this->brands as $k => $aBrand) { $initial = substr($aBrand[0], 0, 1); $this->aBrandsAlpha[$initial][] = $aBrand; } return $this->aBrandsAlpha; } public function getBrandCols() { if (!isset($this->columns)) { $this->columns = array_chunk($this->getBrandsAlpha(), $this->getColumnsCount()); } return $this->columns; }

If I try and call the getBrandsAlpha function directly - I still get no output.

Where am I going wrong?

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote