StoreBrander's Custom Templates Guide

HTML page has the following structure:

<html>
    <head>
    </head>
    <body>
    </body>
</html>

You can specify HTML code between <body> and </body> tags using StoreBrander's custom templates. StoreBrander's custom templates may contain any HTML code and several StoreBrander specific tags, described bellow.

Also you can place any head tags (like <meta>, <script>, <style>, etc.) to the end of aStore <head> section using StoreBrander's head extension.

<BrandedStore/> tag

Complete aStore html code (between <body> and </body> tags) will be substituted into your template instead of <BrandedStore/> tag. aStore template should contain <BrandedStore/> tag.

<inject/> tag

125x125 Hosting & Servers GoDaddy.com

<inject/> tag allows inject html from external web site into branded store. <inject/> tag can be used as in StoreBrander's custom template as in StoreBrander's head extension.

<inject src="<external html url>"/>

Attributes description

src
url of external html page. Required. You can use {BrandedStoreUrl} (literal) substitution in url attribute to pass url of current branded store page to external http server. Using the substitution you can inject different html into different aStore pages.

<inject/> tag in custom templates

If html returned from url specified contains <body> tag only its content will be injected into your branded store page. Otherwise all html returned will be injected.

<inject/> tag in head extensions

If html returned from url specified contains <head> tag only its content will be injected into your branded store page. Otherwise all html returned will be injected.

<injectWidget/> tag

You can inject Amazon widgets into your branded store pages at server side using <injectWidget/> tag in StoreBrander's custom template.

Books & Media Store uses <injectWidget/> tag in it's custom template.

<injectWidget
    [domain="<branded store domain>"]
    [id="<uniqueID>"]
    [size="6|8|9|10|11|12|13|14|15|16|36|48"]
    [type="sb3|op1|qs1|st1|bn1|as1|ur1|ez"]
    [backgroundColor="#RRGGBB"]
    [borderColor="#RRGGBB"]
    [priceColor="#RRGGBB"]
    [textColor="#RRGGBB"]
    [linkColor="#RRGGBB"]
    [logoColor="#RRGGBB"]
    [privacyColor="#RRGGBB"]
    [lightLogo="0|1"]
    [allPrices="0|1|2"]
    [showBorder="0|1"]
    [showLogo="0|1"]
    [showImages="0|1"]
    [largeImages="0|1"]
    [target="<target>"]
    [showDiscount="0|1"]
    [category="<category>"]
    [subcategory="<subcategory>"]
    [ASIN="<asin>"]
    [banner="<banner id>"]
    [excludeKeywords="<5 or less semicolon delimited keywords>"]
    [includeKeywords="<5 or less semicolon delimited keywords>"]
    [includeCategories="<???>"]
    [title="<Widget Title>"]
    />

Attributes description

Square brackets mean that attribute is optional. Some attributes are incompatible. Incorrectly formatted attributes are ignored.

domain
Domain of branded store widget belongs to, exactly the same as specified during branded store definition. You can use any branded store here. If not specified or wrong current branded store is used.
id
Widget identifier. Free form string. Could be used for widget style tuning using custom styles in StoreBrander's head extension. Autogenerated if not specified.
type
Widget type. One of the following values:
ValueSize
sb3aStore widget
op1Omakase widget
qs1Search widget
st1Recommended products widget (category/subcategory)
bn1Recommended products widget (category/keywords)
as1Product link
ur1Banner link
ezRandom link
By default sb3 (aStore widget).
Options by type matrix
sb3op1qs1st1bn1as1ur1ez
domain++++++++
id++++++++
type++++++++
size++++++++
backgroundColor++++++--
borderColor+++--+--
priceColor++------
textColor++++++--
linkColor++++++--
logoColor+-------
privacyColor+-------
lightLogo+-------
allPrices++?+++--
showBorder++?-----
showLogo++?-----
showImages++?-----
largeImages---+++--
target++?+++--
showDiscount+-------
category---++-+-
subcategory----+---
ASIN-----+--
banner------+-
excludeKeywords???-----
includeKeywords???+----
includeCategories???-----
title+-------
size
Widget size. One of the following numbers:
ValueSizeTypes
1120x150
2120x240
3392x67
4120x450
5120x600
6120x150st1;bn1;as1
7
8120x240op1;sb3;st1;bn1;as1
9180x150op1;sb3;st1;bn1
10120x450st1
11120x600op1;sb3;st1;bn1
12300x250op1;sb3;st1;bn1
13468x60op1;sb3;st1;bn1
14160x600op1;sb3;st1;bn1
15468x240st1;bn1
16468x336st1;bn1
17160x450
20120x90qs1
21125x125
22250x250
23280x336
24720x70
25468x336
26468x60
27180x150qs1
28120x240
29120x600
34120x250
35150x80
36600x520op1;sb3
40120x60
4188x31
42234x60
43350x100
44100x70
48728x90op1;sb3;st1;bn1
49300x600
50720x300
By default 14 (160x600).
backgroundColor
Background color. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #FFFFFF.
borderColor
Border color. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #000000.
priceColor
Price color. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #990000.
textColor
Text color. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #000000.
linkColor
Color of links. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #3399FF.
logoColor
Widget title color. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #CC6600.
privacyColor
Color of 'Privacy Information' link. Standard HTML color in the form #RRGGBB where R, G and B are hexadecimal digits. By default #6E6E6E.
lightLogo
Changes logo color for aStore widget if showLogo="1". Can be 0 or 1. By default 1. It appears have no influence on Omakase widget.
allPrices
Can be 0 or 1.
ValueSize
0Show Amazon prices only
1Show all prices
2Don't show prices (st1, bn1 and as1 only)
By default 1 (Show all prices).
showBorder
Can be 0 or 1.
ValueSize
0Hide border
1Show border
By default 0 (Hide border).
showLogo
Can be 0 or 1.
ValueSize
0Show text widget title specified with title attribute
1Show graphic Amazon.com title
By default 0 (Show text title).
showImages
Can be 0 or 1.
ValueSize
0Hide images
1Show images
By default 0 (Hide images).
largeImages
Can be 0 or 1.
ValueSize
0Normal images
1Large images
By default 0 (Normal images).
showDiscount
Can be 0 or 1.
ValueSize
0Don't show discount at product images
1Show discount at product images
By default 1 (Show discount).
title
Widget title text if showLogo="0". 'Amazon.com' by default. It appears have no influence to Omakase widget.
target
target attribute of product links. The same window by default.
category
Category for st1 and bn1 widgets. One of the following values.
ValueCategory
apparelApparel & Accessories
automotiveAutomotive
babyBaby
beautyBeauty
booksBooks
photoCamera & Photo
wireless-phonesCell Phones & Service
classicalClassical Music
pc-hardwareComputers
dvdDVD
electronicsElectronics
gourmetGourmet Food
groceryGrocery
gardenHome & Garden
hpcHealth & Personal Care
industrialIndustrial & Scientific
jewelryJewelry
kindleKindle Store
kitchenKitchen & Housewares
magazinesMagazine Subscriptions
universalMiscellaneous
digital-musicMP3 Downloads
musicMusic
miMusical Instruments
office-productsOffice Products
shoesShoes
softwareSoftware
sportingSports & Outdoors
toolsTools & Hardware
toysToys & Games
vhsVHS
amazontvVideo On Demand Videos
videogamesVideo Games
watchesWatches
wireless-accessoriesWireless Accessories
For ur1 widget please use the following values:
ValueCategory
gift_certificatesGift Cards
frustrationfreepackagingAmazon Frustration-Free Packaging
amazonmp3newalbumreleasesAmazon MP3 New Album Releases
shortsAmazon Shorts
amazonvideoondemandAmazon Video On Demand
apparelApparel & Accessories
automotiveAutomotive
babyBaby
babyregistryBaby Registry
schoolBack to School/Off to College
beautyBeauty
booksBooks
wirelessCell Phones
gamesComputer & Video Games
computers_accesoriesComputers & Accessories
contractorsupplyContractor Supply
dvdDVD
earthdayEarth Day
electronicsElectronics
endlessEndless.com
game_downloadsGame Downloads
gourmetGourmet Food
greatestindierockalbumsGreatest Indie Rock Albums
greenGreen
groceryGrocery
harrypotterHarry Potter
healthHealth & Personal Care
holidayHoliday
holidaytoylistHoliday Toy List
homegardenHome & Garden
homeaudiohometheaterHome Audio & Home Theater
homeHomepage Links
industrialscientificIndustrial & Scientific
jewelryJewelry
kindleKindle
kitchenKitchen & Housewares
mp3MP3 Downloads
magazinesMagazine Subscriptions
mothersdayMother's Day
musicMusic
instrumentsMusical Instruments
officeschoolsuppliesOffice & School Supplies
outletOutlet
patiolawngardenPatio, Lawn & Garden
petsPets
schoolrewardsSchoolRewards
shoesShoes
softwareSoftware
sportsSports & Outdoors
sssSuper Saver Shipping
textbooksTextbooks
toolsTools & Hardware
toysandgamesToys & Games
valentinesValentine's Day
videogamesVideo Games
watchesWatches
weddingWedding Registry
subcategory
Category for bn1 widget. Number - Amazon node id.
ASIN
Product ASIN for as1 widget.
banner
banner id for ur1 widget.