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 [...]
Archive: solution
Posts Tagged ‘solution’
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() [...]
I have been making a mwnu system for magento that would allow a client to add extra links to CMS page to top menu through a static block. One of the requirements was when you clicked the link the menu should display as active. To do this I extended the Category_Navigation Block so it would [...]
I've recently been asked to customise the front page of a magento store. The client wanted the ability to specify a different set of top links depending on whether the customer was logged in or not, and they wanted to be able to changes these links from the admin section. They also wanted the logged [...]
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 [...]
Often you will see SSL warnings or errors related to insecure content being displayed on a secure page. This could be as simple as one javascript file or image that is being included via http rather than https, though some times this can be a bit tricky to track down. The easiest solution is to [...]
Thanks to the acquisition of Magento by eBay, one of the major extension developers, Ess, now has an agreement with eBay/Magento to provide their integration extension free. Here's their site and here's the extension on Magento Connect It's also worth knowing that the extension is avaiable on Magento Go, so if you're looking for hosted-only, [...]
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 [...]