How to View Order Status Comments History View?

Hi, this is one of very critical issue for me. I found one forum this solution.

That fourm url is below :
http://www.magentocommerce.com/boards/viewthread/20813/P75/

And I mentioned that code also. If they deleted that thread this is useful.

1. You this path : /app/code/core/Mage/Adminhtml/Block/Sales/Order/View/History.php

// For All Status View Purpose Below
public function getAllStatuses()
{
$statuses = $this->getOrder()->getConfig()->getStatuses();
return $statuses;
}
// For All Status View Purpose Above

I added this code after “public function getStatuses()” this function inside.

2. Next you go Here : /app/design/adminhtml/default/default/template/sales/order/view/history.phtml”

Find below Code :
<?php foreach ($this->getStatuses() as $_code=>$_label): ?>
<option value=”<?php echo $_code ?>”<?php if($_code==$this->getOrder()->getStatus()): ?> selected=”selected”<?php endif; ?> <?php echo $_label ?></option>
<?php endforeach; ?>

You feel Backup Above code take or Comment line.

And change Below Code :

<!– Write Below for Order Status –>
<?php foreach ($this->getAllStatuses() as $_code=>$_label): ?>
<option value=”<?php echo $_code ?>”<?php if($_code==$this->getOrder()->getStatus()): ?> selected=”selected”<?php endif; ?>><?php echo $_label ?></option>
<?php endforeach; ?>
<!– Write Above for Order Status –>

This is working for me. And check your side. And thanks this option giving that forum “thekanyon” also.

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 find Magento skin image URL in .phtml page inside

Just put this code where you want:
$this->getSkinUrl(“images/sample.jpg”)

– This skin url code: $this->getSkinUrl

Example:

echo ‘.main { background:url(‘.$this->getSkinUrl(“images/sample.jpg”).’) 0 0 repeat-y !important}’;

<img src=”$this->getSkinUrl(“images/sample.jpg”)”>

After installing Fontis reCaptcha showing 404 error page in magento

Once Clear cookies and session then logout and re open the admin panel.

Magento Image Uploading not working in admin side?

Hi,

Just one small change file permission for catalog directory “777”.

its working. First you can do this file permission in ftp. Then you can think another way.

thanks.
www.srinesiga.com

How to find Magento Database name after installation?

Hi guys,

1. you go to ftp
2. Login your Domain
3. Go to app–>etc–>local.xml

There you can see below code there your database details stored.

<connection>
<host><![CDATA[yourhost]]></host>
<username><![CDATA[username]]></username>
<password><![CDATA[password]]></password>
<dbname><![CDATA[dbname]]></dbname>

</connection>

that’s all.

How to Read Javascript Via Query String?

Below I mention that Reading Query String Script:

<!– Query String Read Code Start
function querySt(queryValue) {
queryString = window.location.search.substring(1);
urlSplitQuery = queryString.split(“&”);
for (i=0;i<urlSplitQuery.length;i++) {
finalQueryTxt = urlSplitQuery[i].split(“=”);
if (finalQueryTxt[0] == queryValue) {
return finalQueryTxt[1];
}
}
}
var queryFunction = querySt(“queryFunction”);
//document.write(queryString);

// Query String Read Code End  –>

If you feel check conditon below i mention the query string condition:

if(queryString==”query”){
document.write(‘Yes query here’);
}
else{
document.write(‘no query’);
}

Simple coment hide script for WordPress Site?

<script type=”text/javascript” language=”javascript”>

//alert(document.getElementById(‘comments’));

var comLength = document.getElementById(“comments”).innerHTML;

/*alert(comLength);

alert(comLength.length);*/

if(comLength.length == “0”){

//alert(‘test’);

document.write(‘<style type=”text/css”>#comments{display:none;}</style>’);

}

else{

document.write(‘<style type=”text/css”>#comments{display:block;}</style>’);

//alert(“Test Else”+comLength.length);

}

</script>

IE not support text-indent on buttons fileds?

You can do just below things in your style inside.

.your-class{
font:12px Arial;
text-indent:-999px;
display:block;
line-height:0; /* For IE purpose */
}

that’s all this working. you can added here for IE purpose the “line-height:0” only.

© 2020 Spirituality