Smart Tags Description Output Result
User's browser version number
User's browser
Default Browser
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
01/11/2024
Current day
Friday
Current month
November
Current time
9:29pm
Current week
44
Current year
2024
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="email" id="header_form_email" size="20" value="" maxlength="100" class="text" required="required" />
</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" required="required" /> <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"> </span><input type="checkbox" value="4" name="auto_login" id="auto_login" /><label for="auto_login" class="none">Stay logged in</label>
</div>
</fieldset>
<div class="box-action" id="row-action-login">
<span class="margin"> </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>
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"> </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"> </span>
<input type="submit" name="subscribe" value="Subscribe" class="submit button-subscribe" accesskey="1" title="Subscribe (Alt Shift 1)" id="submit_subscribe" />
</div>
</form>
The last search by user
Search form
<form action="/search/" method="post" name="form_search" id="form_search" class="form-search">
<fieldset>
<legend>Search</legend>
<div class="search-keywords">
<label for="keywords">Shop for</label>
<input type="search" name="vq" id="keywords" placeholder="Shop for" value="" maxlength="255" /><input type="submit" name="search" value="Search" class="submit button-search" accesskey="s" title="Search (Alt Shift s)" id="submit_search" />
</div>
</fieldset>
</form>
Links to login, account, cart, checkout
<div id="links_login" class="links-login">
<ul>
<li id="links_login_login" class="link-login first"><a href="/login/" rel="Login nofollow">Log in</a></li>
<li id="links_login_account" class="link-account"><a href="/account/new/" rel="Account nofollow">Account</a></li>
<li id="links_login_order" class="link-order"><a href="/order/" rel="Order nofollow">Cart</a></li>
<li id="links_login_purchase" class="link-purchase last"><a href="/purchase/" rel="Purchase nofollow">Checkout</a></li>
</ul>
</div>
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">
<li id="link_adult_dog_food" class="link-adult-dog-food link-3 first last" data-total="5"><a href="/shop/adult-dog-food/" title="5">Adult Dog Food</a></li>
</ul>
</div>
List of category links, same as {$LINKS_CATEGORIES}
<div id="links_category" class="links-category links-category-total-6 categories-6" data-total="6">
<ul id="list_category" data-total="6">
<li id="link_puppy_dog_food" class="link-puppy-dog-food link-4 first" data-total="4"><a href="/shop/puppy-dog-food/" title="4">Puppy Dog Food</a></li>
<li id="link_adult_dog_food" class="link-adult-dog-food link-3" data-total="5"><a href="/shop/adult-dog-food/" title="5">Adult Dog Food</a></li>
<li id="link_senior_dog_food" class="link-senior-dog-food link-6" data-total="2"><a href="/shop/senior-dog-food/" title="2">Senior Dog Food</a></li>
<li id="link_pro_pac_ultimates_dogcat" class="link-pro-pac-ultimates-dogcat link-14" data-total="5"><a href="/shop/pro-pac-ultimates-dogcat/" title="5">Pro Pac Ultimates Dog</a></li>
<li id="link_pro_pac_ultimates_grain_free" class="link-pro-pac-ultimates-grain-free link-17" data-total="1"><a href="/shop/pro-pac-ultimates-grain-free/" title="1">Pro Pac Ultimates Grain-Free</a></li>
<li id="link_earthborn_holistic_grain_free" class="link-earthborn-holistic-grain-free link-12 last" data-total="1"><a href="/shop/earthborn-holistic-grain-free/" title="1">Earthborn Holistic Grain-Free</a></li>
</ul>
</div>
List of footer links
List of groupings links
Where the display_name
is the display name of an individual grouping.
List of information links
<div id="links_information1" class="links-information links-information-total-14" data-total="14">
<ul>
<li id="link_information_about" class="link-about first"><a href="/about/">About Us</a></li>
<li id="link_information_contact" class="link-contact"><a href="/contact/">Contact Us</a></li>
<li id="link_information_autoship" class="link-autoship"><a href="/autoship/">Autoship</a></li>
<li id="link_information_breeder_programme" class="link-breeder-programme"><a href="/breeder-programme/">Breeder Programme</a></li>
<li id="link_information_dog_training_advice" class="link-dog-training-advice"><a href="/dog-training-advice/">Dog Training & Advice</a></li>
<li id="link_information_faqs" class="link-faqs"><a href="/faqs/">FAQs</a></li>
<li id="link_information_kibble_sizes" class="link-kibble-sizes"><a href="/kibble-sizes/">Kibble Sizes</a></li>
<li id="link_information_loyalty_club" class="link-loyalty-club"><a href="/loyalty-club/">Loyalty Club</a></li>
<li id="link_information_what_people_are_saying" class="link-what-people-are-saying"><a href="/what-people-are-saying/">What People are Saying...</a></li>
<li id="link_information_more_information_on_dog_food" class="link-more-information-on-dog-food"><a href="/more-information-on-dog-food/">More Information on Dog Food</a></li>
<li id="link_information_policies" class="link-policies"><a href="/policies/">Policies & Conditions</a></li>
<li id="link_information_feed_calculator" class="link-feed-calculator"><a href="/feed-calculator/">Pro Pac Feed Calculator</a></li>
<li id="link_information_shipping" class="link-shipping"><a href="/shipping/">Shipping</a></li>
<li id="link_information_news" class="link-news last"><a href="/news/">News</a></li>
</ul>
</div>
Links to login, account, cart, checkout
<div id="links_login" class="links-login">
<ul>
<li id="links_login_login" class="link-login first"><a href="/login/" rel="Login nofollow">Log in</a></li>
<li id="links_login_account" class="link-account"><a href="/account/new/" rel="Account nofollow">Account</a></li>
<li id="links_login_order" class="link-order"><a href="/order/" rel="Order nofollow">Cart</a></li>
<li id="links_login_purchase" class="link-purchase last"><a href="/purchase/" rel="Purchase nofollow">Checkout</a></li>
</ul>
</div>
List of customers cart items, also {$ORDER}
<div id="links2_order" class="links-order total-0 ">
<div id="links2_order_total">0 items</div>
</div>
List of breadcrumb links
<nav id="links2_path" class="links-path links-2">
<ol>
<li class="path-home"><span class="link-home"><a href="/" class="link-home">Home</a></span></li>
<li class="path-code-library-smart-tags"><span class="path-product">Code Library: Smart Tags</span></li>
</ol>
</nav>
Home
Code Library: Smart Tags
List of all products
List of section links: shop, login, account, cart, checkout, about, contact
<div id="links2_shop" class="links-shop">
<ul>
<li id="links2_shop_shop" class="link-shop first"><a href="/shop/">Shop</a></li>
<li id="links2_shop_login" class="link-login"><a href="/login/" rel="nofollow">Log in</a></li>
<li id="links2_shop_account" class="link-account"><a href="/account/new" rel="nofollow">Account</a></li>
<li id="links2_shop_order" class="link-order"><a href="/order/" rel="nofollow">Cart</a></li>
<li id="links2_shop_purchase" class="link-purchase"><a href="/purchase/" rel="nofollow">Checkout</a></li>
<li id="links2_shop_about" class="link-about current"><a href="/about/">About Us</a></li>
<li id="links2_shop_contact" class="link-contact last"><a href="/contact/">Contact Us</a></li>
</ul>
</div>
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>
<option -data-id="3" class="select-adult-dog-food first last" value="/shop/adult-dog-food">Adult Dog Food</option>
</select>
</form>
The categories as a HTML select menu
<form name="form_category" id="form_category" class="form-category form-category-total-6" data-total="6">
<select name="select_category" id="select_category">
<option -data-id="0" value="/shop/" class="option-0">-- Categories --</option>
<option -data-id="4" class="select-puppy-dog-food first" value="/shop/puppy-dog-food">Puppy Dog Food</option>
<option -data-id="3" class="select-adult-dog-food" value="/shop/adult-dog-food">Adult Dog Food</option>
<option -data-id="6" class="select-senior-dog-food" value="/shop/senior-dog-food">Senior Dog Food</option>
<option -data-id="14" class="select-pro-pac-ultimates-dogcat" value="/shop/pro-pac-ultimates-dogcat">Pro Pac Ultimates Dog</option>
<option -data-id="17" class="select-pro-pac-ultimates-grain-free" value="/shop/pro-pac-ultimates-grain-free">Pro Pac Ultimates Grain-Free</option>
<option -data-id="12" class="select-earthborn-holistic-grain-free last" value="/shop/earthborn-holistic-grain-free">Earthborn Holistic Grain-Free</option>
</select>
</form>
The groupings as a HTML select menu
Name of website from profile, also {$VENDOR_NAME}
PetFood Direct
Either your account or create account
Create Account
Store country ID (numeric). See the Country Codes for country names.
121
Session vendor ID number
814
Pages viewed in current session for the visitor.
0
Logged in as Wholesaler; 0=no, range: 1-9
0