Invoice date

  • Posts: 11
  • Thank you received: 0
11 years 6 months ago #129843

Hello,

we have troubles with Invoice date. The date on Invoice should be the date of shipping and not the date of ordering/creating order. How can we change that?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #129844

Hi,
You'll be able to edit it by editing the code of your "invoice" file of your "order" view of your back-end template through "Hikashop->Display->Views"

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

  • Posts: 11
  • Thank you received: 0
11 years 6 months ago #129847

Thank you, I know that, but I need to know what exact must I change in code.

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

  • Posts: 11
  • Thank you received: 0
11 years 6 months ago #129849

For example if we do code like that:

<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_modified,'%d %B %Y ');?><br/>

Then all are DATES on 18.10.2013,

but if I leave like default

<?php echo JText::_('DATE').': '.hikashop_getDate($this->element->order_created,'%d %B %Y ');?><br/>

then is the date of creation.

How is the code if I want the date of shipping on Invoice?

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

  • Posts: 83811
  • Thank you received: 13571
  • MODERATOR
11 years 6 months ago #129890

There are two dates available in the order: The date of the creation of the order, and the date of the latest modification of the order.
The date of shipping is not known.

If you want to manually enter the date of shipping for each order, you can create a custom field of the table "order" and of the type "date" via the menu Display>Custom fields, with the Business edition.
Then, you can use such code:
<?php echo JText::_('DATE').': '.$this->element->CUSTOM_FIELD; ?><br/>

where CUSTOM_FIELD is the column name of the custom field.

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

  • Posts: 47
  • Thank you received: 0
11 years 6 months ago #130116

  • Joomla 2.5
  • Hikashop 2.2.2
  • [/b]
    I too would like to edit my invoice... however I can't find the "invoice" file in my "order" view... what am I missing?

    In fact I have no backend files for my template?

Last edit: 11 years 6 months ago by oxheadproductions.

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

  • Posts: 47
  • Thank you received: 0
11 years 6 months ago #130181

oxheadproductions wrote:

  • Joomla 2.5
  • Hikashop 2.2.2
  • [/b]
    I too would like to edit my invoice... however I can't find the "invoice" file in my "order" view... what am I missing?

    In fact I have no backend files for my template?


Mystery solved... I found the invoice.php file in folder plugins-hikashop-attachinvoice... I assume it got moved there when I installed the " attach invoice " plugin...

After finding it, editing the PHP file was easy enough.

Last edit: 11 years 6 months ago by oxheadproductions.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum