Developer forum

Forum » Templates » Comments template

Comments template

Tomas Gomez
Reply

Hi,

The documentation page (here) gives the path "Templates/eCom/Product" for the template to add user comments to the products. That template doesn't work, as it doesn't send the comments to the database. Nevertheless, at "Templates\Comments" there are two comment templates that work (just translating the Danish).

Is there any use of the template "Templates/eCom/Product/Comment.html" or is it obsolete?

Regards,
Tomas


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Tomas

Find attached the most comprehensive set for this I have available. The template you refer to might be old and not working.

This is for pages, but it is the same thing - you just have to use other itemType and itemId for ecommerce:

 <input type="hidden" name="Comment.ItemType" value="ecomProduct" />
 <input type="hidden" name="Comment.ItemID" value="<!--@Ecom:Product.ID-->" />
 <input type="hidden" name="Comment.LangID" value="<!--@Ecom:Product.LanguageID-->" />
BR Nicolai
Votes for this answer: 1
 
Tomas Gomez
Reply

Thanks Nicolai!

 

You must be logged in to post in the forum