View product in frontend from Magento admin

Posted on January 30th, 2012 | Posted by admin

When you are editing some product in Magento admin and want to check it out in frontend of your Magento project, how do you find this particular product? Do you search for it, navigate to it using product url key or just browse to it? Well, however you do it, I’m going to give you the easiest way to get to your desired product in the frontend – view product link.

Symfony2 custom config parameters

Posted on January 30th, 2012 | Posted by admin

Sometimes we need to add some static configuration options inside our project that will be accessible from whole project scope.

For example, I wanted to define some custom DateTime format that I will use in more then one bundles to format my output to mobile device.

I didn’t want to write format string again and again in code, because after 2 years as my project expanding, I maybe will not be able to quickly find where I defined that output format to reuse it.

Configuring Symfony2 to use APC cache

Posted on January 30th, 2012 | Posted by admin

Symfony2 support several caching systems and one of them is APC cache.

This article is going to be short …. but, everything in Symfony2 is so developer friendly that do not require some huge knowledge to accomplish …

So, first of all what you should know: Apc cache is not going to work properly unless you are executing php scripts on linux server configuration either as apache user or FastCGI and the best way to be configured (from my personal experience is to run Php as with mod_fcgid, because running php as Apache user with often insufficient permissions could lead to other problems …).

But this article is not about how to configure your web server, but how easy is to configure Symfony2 project to use already working APC cache on server.

Easy Form Validation in magento

Posted on January 28th, 2012 | Posted by admin

Magento provides some Default classes for validating form elements in frontend. We can make use of those existing
class names for our custom forms and reuse the client side validation code of Magento.
Let’s see a couple of examples from magento source code

1. Adding the required class to any field label will give the asterisk to be appear in red color indicating it is

the mandatory field

How to List Orders by Order Status using Magento API

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.

$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')
Page 1 of 612345»...Last »