Lujo produce luxury hammocks and bean bags that are made in New Zealand, but sold worldwide.
I developed this site using the HTML/CSS templates provided by Benek. I took those templates and integrated them into the Magento e-commerce platform.
There are actually three versions of this website aimed at different geographical markets. I used PHP’s built-in GeoIP functions to determine which domain a visitor should be redirected to. Once landed, a second GeoIP call is made to set the default currency that the store runs under. This was new territory for me, so it was great to be given the chance to use it in a production environment, and to get Magento to play nicely with it too.
Another aspect of this project was how to group the product photos the way that the design had been done, as Magento does not have this concept when adding images to a product. For the hammocks and bean bags, I used the configurable product to house all the feature and model photos, and used the associated products to house the individual colour shots. I then call these out in two separate functions. For the designer head pillows, I pattern match on the image label to know which head pillow goes with which hammock colour, and wrote a function to loop through each one. Regular expressions where also used in order to show the correct image in the main viewer based on what configurable options the user had chosen.
The MailChimp API was also used to store newsletter and e-brochure requests from the different sites.