Modular Merchant: Shopping Cart Software

Shopping Cart Software Service

Advanced SearchAdvanced Search RegisterRegister ProfileProfile FAQFAQ MemberlistMemberlist Log inLog in
QuickCode Tags for Customer-Related messages
Post new topic   This topic is locked: you cannot edit posts or make replies.
Modular Merchant Forum Index -> Web Design & Programming
Author Message

Mail Bag


Answering Your Questions Since... 9:30am

Joined: 28 Aug 2005
Posts: 198


PostPosted: Nov 09, 2005 02:16pm    Post subject: QuickCode Tags for Customer-Related messages Reply with quote

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


PostPosted: Apr 30, 2008 08:13pm    Post subject: Reply with quote

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.
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Modular Merchant Forum Index -> Web Design & Programming All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group