Magento Themes and Magento Extensions

The principles of SOLID programming

Posted on June 28th, 2011 | Posted by admin

Hello there! Today I’ll be explaining The principles of SOLID programming. When I first got serious about OOP, I jumped to design patterns, but then I realized that everyone need a good grasp of the SOLID principles before you’re ready to tackle Design Patterns – in more of an Architect role – that is. So, to conclude this short introduction, I’ll try to explain this in as low-level of knowledge as possible.

Well, yous should know that SOLID stands for:

  1. Single responsibility principle
  2. Open-closed principle
  3. Liskov substitution principle
  4. Interface segregation principle
  5. Dependency inversion principle

Why are you switching to Magento?

Posted on June 28th, 2011 | Posted by admin

“Hello! I run an online store for a few years. It was developed in osCommerce originally and that’s why the sales suck. I would like you guys to move my shop to Magento. I heard a lot of good things about it and I’m sure that once we move there, our sales will skyrocket.” This is simplified version of a talk I had few days ago.

osCommerce is outdated. If this business owner wishes to continue his eCommerce business in next few years, it is true that it would be a good idea to replace osCommerce with a solution that has cleaner future. It does not have to be Magento. However, this was not the reason why he wished to move away. He believed that Magento itself will boost his sales since “everyone talks about it”.

Magento L.E.S.S.

Posted on June 28th, 2011 | Posted by admin

Sometimes its all about title, right?! So, what is LESS? Well, its my fancy acronym for something utterly simply but very practical. It stands for (L)ocalhost (E)mail (S)erver (S)imulator. Basically its neither email server or simulator in the real sense of word. Its just a little trick you can apply on the “app/code/core/Mage/Core/Model/Email/Template.php” file to compensate for lack of the local email server in your development environment while developing for Magento.

Magento hadles lot of email sending, for various cases such as: Register new customer, New order created, Forgot password, etc. One of the downside of not having email server set in your local environment is that you cannot easily test all the transactional emails Magento handles. So if you are assigned task of lets say customizing email templates, possibly adding new variables to email templates, etc., then you need a good testing ground.

Works out of the box!

Posted on June 27th, 2011 | Posted by admin

Every now and then someone in the social web world asks for eCommerce solution recommendation. One of the awesome trends I noticed in these answers is the answer of a “happy customer” that goes something like this:

I tried XYZ and it’s awesome! You should try it two. I don’t understand any of this HTML, php, CSSS mumbo-jumbo, but this XYZ cart works out of the box!

The sad part is, people tend to fall for that. What’s bad with it “working out of the box” you ask? Well, most of the open source carts I ever saw work “out of the box”, including Magento. Certain features, however, require additional set-up, and some even advanced custom development.

Did you ever ask yourself how come someone goes through years and years of learning all of this HTML and php mumbo-jumbo if they could simply use the “works out of the box” solution for everything?

Keeping your Magento fit with built in profiler

Posted on June 27th, 2011 | Posted by admin

Default Magento installation has this great feature called “Profiler” that can play important role with your custom Magento development. This feature is meant to be be used for developer only. If used properly it can help you get valuable information of certain code parts during development.

To turn the “Profiler” on you have to do two things:

  • Login to your Magento admin, go to “System > Configuration > Advanced > Developer > Debug > Profiler > Yes
  • Open your root index.php file of your Magento installation then look for commented“Varien_Profiler::enable();” part and uncomment it. If there is no “Varien_Profiler::enable();” then place it somewhere before “Mage::run($mageRunCode,
  • Page 3 of 19«12345»10...Last »