O'Reilly logo

Joomla! VirtueMart 1.1 Theme and Template Design by Joseph Kwan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

More fun with advanced attributes

In Chapter 4, Product Details Templates, we worked on an exercise to use a radio button instead of the drop-down box for displaying the advanced attribute. The change was done by customizing the addtocart_advanced_attribute.tpl.php template. We can further customize the template to provide a lot more possibilities. In the following exercise, we will supplement the radio button with images.

Exercise 10.5: Showing advanced attributes as image radio button

In this exercise, we will modify the advanced attribute template to show the attribute as a list of radio buttons which include images in addition to text labels. We will also add an onclick event handler to change the product image to synchronize with the radio ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required