order ID on invoice pdf plugin

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
1 month 1 week ago #364523

-- url of the page with the problem -- : www.ubuntushop.biz
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 5.1
-- PHP version -- : 8.3

How to put order ID on the invoice pdf plugin?
Or invoice number for mollie transaction description
Payments with mollie payment plugin only records the hikashop order ID.
Accountants needs to see mollie payments according invoice number.

Last edit: 1 month 1 week ago by duportail.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
1 month 1 week ago #364525

Hi,

In the settings page of the PDF invoice plugin, you have a setting to select the layout to be used for the invoice.
Each one corresponds to a file in the folder plugins/hikashop/attachinvoice/attachinvoice/
So you can access that folder via FTP, and copy the file corresponding to the invoice you're using to the folder media/com_hikashop/plugins/
Then, you can edit that layout copy which will act as an override of the default layout file.
There, you should find the line:

<div class="invoicetitle"><?php echo $number.$order->order_invoice_number; ?></div>
Which adds the invoice number to the invoice.
So you can add a similar line for the order id. For example:
<div class="invoicetitle">Order id:<?php echo $order->order_id; ?></div>

Note that the Mollie plugin on our website is developed by SkySpider ( skyspider.com.au/#contact ) so you should contact him directly regarding your second question. However, if I'm not mistaken, the plugin should change the status of the order from "created" to "confirmed" after the payment is received (and that's how you know, on HikaShop's side, whether an order is paid or not). And the invoice number is generated when the order is confirmed.
So the workflow should be: checkout -> order created -> plugin sends the information about the order to Mollie -> payment is made -> order is confirmed -> invoice number is generated.
So, it should be impossible for the plugin to provide the invoice number to Mollie as the invoice doesn't yet exist.

Last edit: 1 month 1 week ago by nicolas.

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

  • Posts: 28
  • Thank you received: 1
  • Hikashop Business
1 month 1 week ago #364531

Thanks, I was able to get order id on the invoice.
Correct, mollie cannot get invoice number because this is not created yet.
Accounting can now view order id on invoice wich will link to mollie payment order id.

Last edit: 1 month 1 week ago by duportail.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum