Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8286485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:47:09+00:00 2026-06-08T11:47:09+00:00

I have created a module that list the orders that are available to be

  • 0

I have created a module that list the orders that are available to be moderated in a grid in adminhtml.

I need to pass the orderId from the grid view to the detail view and I don’t know how to do it.

Here is my Grid.php

{
public function __construct() {
    parent::__construct();
    $this->setId('moderationGrid');
    // This is the primary key of the database
    $this->setDefaultSort('increment_id');
    $this->setDefaultDir('ASC');
    $this->setSaveParametersInSession(true);
}

protected function _prepareCollection() {
    $collection = Mage::getModel('sales/order')->getCollection();
    $this->setCollection($collection);
    return parent::_prepareCollection();
}

protected function _prepareColumns() {
    $this->addColumn('increment_id', array(
        'header'    => Mage::helper('sales')->__('Order Number'),
        'align'     =>'center',
        'index'     => 'increment_id',
    ));

    $this->addColumn('created_at', array(
        'header'    => Mage::helper('sales')->__('Purchase Date'),
        'align'     => 'center',
        'index'     => 'created_at',
        'type'      => 'datetime',
    ));

    $this->addColumn('action', array(
        'header'    => Mage::helper('moderation')->__('Action'),
        'align'     => 'center',
        'type'      => 'action',
        'getter'    => 'getId',
        'actions'   => array(
            array(
                'caption' => Mage::helper('sales')->__('Review'),
                'url'     => array('base'=>'*/adminhtml_moderation/view'),
                'field'   => 'increment_id'
            )
                ),
                'filter'    => false,
                'sortable'  => false,
                'index'     => 'stores',
                'is_system' => true,
    ));

    return parent::_prepareColumns();
}

And here is my view Form.php

class Moderation_Block_Adminhtml_Moderation_View_Form extends Mage_Adminhtml_Block_Widget_Form
{    
    protected function _construct()
    {
        parent::_construct();
        $this->setTemplate('moderation/form.phtml');
    }


    public function getOrder()
    {       
        $moderationId     = $this->getRequest()->getParam('increment_id');
        $order  = Mage::getModel('sales/order')->load();
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:47:10+00:00Added an answer on June 8, 2026 at 11:47 am

    You need to implement one more custom function in your grid.php (hint: this file named not by conventions, must be capital “G” – Grid.php):

    public function getRowUrl($row)
    {
        return $this->getUrl('*/*/edit', array(
            'id'=>$row->getId())
        );
    }
    

    That will give some other classes URL for yours every row.

    For a reference look at Mage_Adminhtml_Block_Catalog_Product_Grid line 320.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a module that lists out the specific list of articles .
I have a List(Of MyObject) that I need to sort. So I've made sure
i have asked to create a module that will record video messages form the
I have a module that is being used to create only a few page
In a module i have a sub that create modalpopup and show result of
i have created a module with this among others this function in it: <?php
I have created a multi module maven project. Now I have shared the project
I am using ASP MVC 2 and Nhibernate. I have created an HTTP Module
I have created a simple Python module and want to distribute it with pip.
I have created a class called Class1, and in another module, I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.