VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: v_jian on March 25, 2012, 00:04:02 AM

Title: Ask a question about this product is not opening in shadowbox
Post by: v_jian on March 25, 2012, 00:04:02 AM
Hi

I am using Joomla 1.7 and VirtueMart 2.0.2, also I tried with Joomla 2.5 too.

I have problem with "Ask a question about this product" 's Button, however the photo and email link are opening in shadow box.
also it is opening in the parent windows and close button also is not functioning.
any solution?

Thanks
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: mosdata on May 02, 2012, 00:30:35 AM
Hi, I have de same problem. I´m using joomla 2.5.4, VM 2.0.6 and a JoomlArt template (JA_puresite).

Please help!!!

Title: Re: Ask a question about this product is not opening in shadowbox
Post by: mosdata on May 08, 2012, 00:33:22 AM
any idea?
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: jenkinhill on May 08, 2012, 09:20:41 AM
It will most likely be a JavaScript conflict with your template of some other module/component, but not possible to be sure without a url. See http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: mosdata on May 08, 2012, 21:58:58 PM
Si. I think so.

But it is strange that the print button on the product detail work properly.
Also works ok when you click on the image if we are seeing a product category.

I pass the link if you think of something.

http://www.perfumeriafuego.com.ar/web/index.php/fragancias-femeninas

Thank you!
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: mosdata on May 09, 2012, 15:07:34 PM
The solution:

components\com_virtuemart\views\productdetails\tmpl\default.php

line 219

<a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
<!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 610, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->

change to

<!--<a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->
<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 610, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>

Jenkinhill could check if it is correct?

I hope it serves the contribution. regards
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: jenkinhill on May 09, 2012, 16:07:44 PM
The code I have in productdetails/default.php (on VM2.0.7a) is:

<div class="ask-a-question">
              <a class="ask-a-question" href="<?php echo $url ?>" ><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>
              <!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $url ?>"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_ENQUIRY_LBL') ?></a>-->
          </div>

This works OK for me, but your code obviously works for you.

If you are altering the view template be sure to use a template override.  http://forum.virtuemart.net/index.php?topic=90935.0
Title: Re: Ask a question about this product is not opening in shadowbox
Post by: mosdata on May 09, 2012, 19:01:56 PM
Ok, thanks Kelvyn!