Tell a friend page

From Zen Cart(tm) Wiki
Jump to: navigation, search

The Tell_a_friend page is explained here.



Configuration options

This table below shows most of the configuration options including language text for the Tell_a_friend page. It is based on a ZenCart version 1.3.0. Before editing files copy the original file (if not done before) to YOUR_TEMPLATE directory.

Copy image and button files

  • from includes\templates\template_default\images\..... to includes\templates\YOUR_TEMPLATE\images\.....
  • from includes\templates\template_default\buttons\..... to includes\templates\YOUR_TEMPLATE\buttons\.....

Copy language files

  • from includes\language\..... to includes\language\YOUR_TEMPLATE\.....
  • from includes\language\english\..... to includes\language\english\YOUR_TEMPLATE\.....

See also Customisation - Templates


Name Default value How to change
HEADING_TITLE 'Tell A Friend About '\%s'\' Edit language file tell_a_friend.php near line 12 in the directory includes\languages\english\YOUR_TEMPLATE
FORM_REQUIRED_INFORMATION '* Required information' Edit language file english.php near line 258 in the directory includes\languages\YOUR_TEMPLATE
FORM_FIELD_CUSTOMER_NAME 'Your Name:' Edit language file tell_a_friend.php near line 18 in the directory includes\languages\english\YOUR_TEMPLATE
ENTRY_FIRST_NAME_TEXT '*' Edit language file english.php near line 195 in the directory includes\languages\YOUR_TEMPLATE
FORM_FIELD_CUSTOMER_EMAIL 'Your Email:' Edit language file tell_a_friend.php near line 19 in the directory includes\languages\english\YOUR_TEMPLATE
ENTRY_EMAIL_ADDRESS_TEXT '*' Edit language file english.php near line 206 in the directory includes\languages\YOUR_TEMPLATE
FORM_FIELD_FRIEND_NAME 'Friend'\s Name:' Edit language file tell_a_friend.php near line 20 in the directory includes\languages\english\YOUR_TEMPLATE
FORM_FIELD_FRIEND_EMAIL 'Friend'\s Email:' Edit language file tell_a_friend.php near line 21 in the directory includes\languages\english\YOUR_TEMPLATE
FORM_TITLE_FRIEND_MESSAGE 'Your Message:' Edit language file tell_a_friend.php near line 16 in the directory includes\languages\english\YOUR_TEMPLATE
BUTTON_IMAGE_BACK File:Button back.gif Edit button image file 'button_back.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_ADD_ADDRESS_ALT 'Add Address' Edit button names file button_names.php near line 65 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
BUTTON_IMAGE_SEND File:Button send.gif Edit button image file 'button_send.gif' in the directory includes\templates\YOUR_TEMPLATE\buttons\english\ with a graphic tool
BUTTON_SEND_ALT 'Send Now' Edit button names file button_names.php near line 87 in the directory includes\languages\english\YOUR_TEMPLATE.
Note: This text will be visible when your hover over this button.
EMAIL_ADVISORY_INCLUDED_WARNING 'This message is included with all emails sent from this site:' Edit language file email_extras.php near line 35 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_ADVISORY '-----' . "n\" . 'IMPORTANT: For your protection and to prevent malicious use, all emails sent via this web site are logged and the contents recorded and available to the store owner. If you feel that you have received this email in error, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . "n\n\" Edit language file email_extras.php near line 32 in the directory includes\languages\english\YOUR_TEMPLATE
ALLOW_GUEST_TO_TELL_A_FRIEND false Change this in ADMIN
Configuration --> E-Mail Options --> Allow Guest To Tell A Friend.

Allow guests to tell a friend about a product.
If set to [false], then tell-a-friend will prompt for login if user is not already logged in.
ERROR_FROM_NAME 'Error: Your name must not be empty.' Edit language file tell_a_friend.php near line 40 in the directory includes\languages\english\YOUR_TEMPLATE
ERROR_FROM_ADDRESS 'Error: Your email address does not appear to be valid. Please try again.' Edit language file tell_a_friend.php near line 41 in the directory includes\languages\english\YOUR_TEMPLATE
ERROR_TO_NAME 'Error: Your friend'\s name must not be empty.' Edit language file tell_a_friend.php near line 38 in the directory includes\languages\english\YOUR_TEMPLATE
ERROR_TO_ADDRESS 'Error: Your friend'\s email address does not appear to be valid. Please try again.' Edit language file tell_a_friend.php near line 39 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TEXT_SUBJECT 'Your friend %s has recommended this great product from %s' Edit language file tell_a_friend.php near line 29 in the directory includes\languages\english\YOUR_TEMPLATE
STORE_NAME test300 Change this in ADMIN
Configuration --> My Store --> Store Name.

The name of my store
EMAIL_TEXT_GREET 'Hi %s!' . "n\n\" Edit language file tell_a_friend.php near line 30 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TEXT_INTRO 'Your friend, %s, thought that you would be interested in %s from %s.' Edit language file tell_a_friend.php near line 31 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TELL_A_FRIEND_MESSAGE '%s sent a note saying:' Edit language file tell_a_friend.php near line 33 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_SEPARATOR '----------------------------------------------------------------------------------------' Edit language file tell_a_friend.php near line 23 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TEXT_LINK 'To view the product, click on the link below or copy and paste the link into your web browser:' . "n\n\" . '%s' Edit language file tell_a_friend.php near line 35 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TEXT_SIGNATURE 'Regards,' . "n\n\" . '%s' Edit language file tell_a_friend.php near line 36 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_TEXT_HEADER 'Important Notice!' Edit language file tell_a_friend.php near line 27 in the directory includes\languages\english\YOUR_TEMPLATE
SEND_EXTRA_TELL_A_FRIEND_EMAILS_TO_STATUS 0 Change this in ADMIN
Configuration --> E-Mail Options --> Send Copy of Tell a Friend Emails To - Status.

Send copy of Tell a Friend Status
0= off 1= on
SEND_EXTRA_TELL_A_FRIEND_EMAILS_TO test@test.nl Change this in ADMIN
Configuration --> E-Mail Options --> Send Copy of Tell a Friend Emails To.

Send copy of Tell a Friend emails to the following email addresses, in this format: Name 1 <email@address1>, Name 2 <email@address2>
SEND_EXTRA_TELL_A_FRIEND_EMAILS_TO_SUBJECT '[TELL A FRIEND]' Edit language file email_extras.php near line 40 in the directory includes\languages\english\YOUR_TEMPLATE
EMAIL_FROM test@test.nl Change this in ADMIN
Configuration --> E-Mail Options --> Email Address (sent FROM).

Address from which email messages will be "sent" by default. Can be over-ridden at compose-time in admin modules.
TEXT_EMAIL_SUCCESSFUL_SENT 'Your email about %s has been successfully sent to %s.' Edit language file tell_a_friend.php near line 25 in the directory includes\languages\english\YOUR_TEMPLATE
NAVBAR_TITLE 'Tell A Friend' Edit language file tell_a_friend.php near line 10 in the directory includes\languages\english\YOUR_TEMPLATE

NOTE: This table is made by looking for used defines in the following files:

  • includes\modules\pages\tell_a_friend\header_php.php
  • includes\templates\template_default\templates\tpl_tell_a_friend_default.php

Defines (configuration options) are defined in:

  • configuration table in the database
  • includes\languages\english.php
  • includes\languages\english\button_names.php
  • includes\languages\english\email_extras.php
  • includes\languages\english\tell_a_friend.php

Product type configuration option are ignored Shipping, payment and Order Total module configuration option are also ignored