PDF invoice basic with jQuery and a PDF desktop printer

Mehr
8 Jahre 9 Monate her - 8 Jahre 9 Monate her #739 von Simpel
Hi all,

Hook Tab

<li><?php echo \'<a href=\"\' . substr(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params()), strlen($base_url)) . \'#section_documents\">Documents</a>\'; ?></li>


Hook DIV and minimal scripts

<div id=\"section_documents\" style=\"padding: 10px;\">
<a class=\"orderDoc\" href=\"invoice.php?oID=<?php echo $oID; ?>\">Invoice</a><br />
<a class=\"orderDoc\" href=\"packingslip.php?oID=<?php echo $oID; ?>\">Packingslip</a><br />
<a href=\"#\" id=\"hrefPrint\">Print</a>
<div id=\"document_content\">Click document link pages</div>
</div>
<script>
$(document).ready(function(){
$(\'a.orderDoc\').click(function(e){
e.preventDefault();
$(\"#document_content\").load($(this).attr(\'href\'));
});

$(\'#hrefPrint\').click(function(e){
e.preventDefault();
w=window.open(null, \'Print_Page\', \'scrollbars=yes\');
w.document.write(jQuery(\'#document_content\').html());
w.document.close();
w.print();
});
});
</script>


Desktop PDF printer

Desktop PDF printer
Letzte Änderung: 8 Jahre 9 Monate her von Simpel.

Bitte Anmelden um der Konversation beizutreten.

Ladezeit der Seite: 0.224 Sekunden
Events Joomla
MarvikShop
Finnaly it's here:
 
No bridges, no look a likes!
This is the ultimate integration
between Oscommerce and Joomla!
Documentation
Site Showcase
Follow us

Joomla!-Debug-Konsole

Sitzung

Profil zum Laufzeitverhalten

Speichernutzung

Datenbankabfragen