I'm trying to figure out if there's anything that works like display:none but in PHP. It's module for Joomla.
I'm using IF..ELSE statement and I want to be able to hide/disable the code for ELSE. It's a shopping cart, I'm trying to hide it when it's empty, and when something is in the basket then it shows up. This is the code for the shopping cart.
PHP Code:<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
if(!$vmMinicart) { ?>
<hr>
<?php } ?>
<div style="float: left;" >
<?php echo $total_products ?>
</div>
<div style="float: right;">
<?php echo $total_price ?>
</div>
<?php if (!$empty_cart && !$vmMinicart) { ?>
<br/><br style="clear:both" /><div align="center">
<?php echo $show_cart ?>
</div><br/>
<?php }
echo $saved_cart;
?>
I would appreciate any help.
v1ktor



Reply With Quote



Bookmarks