The Magento indexing mechanism is one of the core functionalities that improve a site performance. However, when programming bulk imports of data it is ideal to stop the indexing until the import is completed. For two reasons, first the indexing will slow the process, as on each line of data imported a reindex of data … Continue reading Magento Reindex Programmatically
Creating an Invoice
Note: This article is based on the article Magento quick way to create order invoice published on 10 June 2010. Update 13 June 2011: Please note that it is recommended that API version 2 is used. The article has been updated to reflect this recommendation. Also please note that the capture() method is not required … Continue reading Creating an Invoice
Adding a static block to a template using layout files
Static blocks are a means of allowing store owners to modify the text displayed in sections of a page from the admin site. For example, a static block can be added to the header to show seasonal promotions. Static blocks can be added to templates through the use of layout files. Adding a static block … Continue reading Adding a static block to a template using layout files
It’s Google vs Apple for digital media publishing
Just a couple of days ago, Google and Apple announced subscription based services offering publishers new possibilities to distribute digital content. Traditionally, publishers were and to a certain extent, are still reluctant to sell their content via such services. The reason is very simple; piracy, which directly hits the publishers’ income. However, the success of … Continue reading It’s Google vs Apple for digital media publishing
C# Parameterless Properties – (Part II)
C# Parameterless Properties – An Example Few weeks ago we investigated how C# Properties are emitted by IL. We saw how the value implicit parameter is introduced and used. In this article we take a look how one can leverage Properties’ potential to build more robust code. The code is self-explanatory and comments are added … Continue reading C# Parameterless Properties – (Part II)