Display publishing date in a product detail view - possible?

Phoca Cart - complex e-commerce extension
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Display publishing date in a product detail view - possible?

Post by MAXambient »

I would like to display in my shop when a product was published in the shop. Is it possible to place this in the detailed view?

Can I also display when a product was updated?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display publishing date in a product detail view - possible?

Post by Jan »

Hi, such information is not displayed as default. So it needs to be done per template override (the item view or some of its part should be overriden in template)

Date and Update date is loaded from database to this view, so the loading is solved, only the displaying needs to be done per template override:

Image

BTW: the update date is cutom field, it is not the modified date of the item. Update date can be set by your needs:

Image

Jan
If you find Phoca extensions useful, please support the project
MAXambient
Phoca Enthusiast
Phoca Enthusiast
Posts: 85
Joined: 13 Feb 2020, 17:49

Re: Display publishing date in a product detail view - possible?

Post by MAXambient »

Hi Jan! Thanks for your quick response. Will check, if I can adjust this with Helix Ultimate. Nice point to start working with template overrides.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Display publishing date in a product detail view - possible?

Post by Jan »

BTW, the template override is not the only one option, there can even be created plugin for this because the events in item view gets the item object so such can be managed in plugin and it can return content.

Another info regarding template overried. You can override the complete view but it can even be overriden only a part in form of layout. When only layout is overriden, you are managing less output which is then better for maintaining.

Jan
If you find Phoca extensions useful, please support the project
Post Reply