Home » Archive

Articles in the Magento Customization Category

Magento Customization, Magento Guide »

[8 Oct 2009 | One Comment | ]

Imagine a scenario where you wish to simply create a view file like custom-note.phtml and show this view file on some new url inside the Magento store. One way to do this is to create a CMS page and call that block from within CMS page. But what if you wish to create and append this block to other areas of Magento layout that are inaccessible from CMS page interface form admin? What if I want to add new div element under the breadcrumbs and append new block under it?
magento …

Magento Customization, Magento Guide »

[7 Oct 2009 | One Comment | ]

Ever wanted to “just send the email” using the built in email features in Magento? Ever hit the wall trying to do something with Magento? OK, I know the answer to the other one, just had to ask . Anyhow, sending the emails with Magento turned out to be a process of “just” a few hours of tracing Magento code.
I cant wait for smart comments like, “few hours, huh its so easy…”. Yea, thats the beauty of Magento… few hours of bashing your head against the wall while you …

Magento Customization, Magento Guide »

[6 Oct 2009 | No Comment | ]

Due to the “complexity” of Magento’s xml files, developers can waste great amount of time on “unnecessary” things.
When I say “complexity” I say it with purpose. XML files are not so complex by them selves, but due to extreme lack of documentation and changes Magento pumps in every new “major” release, people are lost among things that should really be sideways. Anyway, in this little article I will show you how to create basic, startup structure for your module to get it shown under Magento Admin main top menu.
As you …

Magento Customization, Magento Guide »

[2 Oct 2009 | No Comment | ]

Magento has several issues with duplicated content. Of course, you don’t actually have two versions of the same content in your database, however, in the eyes of search engines, two different URLs serving same content are counted as duplicated content and will cause you lots of problems. The most obvious problem is that your page rank is leaking on different versions of virtually the same landing page. You also might end up with having several versions of the same content indexed which is bad in so many ways.
First duplicated content …

Magento Customization »

[28 Sep 2009 | 4 Comments | ]

Hi everyone. I wrote this little plugin while working on one of our projects. If you know your way around WordPress then you know what $wpdb variable stands for. Imagine the following scenario. You have WordPress installation on one database, Magento on another. You know your way around SQL. You can always make new object based on WPDB class inside your template files giving it database access parameters, or you can use this plugin and use $MAGEDB the same way you use $wpdb.
Below is a little example of using $MAGEDB …

Magento Customization »

[25 Sep 2009 | No Comment | ]

Description:  

With themes based off the Modern Theme, product information tabs are buried under JavaScript. This is awful for SEO. Converting these to CSS allows the Search Engines to index more information on the product pages. This article will tell you how to do that and improve the Search Engine friendliness of your Magento site!

About the Author:

CoolBlueLogo is a Promotional Product Ecommerce site. Helping marketing professionals achieve success with their incentive and customer loyalty campaigns. CoolBlueLogo is Jonathan Martin, he can be reached at jonathan@coolbluelogo.com.
Search engines typically only read visible page …

Magento Customization »

[25 Sep 2009 | No Comment | ]

Adding and removing javascript and css is handled separately within Magento. CSS is added in the usual fashion, where you have a <link rel=”stylesheet”… />. However, any included javascript (unless linked to “by hand” from a theme’s skin) is pulled via a php files which reads through the “js” folder in the root directory (root/js/index.php is responsible for this).
That is all well and good for Magento. The real question is how we, as developers, add these items when we need them. How you as a developer add css or javascript …

Magento Customization, Magento Guide »

[24 Sep 2009 | One Comment | ]

How many people were disappointed to install Magento’s test data and find out that the home page “Best sellers” was just pain HTML placed into the CMS home page? I certainly was one of those people. That’s why I decided to create a Bestseller Module that was dynamic and harnessed the power of Magento’s built in features. This post shows you the code and gives and explanation of what is happening.
For those of you impatient to get to the code, here it is:

<?php
//bestseller module – grabs from all products, returns …

Magento Customization, Magento Guide »

[23 Sep 2009 | One Comment | ]

Hi All -
Finally time for a new post! (Something I’m surprised I haven’t covered yet).
This post will inform you on how to run Magento code outside of Magento. All you need is to have access to Magento’s ‘app/Mage.php‘ file.
This will be handy code for a few things:

Integration with 3rd party items – shared sessions, or just shared themes
Ajax calls – although not the preferred solutions for Ajax calls, it is a quick and easy one

To expand on these ideas a bit more:
Integration:
-You can use this code to output HTML that …

Magento Customization, Magento Guide »

[16 Sep 2009 | No Comment | ]

For those of you who are into kinky stuff I made a simple, more of a proof of concept, application that sits in Widnows taskbar and shows the order info in balloon popup. Took me little more than half of hour to get this working. Almost forgot how great C# is
Magento has this great feature, rss feed for orders. You can access it via link http://myshopsite/rss/order/new. It requires authentication, so you need to provide Magento user and pass to access this link. Idea I wanted to play around …