Price Update Time in hikashop

  • Posts: 129
  • Thank you received: 0
8 years 6 months ago #237991

-- url of the page with the problem -- : www.apple-nic.com
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

Hello
in product content plugin
i want new option
if you see the attached image when i want insert a product to my content
i need have price update time for product

Thank you ;)

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 6 months ago #238024

Hi,

What do you mean by "price update time" ?
I don't know about such thing in HikaShop.
Could you provide more details ?

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

  • Posts: 129
  • Thank you received: 0
8 years 6 months ago #238040

Hello
by price update time i mean a short code that can return the last time that a product price has updated
for example i want to create a page with some of my common products with some details about them like the price the image the title and the last time the price has been updated in a format like "n hours ago " or "Saturday , day - mount "

in fact is the any table in hikashop database that can save the time each time i update the product information like price
if not
i would like to ask you add this feather for me

Thanks

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

  • Posts: 12953
  • Thank you received: 1778
8 years 6 months ago #238065

Hello,
You'll just have the product price value stored in the database and no "Price edition date", so that option will also require some modifications of the Hikashop code which won't be that easy to achieve, but I can eventually add it on our todo list if you want.

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

  • Posts: 129
  • Thank you received: 0
8 years 6 months ago #240211

yes please that is very critical for me,
how can i use this feature ?

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

  • Posts: 129
  • Thank you received: 0
8 years 6 months ago #240212

ive found this code in massaction_product.php file that returns the product update time
how can i echo the date and time of product update in show.php file ?

if(isset($data->elements[$id]->product_created) && (int)$data->elements[$id]->product_created == 0){
unset($data->elements[$id]->product_created);
}
$data->elements[$id]->product_modified = time();

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 6 months ago #240214

Hi,

You can do like that:
echo hikashop_getDate($this->element->product_modified);

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

Time to create page: 0.075 seconds
Powered by Kunena Forum