How To Extract Files from Plesk Backups

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 sudo apt-get install mpack Let’s imagine your file is called “pleskDump.gz”. If it doesn’t have a “.gz” at the end it might not be bad to add it as some environments will complain if it’s absent. Read On →

PHP Force Download with Custom Filename

If you want to serve up text files for download (perhaps product feeds etc) then you might like this little snippet. Not only will it force the file to be downloaded but it allows you to specify a custom filename that it should be saved as. if(isset($_GET['download_file'])){ header("Content-type: application/octet-stream"); header("Content-Disposition: attachment; filename=Export.txt"); readfile('Export.txt'); die; }

Magento 2 - Key Points for Developers!

The first development release of Magento 2 has a few areas worthy of note for developers of the coming changes to Magento. Magento 2 now requires PHP 5.3 Zend is still version 1.11.1. Magento 2 now implements templates on a per modules basis. So now all the different bits of the theme are separated into the modules it belongs to. This means that any existing version 1 theme cannot be dropped into version 2. Read On →

Magento 2 Source Code Available on GitHub

Magento version two is coming. For those of us who are eagerly awaiting the next major version of the most popular and powerful open source e-commerce platform, you can now see, track and download the code on GitHub. Not had chance to have an in depth look as yet but we expect great things! https://github.com/magento/magento2

Adding Confirm E-mail Address Field to Magento Frontend Forms

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 found in app/design/frontend/default//template/checkout/onepage 2. Add code 1 below where situable; Code 1 <div class="field"> <label for="billing:confirm_email" class="required"><em>*</em><?php echo $this->__('Confirm Email Address') ?></label> <div class="input-box"> <input type="text" name="billing[confirm_email]" title="<?php echo $this->__('Confirm Email') ?>" id="billing:confirm_email" class="input-text required-entry validate-cemail" /> </div> For the validation of this email confirmation field with the actual email field 3. Read On →

Magento Custom Product Type as Configurable Product

If you have created a new product type and need to enable it to be included with configurable products you need to let Magento know that it should allow your product type to work with configurable products. To do this open your config xml and add the following xml. <config> <global> <catalog> <product> <type> <configurable translate="label" module="catalog"> <allow_product_types> <custom_type_name/> </allow_product_types> </configurable> </type> </product> </catalog> </global> </config> This tells Magento to include your product type for use with configurable products.