Code Library: Smart Tags

Smart Tags are strings of plain text that display dynamic content, such as {$FIRST_NAME} for the user's first name. Put Smart Tags in your templates like your header.html and footer.html (not case-sensitive)

Smart Tags  Description OutputResult
User's browser version number 2.0
User's browser CCBot
Display user's two-letter country code. See Country Codes.
Display user's country ID. See Country Codes. 2
Display user's country name. See Country Codes.
Customers first name
Current date 25/09/2021
Current day Saturday
Current month September
Current time 2:53am
Current week 38
Current year 2021
Display a selector for switching currency - shows all currencies.
Display a selector for switching currency - shows all currencies with full name and unit.
Display a selector for switching currency - shows only main currencies.
Form for logging in
<form name="login" id="form_login" action="/login/" method="post" class="form-standard form-login"><input type="hidden" name="return" value="/code-library/?t=1" /><input type="hidden" name="local" value="">
<fieldset>
<legend>Login</legend>
<input type="hidden" name="action" value="" class="hidden" />
<div class="row required" id="row-email">
 <label for="header_form_email">Email address</label>
 <input name="vendorama_email" type="text" id="header_form_email" size="20" value="" maxlength="100" class="text" />
</div>
<div class="row required" id="row-password">
 <label for="header_form_password">Password</label>
 <input type="password" name="vendorama_password" id="header_form_password" size="20" maxlength="50" class="password" /> <span class="highlight-note"><a href="/login/password/" rel="Password nofollow">Forget your password?</a></span>
</div>
<div class="row-optional">
 <span class="margin">&nbsp;</span><input type="checkbox" value="4" name="auto_login" id="auto_login" /><label for="auto_login" class="none">Remember me</label>
</div>
</fieldset>

<div class="box-action">
 <span class="margin">&nbsp;</span>
 <input type="submit" name="login" value="Log in" class="submit button-login" accesskey="l" title="Log in (Alt Shift l)" id="submit-login" />
</div>
</form>
Login
 
 
Subscribes user to Mailouts, (with double optin-in confirmation required)
<script>
 <!--

 function validateFormSubscribe() {
  var submitFormSubscribe = true;
  var errors = "To subscribe please enter your name and email address.";


  if (document.form_mailouts_subscribe.first_name.value == "") {
   errors += "";
   submitFormSubscribe = false;
   }
 
 
 
   if (document.form_mailouts_subscribe.useremail.value != "") {
    if ((document.form_mailouts_subscribe.useremail.value.indexOf("@") == -1) ||
 (document.form_mailouts_subscribe.useremail.value.indexOf(".") == -1)) {
     errors += " That doesn't look like a real email address.";
     submitFormSubscribe = false;
    }
   } else {
    errors += "";
    submitFormSubscribe = false;
   }
 
   if (document.form_mailouts_subscribe.email.value !== "") {
   errors += " The authentication field should be left blank";
   submitFormSubscribe = false;
   }
 
 
 
   if (!submitFormSubscribe) {
    errors += "";
    alert(errors);
   }
 
   return submitFormSubscribe;
 
  }
 
  // -->
  </script>
<form name="form_mailouts_subscribe" id="form_mailouts_subscribe" autocomplete="off" method="post" action="/email/optin.php" onsubmit="return validateFormSubscribe();" class="form-standard form-subscribe">

<fieldset>
<legend>Subscribe</legend>

<div class="row-optional" id="row_mailouts_first_name">
 <label for="mailouts_first_name">First Name</label>
 <input type="text" name="first_name" id="mailouts_first_name" class="text" value="" autocomplete="false" />
</div>

<div class="row-required" id="row_mailouts_useremail">
 <label for="mailouts_useremail">Email</label>
 <input type="text" name="useremail" id="mailouts_useremail" class="text" value="" autocomplete="false" />
</div>

<div class="row-required row-email" style="display:none" id="row_mailouts_authentication">
 <label for="email">Authentication (leave this blank)</label>
 <input type="text" name="email" id="email" class="text" value="" autocomplete="false" />
</div>

</fieldset>

<div class="box-action">
 <span class="margin">&nbsp;</span>
 <input type="submit" name="subscribe" value="Subscribe" class="submit button-subscribe" id="submit-subscribe4" />
</div>

</form>
Generic subscription form that sends an email to the email address in /vendo/profile/

Posts to /contact/subscribe/

Note: this does not add to the Mailouts database, use {$FORM_MAILOUTS} instead
<script type="text/javascript">
 <!--

 function validateFormSubscribe() {
  var submitFormSubscribe = true;
  var errors = "To subscribe please enter your name and email address.";


  if (document.form_subscribe.firstname.value == "") {
   errors += "";
   submitFormSubscribe = false;
   }
 
 
 
   if (document.form_subscribe.user_email.value != "") {
    if ((document.form_subscribe.user_email.value.indexOf("@") == -1) ||
 (document.form_subscribe.user_email.value.indexOf(".") == -1)) {
     errors += " That doesn't look like a real email address.";
     submitFormSubscribe = false;
    }
   } else {
    errors += "";
    submitFormSubscribe = false;
   }
 
   if (document.form_subscribe.email.value !== "") {
   errors += " The authentication field should be left blank";
   submitFormSubscribe = false;
   }
 
 
 
   if (!submitFormSubscribe) {
    errors += "";
    alert(errors);
   }
 
   return submitFormSubscribe;
 
  }
 
  // -->
  </script>
<form name="form_subscribe" id="form_subscribe" autocomplete="off" method="post" action="/contact/subscribe/" onsubmit="return validateFormSubscribe();" class="form-standard">

<fieldset>
<legend>Subscribe</legend>

<div class="row-optional" id="row_firstname">
 <label for="firstname">First name</label>
 <input type="text" name="firstname" id="firstname" class="text" value="" />
</div>

<div class="row-required" id="row_user_email">
 <label for="user_email">Email</label>
 <input type="text" name="user_email" id="user_email" class="text" value="" />
</div>

<div class="row-required row-email" style="display:none" id="row_authentication">
 <label for="email">Authentication (leave this blank)</label>
 <input type="text" name="email" id="email" class="text" value="" />
</div>

</fieldset>

<div class="box-action">
 <span class="margin">&nbsp;</span>
 <input type="submit" name="subscribe" value="Subscribe" class="submit button-subscribe" accesskey="1" title="Subscribe (Alt Shift 1)" id="submit-subscribe" />
</div>

</form>
Subscribe
 
The last search by user
Search form
<form action="/search/" method="post" name="form_search" id="form_search" class="form-search">
<input type="hidden" name="vq_orig" id="vq_orig" value="" /> 
   <div class="search-vq">
   <label for="vq" id="label_vq">Shop for</label>
   <input type="hidden" name="search_suggest_list_val" id="search_suggest_list_val" value="0" />
   <input type="search" name="vq" id="vq"  autocomplete="off" value="" maxlength="275" placeholder="Shop for..." /><div id="search_suggest"></div>
   <input type="submit" name="search" value="Search" class="submit button-search" accesskey="s" title="Search (Ctrl Opt s)" id="submit-search" /> 
   <a href="/search/?filters=2" class="" id="icon_filter" >&dtrif; </a>
   </div>
   
<span id="search_suggest_icon"></span>
    
 <!-- filters -->
 <div class="closed" id="search_filters">
 
  <div class="filter filters-store"> <input type="hidden" name="vu_select" id="vu_select" value="1" /> 
  <label for="vu" class="none">Store: </label> <input type="text" value="" size="20" name="vu" id="vu" placeholder="all stores" onkeyup=" search_suggest_vu(); _show('search_suggest_vu_list'); _hide('search_suggest_list'); " onfocus=" this.placeholder = '';" onblur=" if(this.value.length<2) { this.placeholder = 'all stores'; } "  autocomplete="off" class="" /><div id="search_suggest_vu"></div></div>
   
  <div class="filter filters-price"><label for="price_from" class="none">Price: </label> $<input type="text" size="3" name="price_from" id="price_from" value="" class="numeric size3"  /> to $<input type="text" size="3" name="price_to" id="price_to" value="" class="numeric size3"  /> 
  <span class="highlight-note">NZD</span> </div>
  <div class="filters-checkboxes"> 
  <div class="filter links-layout-onsale">
   <input type="checkbox" name="onsale" id="onsale" value="1" onchange="_hide('sale_remove'); class_name('label_onsale','label-onsale'); setfocus('vq');"/> <label for="onsale" id="label_onsale" class="label-onsale">On Sale</label>
  </div>
  <div class="filter links-layout-nearme">
  <input type="checkbox" name="nearme" id="nearme" value="1" /> <label id="label_nearme" for="nearme" class="label-nearme">Near <span id="link_nearme_me">me</span>  <a data-postcode="" data-city="" rel="nofollow" href="/code-library/?t=1&nearme=1" id="link_nearme" >Edit</a></label><span id="select_nearme_container"></span>
</div>
  <div class="filter filters-restricted">
   <input type="checkbox" value="1" name="restricted" id="restricted" > <label class="label-restricted" for="restricted">Restricted</label> 
  </div>
	
  <span id="filters_close" class="box-close">&times;</span>
  </div>
 </div>
 <!-- end filters -->
  
 <input type="hidden" value="0" name="filters" id="filters" />
</form>

<div id="header_links">

 <a href="#" id="link_account" title="Edit account">&nbsp;</a>
   <a rel="nofollow" href="/search/?fv=1&amp;vq=all" class="like-off" id="link_likes" title="View all Favourites"><b>&#9825;</b><span id="total_likes">0</span></a>
   <div id="box_likes" class="box-info" >
   <span id="box_likes_close" class="box-close">&times;</span>
   <ul id="box_likes_ul">
   </ul>
   <div id="likes_footer" class="likes-footer">No Favourites.</div>
   <div id="likes_view" class="likes-view" style="display:none"><a href="/search/?fv=1&amp;vq=all" class="highlight-note">view all</a></div>
  	
  </div><a href="/sell/" id="link_store">&nbsp;</a>
 
 <a href="/info/" id="trigger" class="menu-trigger">&#9776;</a>
 <div id="box_account" class="box-info">
 <span id="box_account_close" class="box-close">&times;</span>
 <ul>
  <li class="first"><a href="/login/" rel="nofollow" class="link-login-top" id="link_login">Log in</a></li>
  <li><a href="/account/new/" rel="nofollow">Create Account</a></li><!--
  <li><a href="/list/" id="link_create_store">Create a Store</a></li>-->
  <li><a href="/search/?fv=1" rel="nofollow">Favourites</a></li>
  <li><a href="/account-settings/" rel="nofollow">Display settings</a></li>
  <li><a href="/login/password/" rel="nofollow">Reset password</a></li>
  <li><a href="/cookies/" rel="nofollow">Clear Cookies</a></li>
  <li class="last"><a href="/account/?remove=1" rel="nofollow">Delete account</a></li>
 </ul>
 </div>
 
 </div>
 <div id="header_forms">
  
 <div id="create_form" class="create-form">
 <span class="box-close" id="create_form_close">&times;</span>
 <form method="post" action="/start/" name="form_create_store" id="form_create_store" class="form-standard">
  <fieldset id="fieldset_sell">
  <legend><span>Sell on Vendo</span><a href="/list/" id="create_form_list_on_vendo">List on Vendo</a></legend>
   <input type="hidden" name="product_id" value="5" />
   <input type="hidden" name="create_store" value="1" />
  <div class="row required" id="row_vendor_name_top">
   <label for="vendor_name_url">Store Name</label>
   <input type="text" size="30" maxlength="99" value="" name="vendor_name" id="vendor_name" placeholder="My Store Name" class="text" />
  </div>
  </fieldset>
  <div id="row_submit_storename" class="row">
  <span class="margin">&nbsp;</span>
   <input type="submit" name="submit_storename" value="Create Store" class="submit button-create" /> 
  </div>
  <div class="hint">
  <div>Create your store by entering a username or store name. 
  <span class="highlight-help-admin" id="link_create_help">?</span>
  
  <div id="box_create_help" class="box-info"><span class="box-close">&times;</span>
    Create a standalone online store with its own custom URL. Products are listed on Vendo search results instantly.
    <br /><br />See <a href="/features/">features</a> and <a href="/pricing/">pricing</a> for more info.
  </div>
  </div>
  <div>If you already have a Vendo store please <a href="/login/" class="link-login-top">log in</a>.</div>
  </div>
  </form> 
 </div>
 
 <div id="create_form2" class="create-form">
 <span id="create_form2_close" class="box-close">&times;</span>
 <form method="post" action="/start/" name="form_add_url" id="form_add_url" class="form-standard">
 <fieldset id="fieldset_list">
  <legend><a href="/list/" id="link_create_store2">Sell on Vendo</a><span>List on Vendo</span> </legend>
  <input type="hidden" value="external" name="mode" />
  <div class="row required" id="row_vendor_name_url_top">
   <label for="vendor_name_url">URL</label>
   <input type="text" size="30" maxlength="99" value="https://" name="vendor_name_url" id="vendor_name_url" placeholder="https://" class="text" />
  </div>
  </fieldset>
  <div id="row_submit_storeurl" class="row">
  <span class="margin">&nbsp;</span>
   <input type="submit" name="submit_storeurl" id="submit_storeurl" value="Add URL" class="submit button-create" /> 
  </div>
  <div class="hint">
  <div>List your products by entering your website URL. 
  <span class="highlight-help-admin" id="link_list_help">?</span>
  <div id="box_list_help" class="box-info">
  <span class="box-close">&times;</span>
    Vendo will import your products from your website automatically, and list on Vendo&rsquo;s search results (e.g. when your products match a customer&rsquo;s search).<br /><br />See <a href="/bot/">Vendobot</a> for more information about Vendo search indexing.
  </div>
  </div>
  <div>If you have already listed a store please 
  <a href="/login/" class="link-login-top">log in</a>
  </div>
  </div>
  </form> 
 </div>

 <div id="header_login">
  <form name="login" action="/login/" id="form_login_top" method="post" class="form-standard">
  <span id="form_login_top_hide" class="box-close">&times;</span>
  <fieldset id="fieldset_login_top">
  <legend id="legend_login_top"><span>Log in</span><a href="/login/password/" rel="Password nofollow" id="link_password">Reset Password</a></legend>
  <input type="hidden" name="seed" value="">
  <input type="hidden" name="md5_password" value="">
  <input type="hidden" name="return" value="/code-library/?t=1" />
  <input type="hidden" name="local" value="">
  <input type="hidden" name="action" value="" class="hidden" />
  <div class="row required" id="row_vendorama_email_top">
   <label for="vendorama_email_top">Email</label>
   <input name="vendorama_email" type="text" id="vendorama_email_top" size="30" value="" maxlength="100" class="text" />
  </div>
  <div class="row required" id="row_vendorama_password_top">
   <label for="vendorama_password_top">Password</label>
   <input type="password" name="vendorama_password" id="vendorama_password_top" size="30" maxlength="50" class="password"  /> 
  </div>
  <div class="row">
   <span class="margin">&nbsp;</span><input type="checkbox" value="4" name="auto_login" id="auto_login_top" /><label for="auto_login_top" class="none">Stay logged in</label>
  </div>
  </fieldset>
  <div id="row_submit_login" class="row">
   <span class="margin">&nbsp;</span>
   <input type="submit" name="submit_login" id="submit_login" value="Log in" class="submit button-login" /> <span class="highlight-note nowrap">&nbsp;&nbsp; or &nbsp; <a href="/account/new">Create an Account</a></span>
  </div><br />
  <div class="row links-extra">
  <span class="margin">&nbsp;</span> <a id="link_password_top" href="/login/password/" rel="Password nofollow">Forget your password?</a>
  </div>
  <span class="highlight-note"></span>
  </form>
  <form name="password" action="/login/password/" method="post" id="form_password_top" class="form-standard display-none;">
  <span id="password_top_close" class="box-close">&times;</span>
  <fieldset> 
  <legend id="legend_password_top"><a href="/login/" class="link-login-top">Log in</a><span>Reset Password</span> </legend>
   <div class="row" id="row_vendo_email">
    <label for="vendo_email_top" class="label">Email</label>
    <input type="text" size="20" maxlength="255" value="" name="vendo_email" id="vendo_email_top" class="text half" />
   </div>
  </fieldset>
  <div id="row_submit_password" class="row">
  <span class="margin">&nbsp;</span>
  <input type="submit" name="submit_password" id="submit_password" value="Send Password Reset" class="submit button-login" />
  </div><br />
  <div class="row links-extra">
   <span class="margin">&nbsp;</span><a href="/login/" class="link-login-top">Log in</a> <a href="/account/new">Create an Account</a>
  </div>
  </form>

 </div>
</div>
<div class="clear"></div>
×
Sell on VendoList on Vendo
 
Create your store by entering a username or store name. ?
× Create a standalone online store with its own custom URL. Products are listed on Vendo search results instantly.

See features and pricing for more info.
If you already have a Vendo store please .
×
Sell on VendoList on Vendo
 
List your products by entering your website URL. ?
× Vendo will import your products from your website automatically, and list on Vendo’s search results (e.g. when your products match a customer’s search).

See Vendobot for more information about Vendo search indexing.
If you have already listed a store please
×
Log inReset Password
 
     or   Create an Account

×
Reset Password
 

Links to login, account, cart, checkout
List of category links where category id number is n. E.g. {$LINKS_CATEGORY_3} or {$LINKS_CATEGORY_12} etc.
<div id="links_category1" class="links-category links-category-total-1 categories-1" data-total="1">
 <ul id="list_category1" data-total="1">
 </ul>
</div>
List of category links, same as {$LINKS_CATEGORIES}
List of footer links
<div class="links-footer">
 <ul>
  <li class="link-terms first"><a href="/terms/">Terms</a></li>
  <li class="link-privacy"><a href="/privacy/">Privacy</a></li>
  <li class="link-pricing"><a href="/pricing/">Pricing</a></li>
  <li class="link-contact last"><a href="/contact/">Contact</a></li>
 </ul>
</div>
List of groupings links
Where the display_name is the display name of an individual grouping.
List of information links
<h5>List on Vendo</h5>
<div id="links_information1" class="links-information">
 <ul>
  <li class="link-sell first"><a href="/list/">List on Vendo</a></li>
  <li class="link-pricing"><a href="/pricing/">Pricing</a></li>
  <li class="link-api"><a href="/api/">API</a></li>
  <li class="link-code-library current"><a href="/code-library/">Code Library</a></li>
  <li class="link-request-removal last"><a href="/request-removal/">Request Removal</a></li>
 </ul>
</div>
<h5>Company Info</h5>
<div id="links_information2" class="links-information">
 <ul>
  <li class="link-about first"><a href="/about/">About Vendo</a></li>
  <li class="link-contact"><a href="/contact/">Contact Us</a></li>
  <li class="link-updates"><a href="/updates/">Updates</a></li>
  <li class="link-bot"><a href="/bot/">Vendobot</a></li>
  <li class="link-privacy"><a href="/privacy/">Privacy Policy</a></li>
  <li class="link-terms last"><a href="/terms/">Terms of Service</a></li>
 </ul>
</div>
List on Vendo
Company Info
Links to login, account, cart, checkout
List of customers cart items, also {$ORDER}
<div id="links_order" class="links-order total-0 ">
<div id="links_order_total">0 items</div>
</div>
List of breadcrumb links
<div id="links2_path" class="links-path"><strong class="text-youarehere">You are here: </strong> <span class="link-home"><a href="/" class="link-home">Home</a></span> <span class="path-arrow arrow-1"> &gt; </span> <span class="path-product">Code Library: Smart Tags</span></div>
List of all products
List of section links: shop, login, account, cart, checkout, about, contact
List of subcategory links when viewing category
List of subcategory links when viewing category
Text displaying either log in or log out, also {$TEXT_LOGIN} Log in
Total number of items in user cart 0
Number of unique items in user cart 0
Current category, or subcategory and
Unique page ID code-library
Current section about
Current subsection layout
Page title Code Library: Smart Tags
Current URL /code-library/?t=1
User's operating system
Current product ID (numeric)
List of categories in a HTML select menu where category id number is n. E.g. {$SELECT_CATEGORY_3} or {$SELECT_CATEGORY_12} etc.
<form name="form_category" id="form_category" class="form-category form-category-total-1" data-total="1">
 <select name="select_category" id="select_category">
  <option -data-id="0" value="/shop/" class="option-0">-- Categories --</option>
 </select>
</form>
The categories as a HTML select menu
<form name="form_category" id="form_category" class="form-category form-category-total-35" data-total="35">
 <select name="select_category" id="select_category">
  <option -data-id="0" value="/shop/" class="option-0">-- Categories --</option>
  <option -data-id="2" class="select-alicante first" value="/shop/alicante">Alicante</option>
  <option -data-id="3" class="select-all-over-fruit" value="/shop/all-over-fruit">All Over Fruit</option>
  <option -data-id="4" class="select-amaretto subs" value="/shop/amaretto">Amaretto</option>
  <option -data-id="5" class="select-athenian" value="/shop/athenian">Athenian</option>
  <option -data-id="7" class="select-binary" value="/shop/binary">Binary</option>
  <option -data-id="53" class="select-bizet" value="/shop/bizet">Bizet</option>
  <option -data-id="9" class="select-bosphorus" value="/shop/bosphorus">Bosphorus</option>
  <option -data-id="12" class="select-chopin" value="/shop/chopin">Chopin</option>
  <option -data-id="14" class="select-colosseum" value="/shop/colosseum">Colosseum</option>
  <option -data-id="15" class="select-conifer" value="/shop/conifer">Conifer</option>
  <option -data-id="50" class="select-contempo subs" value="/shop/contempo">Contempo</option>
  <option -data-id="72" class="select-dulcia-latin" value="/shop/dulcia-latin">Dulcia-Latin</option>
  <option -data-id="74" class="select-echo" value="/shop/echo">Echo</option>
  <option -data-id="84" class="select-fernando" value="/shop/fernando">Fernando</option>
  <option -data-id="78" class="select-firenz" value="/shop/firenz">Firenz</option>
  <option -data-id="21" class="select-grapes" value="/shop/grapes">Grapes</option>
  <option -data-id="22" class="select-habitat" value="/shop/habitat">Habitat</option>
  <option -data-id="75" class="select-hanover" value="/shop/hanover">Hanover</option>
  <option -data-id="26" class="select-italiano" value="/shop/italiano">Italiano</option>
  <option -data-id="27" class="select-kalahari" value="/shop/kalahari">Kalahari</option>
  <option -data-id="28" class="select-kyoto" value="/shop/kyoto">Kyoto</option>
  <option -data-id="76" class="select-mozart" value="/shop/mozart">Mozart</option>
  <option -data-id="79" class="select-newport" value="/shop/newport">Newport</option>
  <option -data-id="31" class="select-nile" value="/shop/nile">Nile</option>
  <option -data-id="32" class="select-parisienne" value="/shop/parisienne">Parisienne</option>
  <option -data-id="69" class="select-provencal" value="/shop/provencal">Provencal</option>
  <option -data-id="77" class="select-rikau" value="/shop/rikau">Rikau</option>
  <option -data-id="40" class="select-rosa" value="/shop/rosa">Rosa</option>
  <option -data-id="42" class="select-script" value="/shop/script">Script</option>
  <option -data-id="43" class="select-sissinghurst" value="/shop/sissinghurst">Sissinghurst</option>
  <option -data-id="57" class="select-wall-hangingstable-coverst" value="/shop/wall-hangingstable-coverst">Wall Hangings / Table Covers /</option>
  <option -data-id="85" class="select-upholstery-supplies subs" value="/shop/upholstery-supplies">UPHOLSTERY SUPPLIES</option>
 </select>
</form>
The groupings as a HTML select menu
Name of website from profile, also {$VENDOR_NAME} Vendo
Either your account or create account Create Account
Store country ID (numeric). See the Country Codes for country names. 121
Session vendor ID number 121
Pages viewed in current session for the visitor. 0
Logged in as Wholesaler; 0=no, range: 1-9
×