hey guys, got a problem,
basically, on the shopping cart it has the three buttons. View products,
> view basket and clear basket, even when the cart is empty a notification
> message will be shown when u click empty basket.
>
> The link of the empty basket is= index.php?clear=1
>
> And it gets processed by:
>
> if (isset($_REQUEST['clear']))
>
> {
> $shopping_cart->EmptyCart();
> echo render_notification('
Shopping Cart> Emptied
');> }
>
> And i wanted to add something like on where the actual link is like
>
> function check_if_empty($check_if_empty)){
>
> If (empty($cart)){
>
> $check_if_empty = "";
>
> }else{
>
> $check_if_empty = " and the link in here";>
> }
>
> }
>
> And then just replace where the li used to be with the function variable, is
> that a ok solution? But don't know whts wrong with the syntax not working,
>
> Many thanks
> Andre Figueira