Customise Top Ten Module Virtuemart

Recently I worked on a project for a client and they wanted to customise their “Best Sellers” or Top Ten Modules appearance. The design came back with a product image, product price and a link to the product details. To achieve this in Virtuemart is not overly hard however it does have its inherit draw backs. Some include the fact you cannot have multiple module positions on your site for the top ten module. Instead you have to do the design for the one width / position then work your to the final product from there. This of course is for Joomla 1.5.x and Virtuemart 1.1.x. If you need a similar solution for older versions I will not be able to help as you should be upgrading your virtuemart store to the latest version along with your Joomla Install.

The problem I faced was that not one person had the knowledge or could be bothered to give a complete solution. This issue took a couple of days to work out a solution but once I had it nutted out it put me on easy street for the rest of the development. Anyway attached below is the code you need to achieve the desired outcome of what my client needed for their site. If you need help with it let  me know by posting a comment.

If you would like a copy of the code to try you can get it by clicking here.