- Posts: 88
- Thank you received: 9
order ID on invoice pdf plugin
1 year 10 months ago - 1 year 10 months ago #364523
by duportail
order ID on invoice pdf plugin was created by duportail
-- 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.
-- 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 year 10 months ago by duportail.
Please Log in or Create an account to join the conversation.
1 year 10 months ago - 1 year 10 months ago #364525
by nicolas
Replied by nicolas on topic order ID on invoice pdf plugin
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:
Which adds the invoice number to the invoice.
So you can add a similar line for the order id. For example:
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.
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:
Code:
<div class="invoicetitle"><?php echo $number.$order->order_invoice_number; ?></div>
So you can add a similar line for the order id. For example:
Code:
<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 year 10 months ago by nicolas.
Please Log in or Create an account to join the conversation.
1 year 10 months ago - 1 year 10 months ago #364531
by duportail
Replied by duportail on topic order ID on invoice pdf plugin
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.
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 year 10 months ago by duportail.
Please Log in or Create an account to join the conversation.
Time to create page: 0.290 seconds