Modular Merchant
QuickCode™ Glossary
{TWITTER-TWEET-BUTTON}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{AFFILIATE-FIRST-NAME}

{AFFILIATE-LAST-NAME}

{AFFILIATE-SALES-BLOCK-BEGIN}

{AFFILIATE-SALES-BLOCK-END}

{AFFILIATE-SALES-COMMISSION-TYPE}

{AFFILIATE-SALES-COMMISSION-VALUE}

{AFFILIATE-SALES-DATE-EARNED}

{AFFILIATE-SALES-DATE-RANGE-MENU}

{AFFILIATE-SALES-DETAILS-URL}

{AFFILIATE-SALES-ORDER-EMAIL}

{AFFILIATE-SALES-ORDER-FIRST-NAME}

{AFFILIATE-SALES-ORDER-ID}

{AFFILIATE-SALES-ORDER-LAST-NAME}

{AFFILIATE-SALES-TRACKING-ID-DESCRIPTION}

{AFFILIATE-SALES-TRACKING-ID-NUMBER}

{AFFILIATE-STATS-ACCOUNT-BALANCE}

{AFFILIATE-STATS-AVERAGE-COMMISSION}

{AFFILIATE-STATS-BLOCK-BEGIN}

{AFFILIATE-STATS-BLOCK-END}

{AFFILIATE-STATS-BONUS}

{AFFILIATE-STATS-CONVERSION}

{AFFILIATE-STATS-START-DATE}

{AFFILIATE-STATS-TOTAL-EARNED}

{AFFILIATE-STATS-TOTAL-HITS}

{AFFILIATE-STATS-TOTAL-ORDERS}

{AFFILIATE-STATS-TOTAL-PAID}

{AFFILIATE-TID-ACTIVE}

{AFFILIATE-TID-BLOCK-BEGIN}

{AFFILIATE-TID-BLOCK-END}

{AFFILIATE-TID-COMMISSION-GRAPH}

{AFFILIATE-TID-CONVERSION}

{AFFILIATE-TID-DELETE-URL}

{AFFILIATE-TID-DESCRIPTION}

{AFFILIATE-TID-EDIT-URL}

{AFFILIATE-TID-EDIT-VAR}

{AFFILIATE-TID-HITS-END-MONTH-MENU}

{AFFILIATE-TID-HITS-END-YEAR-MENU}

{AFFILIATE-TID-HITS-START-MONTH-MENU}

{AFFILIATE-TID-HITS-START-YEAR-MENU}

{AFFILIATE-TID-HITS}

{AFFILIATE-TID-LANDING-URL}

{AFFILIATE-TID-SALES-END-MONTH-MENU}

{AFFILIATE-TID-SALES-END-YEAR-MENU}

{AFFILIATE-TID-SALES-START-MONTH-MENU}

{AFFILIATE-TID-SALES-START-YEAR-MENU}

{AFFILIATE-TID-SALES}

{AFFILIATE-TID-SID}

{AFFILIATE-TID-STATISTICS-URL}

{AFFILIATE-TID-TOTAL-EARNED}

{AFFILIATE-TID-TRACKING-HTML}

{AFFILIATE-TID-TRAFFIC-GRAPH}

{FIELD-AFFILIATE-COMPANY}

{FIELD-AFFILIATE-FAX}

{FIELD-AFFILIATE-PAYABLE-TO}

{FIELD-AFFILIATE-TAX-CLASS}

{FIELD-AFFILIATE-TAX-ID}

{FIELD-AFFILIATE-URL}

{FIELD-EDIT-TRACKING-ID-ACTIVE-CHECKBOX}

{FIELD-EDIT-TRACKING-ID-LANDING-URL}

{FIELD-NEW-TRACKING-ID-ACTIVE-CHECKBOX}

{FIELD-NEW-TRACKING-ID-DESCRIPTION}

{IF-CUSTOMER-CREDIT-ACCOUNT-HAS-FUNDS-END}

{IF-CUSTOMER-HAS-CREDIT-ACCOUNT-END}

{IF-EDIT-AFFILIATE-TRACKING-ID-BEGIN}

{IF-EDIT-AFFILIATE-TRACKING-ID-END}

{TWITTER-TWEET-BUTTON}

Affiliates > {TWITTER-TWEET-BUTTON}
<< {IF-EDIT-AFFILIATE-TRACKING-ID-END}
{TWITTER-TWEET-BUTTON} Updated: 02/11/2013

This QuickCode Tag is used to add a Twitter "Tweet" button to any page of your online store.

The tag can be used as-is to display a Twitter Tweetbutton in your storefront. However, it can also accept several parameters, which can be used to customize its appearance and behavior. The available parameters include:

url
URL of the page to share.
Possible values: Any URL
Default: Webpage containing the button


via
Screen name of the user to attribute the Tweet to.
Possible values: Any Twitter screen name
Default: User's Twitter screen name


text
Default Tweet text.
Possible values: Any text, with spaces replaced by hyphens. The hyphens will be changed back to spaces when the Tweet text is rendered in the web browser.
(See the "No Spaces in QuickCode Tag Parameters" instructions below for more details.)
Default: Content of the page's <title> tag

related
Related Twitter accounts. Using the related field you can suggest accounts for a user to follow once they have sent a Tweet using your Tweet Button. These suggested accounts and their basic information are shown on the last page of the Share Box flow.
Possible values: Any Twitter screen name
Default: none


count
Determines whether or not the count box is displayed, and where.
Possible values: none, horizontal, vertical
Default: horizontal


lang
The language applied to the Tweet button.
Possible values: en (English), fr (French), de (German), it (Italian), es (Spanish), ko (Korean), ja (Japanese)
Default: en


counturl
URL to which your shared URL resolves.
Possible values: Any URL
Default: none


hashtags
This will create a Tweet button that specifies a hashtag within the text and the button.
Possible values: Any text (exclude the "#" character)
Default: none


size
The size of the button can be set to either "medium", which is the default size, or "large", which is a larger version.
Possible values: medium, large
Default: medium


dnt
Twitter buttons on your site can help us tailor content and suggestions for Twitter users. If you want to opt-out of this feature, set the optional data-dnt parameter to be true.
Possible values: true, false
Default: false
Requirements / Prerequisites

When using parameters within the QuickCode Tag, the different values should be separated correctly.

Colons ( : ) should be used to separate the different options; such as width and lang.

Equal signs ( = ) should be used to distinguish what the option's value is.

 

An example of their separation can be viewed below:

{TWITTER-TWEET-BUTTON:lang=it:count=vertical}

 

Name/Value Pairs
The preferred method is to use name/value pairs. In this approach, both the name of the parameter and its value are included in the QuickCode Tag. This allows you to set custom values for any number of the available parameters, in any order.

For example, to set custom values for just the "text" and "via" options, the QuickCode Tag would look something like this when using name/value pairs:

{TWITTER-TWEET-BUTTON:text=my-first-tweet:via=myaccount}

Note that when using name/value pairs, the parameters may be included in any order, and unused parameters may be excluded.

 

Values Only
Optionally, just the values of the parameters may be included. This can make the QuickCode Tag shorter in some cases, however, when including only the values of each parameter they must be kept in order.

For example, to set custom values for just the "text" and "via" options, the QuickCode Tag would look something like this when using just values:

{TWITTER-TWEET-BUTTON:http://www.example.com/page.html:myaccount:my-first-tweet}

Note that when using only the values, all parameters from the first one through the last one you use must be present and in the correct order.

Example of Use

If you wanted a large Twitter Tweet button that displays a horizontal count box, the following tag could be used:

{TWITTER-TWEET-BUTTON:size=large:count=horizontal}

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {TWITTER-TWEET-BUTTON} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map