Re: Limiting the number of featured products displayed and randomising
Quote:
Originally Posted by wardworth
Hi,
The code is working fine, but I'm getting the following warnings -
Warning: shuffle() expects parameter 1 to be array, null given in featured_products.php on line 91
Warning: array_splice(): The first argument should be an array in featured_products.php on line 92
anyone know why? I'm not that php literate.
|
Hello Wardworth,
It does this only if there is no featured products for the category.
Solution ?
- Check every category for featured products (and select featured products for the categories that do not have them)
- Add an "if" line of code...that I am not able even to imagine, being quite a rookie in PHP.
Anybody wanting to help us on this one ?
Cheers,
Philippe
__________________
X-Cart Gold 4.1.9 - 4.2.0 - 4.2.2
Telafirma: Dynamic Images, Narrow by Manufacturer, Product Page manufacturer, Static Pages Categories, Multicolumn Recommends
Firetank Software: Featured Products, Feed Manager, Newest Products, Sitemap Pro, Marketing Manager
Xcartmods: Ultimate Minicart, 4 Level Horizontal (and Vcal) Flyout
BCSE: Reviews Edit, Multiple Upselling
MagenticOne: Tag Cloud, Store Manager, Custom Data Feed
Websitecm: Xnews, Xnews SEO, CDSEO Pro
Jon Langevin: Gone With The Wind !
|