Mail Bag

Answering Your Questions Since... 9:30am
Joined: 28 Aug 2005
Posts: 198
|
Posted: Nov 09, 2005 02:16pm Post subject: QuickCode Tags for Customer-Related messages |
|
|
Modular Merchant version 2.016 introduces two new QuickCode Tags designed to display customer-related information in your store. The use of these two new QuickCode tags is described below:
{CUSTOMER NAME}
The QuickCode tag {CUSTOMER NAME} displays the customer's name, if they're logged in. If the customer isn't logged in, nothing is displayed.
Example of use:
Insert the QuickCode tag into any Skin* where you would like the customer's name to be displayed. The QuickCode tag will be translated by the system and displayed as the customer's name.
The following Skin contents...
Welcome back to our online store, {CUSTOMER NAME}.
would be displayed in your store as something like this if the customer is logged in:
Welcome back to our online store, Dudley Heromin.
would be displayed in your store as something like this if the customer is not logged in:
Welcome back to our online store, .
{CUSTOMER GREETING}
The QuickCode tag {CUSTOMER GREETING} displays the customer's name and a custom message, if they're logged in. If the customer isn't logged in, nothing is displayed.
This QuickCode tag also requires a Design Variable** to be set in the Skin as well. The Design Variable contains the contents of your greeting, and a "placeholder" of "CUSTOMER NAME" to tell the system where the customer's name will be inserted into the greeting.
Example of use:
Insert the following Design Variable into the Header field of the Skin you are working on:
| Code: | | <?php $mm_customer_greeting = 'Welcome back to our online store, CUSTOMER NAME.'; ?> |
Insert the QuickCode tag into any Skin where you would like the customer's name & message to be displayed. The QuickCode tag will be translated by the system and displayed as your greeting, with "CUSTOMER NAME" replaced by the actual customer's name.
The following Skin contents...
<?php $mm_customer_greeting = 'Welcome back to our online store, CUSTOMER NAME.'; ?>
{CUSTOMER GREETING}
would be displayed in your store as something like this if the customer is logged in:
Welcome back to our online store, Dudley Heromin.
would be displayed in your store as something like this if the customer is not logged in:
(Nothing is displayed.)
* A Skin is a package of HTML templates, used to customize the design of your store web pages. Modular Merchant supports a variety of different Skins, allowing each section of your store to have a different HTML template assigned to it. More information on Skins is available in the MM Administrator Guide, starting on page 41.
**"Design Variables" are designed for use in the "header" section of various Skins. These variables are PHP variables. An example of use of a Design Variable in the contents of a Skin header may look like this:
| Code: | | <?php $mm_name_of_design_variable = '123'; ?> |
|
|
CMarier

Modular Merchant: Administration
Joined: 06 Mar 2006
Posts: 38
Location: Oregon
|
Posted: Apr 30, 2008 08:13pm Post subject: |
|
|
| This topic is being locked because it's about a feature specific to Modular Merchant version 2. Modular Merchant version 3 improves on this feature, making this forum article obsolete. |
|