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.

How to view Particular Category List in Home Page from Magento?

Go to Magento Cms Page Inside, Put Blow Code then view in your page :
{{block type=”catalog/product_list” category_id=”98″ template=”catalog/product/list.phtml”}}

(OR)

Open in your Magento theme page layout, There you can past below code

<?php     echo $this->getLayout()->createBlock(‘catalog/product_list’)->setCategoryId(98)->setTemplate(‘catalog/product/list.phtml’)->toHtml()     ?>

(OR)

Open Magento Static Block, Create Magento New Static Block, Then Past Below Code :

{{block type=”catalog/product_list” category_id=”98″ template=”catalog/product/list.phtml”}}

Once you placed above code in Magento Staic block inside, You can write below code in your Magento .phtml file inside,

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(IDENTIFIER)->toHtml() ?>

Here you change "IDENTIFIER" in your Magento Static Block identified number.
Now you refresh your site will show your custom Magento Style Theme.

Thanks,
J.
echo $this->getLayout()->createBlock('catalog/product_list')->setCategoryId(10)->setTemplate('catalog/product/list.phtml')->toHtml()

How to view in weight back value in kg?

Hi you go to app folder.
1. Then go to design–> frontend –> yourtheme –> yourtheme –> template –> catalog –>product –>view –> attributes.phtml

there you can find this code : <?php echo $_helper->productAttribute($_product, $_data[‘value’], $_data[‘code’]) ?>

to change

Then add below code :

<?php
$_weightValue = $_data[‘value’];
if($_data[‘code’]==’weight’){ //this attribute code checkup condition
if (is_numeric($_weightValue)) //this attribute value numberic or not checkup condition
{
$_weightValue = round($_weightValue, 2).’ kg’;  //round to 0.00
}
}
?>
<?php echo $_helper->productAttribute($_product, strip_tags($_weightValue), $_data[‘code’]) ?>

That’s all.

© 2020 Spirituality