Support Center

What are the button variables?

Last Updated: Feb 11, 2013 10:12AM CET

The variables are the pieces of information that you need to add to the button code. We need to know these variables to print your document.


Mandatory variables

  • data-filetype should be 'pdf', 'jpg', 'png' or 'gif'. Default is 'pdf'.
  • data-width is a number, equal to the width of the document in millimeters in case of a PDF. In case of filetype image it is the image width in pixels.
  • data-height is a number, equal to the height of the document in millimeters in case of a PDF. In case of filetype image it is the image height in pixels.
  • data-pages is the total number of pages, including the cover pages. In case your filetype is an image, the number of pages should always be 1.
  • data-src is the permalink to the actual document file. It should be a valid URL that should be available for at least a week after ordering.


Recommended variables

  • data-title is the title of your publication.
  • data-offering is an ID that refers to your own Peecho catalogue. You can use it to force a product choice. It will override our product suggestion.
  • data-thumbnail is valid URL that points to a thumbnail image that describes the document.
  • data-redirect-cancel is a valid URL that points to one of your own pages that contains your message to a visitor who cancels the order during the check-out process.
  • data-redirect-error is a valid URL that points to one of your own pages that contains your own error message in case something goes wrong during the check-out process.
  • data-redirect-thankyou is a valid URL that points to one of your own pages that contains your thank-you message to a visitor who has finished the order.
  • data-currency indicates the currency that should be used.
  • data-locale points to the language that should be used.
  • data-style is a boolean (default "true") that indicates if the default styling of the button is enabled.
  • data-text is a string that replaces the default text on the button.

Contact Us

help@peecho.com
http://assets2.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete