Author: Sergei Guk

Layout XML Directives – Handles, Block, Reference, Action, Remove, Update

December 2, 2013 / Posted in Certification, Magento by Sergei Guk
Layout XML Directives – Handles, Block, Reference, Action, Remove, Update
Download PDF

 What are Layout files in Magento?

As you might already know, the View in Magento (stands for the View from MVC pattern) is more difficult than in most PHP applications and it contains not only Templates – html/css/js code with PHP or any other template engine (such as Smarty, Twig etc.), but also Blocks which are basically PHP objects. In classical MVC a controller sends commands to its associated view to change the view’s presentation of the model. Instead, the View component, Block calls Models to get the necessary information to provide it to the Template file. But how Magento defines which Blocks objects should be instantiated in the specific page ($this)? All this is defined in Layouts.

By using Magento layout files you can quickly enable, disable or move almost all of Magento’s content and functional blocks. The Layout files are XML files that defines which Blocks are included on a page, and which Block(s) should start the rendering process. It can be very frustrating and confusing at first, but when you get used to it, you can handle your themes in a very upgrade-compatible way, because Layout is the tool which helps to assign content blocks to each structural block you create easily. (more…)

Getting Started with Magento Extension Development Book Review

November 20, 2013 / Posted in Magento by Sergei Guk
Getting Started with Magento Extension Development Book Review
Download PDF

I remember the day when I was asked to develop my first Magento extension. I was scared as I knew what a beast Magento was and that developing modules is a challenging task even for very experienced PHP developers. There were no good sources of information back in the day – no books, no detailed tutorials, except for a very basic, Hello World extensions. I mean there were and still are articles where you can understand some basics, also you’re always allowed to view the source of Magento core and well-written community extensions to understand how to write an extension but still there was a gap and a lack of a practical, hands-on guide to building Magento modules from scratch. Then Magento published its own Magento Extension Developer’s Guide and few months ago, in September 2013, Packt Publishing released a new 128 pages book called Getting Started with Magento Extension Development by Branko Ajzele. (more…)

Magento Fallback Configuration – Default and Specific Themes, Packages, Design Exceptions, Temporary Theme Configuration

November 18, 2013 / Posted in Certification, Magento by Sergei Guk
Magento Fallback Configuration – Default and Specific Themes, Packages, Design Exceptions, Temporary Theme Configuration
Download PDF

What is Magento design fallback?

Fallback mechanism in Magento is the ability of Magento to use the files from multiple themes in one page, i.e. making your own custom themes more upgradable and with fewer files.

Magento has used fallback mechanism since the very beginning, however from Magento CE 1.4 and Magento EE 1.8 they added base/default theme as the final step of the fallback mechanism.

The fallback mechanism looks like this: (more…)

Create custom themes (Magento Front End Developer Certification)

October 17, 2013 / Posted in Certification, Magento by Sergei Guk
Create custom themes (Magento Front End Developer Certification)
Download PDF

As everyone knows Magento is a MVC application and  we will be tackling it’s V letter a.k.a View in this series of articles.

Magento’s View layer is a tricky one and contains Blocks, Layouts and Templates, but for Magento Front End Developer certification we need to study Layouts and Templates only in form of Themes. But how does a typical Magento theme look like and how can we create one?

Theme is grouped together templating files (PHTML, XML, CSV) and/or skin files (CSS, JS files and images) that create the visual representation of your store, splitted between two main directores – app/design and skin. If you open these folders you’d see that both have three folders – adminhtml (what you see when you’re logged in Magento admin area), frontend (what your customers see) and install (what you see during Magento installation). More information can be found in my post for Magento Developer Certification – The Main Magento Design Areas and More… We’re interested in ‘frontend’ folder and inside app/design/frontend and skin/frontend you also can see two folders  – base and default (enterprise for Magento Enterprise edition) and they’re Packages. (more…)

Editing Magento Translate.csv File

May 21, 2013 / Posted in Tips&Tricks by Sergei Guk
Editing Magento Translate.csv File
Download PDF

If you read my article about Internationalization in Magento, you should know that there is a way to edit translation CSVs using one file – translate.csv. In order to do that, you just need to set locale via Magento admin area, then create translate.csv in app/design/frontend/<package>/<theme>/locale/languagecode_COUNTRYCODE and put your translated strings inside this translate.csv file.

Here are some tips and tricks: (more…)

Welcome to BelVG ecommerce blog

Our blog is a place where we share some thoughts, news and guidelines of our company developers with you. Our main topics are Magento, Prestashop and Oxid – the platforms we have mastered.

Our goal is to provide really useful information to our readers – clients, developers and e-shop owners. Feel free to look around – if you are in any way related to e-commerce, we are sure you will find some articles to your taste and interests. Moreover – don’t hesitate to comment or ask a question on any topic you see. Our authors are certified Magento developers themselves and are ready to answer you.