Problem with a button creation

More
8 years 10 months ago #82173 by Luigi
Problem with a button creation was created by Luigi
Good morning at all community,
I've a big problem to create a button for invoice printing after i complete the order. The page is
com_eshop/themes/default/views/checkout/complete.php

I've insert the following code to the button to create a print page:

<?php
$order = $this->orderInfor ;
$orderId = JRequest::getInt('order_id');
$utente = JFactory::getUser();
?>
<a class="btn btn-primary" href="<?php echo JRoute::_('index.php?option=com_eshop&task=customer.downloadInvoice&id='.intval($order->id).'&customer_id='.intval($utente->get('id'))); ?>" title="<?php echo JText::_('ESHOP_DOWNLOAD'); ?>"><?php echo JText::_('ESHOP_DOWNLOAD_INVOICE'); ?></a>

Please help me

Please Log in or Create an account to join the conversation.

Moderators: Giang Dinh Truong