Menus are an integral part of any website. Elgg defines two classes that help in building and rendering menus. The first class provided is ElggMenuItem. The second class provided is ElggMenuBuilder, which provide methods that help in rendering menus using the ElggMenuItem objects. Adding Items to menu Adding items to a menu requires: Create a … Continue reading Working with Elgg Menu
Author: Karlston D'Emanuele
Magento Reindex Programmatically
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
Magento SQL Logging – (Part II)
In the last article we saw the different ways how one can analyse the SQL Queries running under the Magento’s hood. These are listed here again: To see all queries issued to the database Modify the core Magento code that deals with the database query generation Enable Magento Pdo MySql debugging Switch on MySQL logging … Continue reading Magento SQL Logging – (Part II)
