This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
/
ecommerce-config.yml
614 lines (520 loc) · 29 KB
/
ecommerce-config.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
# you can use import statement for including additional files that are merged into the config
# use console command 'debug:config PimcoreEcommerceFrameworkBundle' to check current (merged) configuration
imports:
- { resource: expensive-shipping.yml }
- { resource: optimized-mysql-index.yml }
# add one of these configuration files to use elastic search as search backend
# - { resource: elastic-search-index-5.yml }
# - { resource: elastic-search-index-6.yml }
# configuration of e-commerce framework
pimcore_ecommerce_framework:
# Configuration of e-commerce framework factory - following values are default values and can be omitted
# factory:
# # Service Id of factory implementation
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\Factory
#
# # If true the factory will not fall back to the default tenant if a tenant is passed but not existing
# strict_tenants: false
# Configuration of environment - following values are default values and could be omitted
environment:
environment_id: Pimcore\Bundle\EcommerceFrameworkBundle\SessionEnvironment
options:
defaultCurrency: "EUR"
# Settings for cart manager
cart_manager:
# Configuration per tenant.
# If a _defaults key is set, it will be merged into every tenant. It needs to be set in every file.
# A tenant named "default" is mandatory.
tenants:
default:
# Service id of cart service - following value is default and can be omitted
# cart_manager_id: Pimcore\Bundle\EcommerceFrameworkBundle\CartManager\MultiCartManager
# Configuration for carts
cart:
# Service id of cart factory and configuration array - following values are default and can be omitted
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\CartManager\CartFactory
# factory_options:
# cart_class_name: Pimcore\Bundle\EcommerceFrameworkBundle\CartManager\Cart
# guest_cart_class_name: Pimcore\Bundle\EcommerceFrameworkBundle\CartManager\SessionCart
price_calculator:
# List price modificators for cart, e.g. for shipping-cost, special discounts, ...
# key is name of modificator
modificators:
shipping:
class: Pimcore\Bundle\EcommerceFrameworkBundle\CartManager\CartPriceModificator\Shipping
# configuration options for price modificator
options:
charge: "5.90"
# additional checkout tenant for cart manager
# - for not specified elements the _default configuration is merged into tenant configuration
# - active tenant is set at \Pimcore\Bundle\EcommerceFrameworkBundle\IEnvironment::setCurrentCheckoutTenant()
noShipping:
price_calculator:
# remove all price modificators
modificators: ~
# you also can configure additional tenants in additional configuration files which are merged into configuration
# Configuration of price systems - key is name of price system
price_systems:
default:
# Price system defined and configured as container service
id: app.default_price_system
# default value for service id would be
#id: Pimcore\Bundle\EcommerceFrameworkBundle\PriceSystem\AttributePriceSystem
# Configuration of availability systems - key is name of price system
# Following values are default values an can be omitted
# availability_systems:
# default:
# id: Pimcore\Bundle\EcommerceFrameworkBundle\AvailabilitySystem\AvailabilitySystem
# Configuration of index service
index_service:
# Following two values are default values an can be omitted
# index_service_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\IndexService
# default_tenant: default
# Configure assortment tenants - at least one tenant has to be configured
# If a _defaults key is set, it will be merged into every tenant.
tenants:
default:
# Following values are default values an can be omitted
# enabled: true
# config_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Config\DefaultMysql
# config_options: []
# worker_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Worker\DefaultMysql
# placeholder values in this tenant attributes definition (locale: '%%locale%%') will be replaced by
# the given placeholder value (eg. 'de_AT')
placeholders:
'%%locale%%': 'de_AT'
# add columns for general fulltext search index of product list - they must be part of the column configuration below
search_attributes:
- name
- seoname
- color
# attributes definition for product index - key is name of attribute
attributes:
name:
# Type of index attribute (database column or elastic search data type)
type: 'varchar(255)'
# Locale for localized fields, can be omitted if not necessary
locale: '%%locale%%'
# Defines filter group for filter definition in filter service
filter_group: 'string'
# Defines object attribute field name, can be omitted if the same like name of index attribute
# like in this case
field_name: name
# Hides field in field list selection data type of filter service - default to false
hide_in_fieldlist_datatype: false
seoname:
type: 'varchar(255)'
filter_group: 'string'
color:
type: 'varchar(255)'
filter_group: 'multiselect'
gender:
type: 'varchar(100)'
filter_group: 'multiselect'
technologies:
# Service id of interpreter for this field
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\DefaultObjects
filter_group: 'relation'
features:
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\DefaultObjects
filter_group: 'relation'
tentTentPegs:
type: 'varchar(50)'
filtergroup: 'string'
# Service id of getter for this field
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
# Options array for getter
getter_options:
brickfield: specificAttributes
bricktype: tentSpecifications
fieldname: tentPegs
tentWaterproofRain:
type: 'varchar(50)'
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: tentSpecifications
fieldname: waterproofRain
filtergroup: 'string'
tentWaterproofGround:
type: 'varchar(50)'
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: tentSpecifications
fieldname: waterproofGround
filtergroup: 'string'
rucksacksVolume:
type: 'double'
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\Numeric
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: rucksackSpecs
fieldname: volume
filtergroup: double
rucksacksWeight:
type: 'double'
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\Numeric
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: rucksackSpecs
fieldname: weight
filtergroup: double
rucksacksLoad:
type: 'double'
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\Numeric
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: rucksackSpecs
fieldname: load
filtergroup: double
matsWidth:
type: 'double'
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: matsSpecs
fieldname: width
filtergroup: double
matsLength:
type: 'double'
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: matsSpecs
fieldname: length
filtergroup: double
matsHeight:
type: 'double'
getter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Getter\DefaultBrickGetter
getter_options:
brickfield: specificAttributes
bricktype: matsSpecs
fieldname: height
filtergroup: double
simularity_color:
type: 'INTEGER'
fieldname: color
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\Soundex
simularity_gender:
type: 'INTEGER'
fieldname: gender
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\Soundex
simularity_category:
type: 'INTEGER'
fieldname: categories
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\ObjectIdSum
simularity_feature:
type: 'INTEGER'
fieldname: features
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\ObjectIdSum
simularity_technolgy:
type: 'INTEGER'
fieldname: technologies
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\ObjectIdSum
simularity_attributes:
type: 'INTEGER'
fieldname: attributes
hide_in_fieldlist_datatype: true
interpreter_id: Pimcore\Bundle\EcommerceFrameworkBundle\IndexService\Interpreter\ObjectIdSum
# Configuration of filter service
filter_service:
# Configure assortment tenants - at least one tenant has to be configured
# If a _defaults key is set, it will be merged into every tenant.
tenants:
default:
# Assign backend implementations and views to filter type field collections
filter_types:
FilterNumberRange:
# Service id for filter type implementation
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\NumberRange
# Default template for filter, can be overwritten in filter definition
template: ':Shop/filters:range.html.php'
FilterNumberRangeSelection:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\NumberRangeSelection
template: ':Shop/filters:numberrange.html.php'
FilterSelect:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\Select
template: ':Shop/filters:select.html.php'
FilterSelectFromMultiSelect:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\SelectFromMultiSelect
template: ':Shop/filters:select.html.php'
FilterMultiSelect:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\MultiSelect
template: ':Shop/filters:multiselect.html.php'
FilterMultiSelectFromMultiSelect:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\MultiSelectFromMultiSelect
template: ':Shop/filters:multiselect.html.php'
FilterMultiRelation:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\MultiSelectRelation
template: ':Shop/filters:multiselect-relation.html.php'
FilterCategory:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\SelectCategory
template: ':Shop/filters:select_category.html.php'
FilterRelation:
filter_type_id: Pimcore\Bundle\EcommerceFrameworkBundle\FilterService\FilterType\SelectRelation
template: ':Shop/filters:object_relation.html.php'
# Configuration of Pricing Manager - following values are default values and can be omitted
pricing_manager:
# # to enable/disable pricing manager
# enabled: true
# # Service id of pricing manager
# pricing_manager_id: Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\PricingManager
# # Options for pricing manager
# pricing_manager_options:
# rule_class: Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Rule
# price_info_class: Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\PriceInfo
# environment_class: Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Environment
# # Condition mapping from name to used class
# conditions:
# DateRange: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Condition\DateRange
# # Action mapping from name to used class
# actions:
# FreeShipping: \Pimcore\Bundle\EcommerceFrameworkBundle\PricingManager\Action\FreeShipping
# Configuration of checkout manager
checkout_manager:
tenants:
_defaults_checkout_steps:
# Define different checkout steps which need to be committed before commit of order is possible
steps: &defaults_checkout_steps # define an anchor
deliveryaddress:
class: \Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\DeliveryAddress
confirm:
class: \AppBundle\Ecommerce\Checkout\Confirm
# Configuration per tenant.
# If a _defaults key is set, it will be merged into every tenant. It needs to be set in every file.
# A tenant named "default" is mandatory.
_defaults:
# Following two values are default values an can be omitted
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CheckoutManagerFactory
# factory_options:
# class: \Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CheckoutManager
# Define used commit order processor
commit_order_processor:
id: AppBundle\Ecommerce\Order\Processor
options:
# Settings for confirmation mail sent to customer after order is finished.
# Also could be defined defined directly in commit order processor
# (e.g. when different languages are necessary)
confirmation_mail: /en/emails/order-confirmation
default:
# following two values are default values an can be omitted
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CheckoutManagerFactory
# factory_options:
# class: \Pimcore\Bundle\EcommerceFrameworkBundle\CheckoutManager\CheckoutManager
# define payment provider which should be used for payment.
# payment providers are defined in payment_manager section.
payment:
provider: qpay
steps:
<<: *defaults_checkout_steps
paypal:
payment:
provider: paypal
steps:
<<: *defaults_checkout_steps
datatrans:
payment:
provider: datatrans
steps:
<<: *defaults_checkout_steps
seamless:
payment:
provider: seamless
steps:
<<: *defaults_checkout_steps
masterpass:
steps:
confirm:
class: \AppBundle\Ecommerce\Checkout\Confirm
payment:
provider: qpay
commit_order_processor:
id: AppBundle\Ecommerce\Order\MasterpassProcessor
options:
confirmation_mail: /en/emails/order-confirmation
# Configuration of payment manager and payment providers
payment_manager:
# Service id of payment manager implementation - following value is default value an can be omitted
# payment_manager_id: Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\PaymentManager
# Configuration of payment providers, key is name of provider
providers:
datatrans:
# Service id of payment provider implementation
provider_id: Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\Payment\Datatrans
# Currently active profile
profile: sandbox
# Available profiles with options
profiles:
sandbox:
merchant_id: 1000011011
sign: 30916165706580013
use_digital_signature: false
recurring_payment_enabled: true
live:
merchant_id: merchant_id_id
sign: sign_id
use_digital_signature: false
mode: live
qpay:
provider_id: Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\Payment\QPay
profile: sandbox
profiles:
sandbox:
secret: B8AKTPWBRMNBV455FG6M2DANE99WU2
customer: D200001
toolkit_password: jcv45z
# define optional properties which can be used in initPayment (see Wirecard documentation)
optional_payment_properties:
- paymentType
- financialInstitution
- transactionIdentifier # necessary for recurPayment based on SEPA DIRECT DEBIT
recurring_payment_enabled: true
# set hash algorithm to HMAC-SHA512
hash_algorithm:
hmac_sha512
live:
secret: secret
customer: customer
paypal:
provider_id: Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\Payment\PayPal
profile: sandbox
profiles:
sandbox:
api_username: paypal-facilitator_api1.i-2xdream.de
api_password: 1375366858
api_signature: AT2PJj7VTo5Rt.wM6enrwOFBoD1fACBe1RbAEMsSshWFRhpvjAuPR8wD
live:
api_username: username
api_password: password
api_signature: signature
mode: live
seamless:
provider_id: Pimcore\Bundle\EcommerceFrameworkBundle\PaymentManager\Payment\WirecardSeamless
profile: sandbox
profiles:
_defaults:
hash_algorithm: hmac_sha512
paypal_activate_item_level: true
partial: PaymentSeamless/wirecard-seamless/payment-method-selection.html.php
js: /static/js/payment/wirecard-seamless/frontend.js
iframe_css_url: /static/css/payment-iframe.css?elementsclientauth=disabled
payment_methods:
PREPAYMENT:
icon: /static/img/wirecard-seamless/prepayment.png
partial: PaymentSeamless/wirecard-seamless/payment-method/prepayment.html.php
CCARD:
icon: /static/img/wirecard-seamless/ccard.png
partial: PaymentSeamless/wirecard-seamless/payment-method/ccard.html.php
PAYPAL:
icon: /static/img/wirecard-seamless/paypal.png
SOFORTUEBERWEISUNG:
icon: /static/img/wirecard-seamless/sue.png
INVOICE:
icon: /static/img/wirecard-seamless/payolution.png
partial: PaymentSeamless/wirecard-seamless/payment-method/invoice.html.php
sandbox:
customer_id: D200001
shop_id: qmore
secret: B8AKTPWBRMNBV455FG6M2DANE99WU2
password: jcv45z
live:
customer_id: customer_id
shop_id: shop_id
secret: secret
password: password
# Configuration of Tracking Manager
tracking_manager:
# # Service id of tracking manager - default value can be omitted
# tracking_manager_id: Pimcore\Bundle\EcommerceFrameworkBundle\Tracking\TrackingManager
# Enable/Disable trackers and configure them
trackers:
enhanced_ecommerce:
# Service id for tracker
id: Pimcore\Bundle\EcommerceFrameworkBundle\Tracking\Tracker\Analytics\EnhancedEcommerce
# Service id for item builder for tracker
item_builder_id: AppBundle\Ecommerce\Tracking\TrackingItemBuilder
# additional options
options: { }
# enable or disable service
enabled: true
# Configuration of Order Manager
order_manager:
# Configuration per tenant. If a _defaults key is set, it will be merged into every tenant. A tenant named "default" is mandatory.
tenants:
_defaults:
order_manager_id: AppBundle\Ecommerce\Order\OrderManager
# Configuration of default order manager - following values are default values and can be omitted
default: ~
# default:
# # Service id for oder manager implementation
# order_manager_id: Pimcore\Bundle\EcommerceFrameworkBundle\OrderManager\OrderManager
# # Options for oder manager
# options:
# # Pimcore object class for orders
# order_class: \Pimcore\Model\DataObject\OnlineShopOrder
# # Pimcore object class for order items
# order_item_class: \Pimcore\Model\DataObject\OnlineShopOrderItem
# # Class for order listing
# list_class: Pimcore\Bundle\EcommerceFrameworkBundle\OrderManager\Order\Listing
# # Class for order item listing
# list_item_class: Pimcore\Bundle\EcommerceFrameworkBundle\OrderManager\Order\Listing\Item
# # Default parent folder for new orders
# parent_order_folder: /order/%%Y/%%m/%%d
# # Options for oder agent
# order_agent:
# # Service id for order agent factory
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\OrderManager\Order\AgentFactory
# # Options for order agent factory
# factory_options: { }
otherFolder:
options:
parent_order_folder: /order_otherfolder/%%Y/%%m/%%d
# Configuration of voucher service - following values are default values and can be omitted
voucher_service:
# # Service id of voucher service implementation
# voucher_service_id: Pimcore\Bundle\EcommerceFrameworkBundle\VoucherService\DefaultService
#
# # Configuration of token managers
# token_managers:
# # Service id of token manager factory
# factory_id: Pimcore\Bundle\EcommerceFrameworkBundle\VoucherService\TokenManager\TokenManagerFactory
# # Mapping for token manager implementations
# mapping:
# VoucherTokenTypePattern: \Pimcore\Bundle\EcommerceFrameworkBundle\VoucherService\TokenManager\Pattern
# VoucherTokenTypeSingle: \Pimcore\Bundle\EcommerceFrameworkBundle\VoucherService\TokenManager\Single
#
# voucher_service_options:
# # Reservations older than x MINUTES get removed by maintenance task
# reservation_minutes_threshold: 5
# # Statistics older than x DAYS get removed by maintenance task
# statistics_days_threshold: 30
# Configuration of offer tool - following values are default values and can be omitted
# offer_tool:
# # Service id for offer tool service
# service_id: Pimcore\Bundle\EcommerceFrameworkBundle\OfferTool\DefaultService
# order_storage:
# # Pimcore object class for offers
# offer_class: Pimcore\Model\DataObject\OfferToolOffer
# # Pimcore object class for offer items
# offer_item_class: Pimcore\Model\DataObject\OfferToolOfferItem
# # default path for new offers
# parent_folder_path: /offertool/offers/%%Y/%%m
# Configuration of Pimcore backend menu entries - following values are default values and can be omitted
pimcore:
menu:
# Enabling/Disabling Pricing Rules menu entry. User specific settings can be done via permissions.
pricing_rules:
enabled: true
# Configuring order list menu - enabling/disabling and defining route of order list to inject custom implementations of order backend.
order_list:
enabled: true
route: pimcore_ecommerce_backend_admin-order_list