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 22/05/2022
Current day Sunday
Current month May
Current time 7:26pm
Current week 20
Current year 2022
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 id="fieldset-login">
<legend>Log in</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" id="row-auto_login">
 <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" id="row-action-login">
 <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>
Log in
 
 
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
<input type="hidden" name="cn" id="cn" value="" />
<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 " /><input type="submit" name="search" value="Search" class="submit button-search" accesskey="s" title="Search (Ctrl Opt s)" id="submit-search" /><div id="search_suggest"></div> 
   <a href="/search/?filters=2" id="icon_filter">&dtrif;</a>
   </div>
   
<span id="search_suggest_icon" title="show suggestions" class="tooltip"></span>
    
 <!-- filters -->
 <fieldset class="closed" id="search_filters">
 <legend>Search Filters</legend>
 
  <span id="filters_close" class="box-close">&times;</span>
  
  <div class="filters-section"> 
  <div class="filter filter-onsale">
   <input type="checkbox" name="onsale" id="onsale" value="1"/> <label for="onsale" id="label_onsale" class="label-onsale">On Sale</label>
  </div>
  <div class="filter filter-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 filter-restricted">
   <input type="checkbox" value="1" name="restricted" id="restricted" > <label class="label-restricted" for="restricted">Restricted</label> 
  </div>
  </div>
	
	
  <div class="filters-section">
  <div class="filter filter-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"  autocomplete="off" class="" /><div id="search_suggest_vu"></div></div>
   
  <div class="filter filter-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>
  
  
 </fieldset>
 <!-- end filters -->
  
 <input type="hidden" value="0" name="filters" id="filters" />
</form>

<div id="header_links">

 <a href="/search_vendo/categories?" id="link_tags" title="Tags">#</a>
 <a href="/account/new/" 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>&nbsp;</b><sup id="total_likes">0</sup></a>
   <div id="box_likes" class="box-info box-likes" >
   <span id="box_likes_close" class="box-close">&times;</span>
   <h2>Favourites</h2>

   <span class="links-layout">
   <span class="links-layout-view">
    <a rel="nofollow" href="/code-library/?t=1&likes_view=1" rel="nofollow" id="link_likes_view"><span id="img_likes_list" title="list view" class="list tooltip left current" data-title=""></span><span id="img_likes_grid" title="grid view" class="grid tooltip right"></span></a>
   </span>
   <span class="links-layout-thumbs">
    <a rel="nofollow" href="/code-library/?t=1&likes_size=1" rel="nofollow" class="md tooltip size-sm" id="link_likes_size"><span id="img_likes_sm" title="small view" class="img-sm tooltip left current">A</span><span id="img_likes_md" title="large view" class="img-md tooltip right">A</span></a>
   </span>
   </span>

   <ul id="box_likes_ul" class="layout-listview thumbs-sm">
   </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="/order/" id="link_order">&nbsp;<sup id="order_items" class="order-items"></sup></a><a href="/purchase/" class="link-purchase" id="link_purchase"><b>Pay Now</b><span> -&gt; </span></a>
 <div class="box-info" id="box_order">
 <span id="box_order_close" class="box-close">&times;</span>
   
<div id="links_order" class="links-order total-0 ">
<div id="links_order_total">0 items</div>
</div>

 </div>
 <input type="hidden" name="order_total_items" id="order_total_items" value="0" />
 <input type="hidden" name="order_total_subtotal" id="order_total_subtotal" value="0" />
 <a href="/stores/" id="link_stores">Stores</a><a href="/sell/" id="link_store" data-title="Sell on Vendo">+</a>
 <a href="/info/" id="trigger" class="menu-trigger">&#9776;</a>
 <div id="box_tags" class="box-info">
 <span id="box_tags_close" class="box-close">&times;</span>
 <h2>Tags</h2><form method="post" id="form_search_tags" class="form-search-tags"><input type="search" name="search_tags" id="search_tags" placeholder="search tags" /><input type="hidden" name="search_tags_uri" id="search_tags_uri" value="" /><input type="hidden" name="search_tags_cn" id="search_tags_cn" value="" /></form>
 <div id="box_tags_inner"></div>
 </div>
 <div id="box_account" class="box-info">
 <span id="box_account_close" class="box-close">&times;</span>
 <div id="box_account_inner">
 <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/" class="go-down">Account</a>
  <ul>
   <li><a href="" class="go-up">Back <b>Account</b></a></li>
   <li><a href="/account/new/" rel="nofollow">Create Account</a></li>
   <li><a href="/account/orders/" rel="nofollow">My Orders</a></li>
   <li><a href="/account/#email_notifications" rel="nofollow">Notifications</a></li>
   <li><a href="/account/#address_book" rel="nofollow">Addresses</a></li>
   <li><a href="/account/password/" rel="nofollow">Reset password</a></li>
   <li><a href="/account/?remove=1" rel="nofollow">Delete account</a></li>
  </ul>
  </li>
  <li><a href="/account/settings/" id="link_account_settings" rel="nofollow" class="go-down">Display settings</a>
  
   <ul>
   <li><a href="/account/settings/" class="go-up">Back <b>Settings</b></a></li>
   <li id="box_account_settings"></li>
  </ul>
  
  </li>
  <li><a href="/cookies/" rel="nofollow">Cookies</a></li>
  <li><a href="/search/?fv=1">Favourites</a></li>
  <li><a href="/order/">Cart</a></li>
  <li><a href="/purchase/">Checkout</a></li>
  
 </ul>
 </div>
 </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="/sell/" 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. 
  </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="/sell/" 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.
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