How to Remove Cart Sidebar in Magento Sidebar?

Take this below content, This is useful for all.

Remove sidebar only (leave functionality available)
ADMIN: System → Configuration → Checkout tab → Shopping Cart Sidebar panel. Set “Display Shopping Cart Sidebar” to “No.”

I find this below url via:
http://www.magentocommerce.com/knowledge-base/entry/turning-on-off-magentos-content-blocks/

how split & substr & find numeric value in php?

Below Example is substr :
$check_allowed = substr($total,35);

Below Example is finding only in numberic value:
echo ereg_replace(“/[^0-9.]/”, “”, $total);

Below Example is convert float :
$check_allowed =(float)$total;
Below Example is finding dollar sign :

$price= $total;
list($symbol, $price) = sscanf($price,’%[^0-9]%s’);
echo var_dump($symbol).'<br />’;
echo var_dump($price);
Below Example is SPlit :
$check_allowed = split(‘;’,$total);
echo $check_allowed[1];

checking if condition :
if($check_allowed[1] >= “10.00”){
?>
<a target=”_parent” href=”<?php echo get_option(‘shopping_cart_url’); ?>” title=”<?php _e(‘Checkout’, ‘wpsc’); ?>”><?php _e(‘Checkout’, ‘wpsc’); ?></a>
<?php
}
else{
?>
<a target=”_parent” href=”javascript:alert(‘Sorry, your order does not meet the minimum order value of &euro;10’);” title=”<?php _e(‘Checkout’, ‘wpsc’); ?>”><?php _e(‘Checkout’, ‘wpsc’); ?></a>
<?php
}
?>

© 2020 Spirituality