Skip to main content

Price Update Time in hikashop

More
10 years 5 months ago #237991 by nic7071
-- 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 ;)

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

More
10 years 5 months ago #238024 by nicolas
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.

More
10 years 5 months ago #238040 by nic7071
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.

More
10 years 5 months ago #238065 by Mohamed Thelji
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.

More
10 years 4 months ago #240211 by nic7071
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.

More
10 years 4 months ago #240212 by nic7071
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.

More
10 years 4 months ago #240214 by nicolas
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.240 seconds
Powered by Kunena Forum