The random eclecticisms of loonytoons

Posts Tagged "Coding"

Add structured data to your html content

Structured data markup for html has been around for a while, but it can be confusing and isn’t always seen as a priority to implement. Its usage by the big search engines and other organisations is only going to increase though, so it’s well worth getting your head around...

Read more

Magento – product zoom for tall thin images

Current version : 1.4.2.0 While reworking a 1.3.2.3 magento template to work for magento 1.4, I had an issue on a product page where a tall thin image was not being resized correctly by the product zoom javascript. The script seemed to think that the image was small enough...

Read more

Magento payment broken continue button

Current magento version: 1.4.1.1 We recently upgraded a magento site to version 1.4.1.1 as part of moving the site to a new server. Everything seemed to run smoothly with no issues, job done. However it didn’t take long for  the customer to ring up – ‘My site’s broken, no...

Read more

jQuery slideToggle and ie7

I had an interesting issue where in ie7, the element that I was displaying using the jQuery slideToggle function, would seem to jump out of place once the animation had finished. As I was displaying a list, I first assumed that in ie7 the element was adding in the...

Read more

PHP Rounding Issue

So today I came across a wierd rounding issue in PHP, where the round function was just not returning the result that I was expecting. It seemed to be rounding the value down rather than up. Passing a float value of 14.875 (generated by a multiplier calculation) I was...

Read more

Coding standards

First off let me apologise if this turns into a little bit of a rant from me but this is a pet topic of mine so I could be liable to  go off on one. I’ve also just been working on a project that has had me running into...

Read more

Magento – changing the root folder after install

Current magento version – 1.3.2.4 I’m guessing that quite a few people will have done what I did when I initially set up Magento, which was to just move the magento folder into my required document root and then go in and run the installer. Logically all the files...

Read more

Magento – using jQuery

Current magento version – 1.3.2.4 jQuery is my favoured javascript library. It is the one I use most so it’s familiar and I can develop quickly with it. Magento however relies heavily on a mix of prototype, scriptalicious and their own varien scripts, none of which I’m familiar with...

Read more

Magento – url functions

Current magento version – 1.3.2.4 Magento had some very handy functions that easily allow you to find some fundamental urls of your site from your phtml files so you can avoid hardcoding them. These are: $this->getBaseUrl() – returns the base url of your store (funnily enough) $this->getSkinUrl() – returns...

Read more

Introduction to Magento

Current magento version – 1.3.2.4 This is a very brief introduction to Magento, a powerful php based open-source e-commerce platform. I am currently working on my first ever Magento project, and given the flexibilty and complexity of Magento and it’s code base, it seems a good idea to write...

Read more

1 2