News:

Support the VirtueMart project and become a member

Main Menu

Product date of sale

Started by roman5527, April 23, 2019, 15:19:18 PM

Previous topic - Next topic

roman5527

Hi, when i set date in product, when is product pulish , can i see it on front-end ?
example how countdown or date ? thanks

Jörgen

The product is published when You tick the box published. All other dates just control stock presentation. You have to make edits to Your template files to publich products by date.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

roman5527

Hi, can I access the variable in which the date is stored?

thanks

Jörgen

Yes

This works with my template:

$cdate = strtotime ($this->product->created_on) ;

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.