Magento Themes and Magento Extensions

Browser Language Redirection For Multi Language Stores In Magento

Share
Posted on July 21st, 2011 | Posted by admin

Do you run a Multilingual Magento store and looking to auto redirect your customers to their language store? Well, browser language redirection is what we are talking about which can run on Firefox, IE, Mozilla, Google Chrome, Avant and Safari browsers. Generally, Magento does not support geographical detection and redirection so many store owners are initially getting customers to land on their default page where they ask them to choose their preferred language. This is the default way of redirecting customers to their local language store. Other option is to choose a country drop-down or flag to redirect customers to their language store (widely used in multi language stores).

What about detecting the customers default language automatically and open specific language store without having those to select their country/language choice manually?

Automatic redirection based on Customers Location, Geographical detection and browser language.

How you could serve static content files from your Magento extension folder

Share
Posted on July 21st, 2011 | Posted by admin

As a part of my personal ongoing “unobtrusive Magento extensions” campaign. I will show you another “hack”/approach you can apply in order to squeeze your static files under the main extension folder.

When I say static, I am mainly referring to images, CSS and JavaScript in this case.

For example, imagine you are coding an extension called “Sociable“, which will display several links to various web services like Twitter, GoogleBuzz, etc. Links that you can click and the publish a short message about a product/category on that web service. Something like on the image shown below. Logical question is, where do you store your images?

Usually images are stored within the root /media/ folder. So it might seem perfectly fit to store them under the /media/mycompany/mymodule/ folder.

Advanced layout updates for categories and products in Magento

Share
Posted on July 21st, 2011 | Posted by admin

Recently I had a task to modify sorting in only one category of  Magento shop.
What I had to do is “only” to change which attribute will be used for default sorting and I needed to reverse ordering from ascending to descending.
Task seems simple, right?

All you need to do is add/edit your category and in admin panel set your new configuration:

Default Product Listing Sort By:

Insert dynamical menu in Magento’s Admin

Share
Posted on July 21st, 2011 | Posted by admin

Hello everyone! I’ve recently got frustrated with Magento’s core functionality which requires XML definition for Administration menus. And I really wanted to add quick website / store links to it. Solution was to overwrite one of Magento’s Adminhtml blocks, and inject my non-XML, dynamic menu to it. If you’re interested in how I did it, read on.

To make it upgradeable, and painless, I’ve decided to make an extension just for this. It consists of only 2 Files, config.xml, and one Block rewrite.

First, I’ve created config.xml, and set it like this:

Logging user/customer actions in Magento

Share
Posted on July 20th, 2011 | Posted by admin

Recently I wrote a Magento extension called ActionLogger, inspired (thematically) by the “Logging of Administrator Actions” feature available in Magento Enterprise. ActionLogger is pretty simple extension, working on pretty simple but powerful concept of Magento controllers predispatch action.

All you need to do is to create event observer/observers for “controller_action_predispatch” event. This event is fired on every controller action call.

For example, if your store is located on url http://magento-1501.net url, and you go to url like http://magento-1501.net/electronics/cell-phones this will call action “view” from controller “category” from module “Mage_Catalog“. Simple logic/tracing would point this to be app\code\core\Mage\Catalog\controllers\CategoryController.php file and its viewAction().

Page 5 of 14« First...«34567»10...Last »