Mail Bag

Answering Your Questions Since... 9:30am
Joined: 28 Aug 2005
Posts: 198
|
Posted: Nov 09, 2005 03:11pm Post subject: QuickCode Tags for Product-Related Messages |
|
|
Modular Merchant version 2.016 introduces two new QuickCode Tags designed to display product-related information in your store. The use of these two new QuickCode tags is described below:
{LIST NEW ITEMS}
When used in a Skin* file, the QuickCode tag {LIST NEW ITEMS} displays a list of the newest, active products to be added to your store records. The name of each product is displayed as a link to that product's store page.
This QuickCode can also be used with an optional Design Variable**, assigned in the Skin as well. The Design Variable tells the system how many of the newest items to list. If no design variable is assigned, the system will default to listing the five most recent new items.
Example of use:
Optional: Insert the following Design Variable into the Header field of the Skin you are working on:
| Code: | | <?php $mm_num_new_items = '7'; ?> |
Insert the QuickCode tag into any Skin where you would like the list of newest products to be displayed. The QuickCode tag will be translated by the system and displayed as the list of products.
The following Skin contents...
<?php $mm_num_new_items = '7'; ?>
{LIST NEW ITEMS}
would be displayed in your store as something like this:
"Dress Me Pretty" Cat Bonnet
Feline Vitamins
Deluxe Cat Brush
"Dress Me Pretty" Cat Pajamas
X-Tra Large Cat Food Bowl
Extreme Scratching Post
"Dress Me Pretty" Kitty Swim Trunks
{LIST BEST SELLERS}
When used in a Skin file, the QuickCode tag {LIST BEST SELLERS} displays a list of the best selling, active products in your store records. The name of each product is displayed as a link to that product's store page.
This QuickCode can also be used with an optional Design Variable**, assigned in the Skin as well. The Design Variable tells the system how many of the newest items to list. If no design variable is assigned, the system will default to listing the five best selling products.
Example of use:
Optional: Insert the following Design Variable into the Header field of the Skin you are working on:
| Code: | | <?php $mm_num_best_sellers = '4'; ?> |
Insert the QuickCode tag into any Skin where you would like the list of newest products to be displayed. The QuickCode tag will be translated by the system and displayed as the list of products.
The following Skin contents...
<?php $mm_num_best_sellers = '4'; ?>
{LIST BEST SELLERS}
would be displayed in your store as something like this:
Cat Care DVD
"Fly on a String" Kitty Play Toy
"Forest Breeze" Kitty Litter
"Dress Me Pretty" Kitty Pirate Outfit
* 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:12pm 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. |
|