Jan 30, 2012 ·
2 minute read
plesk
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 →
Jan 23, 2012 ·
1 minute read
php
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; }
Jan 23, 2012 ·
1 minute read
magento
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 →
Jan 23, 2012 ·
1 minute read
magento
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
Jan 21, 2012 ·
2 minute read
magento
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 →
Jan 20, 2012 ·
1 minute read
magento
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.