| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Less than one product produces error in recommends.php | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Less than one product produces error in recommends.php
An error occurs on the page customer/main/product.tpl when a customer visits a subcategory with only one product.
In this instance the following error appears: Code:
Any idea how to fix this ?
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#2
|
|||||||||
|
|||||||||
You could try changing the setting in admin that says "choose recomended products by random"
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||||
|
|||||||||
Hmm.... when I do that it then doesn't show *any* random products for any of the products on the entire website.
This of course is not the desired effect Thank you for your incredibly prompt response by the way...
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#4
|
|||||||||
|
|||||||||
Help !
I forgot this is still a problem and I'm trying to launch the site next week Also, this does not have to do with only one product existing because I tried changing the number of products displayed in recommends list to one and I still receive an error. Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 59 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62 Warning: rand(): Invalid range: 0..-1 in /home/virtual/site210/fst/var/www/html/shop/customer/recommends.php on line 62
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
#5
|
|||||||||
|
|||||||||
Okay - after further searching it looks like the problem only happens on subcategories.
Still a problem though
__________________
Site 1 > XCART LIVE 3.4.12 Site 2 > XCART LIVE 4.0.17 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|