Magento Themes and Magento Extensions

View product in frontend from Magento admin

Posted on February 27th, 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.

magento themes

Symfony2 custom config parameters

Posted on February 27th, 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.

Then I decided to try to put configuration option inside config.yml file and when I change value there, it will be changed elsewhere in the project so I dont need to search and replace this values one by one.

Easy Form Validation in magento

Posted on February 22nd, 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

Configuring Symfony2 to use APC cache

Posted on February 22nd, 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 …

How to Display the most recently added products first in magento

Posted on February 20th, 2012 | Posted by admin

Magento Provides three different options to sort the catalog products i.e
name, price, position. For a store with more than 1000 products it is not
possible enter position values in backend for each products. We can replace
this with product ids , so that the frontend will display the most recently
added products.

Step 1: To Achieve this copy the file Toolbar.php from app/code/core/Mage/Catalog

Page 1 of 41234»