Skip to main content

Attached PDF Invoice plugin

More
9 years 6 months ago - 9 years 6 months ago #265763 by Lumiga
-- url of the page with the problem -- :
-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 7

Hi supportteam,

Ik like to place the date in a table on the same height as the store address but the date doesn't show up.
It's the same code as below but in a table it doesn't work anaymore.

Do you know how to fix this?

Kind regards,
Lumiga


Kind regards,
Lumiga
Last edit: 9 years 6 months ago by Lumiga.

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

More
9 years 6 months ago #265764 by Jerome
Replied by Jerome on topic Attached PDF Invoice plugin
Hello,

Please take a further look at the code ; you will see some interesting code around the line 70.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

More
9 years 6 months ago #265969 by Lumiga
Replied by Lumiga on topic Attached PDF Invoice plugin
Hi Jerome,

I like puzzles ;-)

But I don't know what you mean. Around line 70 has something to do with the invoice number. Right?
But that's another question (ticket) which is clear to me now, but in this case I don't know why there is no date showing up when I put the same code as below into a table at the top.

Hope you can help me or give me another hint.

Kind regards,
Lumiga

Kind regards,
Lumiga

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

More
9 years 6 months ago - 9 years 6 months ago #265972 by Lumiga
Replied by Lumiga on topic Attached PDF Invoice plugin
Sorry, it's working now ;-)

So it's only showing up the date when your order is confirmed. Am I Right?
But the I am curious why the date below the invoice number or is showing up when the order wasn't confirmed yet.

But anyway 'the invoice is only send and create after a order is confirmed so I'm happy now.

Kind regards,
Lumiga

Kind regards,
Lumiga
Last edit: 9 years 6 months ago by Lumiga.

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

More
9 years 6 months ago #265974 by nicolas
Replied by nicolas on topic Attached PDF Invoice plugin
Hi,

The invoice is created when the order is confirmed.
When the order is not yet confirmed the field order_invoice_created is empty.
The second line of code works because before you have the line:
$order->order_invoice_created = $order->order_created;
which sets the order creation date as the invoice creation date when the order is not yet confirmed.
So in order code, if you used order_created instead of order_invoice_created, it would work all the time but it would display the order creation date and not the invoice creation date.
So the solution depends on what you want...
The following user(s) said Thank You: Lumiga

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

More
9 years 6 months ago #266103 by Lumiga
Replied by Lumiga on topic Attached PDF Invoice plugin
Thanks Nicolas!

Kind regards,
Lumiga

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

Time to create page: 0.205 seconds
Powered by Kunena Forum