News:

Looking for documentation? Take a look on our wiki

Main Menu

Show pop-up window using custom button in product details (Fancybox)

Started by martian474, May 30, 2014, 06:46:07 AM

Previous topic - Next topic

martian474

Hi,

I want to add  a button or a anchor tag name "view chart" in product details. If i click the button/anchor tag it will display a specific custom html(module)/template in a pop-up form like the "ask a question about this product" do. How can I do it?

source file: com_virtuemart/productdetails/default.php

Thank you!

skhn123

well i have done something like this, i used this code to display a k2 article in product details page:

<a href="<?php echo 'index.php?tmpl=component&option=com_k2&view=item&id=258'.$this->item->id.':'.$this->item->alias?>"  class="modal" rel="{handler:'iframe',size:{x:600,y:320}}">Sizing Information</a>

see screenshot.

[attachment cleanup by admin]