How to List Orders by Order Status using Magento API

Share
Posted on January 28th, 2012 | Posted by admin

Magento Core API allows us to retrieve the Orders Placed in a Magento Store. In this example we will be filtering the orders based on its status. Magento Webservices allows us to use Both Soap and XMLRPC for accessing the Core API, for this example i have used both in the below code snippet.

<?php
$soapclient = new SoapClient('http://example.com/api/soap/?wsdl');
$sessionId = $soapclient->login('YourAPIUser', 'YourAPIKey'); /
/Webservice User and API Key
// Getting Order listing by Order Status
// Example Usage:  array('eq' => 'canceled') , array('eq' =>
'processing'),array('eq' => 'complete')

How to change Default Sort Order Magento

Share
Posted on December 27th, 2011 | Posted by admin

I’ll be clear… Magento is not good as you could imagine. In fact sucks in so many ways.

Today i’m showing you one. There is no backend option to change the Default Sort Order in your product listing (catalog).

Lucky there is an easy solution.

The Toolbar

Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List

Create the Local folder

Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

Edit the Toolbar

How to change Default Sort Order Magento

Share
Posted on December 11th, 2011 | Posted by admin

I’ll be clear… Magento is not good as you could imagine. In fact sucks in so many ways.

Today i’m showing you one. There is no backend option to change the Default Sort Order in your product listing (catalog).

Lucky there is an easy solution.

The Toolbar

Look for the file toolbar.php located in:

/app/code/core/Mage/Catalog/Block/Product/List

Create the Local folder

Create the same folder structure in the local. Now the future upgrades will not affect your changes.

Should be like:

/app/code/local/Mage/Catalog/Block/Product/List

Edit the Toolbar

Order statuses “improvement” in 1.5

Share
Posted on May 13th, 2011 | Posted by admin

I took some time to install and do the quick check on Magento 1.5.0.0-alpha1. There was one thing that is impossible to miss: Improved order statuses.
I remember the days when people requested that feature all over ther forum. Oh yes… what feature? Custom order statuses :)
So, we have it out of the box finally! Or do we? Let’s see…

No more configuration files! That’s cool. Everything is stored in database now.
Users are able to create their own statuses and assign those statuses to some predefined order state.
They can choose if they want it to be default status which is also cool.
Let’s see how it looks…

How to extend Magento Order Grid?

Share
Posted on May 11th, 2011 | Posted by admin

Here is small example which explains how to modify order grid. Main class for order grid is “Mage_Adminhtml_Block_Sales_Order_Grid”, if you want to add some column you have to rewrite this class (block).

Page 1 of 3123»