News:

Looking for documentation? Take a look on our wiki

Main Menu

Ask a question about this product is not opening in shadowbox

Started by v_jian, March 25, 2012, 00:04:02 AM

Previous topic - Next topic

v_jian

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

mosdata

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!!!



jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

mosdata

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!

mosdata

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

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum