Skip to content

Instantly share code, notes, and snippets.

@egoes
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egoes/c64ff757da8fa61fafa1 to your computer and use it in GitHub Desktop.
Save egoes/c64ff757da8fa61fafa1 to your computer and use it in GitHub Desktop.
Peecho Simple Print Button (SPB) advanced configuration as partly documented on http://www.peecho.com/simple-print-button

Peecho Simple Print Button (SPB) customization

Data elements that change Print Button behaviour

data-country="Switzerland"
the current country can be set, the matching currency will automatically be selected if data-currency is not set.

data-currency="CHF"
an indicator for the preferred currency.

data-locale="fr_FR"
language en_EN (default), nl_NL, de_DE, it_IT, fr_FR or es_ES.

data-style="true|false"
boolean to invoke our stylesheet [true - default] or your own [false].

data-text="Imprimer…"
string that overrides the button label (default: "Order print", but depends on the set language).

data-tooltip="Cliquer pour commander…"
overrides the default information tooltip messages.

data-theme="blue"
can be set to blue to show a blue button (instead of green).

Data elements that change checkout behaviour

data-title="My Publication"
the title of your publication.

data-thumbnail="http://example.com/image.jpg"
a URL for a thumbnail image of your publication.

data-redirect-error="http://example.com/error.html"
a valid URL with a custom error page.

data-redirect-thankyou="http://example.com/thanks.html"
a valid URL to replace our thank-you-page.

data-currency="CHF"
an indicator for the preferred currency.

data-locale="fr_FR"
language en_EN (default), nl_NL, de_DE, it_IT, fr_FR or es_ES.

data-size="S|M|L"
force to one size only

data-category="mag|glo|hcl|can|dib|gal|fob|pos|c05|c10"
force to only one print type.

mag = Magazine
glo = Glossy softcover books
hcl = Hardcover books
can = Canvas
dib = Dibond
gal = Gallery
fob = Foamboard
pos = Posters
c05 = 5 Postcards
c10 = 10 Postcards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment