Take Windows with you …

  … but feel free to come back” HTC dropped by today as expected to give us the world-wind tour of the HTC HD2 Windows Mobile Smartphone. Given I’m a Nokia fanboy, it was a hard sale, but I have to say I was pleasantly impressed. If not a bit iPhone-esque with its pinch zooming and kinetic scrolling, it worked well and didn’t feel slow or laggy at all. But given its 1GHz CPU – I should hope not! The photos were also particularly impressive with its touch-focus and 5MP camera. But who cares about the phone … what goodies did we get? Well, we can’t deny that bribery is the preferred method of business, and with food as the currency – you can’t go wrong with our team. Today’s bizarre gift from HTC was a Windows Mobile battenburg cake (featured left) – which I have to admit, was pretty … Continue reading

You are invited to see the new HTC HD2 …

… well, you aren’t, but we are! HTC got in touch last week via Kreate Sales Promotion Consultants to offer Sonassi a promotional day to demonstrate the new features of the HTC HD2. We are eagerly waiting for the 30th March to see what the new handset has to offer. We got sent out some promotional goodie bags with HTC branded noodles to complement the forthcoming event, don’t worry – we are equally confused as you are, we can’t see the link between phone and noodles – but who cares, they have become the new in-house currency in Sonassi. the HD2   HTC HD2 delivers an experience your senses have been waiting for. The unprecedented 4.3-inch pixel-packed display is stunning. The world’s first capacitive touch technology on a Windows® phone along with 1 GHz processing power ensure a smooth and lightning-fast response to the lightest touch of your finger. Most … Continue reading

Magento NOCHEX extension faults and fixes

A customer of ours had opted to use Nochex as their payment gateway of choice for their most recent build – so we grabbed an existing extension to facilitate it. However, it seemed the Luxe Nochex extension was buggy (just like the Magento Paypoint gateway we tried). We didn’t have time to wait for the authors of the software, so a quick fix was in order. The APC automatic payment confirmation (Nochex’s equivalent to Paypal’s IPN) was not posting the correct information to be validated. Looking at ./app/code/local/Luxe/Nochex/controllers/NochexController.php, we found a flaw in the CURL options. To fix it, around line 79 – we commented out their code (for clarity) and added in the following lines curl_setopt($ch, CURLOPT_URL, "https://www.nochex.com/nochex.dll/apc/apc"); # curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); # curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); # curl_setopt($ch, CURLOPT_POSTFIELDS, $request_vars); curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, $request_vars); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt ($ch, CURLOPT_TIMEOUT, 60); curl_setopt ($ch, CURLOPT_SSLVERSION, … Continue reading

Dependant layered navigation filters in Magento

Although not the best method, we wrote a quick and easy means to remove layered navigation filters that are dependant on other filters being enabled. This code should really be in the block and popped into an extension – with the attributes administrable via the backend, but for the purposes of this tutorial – we are just going to hardcode it into the template and let you decide how you want to improve it. 1   Open ./app/design/frontend/default/default/template/catalogue/layer/view.phtml 2   Add <?php /*Create filter dependencies*/ $_activeFilters[] = array(); $_filters = Mage::getSingleton(‘Mage_Catalog_Block_Layer_State’)->getActiveFilters(); $_depends = array( "fits product" => array("product manufacturer") ); foreach ($_filters as $_filter): $_activeFilters[] = strtolower($_filter->getName()); endforeach; ?> just before 3   Replace the contents of <dl id="narrow-by-list"> … </dl> with <?php $_filters = $this->getFilters() ?> <?php foreach ($_filters as $_filter): ?> <?php if($_filter->getItemsCount()): ?> <?php /*Hide filters whose dependencies are not enabled*/ $_showFilter = true; if(isset($_depends[strtolower($_filter->getName())])): $_filterDepends = … Continue reading