3
I have a problem here, I know it can be simple, but I still can not solve alone.
I have a slide spinning in a loop of PHP, in this slide there are "entities" that when the expiration day comes they should be removed from the slides, only of slides, I mean, they just wouldn’t show up anymore.
I’ve tried the unset()
but it takes out all the products, because they all have to come from the same query.
Put the code you already have.
– rray
$fim_highlight = $product->expiration date; if( $fim_highlight == date("Y-m-d H:i:s") )ː unset($product->expiration date);
– Aminadabe dos Santos da Silva