Back end last update display

  • Posts: 265
  • Thank you received: 1
8 years 7 months ago #235726

-- HikaShop version -- : 2.6.1

Hello,

My stock is quite fluid and I regularly update it throughout the day. On occasion, I do forget whether or not I have made the changes to stock levels. I was wondering if it was possible to have a "last updated on ...." in the backend product pages?

Thanks,
Hal

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 7 months ago #235775

Hi,

Yes, that's possible with a small modification.
Go in the menu Display>Views and edit the file "show" of the view "product" for your backend template. There, you can add such code:

<?php echo hikashop_getDate($this->product->product_modified,'%Y-%m-%d %H:%M'); ?>

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

  • Posts: 265
  • Thank you received: 1
8 years 7 months ago #236121

Thank you for your help.

I added the code, but I couldn't see any difference in the back end. Any ideas why?

Many thanks,

Hal

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

  • Posts: 12953
  • Thank you received: 1778
8 years 7 months ago #236136

Hello Hal,

You should probable check that you edited the good file of the back-end template that you are actually using.

Thanks.

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

  • Posts: 265
  • Thank you received: 1
8 years 7 months ago #236254

There isn't a "show" view for the product template in the backend. I tried adding it to listing, but it didn't work.

Thanks,
Hal

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 7 months ago #236262

Hi,

Sorry, I meant "form" not "show".

The following user(s) said Thank You: Holmes-Pierce

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

  • Posts: 265
  • Thank you received: 1
8 years 7 months ago #236343

That's amazing, thanks.

It's already helped me :)

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

  • Posts: 265
  • Thank you received: 1
8 years 7 months ago #236367

Would it be possible to show the 'User' that made those changes as well please?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 7 months ago #236376

Hi,

That information is not stored. So it would be more complex and require a custom product field and a plugin to store the user when a modification is being made.

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

Time to create page: 0.079 seconds
Powered by Kunena Forum