Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: display:none in PHP?

  1. #11
    Join Date
    Dec 2004
    Posts
    83
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    No error messages, but empty shopping cart is still displayed.

  2. #12
    Join Date
    Jul 2007
    Location
    Azerbaijan, Baku
    Posts
    144
    Thanks
    11
    Thanked 27 Times in 25 Posts

    Default

    Check your $empty_cart and $vmMinicart, i think problem are in them 100%.

    Paste that variables here if u want.

    Just got another way:
    Code:
    <?php
    if (!$empty_cart && !$vmMinicart) {
    $display = "display:none";
    }
    else{
    $display = "";
    }
    
    //here goes your card
    <div style="<?php echo $display; ?>"></div>
    ?>
    NOTE: This won't work on you again too. First problem is in your variables.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •