One Page Checkout not working in Magento?

For Some Solution is available in magento.

You need check your magento extension. Some magento module is conflict for One Page Checkout Javascript Error.

You can remove the extensions. This is will work.

Go to Admin –>Magento Connect –> Check your extension. You remove unwanted extension then its working fine.

How to View SKU Number in Cart Page from Magento?

You just put Below code in your template file.

<td><?php echo $_item->getSku() ?> </td>

1. Go APP Directory –> template –> checkout –> cart –> item –> default.phtml

Here you place above code.

2. Go APP Directory –> template –> checkout –> cart.phtml

Inside your Heading Title.

that’s all.

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