This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
pinning.example.yml
69 lines (62 loc) · 2.92 KB
/
pinning.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# NOTE: restart HipsterPizza after changes in pinning.yml
# this pins the shop to use and disallows the creation of any other
# baskets. The URL is the one in the given in <link rel="canonical" …>
# on the shop’s site. Alternatively, create a basket first and retrieve
# this URL in a `rails console` via `puts Basket.last.shop_url`.
shop_url: '/indian-curry-berlin-bruesseler-str-17'
# this pins the delivery area. If not given (or empty) pizza.de will
# open a popup each time asking for it. This is used to determine values
# like minimal required amount, delivery costs, etc. Must start with a
# question mark.
shop_url_params: '?lgs=102261&ed=506912'
# If you only pin the shop URL the name and fax number will be deter-
# mined when visiting the shop page. This means that whoever creates a
# new basket, needs to visit the shop page. Everything is handled auto-
# matically, but it slows things down. If you pin both values, the shop
# will be created from that without visiting pizza.de first.
#
# If you don’t order by fax (see fax.example.yml) you can enter an
# invalid number like +00000. Otherwise the format is of the form
# +4912341234. Alternatively, grab the data via `rails console` and run
# `puts Basket.last.shop_fax` and `puts Basket.last.shop_name`.
shop_fax: ~
shop_name: ~
# This controls whether multiple baskets are allowed. If set to true,
# there can only be one editable basket (i.e. only one which is neither
# canceled nor already submitted). If there’s an editable basket, users
# visiting the front page will be immediately redirected there.
# If set to false, HipsterPizza allows any number of concurrent baskets
# and no redirection will take place.
single_basket_mode: true
# Only takes effect if single_basket_mode=true. Controls how long users
# will be redirect to the “old” basket, after it has been submitted. The
# time is specified in minutes. If a new, editable basket is created in
# the meantime, users will be redirected there, regardless of this
# value.
single_basket_timeout: 720
# Set this to true to prefill address fields. Setting this will prevent
# HipsterPizza from restoring the address data locally stored in your
# browser.
# Note: the gender field is intentionally not handled, so you can’t
# submit the order by accident.
address_prefill: true
address:
company: 'Testfirma'
department: 'Testabteilung'
firstname: 'Max'
lastname: 'Mustermann'
street: 'Brüsseler Str.'
street_no: '17'
zipcode: '12347'
city: 'Berlin'
# first part of your phone number
areacode: '000'
# second part of your phone number
local_number: '00000000'
email: '[email protected]'
# the two free text fields pizza.de offers are simply concatenated
# when submitting the form. I believe the limit for _both_ (not each!)
# is around 400 characters, but I haven’t checked.
# If you order by fax instead of through pizza.de, there is no
# arbitrary limit.
details: 'Danke für die Teilnahme am Test.'