VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Watto on January 15, 2013, 15:53:39 PM

Title: Product details on category page (using accordion)
Post by: Watto on January 15, 2013, 15:53:39 PM
Hi guys,

I'm trying to replicate a site like this one:

http://www.yessian.com/search/ (http://www.yessian.com/search/)

...and I've managed to set it up quite well, using bytelord's code on this page:

http://forum.virtuemart.net/index.php?topic=109953.0 (http://forum.virtuemart.net/index.php?topic=109953.0)

...which puts the product details in a modal lightbox without leaving the category page.

The issue is, I really want the product details to be hidden, and then revealed with a click like on the Yessian page.

Has anyone got any idea how this could be done?  I would think it would be handy for many people if someone can figure it out!

Cheers!

Watto :)
Title: Re: Product details on category page (using accordion)
Post by: Watto on January 16, 2013, 11:54:24 AM
Incidentally, I found this code:

http://css-tricks.com/snippets/javascript/showhide-element/ (http://css-tricks.com/snippets/javascript/showhide-element/)

...which I reckon could be adapted for this.  I'm just not sure how to link it to the product details page and only show that one product's details.

Cheers!

Watto :)
Title: Re: Product details on category page (using accordion)
Post by: Watto on January 16, 2013, 16:52:48 PM
Ok, continuing on the journey!  I've managed to get the long description, custom fields etc into the category page:

http://jamhouse.com.au/newsite/jamtracks (http://jamhouse.com.au/newsite/jamtracks)

...so now I only need to get the black section hidden until the DETAILS button is clicked!  Oh, and my audio plugin isn't working, but I'll search the forums for that one...

Cheers!

Watto :)
Title: Re: Product details on category page (using accordion)
Post by: Watto on January 17, 2013, 03:10:54 AM
46 views, and I'm still talking to myself!  Hehe :)

I've now got the dropdown details working, although I'd prefer for the other products to close when opening one of them.  Not sure if I have the energy to tackle that as well...

http://jamhouse.com.au/newsite/jamtracks (http://jamhouse.com.au/newsite/jamtracks)

Now onto the audio player not working on the category page...