Blog

Understanding PHP’s OOP – basic terms explained

Understanding PHP’s OOP – basic terms explained

Hello there! I’ll explain some basic terms of PHP’s Object Orientated Programming terms that any developer needs to know. Perhaps you already use all of those, but if you don’t know which is which, you will have a problem in team communication. If so, please read on.

Read more

How to set multiple stores/websites with one magento installation on different domains

How to set multiple stores/websites with one magento installation on different domains

This article will describe quickest way how to use and configure one Magento installation on different domains.
Point here is what do you want to have on that different domains, for example you want to have chosen categories/products on one domain and the other one will be on different language.
First you figure that and then go to configuration.

Read more

Load XLS files into Magento modules using PHP-ExcelReader class

Load XLS files into Magento modules using PHP-ExcelReader class

Recently I had a small problem and it turned out that it wasn’t small as a initially thought. I had to read XLS (Microsoft Excel document) into PHP. After I spent almost 2 hours browsing through internet, I found myself most satisfied with open source project “PHP-ExcelReader class“. It has everything I needed (multiple sheets support and it could read data from both Excel 2000 and 2007). On the other hand, Magento doesn’t support XLS, and I decided to write a small method that you can implement in any Magento class.

Read more

Croatia on my mind

Croatia on my mind

It took me 19 hours to come to Osijek from Kazan, my hometown – 2 trains, one plane, one bus ride, couple of metro stations in Moscow and I was finally here! I arrived one Wednesday and was lucky to catch last days of the Summer on the local Copacabana beach, before I started my work here in Inchoo.

Read more

Programmatically create order in Magento

Programmatically create order in Magento

Surprisingly one of the trickiest parts of “under the hood” Magento is how to create order programmatically. At least for me, this was/is the most complex area of Magento development. Reason why it is so difficult is that the order creation process is all but not straightforward. You cannot simply instantiate order model, set some data and call upon the save() method. If you ask me, this is how it should be done.

Read more

BlogOpen 2010

BlogOpen 2010

Part of the Inchoo team just spent awesome two days on a conference in Novi Sad, Serbia called BlogOpen. This is the largest regional conference for bloggers and, as of this year, social networkers.

Read more

Zend Framework navigation with breadcrumbs

Zend Framework navigation with breadcrumbs

It’s been a while since I last time played with beauty of Zend Framework.

Each time I check new features it seems to me that the things are more simplier than the last time,
I might be wrong (I wouldn’t bet on that) or I’m just getting better 🙂

Read more

Usage of temporary tables in MySQL databases

Usage of temporary tables in MySQL databases

Hi! My recent project had some specific requirements regarding the work with database. Since DB server had some limitations (regarding number of queries), and fairly big number of queries that needed to be executed I created a solution that included temp tables. And now, I’d like to explain how to use them and why.

Read more

How to set up DNS records manually

How to set up DNS records manually

Hi! Today I’ll explain some basic terms and show you on a simple example how to set up DNS records manually. First of all, let me start by explaining some basic terms.

Read more

Magento and Google Adwords conversion tracking

Magento and Google Adwords conversion tracking

If you use Google Adwords advertising for your Magento web store, you will probably need this module. This module will be very useful, because Magento doesn’t have functionality for tracking Adowrds conversion. Feel free to download module and use it on personal responsibility. I’m using this module on web store without any problems.

Read more

13 things to do before you start building an online store

13 things to do before you start building an online store

If there is one most valuable thing that you need to know before you build your first online store it is this: Build it and they’ll come doesn’t work. This article will try to prepare a company that is thinking about building an online store for all the things they need to know before they start this process.

Read more

How to make order shipment from code

How to make order shipment from code

As most of you know, there is an Order interface in Magento administration from where you can trigger order shipping. However, while developing certain module, you might wish to trigger this event from the code. I hope that this code snippet will help you in this process. In my case I have used this code to make shipment from cron after I got confirmation from fulfillment center

Read more

Magento Enterprise 1.9.0.0 redirects to home page instead of 404 error page

Magento Enterprise 1.9.0.0 redirects to home page instead of 404 error page

If you have installed and working on latest Magento’s Enterprise Edition 1.9.0.0, you could find some strange behavior with 404 error page and landing page. People say there is a patch for this, but I would like to present a quick fix for those of you who need an urgent solution. Issue is that you’ll get status 200 OK for each non-existing CMS page or controller and you will be redirected to home page.

Read more

How to add massactions to Magento’s grid

How to add massactions to Magento’s grid

This article describes how does Magento’s mass actions work and how to add them in your existing grids.

You need to do 2 things:
– extend the block (grid) class with “protected function _prepareMassaction()
– add an action into your controller, which will handle your desired logic.

Read more

WampDeveloper – My Choice for web development platform

WampDeveloper – My Choice for web development platform

This isn’t post for ordinary people, so if you do not know what is virtual host or how to set it up please skip this article and don’t waste your time.

But if you wish to save your time you will use some of this tools.

Read more

Usage of database stored procedures

Usage of database stored procedures

Hello guys. Today I’ll try to explain 2 things. First WHY to use stored procedures. And second, HOW to use them. First of all, a small notice. I’ll explain the subject on PostgreSQL example, because of the fact that I used that language syntax most recently.

So let’s begin with the question “Why?“.

Read more

Contact Form in Magento

Contact Form in Magento

As you know, Magento has a built-in contact form that can be used for general contacts. That form isn’t part of any CMS page, you cannot edit some introduction text, you cannot add phone numbers administration, and you cannot see the breadcrumbs. If you wish to edit text in that default contact form, you will need to update front-end files. Luckily, there is an alternative.

Read more