Archive: development

 

Posts Tagged ‘development’


So you have a plesk backup file and you want to extract and open the files from it? No problem. This blog will show you how. The file is a mime file. The "mpack" package will let you unpack it. First we install the "mpack" package PLAIN TEXT CODE: sudo apt-get install mpack Let's imagine [...]



 

If you are thinking of adding a confirmation of e-mail address to the front-end registration pages of your store e.g the Checkout billing page or the customer account registration, the little snippets below could be of use to you For the Checkout billing page 1. Locate the magento checkout billing page (billing.phtml) which can be [...]



 

I recently needed magento to be able to load a product, and if that product was part of a configurable product detect this and return the parent product if that existed. Looking around google I came across this code snippet and thought it should work PLAIN TEXT PHP: $_product = Mage::getModel('catalog/product')->load($productId); $parentIdArray = $_product->loadParentProductIds()   [...]



 

Magento is a typical PHP Model View Architecture (MVC) system which routes its URLs in ways not particularly different from other PHP MVC Frameworks like codeigniter, symphony etc. But the difference it has with other MVC architecture is that most of its routing directives or configurations are XML based i.e. found in one XML file [...]



 

Many database queries rely on seeing if two columns match / differ, however sometimes you may want to check if either column contains a sub-string of the other. MySql allows you to do this, but it isn't that well documented, so hopefully this will help someone looking for this in the future SELECT * FROM [...]



 

Not many people are aware of the Path Tools extension for netbeans, and even fewer know how to make it really useful. Effectively it provides 4 buttons - Copy Path, Open Folder, Open Terminal and Edit Path, the latter three being configurable. Its default for Open Folder is great (for gnome users) but that's the [...]



 

There is a new feature in Netbeans that tries to auto fill the variables for methods and functions in PHP. Whilst this may be something that is a time saver for some, it often gets these wrong, and if you are using descriptive variables in the method then these are overwritten if you have a [...]



 

I recently installed the latest version of Netbeans (7.1) and decided to have a look through the available plugins at the same time. In there I found one called Quick File Chooser. This replaces the file selector with a keyboard optimised version, which includes auto-complete and narrowing down a file list as you type. If [...]



 

On occasion, google and other tools will tell you there's errors with your sitemap.xml file and not give you the information of what exactly is wrong, so we wrote this little tool to crawl the sitemap and check for 301 redirections and 404 errors. It is a noddy file and should have much more error [...]



 

Well known is how Loaded Commerce/CRELoaded protect their google banners they wack on all opensource versions of their code. Once you have removed the footer in the current version though, it checks the output buffer and you will find it after the closing html tag of your page. The function that does this is cre_uregisterBasicFunctions(); [...]