Latest Entries

iClothing Ireland

Launched iClothing.ie this weekend: iClothing.ie

iClothing is a young and vibrant company dedicated in providing the latest high street women’s fashion for less.

Sorting products by latest in Magento 1.4

Change line 119 in App/Code/Core/Mage/Catalog/Block/Product/List/Toolbar.php

from:

protected $_direction = 'asc';

to:

protected $_direction = 'desc';

Note: upgrades will overwrite this change!

Next / Prev mangento navigation

<div id="product-navigation">
<?php
/**
* Determine the previous/next link and link to current category
*/
$_ccat = $this->helper('catalog/data')->getCategory();
$ppos = $_ccat->getProductsPosition();
$current_pid = $this->helper('catalog/data')->getProduct()->getId();
// build array from products positions
$plist = array();
foreach ($ppos as $pid => $pos) {
$plist[] = $pid;
}
$curpos = array_search($current_pid, $plist);
// get link for prev product
$previd = isset($plist[$curpos+1])? $plist[$curpos+1] : $current_pid;
$product = Mage::getModel('catalog/product')->load($previd);
$prevpos = $curpos;
while (!$product->isVisibleInCatalog()) {
$prevpos += 1;
$nextid = isset($plist[$prevpos])? $plist[$prevpos] : $current_pid;
$product = Mage::getModel('catalog/product')->load($nextid);
}
$next_url = $product->getProductUrl();
// get link for next product
$nextid = isset($plist[$curpos-1])? $plist[$curpos-1] : $current_pid;
$product = Mage::getModel('catalog/product')->load($nextid);
$nextpos = $curpos;
while (!$product->isVisibleInCatalog()) {
$nextpos -= 1;
$nextid = isset($plist[$nextpos])? $plist[$nextpos] : $current_pid;
$product = Mage::getModel('catalog/product')->load($nextid);
}
$prev_url = $product->getProductUrl();
// get link for current category
$more_url = $_ccat->getUrl();
?>
<table class="nextprev">
<tr>
<td style="text-align:left;"> </td>
<td style="text-align:center;">
</td>
<td style="text-align:right;">
</td>
</tr>
</table>
</div>

Zoomable Photo Mosaic

Photo Mosaic

I have created a photo mosaic using images from my travels. The base resolution of the entire mosaic is 9500 x 9962 pixels (with the source image being 19.3MB). The image was converted into the Deep Zoom Image format (a tile set of 256 x 256 images at various resolutions). The OpenZoom Endo project was used to create the tile set and the viewer is the Flash version of the OpenZoom client with failover to an Ajax viewer.

Click the image to view the Mosaic.

Controls:

Zoom in: Mouse Scroll or +

Zoom out: Mouse Scroll or -

Pan Left: Mouse Drag or Left arrow key

Pan Right: Mouse Drag or Right arrow key

Pan Down: Mouse Drag or Down arrow key

Pan Up: Mouse Drag or Up arrow key

My old Golf MKV

An artsy shot of my old Golf MKV 1.4 Petrol with fully tinted windows, V2 of my car computer system with touchscreen interface. Sound was powered by a Kenwood KDC-W5031 Head Unit located in a custom dash mount.


biggie


roadrunner main menu at night


roadrunner music player – visualiser mode


setup complete !


family guy playing. pic also shows location of remote control for head-unit