Hi,
You can add something like this to product/show_default view:
<a class="print_button" onclick="return window.hikashop.openBox(this,null,false);" href="<?php echo JURI::current(); ?>?tmpl=component&print=1" rel="{handler: 'iframe', size: {x: 580, y: 590}}" title="<?php echo JText::_('HIKA_PRINT');?>"><i class='fa fa-print'></i></a>
And add this to your template component.php file:
<?php
if($_GET['print'] == "1") { ?>
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo JURI::base(); ?>templates/<?php echo $this->template ?>/css/print.css" type="text/css" />
</head>
<?php }?>
And create print.css file to your template css folder so you could customize this print view with css...
All depends on your template and configuration.
You also need in the file "components/com_hikashop/views/product/view.html.php" at the beginning of the function "show()" add this code :
$print = JRequest::getVar('print','');
if($print){
$js = "do_nothing( function() {setTimeout(function(){window.focus();window.print();setTimeout(function(){hikashop.closeBox();}, 1000);},1000);});";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration("\n<!--\n".$js."\n//-->\n");
//JHTML::script('mootools.js', JURI::base(true) .'media/system/js/');
if(!HIKASHOP_J30)
JHTML::_('behavior.mootools');
else
JHTML::_('behavior.framework');
}
As per this topic:
www.hikashop.com/forum/4-how-to/71556-ad...p-social-plugin.html
Hope this helps.
Regards