Product Review email

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hi all
I have added this token in product review email template

%Product.ProductURLForCustomer%

But actual product review email just shows the token itself ,no URL.

How can this be fixed?

Thanks in advance
9 years ago
By default %Product.ProductURLForCustomer% does not available for product review template.  You can add one line

_messageTokenProvider.AddProductTokens(tokens, productReview.Product, languageId); in SendProductReviewNotificationMessage method

See sample code here
namespace Nop.Services.Messages
{
    public partial class WorkflowMessageService : IWorkflowMessageService
    {
...
       public virtual int SendProductReviewNotificationMessage(ProductReview productReview,
            int languageId)
        {
           ...
            //tokens
            var tokens = new List<Token>();
            _messageTokenProvider.AddStoreTokens(tokens, store, emailAccount);
            _messageTokenProvider.AddProductReviewTokens(tokens, productReview);

            _messageTokenProvider.AddProductTokens(tokens, productReview.Product, languageId);
            
            ...
        }
    ...
    }
}
6 years ago
Hi,
I want to add token in message template for SendShipmentDeliveredCustomerNotification method.
Token should be url to delivered product review section below product.
Using nop 3.80v.
Please help i;m stucked here
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.