Leave a Message
The Leave a Message email is used by your customers to ask questions whilst on the product details page. These will either be Private or Public, which determines what happens next.
This article describes how to enable this.
Introduction
The email must be created under Orders > Emails and be assigned the "Use" of "Leave a Message".
Templates
You can call the form via
$.get('/ajax/Ajax_Products/getAskAQuestionForm', { }, function (response) {
And submit the form via
$.post('/ajax/Ajax_Products/askAQuestion', { all_fields: $(this).serialize() }, function(responseJson) {
Once this has been validated and passed spam checks, it will send the message into Aurora. If it is a public message it will appear under Products > Q&A, if it is private it will be emailed to all recipients of Store > Settings > Contact Email Notification, otherwise it will be sent to the recipients of Store > Settings > New Product Question
Placeholders
Below is a list of available placeholders that can be used in this email template.
Placeholder | Type | Currency | Value |
$contact_info | Array | The full list of information submitted by the user, including their Name, Email Address and Message |
Templates
products/ajax-customer-questions-form.tpl.html
_js/productdetails.js
Updated almost 3 years ago