Show Posts


Topics - ambhar

Pages: [1]
1
Hi.
I want to add a new column in Orders section of admin panel. This section shows order related information in JQGRID. I want to add a column showing payment method of order. I edited the following code in order.php inside the controller.

$grid_settings['colNames'] = array(
        $this->language->get('column_order'),
        $this->language->get('column_name'),

        $this->language->get('column_status'),
        $this->language->get('column_mode'),         //Column Name that I added
        $this->language->get('column_date_added'),
        $this->language->get('column_total'),
    );
    $grid_settings['colModel'] = array(
        array('name' => 'order_id',
            'index' => 'order_id',
            'align' => 'center',),
        array('name' => 'name',
            'index' => 'name',
            'align' => 'center'),
        array('name' => 'status',
            'index' => 'status',
            'align' => 'center',
            'search' => false),
            array('name' => 'payment_method',     //Column data that I added
            'index' => 'payment_method',
            'align' => 'center',
            'search' => false),
        array('name' => 'date_added',
            'index' => 'date_added',
            'align' => 'center',
            'search' => false),
        array('name' => 'total',
            'index' => 'total',
            'align' => 'center'),
    );

This added the column name but did not fetch any data to that column.

Please do help me with this. I am stucked onto this for long.

Thanks in advance.

2
Hello....
              I have created a custom radio button for a payment option with default COD on guest_step_2. Whwn I check any of the payment option, it redirect me to the same page on which cash on delivery is redirected i.e. guest_step_3. I want to take the value of my radio button and perform my action for the payment for which I also need the session parameters about the transaction. How can I perform this??

Thanks in Advance
Waiting for a reply

3
Hi...I am working in Abantecart and everything was going smooth till I try using Dragonpay Payment gateway of phillipines with abantecart. There is no extension for it. The gateway have developer suport but I dont know how to create an extension in Abantecart as I dont know the basic structure required to build the extension here.

It will be really helpful if anybody can provide me with the link to its extension or help me in coding it.

Thanks

Pages: [1]

Powered by SMFPacks Social Login Mod