Send to a friend
ShopWired's send to a friend feature allows you to display a simple form on product pages on your website that visitors can use to recommend the product to a friend via email.
The send to a friend feature is complementary to the that you can add to product and blog post pages on your website.
To install the app:
- Navigate to Apps
- Locate the Send to a friend app
- Select
install this app
Once you've installed the app, the send to a friend form will be automatically added to the product pages on your website; no configuration is required.
Display on your website
Display on your website
The display of the send to a friend form is determined by your website's theme.
The form is usually triggered by selecting an email (or similar) sharing button.

Once the button is selected, the form will appear.

is mandatory for the send to a friend email and will be displayed irrespective of whether you have installed the reCAPTCHA app within your ShopWired account.
Send to a friend email
Send to a friend email
The email that is sent to the visitor's 'friend' is the Referral email and can be customised by following these instructions.
The email has access to the for the referred product and uses the message
variable to return the message entered by the referring visitor.
Referral system
Referral system
You can combine the send to a friend feature with the reward points app's referral features to offer visitors to your website an incentive to recommend products to their friends.

To refer a friend to your website and receive a commission for doing so, the visitor must be logged into a customer account on your website (so that the unique referral link can be generated and included in the message sent to the referred friend).
The referral system is not integrated with the send to a friend feature on ShopWired themes as standard; instead, you'll need to change the code within your website's theme to enable the feature. Contact theme support for assistance.
Theme installation
Theme installation
You only need to install the code for the send to a friend feature if you are using a Version 1 or Version 2 ShopWired theme. If you're using a later theme version, you don't need to install the code, and the app will work automatically.
Use the code example below to place the form on product pages on your website.
<form action="{{ global.current_url }}" method="post">
<input type="text" name="email_address">
<textarea cols="30" rows="5" name="message"></textarea>
<input type="text" name="{{ global.honeypot_field_name }}" autocomplete="off" class="hidden">
{% if recommendation_recaptcha %}
<div class="g-recaptcha"></div>
{% endif %}
<input type="hidden" name="redirect_message" value="The email has been sent">
<button name="send_recommendation_email" value="1">
Send
</button>
</form>
Success message
Once the form has been submitted, you can either redirect the visitor to a success page or show an onscreen success message.
The following code will redirect the customer to another page.
<input type="hidden" name="redirect_path" value="/thanks">
In this example, the customer would be redirected to a page located at /thanks
.
The following code will keep the user on the current page (and refresh it) and show a success message from the bottom of the screen.
<input type="hidden" name="redirect_message" value="The email has been sent">