All posts by Eddie May

About Eddie May

Web developer and Magento SEO & Sales Optimisation specialist.

Murdoch, BSkyB, & the “Fit and Proper Person” Test

So, The News of the World (NOW) apologises for breaking the law. Like most who undertake criminal activity, those who apologise are normally sorry for being caught rather than for actually breaking the law.

Its also clear that NOW’s policy now is to admit liability and so prevent full disclosure of who ordered what from being disclosed in court – admitting liability means the court is limited to judging costs rather than investigating guilt. Equally importantly, NOW is also seeking to limit the timeframe (2004-6) and therefore the number of people thought to be involved. By doing so, Rebekah Brooks’ (nee Wade) tenure as editor of NOW would be excluded from the scandal, as Brooks is a key figure (chief executive) in NOW parent company News International. However, the Guardian reports that there are allegations that hacking was undertaken as early as 2002/3 – when Brooks was more fully involved in NOW.

Murdoch, it has been suggested, has known for sometime that his employees were guilty of criminality – his alleged attempt to get the then PM, Gordon Brown, to “cool [the] hacking enquiry” would support this viewpoint if its true. It also raises the important question of how far up the chain of command knowledge and complicity in the criminality went. A further question is how far News International witnesses before the various Commons committees were fully truthful in their claims that hacking was limited to a sole, rogue reporter.

The key consideration for Murdoch of course is the proposed BSkyB acquisition – Jeremy Hunt, the Culture Secretary says this scandal has no bearing upon the decision. Yet, there is surely a consideration now of whether News International can be said to be pass the “fit and proper person” test.  Frankly,  there’s a bad smell surrounding News International – at best its top management is incompetent (if they were really clueless about the extent of the hacking at NOW) or were complicit in sanctioning gross criminality. The law regarding corporate responsibility must also apply in these circumstances – surely executives who connived in, or commissioned, criminality should be prosecuted?

Finally, the NOW hacking scandal reveals an even more troubling conspiracy. It would appear that the phones of Government ministers, of front bench ranking, were hacked. Tessa Jowell was Culture Secretary – hacking her phone is akin to industrial espionage, given her role in decisions over media ownership, for example. There’s also the suggestion the Gordon Brown’s phone was hacked when he was Chancellor – again, industrial espionage at best, at worst an attack on the integrity of the British government and worthy of old style foreign espionage.

The fact that NOW staff had the gall to undertake such action speaks of an organisation that believed itself above the law – indeed, the derisory investigations of the Metropolitan Police would seem to show that the Murdoch gang were indeed above the law, or that the law was in their pocket. If Murdoch did indeed attempt the “nobble” the enquiry via Gordon Brown, that also shows the reach of the Dirty Digger’s empire.

The implications of the NOW scandal are more important than the MP expenses scandal, since it goes to the heart of where political power resides in the UK. Very few MPs could “ask” the PM to nobble such an enquiry, or expect the Met Police to roll over so easily. Indeed, some MPs are facing prison – how many News International executives will do porridge? None!

Joomla Intranet & shared services

I have just completed a Joomla intranet project. Two district councils are embarking upon a programme of “shared services” in an attempt to reduce costs and improve efficiencies.

As part of this programme, these district councils are to share a common intranet, removing the need to renew licences for a propriety content management system. This was part of the reasoning behind the choice of Joomla! to power the intranet. Another reason they chose Joomla! was the belief it would be cheaper than Drupal!

Magento + Highslide

I have a Magento client who wanted the Highslide javascript library integrated in several places on his store. Highslide itself is relatively straightforward to integrate & to customise – it really is an excellent javascript thumbnail viewer library (its actually a lot more than that) & is well documented, with an excellent support forum.

image of highslide popup
Highslide products list page popup

Where I came unstuck was that the client wanted a product popup on the product list page – where all the products are listed. In the popup he wanted the large product image, the title, price & ‘buy’ button.

 

The problem is that with Magento 1.3.2.4 you do not have access to the large product image on the products list page. So I initially developed an ajax call to load the product, its large image & other data, & used the highslide hs.htmlExpand() method to display it. I then encountered the problem that highslide hs.htmlExpand() method has a hard coded (in the css) width – so, while the popup expands to the height of the product, the width is fixed. So, I was having scroll bars on landscape images but portraits were fine. Not acceptable.

Hilde on the Highslide forum suggested I use the hs.expand() method, which takes its height & width from the image itself, and place the title, price, buy button in the “caption” (<div class=”highslide-caption”>) area that can be attached to the popup image. However, that brought me straight back to the original problem that Magento 1.3.2.4 does not make the large image available on the products list page!

image of the Magento products attributes management page
Magento product attributes

However, searching the Magento forums I eventually came across the solution. In Magento, almost everything associated with a product (price, title, images, etc) is an “attribute”. Within the admin system you are able to edit the attributes of these attributes (is it searchable, should it be “used in product listing”!, etc) , but not the attributes of the product images!

 

Changing eav_attribute properties
Changing eav_attribute properties

However, looking at the table “eav_attributes” the main product image can be edited so that it is available on the products list page. You must change the default value of the field “used_in_product_listing” from 0 (false) to 1 (true). Of course, you should backup your database before changing anything like this & always do this on a test system first!

Once this change has been made, you can then access the large product image on the products listing page. Voila! Now I was able to use the hs.expand() method & could abandon my ajax workaround too.

The resulting code in ../template/catalog/products/list.phtml is as follows:
<!--bof photo-->

<div><a href="<?php echo ( $this->helper('catalog/image')->init($_product, 'image'));?>"title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'image'))   ?>"onclick="return hs.expand(this, {showCredits:false,      outlineType:'rounded-white',transitions:{ expand: true},                    wrapperClassName: 'highslide-white-background',                    align:'center'})">

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->constrainOnly(TRUE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(200, 200) ?>" alt="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>" title="<?php echo $this->htmlEscape($this->getImageLabel($_product, 'small_image')) ?>"                 style="text-align:left;" align="left" /></a>

<div class='highslide-caption'><?php echo( $_product->getName());?> <br /> <?php echo $_coreHelper->currency($_product->getPrice()) ?> <?php if ($_product->isSaleable()): ?> <button onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><?php echo $this->__('add to basket') ?></span></button>  <?php endif; ?></div>

</div><!-- eof photo -->

Remember, this is for Magento 1.3.2.4. However, it now means I have a product popup on the products listing page that takes the main product image and scales the popup to the image’s dimensions, without any scroll bars.

Govt Considers Open Source – again

The Guardian recently reported that Bill McCluggage of the Cabinet Office met with ICT suppliers and that he,

emphasised that the government wishes to see the industry offer more solutions based on open source, and listed a number of approaches that it expects it to follow. These include: evaluating open source solutions in all future proposals; including open standards and interoperability as key components in IT systems; and moving towards the use of open source as normal practice.

Will this make a real difference to the SME market? Well, my Leicester web design company is currently working with two district councils implementing a joint intranet using Joomla! They already use Drupal to power their website & plumped for Joomla! for the intranet to save even more money. We’ve also implemented Joomla! websites for a number of Probation Trusts.

So, some local government and public bodies are certainly willing to go down the open source route. But there are compromises that taking this road sometimes entail. Few Open Source content management systems will offer the same level of functionality that the high end enterprise level systems often offer. They can be added, like workflow in Joomla! or snapshots & rollback in Drupal, but these rarely come out of the box.

I recently read a tender document from another district council for a new CMS. Looking at the “Highly Desirable” list of functionality, it had the appearance of a requirements document that was written several years ago, when money was relatively plentiful. It is certainly not a “austerity” shopping list. As it stands, I don’t know of a single Open Source CMS that could meet these requirements “out of the box”. So, this district council will either have to buy a commercial package or pay for someone to heavily customise Plone, Drupal, Joomla or ….. (add your favourite Open Source CMS here). This could even make Open Source as expensive as a proprietary solution to deliver.

Perhaps a better way round now would be to employ someone to investigate what an Open Source CMS can deliver, and then negotiate the requirements in the light of what is available. As part of this process, the people responsible should also employ the red marker pen more judiciously. For example, instead of insisting that the CMS pre-checks content for accessibility before publication, they should ensure that editors are trained to write accessible content (one of the “Highly Desirable” functions referenced above). Technology is always a poor substitute for personal responsibility.

So, Open Source can be a viable option for local and central government, but they need to cut their clothe accordingly. Only then will the SME market stand a chance of delivering cost effective solutions. Otherwise I fear that it will be the big consulting firms who will deliver Open Source to government, with a price tag that benefits only themselves.

Magento – multi currency display

Magento has multi currency capability built in. When it is configured and enabled, your customers will see a currency drop, like in the image below:

Magento multi-currency drop down
Magento multi-currency drop down

Where the currency drop down is displayed is determined by your template.

However, you won’t see the currency select control if you haven’t actually imported your currency exchange rates. You import your currency exchange rates within the Magento administration ui, under System/Manage Currency Rates. There you can use the “Webservicex” webservice, see below:

Magento - manage currency rates
Magento – manage currency rates

Only after these rates have been imported and saved will your customers be able to see the select currency control.

So, if you’ve setup multi-currency within your shop but the currency drop down is not visible on the front end, first make sure that you have actually imported and saved your currency rates.

MatrixRate Premium csv file

Magento – no shipping quote message

This is a common problem that gets raised in the Magento forums. You’re testing your checkout & when you select your shipping or delivery country, Magento responds with the message something like, “No shipping quotes are available for this country…”

This happened to me the other day. So, I checked that the country is question was one of those ‘allowed’ shipping countries, in both the default and store config. Still no joy. So, I then checked that this country was also enabled in the ‘Table Rates’ shipping method, & that this shipping method was enabled – all good but still no joy.

It was then that I twigged that my ‘Table Rates’ csv file was empty! Only after I’d exported my Table Rates csv file did I realise that I had not set up any actual values for the ‘Table Rates’ – doh! Adding these values & then uploading the csv fixed the ‘issue’.

You should also note that if  you ship using “weight vs destination” & the weight of an order is lighter than your minimum shipping weight, then you’ll also get the same ‘error’ message.

Magento Manage CMS Pages Issue

Today I came across a Magento issue I’ve not seen elsewhere – when I clicked on the Mange CMS Page within the admin UI (version 1.3.2.4), I was bounced back to the dashboard rather than the CMS page grid.

After fruitlessly searching the forums I had an idea. Earlier I had attempted to delete a store & shop view.  When you delete a store, you can take a database backup at the same time. For some reason this produced an error (timeout?), so I’d gone into PhpMyAdmin and manually deleted the store_id in the tables ‘cms_store’ & ‘cms_store_group’.

Here was the origin of my CMS page problem – there were references to the deleted store in the following tables, ‘cms_page_store’ & ‘cms_block_store’. Once I’d cleaned these tables up by removing the orphaned store_ids, all was good.

So, there’s a potential little gotcha to look out for.

Ebay + Joomla = trend?

Ebay has announced that it has elected to use the open source Joomla! CMS (content management system) to launch a community portal as part of eBay’s internal analytics platform.

The press release continues, “Known as “community analytics,” the initiative will be accessible by eBay’s 16,400 employees, and will incorporate social aspects of active collaboration, including content creation, sharing and open discussion. Joomla CMS supports eBay’s expansion of community-oriented knowledge sharing and information discovery.”

This announcement of a large corporation electing to use Joomla! follows closely on that of Tesco’s news that it too is using Joomla! to power an employee training application. Tesco hopes that its Academy Online Joomla! application will eventually serve some 400,000 employees worldwide.

Why are two large, multi-national companies selecting Joomla! to power these staff applications? Well, reduced cost is obviously a key factor – cost of development, cost of ownership, opportunity costs, etc, are all reduced when using a widely used and tested open source platform.

Another factor is the number of “off the shelf” extensions available to the Joomla! platform. These again reduce costs and also demonstrate the potential of the platform.

A final factor may be that business is finally ‘getting’ open source. And as one big name after another chooses the platform, it makes it easier for others to do the same.

However, has the public sector ‘got’ open source yet? Sometime ago my suggestion that a county council should use Joomla! to power its intranet was laughed off by their intranet project manager, with the response that Joomla! was fine for ‘mom & pop’ websites but not for something as ‘mission critical’ as the council’s intranet. It seems Tesco & Ebay know something this individual didn’t.

Recently though, we have been involved in exploratory discussions with a British public sector organisation to provide shared services for regional staff using Joomla! as the platform. Still early days but the promise to improve on their existing situation while reducing costs has certainly got their interest. So, it may just be that circumstances are forcing open source onto the public sector agenda.