can't Send email and print on product detail with new version

Started by TAIWAR, October 16, 2013, 11:45:12 AM

Previous topic - Next topic

TAIWAR

I enable pdf, print and email for product.
with new version VM 2024 I can't send email and print or now, there is new popup for the same page of my product..




TAIWAR

In fact I try again with no ovveride the file on my template and replace the code

Edit: /components/com_virtuemart/helpers/vmview.php

if ($modal) return '<a class="modal" rel="{handler: \'iframe\', size: {x: 700, y: 550}}" title="'. JText::_($altText).'" href="'.JRoute::_($link).'">'.$text.'</a>';
      else       return '<a title="'. JText::_($altText).'" href="'.JRoute::_($link).'">'.$text.'</a>';

by :
if ($modal)
      {
         if($boutonName == 'printButton' && isset($_REQUEST['print']))
         {
            $js = "
               window.addEvent('domready', function(){
                  window.print();
               });
            ";
            $doc = JFactory::getDocument();
            $doc->addScriptDeclaration( $js );
            return '<a title="'. JText::_($altText).'" href="javascript:void(0)" onclick="javascript:window.print(); return false;">'.$text.'</a>';
         }
         else if($boutonName != 'printButton' && isset($_REQUEST['print']))
            return '';
         else
            return '<a class="modal" rel="{handler: \'iframe\', size: {x: 700, y: 550}}" title="'. JText::_($altText).'" href="'.JRoute::_($link).'">'.$text.'</a>';         
      }   
      else       return '<a title="'. JText::_($altText).'" href="'.JRoute::_($link).'">'.$text.'</a>';

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/