[Skip to main content](#vessel-content)

#   Date of comment in product page?

##

- **[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")**
- [![hawkeyentjc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile") Topic Author
- [ Offline](/forum/user/6372-hawkeyentjc)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 5 months ago [\#51893](#51893) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  *[Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#51893 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")* was created by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")*

Hi,

Is there any way we can insert the date of comment in the voting/comment section of the product page?

For example:

Peter C. on 30 May, 2012 [5 stars]

Any code in particular which we can use to call the date of the comment?

I'm using version 1.5.8 (Business edition).

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 5 months ago [\#51946](#51946) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#51946 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

Hi,

I forwarded your question to the developer in charge of that. He will answer you tomorrow.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")**
- [![hawkeyentjc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile") Topic Author
- [ Offline](/forum/user/6372-hawkeyentjc)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 4 months ago [\#55011](#55011) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  Replied by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#55011 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

Hi Nicolas,

Is there any update to this feature so far? ![:)](/media/kunena/emoticons/3.png ":)")

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 4 months ago [\#55062](#55062) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#55062 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

It seems he forgot to answer you...

You can try to add the code: Code:

&lt;?php $class = hikashop_get('class.vote'); $vote = $class-&gt;get($elt[$i]-&gt;vote_id); echo hikashop_getDate($vote-&gt;vote_date); ?&gt;

before the code:
&lt;td class="hika_comment_listing_stars"&gt;

in the file 'listing' of the view 'vote' of the front end via the menu Display-&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")**
- [![hawkeyentjc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile") Topic Author
- [ Offline](/forum/user/6372-hawkeyentjc)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 3 months ago [\#56861](#56861) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  Replied by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#56861 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

Hi Nicolas,

The code works great.

I have another question.

Currently the date format appears as "18 April 2012 21:03". Will there be any code I can insert to remove the time? As we just need the date only, without the time. So as such the date should appear only as "18 April 2012".

Will be there any code to achieve that? Thanks so much for your help so far!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 3 months ago -  14 years 3 months ago [\#56864](#56864) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#56864 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

Hi hawkeyentjc,

You can use the code: Code:

echo hikashop_getDate($vote-&gt;vote_date,'%d %B %Y');

Instead of: Code:

echo hikashop_getDate($vote-&gt;vote_date);

Last edit: 14 years 3 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")**
- [![hawkeyentjc's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile") Topic Author
- [ Offline](/forum/user/6372-hawkeyentjc)

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 3 months ago [\#56937](#56937) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  Replied by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")* on topic *[Re: Date of comment in product page?](/forum/4-how-to/51893-date-of-comment-in-product-page#56937 "Hi,  Is there any way we can insert the date of comment in the voting/comment section of the product page?  For example:  Peter C. on 30 May, 2012 &#91;5 stars&#93;  Any code in particular which we can use to call the date of the comment?  I'm using version 1.5.8 (Business edition).  Thanks.")*

Thanks Xavier. It works perfectly!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUxODkzLWRhdGUtb2YtY29tbWVudC1pbi1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.084 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
