Invoice date equals order date in front end

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #169210

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.3
-- Joomla version -- : 3.3.3

Hi,
I just realized that my invoices that I print through the front end are showing the date of the order and not the date when the order status has been changed to payed. In the back end it shows the right date, so I guess it is a HikaMarket issue.
How can I change this?
Thanks
Roger

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
9 years 7 months ago #169212

Hi,

In the view "frontend | your_frontend_template | ordermarket | invoice" please replace

<?php echo JText::_('DATE') . ': ' . hikamarket::getDate(@$this->element->order_created, '%d %B %Y '); ?>
By
<?php
	$date = (!empty($this->element->order_invoice_created)) ? $this->element->order_invoice_created : @$this->element->order_created;
	echo JText::_('DATE') . ': ' . hikamarket::getDate($date, '%d %B %Y ');
?>
It will use the date of the creation of the invoice (when the order has been confirmed) if the date is set.
(This modification will be include in the next HikaMarket release)

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.
The following user(s) said Thank You: Rokell

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

  • Posts: 159
  • Thank you received: 2
9 years 7 months ago #169236

Thanks Jerome! That fixed it.
Best
Roger

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

Moderators: Obsidev
Time to create page: 0.061 seconds
Powered by Kunena Forum