Removed products still in array
-
It seems the array that contains the $favourites does not clean up products no longer in the store. So that the if-statement
if(!empty($favourites))
Will return as not empty, even though the list is empty. If the product was favourited before it was removed…Im not exactly sure how to hack this. Maybe I need to add a for-loop that check through all products to see if they are in stock…
Any better ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removed products still in array’ is closed to new replies.