VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: liquid.ideas on September 02, 2013, 10:02:18 AM

Title: Customized Product Details in Lightbox
Post by: liquid.ideas on September 02, 2013, 10:02:18 AM
Morning Guys,

I'm sure the question has been asked and answered but I cannot seem to find it in the forums so here goes.

I would like to have a custom lightbox that comes up when you click the product image in the category view, I would say it would be done much like this:

<div class="clear"></div>
<a class="product-details modal" rel="Lightbox" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETA 


That is what I used for a product details button, but the problem is that the lightbox brings up the whole of the custom product details page, is there a way to do this that you can only call up the product image and description, like productdetails/default_simple.php without the add to cart etc etc?

Any help would be greatly appreciated!
Title: Re: Customized Product Details in Lightbox
Post by: jenkinhill on September 02, 2013, 15:53:25 PM
http://forum.virtuemart.net/index.php?topic=110700
Title: Re: Customized Product Details in Lightbox
Post by: liquid.ideas on September 03, 2013, 20:01:17 PM
Mmmm R721.60 seems a bit steep if only wanting to use one piece of that component. Thanks anyway jenkinhill
Title: Re: Customized Product Details in Lightbox
Post by: liquid.ideas on September 03, 2013, 20:27:29 PM
My very ugly workaround (in case anyone needs it):

Add a css sheet to component.php, in that sheet I used a couple of {display:none;} 's to hide all the excess content. Just for now. Will let you guys know when I come up with a proper solution.