Witty and insightful observations on the world? Sorry to disappoint, this is a techie blog purely for self reference - published online in the hope it will help others!

CSS Transitions on BBC Style Scroller

Seems like ages since I did a blog post so I'm going to ease myself into it gently with a quick one about CSS and a slider. So I am building a custom Wordpress site at the moment on behalf of The Loft up in Glasgow for a financial services company. I won't say who at the moment but I'll come back and Add a link when it's done. There is going to be an HTML5 animated splash page a bit like the Apple one that they did when they won the rights to sell the Beatles back catalogue on iTunes. It will also have a BBC style homepage slider that couples some aspects of the Goldman Sachs slider ... Read more

Magento – displaying a custom attribute in a static block

Here's the scenario: I have used Template Master Easy Tabs in my Magento installation, it's working fine. I'm also using the Red Stage 'Shipping Price Per Product' extension so that the products can have their delivery individually priced (it's handmade hardwood furniture, so it need shipped by a removals firm rather than a courier/ delviery company). So there's a custom attribute called 'shipping_price' which is added to the default attribute set, and set to be able to be displayed on the front end. Easy tabs is very good, there is a section specifically allowing you to add an specified attribute to one of the tabs. There's also a different section allowing you to ... Read more

Magneto Fishpig – Adding Blog Categories to top level nav

The Magento Fishpig extension is great, but in fully integrated mode it's not that easy to use - put it this way, you have to be a lot better at Magento than at Wordpress to get it all working. Let's say you want more than one of the top level Magento navigation items to link to a blog category. Lets assume that you've set up your Magento navigation, and you have pointed two of the main links to Magento CMS pages 'testimonials' and 'news'. You can refer to this post for more info on that. You would create categories in the Wordpress installation for Testimonials and News and ... Read more

Script management via local.xml and Design tab

OK, I decided to write this post because it pulls together some useful information from disparate sources (Google, the Magento Boards and Stackoverflow) which when put together should be a useful resource. So the topic - how you make sure that Magento only includes certain scripts on specific CMS pages, or all CMS Pages, or removes them from the checkout pages etc etc. First of all - why would you want to do this? Well the immediate answer is for efficiency reasons. If only your contact page uses the Google Maps API script then why would you load it in every other page, the user might not even view the contact page. Similarly for more chunky scripts ... Read more

‘Email a Friend’ link outwith product view in Magento

How to add an 'Email a Friend' link to the footer.phtml template in Magento. This is well worth a blog post - for the simple reason that despite searching extensively on Google, I came up with very little. One of those areas where the results for searches like 'Magento email friend in cms page' and such like just threw up loads of results relating to people not able to get Magento to send out any emails at all. First of all the code that would normally be used in the product view.phtml template to allow the user to send a link to the product via email would be; Read more

New Site Launched

No blog can be without the obligatory 'New Site launched' post. Maybe I should do as many clients do - I'll delete all the other posts in this blog and just have this one, advertising the new blog. Leave it there for two years on it's ownsome talking about all the upcoming news and activity which never happened. Incidentally - if you are a client with an empty, tumbleweed strewn blog, and if you can't find the time to write and optimise your posts...stop being mean and hire a copy writer to do it for you. It might cost you less than you think and you'll have properly written material, which has been carefully thought out and properly optimised. ... Read more

@font-face on Android

First there was the smiley face hack, then came Mo' Bulletproof. The latest incarnation of 'How to get @font-face declarations working across all browsers' doesn't have a cool moniker as far as I'm aware, but here's some gen on how to go about it. First of all, this one will work fine - but not on Android devices; @font-face { font-family: 'Din'; src: url('../fonts/din_eng_webfont.eot'); src: url('../fonts/din_eng_webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/din_eng_webfont.woff') format('woff'), url('../fonts/din_eng_webfont.ttf') format('truetype'), url('../fonts/din_eng_webfont.svg#Din') format('svg'); font-weight: normal; ... Read more

Custom Attribute Tab in Magento Easy Tabs

This is a post to pull together info from a whole bunch of different threads and sources (Magento boards, Stackoverflow and some other random blogs I found). Template Master Easy Tabs are quite widely used in Magento installations (30K+ downloads, I see from Magento Connect). It's a good free module that allows you to control and customise the tabbed collateral information section on a Magento product view page. You can active the standard Magento tabs - description, additional, tags, reviews etc. You can also add custom tabs listing a specific attribute, this is handy is you have a text area attribute such as 'Features' that allows the client to add in a list of free-form bullet points. There is also ... Read more

Magento Analytics Conversion Tracking

When you do e-commerce sites it's pretty obvious how to track your conversions - they will appear in sales in the Dashboard! However, sometimes you also get asked to add Google Analytics conversion tracking code just because the client wants all their statistics in one place. So the analytics guy will send through a request asking you to place a specific piece of code on the successful transaction 'Thank You' page. Very easy to do. You need to add an new before_body_end block in the one_page_checkout_success section of checkout.xml in your layouts folder. One Page Checkout Success ... Read more

Adding a ‘New Product’ icon in Magento for new products

This is actually quick and easy but if you are new to Magento custom attributes you might struggle to work out how to set things up and then access the value of your attribute on the front end. What I am talking about here is setting up a flag for the product, if it's set to 'Yes' (ie the product is a new product) then a little icon or banner appears in the corner of the image. Like this; So, first things first. You need to set up a new Attribute in Catalogue -> Attributes -> Manage Attributes . Set is as a boolean, give it an id of new_product. ... Read more