Create print invoice button on complete order page

More
7 years 11 months ago #82054 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.

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
7 years 11 months ago #82181 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Create print invoice button on complete order page
Hello Luigi,

We don't support to place the print invoice button there. Why do you need that why customer got the notification email with the attached invoice there?

Sincerely, Giang

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

More
7 years 11 months ago #82189 by Luigi
The problem is that the component eshop it was adapted on a web site that use multiple user that generate the order and need for this user to print an invoice immediately if need in the order review when accept the order.
Please if you can help me....

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

More
7 years 11 months ago #82261 by Luigi
Anybody there for an help please?

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

Moderators: Giang Dinh Truong