Magento Themes and Magento Extensions

How to List Orders by Order Status using Magento API

Share
Posted on February 20th, 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('');
$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 display Image Preview in Admin Form magento

Share
Posted on February 15th, 2012 | Posted by admin

Magento allows us to create custom form in admin panel by creating our own custom module. We can create almost any field in the admin form by creating a class that extends the base class Mage_Adminhtml_Block_Widget_Form. The _prepareForm method allows to define our form elements.
Sometimes we may need to upload a file in the adminform, the default file field doesn’t provide the image preview when we upload an image file. For this purpose we need to use image field type as shown in the below snippet

$fieldset->addField('filename', 'image', array(
'label' => Mage::helper('customform')->__('Image'),

How To Show Most Viewed & Best Selling Products In Magento Store

Share
Posted on February 7th, 2012 | Posted by admin

Lately, we have noticed that many Magento store owners started asking us how to show most viewed

products or best selling products on their store’s home page or some other places in their store.

Unfortunately, there is nothing like these feature pre built in Magento core so you have to tweak

and write some lines of code to make it work.
Display Most Viewed Products
Step 1: Create a file app/code/local/Mage/Catalog/Block/Product/Mostviewed.php

and add the following lines of code in it

class Mage_Catalog_Block_Product_Mostviewed extends Mage_Catalog

How To Cancel Pending Orders Automatically In Magento

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

How To Cancel Pending Orders Automatically In Magento

Magento store owners are sometimes bombarded with pending orders which aren’t completed due to payment difficulties or the customers not completing the order for any reason. These pending orders remains in the database making your Magento store perform slower and slower with time. Deleting all these pending orders manually is a big pain, no store owners wants to waste his/her precious time going through pending order management unless required. One option is to cancel all pending orders first and finally delete them after a said interval which will save database space, so you will only have valid records in your database tables.

How to add Store codes in URL Magento

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

Today we’ll see how to add the store code in the  Magento URL from the admin panel

Go to System -> Configuration -> General -> Web

Then URL Options -> Add Store Code to Urls -> Yes

Page 10 of 22« First...«89101112»20...Last »