VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: TAIWAR on October 16, 2013, 11:45:12 AM

Title: can't Send email and print on product detail with new version
Post by: TAIWAR on October 16, 2013, 11:45:12 AM
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..
Title: Re: can't Send email and print on product detail with new version
Post by: TAIWAR on October 22, 2013, 11:02:04 AM
help please...
Title: Re: can't Send email and print on product detail with new version
Post by: TAIWAR on October 28, 2013, 22:19:21 PM
NOBODY  :(  ????? help please
Title: Re: can't Send email and print on product detail with new version
Post by: TAIWAR on October 29, 2013, 16:58:34 PM
http://forum.virtuemart.net/index.php?topic=102811.0
I Try this for print but doesn't change for me..
Title: Re: can't Send email and print on product detail with new version
Post by: TAIWAR on October 31, 2013, 11:49:16 AM
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>';
Title: Re: can't Send email and print on product detail with new version
Post by: Milbo on November 01, 2013, 15:28:06 PM
sry, and thx.

My solution is here http://forum.virtuemart.net/index.php?topic=102811.msg408480#msg408480