views.view.commerce_user_orders.yml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. uuid: aa1694cb-2d9f-4ba9-9312-9a4158315535
  2. langcode: en
  3. status: true
  4. dependencies:
  5. module:
  6. - commerce_order
  7. - commerce_price
  8. - options
  9. - state_machine
  10. - user
  11. _core:
  12. default_config_hash: 7JgxufVuoI85hhzx2nEYWCRafRc7zuYgqkY9WryFKgo
  13. id: commerce_user_orders
  14. label: 'User orders'
  15. module: views
  16. description: 'Display a list of placed orders for a user.'
  17. tag: Commerce
  18. base_table: commerce_order
  19. base_field: order_id
  20. core: 8.x
  21. display:
  22. default:
  23. display_plugin: default
  24. id: default
  25. display_title: Master
  26. position: 0
  27. display_options:
  28. access:
  29. type: perm
  30. options:
  31. perm: 'view own commerce_order'
  32. cache:
  33. type: tag
  34. options: { }
  35. query:
  36. type: views_query
  37. options:
  38. disable_sql_rewrite: false
  39. distinct: false
  40. replica: false
  41. query_comment: ''
  42. query_tags: { }
  43. exposed_form:
  44. type: basic
  45. options:
  46. submit_button: Apply
  47. reset_button: false
  48. reset_button_label: Reset
  49. exposed_sorts_label: 'Sort by'
  50. expose_sort_order: true
  51. sort_asc_label: Asc
  52. sort_desc_label: Desc
  53. pager:
  54. type: full
  55. options:
  56. items_per_page: 25
  57. offset: 0
  58. id: 0
  59. total_pages: null
  60. tags:
  61. previous: '‹ Previous'
  62. next: 'Next ›'
  63. first: '« First'
  64. last: 'Last »'
  65. expose:
  66. items_per_page: false
  67. items_per_page_label: 'Items per page'
  68. items_per_page_options: '5, 10, 25, 50'
  69. items_per_page_options_all: false
  70. items_per_page_options_all_label: '- All -'
  71. offset: false
  72. offset_label: Offset
  73. quantity: 9
  74. style:
  75. type: table
  76. options:
  77. grouping: { }
  78. row_class: ''
  79. default_row_class: true
  80. override: true
  81. sticky: false
  82. caption: ''
  83. summary: ''
  84. description: ''
  85. columns:
  86. order_number: order_number
  87. placed: placed
  88. total_price__number: total_price__number
  89. state: state
  90. info:
  91. order_number:
  92. sortable: true
  93. default_sort_order: desc
  94. align: ''
  95. separator: ''
  96. empty_column: false
  97. responsive: ''
  98. created:
  99. sortable: true
  100. default_sort_order: desc
  101. align: ''
  102. separator: ''
  103. empty_column: false
  104. responsive: ''
  105. placed:
  106. sortable: true
  107. default_sort_order: desc
  108. align: ''
  109. separator: ''
  110. empty_column: false
  111. responsive: ''
  112. total_price__number:
  113. sortable: false
  114. default_sort_order: asc
  115. align: ''
  116. separator: ''
  117. empty_column: false
  118. responsive: ''
  119. state:
  120. sortable: true
  121. default_sort_order: asc
  122. align: ''
  123. separator: ''
  124. empty_column: false
  125. responsive: ''
  126. default: placed
  127. empty_table: false
  128. row:
  129. type: fields
  130. fields:
  131. order_id:
  132. id: order_id
  133. table: commerce_order
  134. field: order_id
  135. relationship: none
  136. group_type: group
  137. admin_label: ''
  138. label: ID
  139. exclude: true
  140. alter:
  141. alter_text: false
  142. text: ''
  143. make_link: false
  144. path: ''
  145. absolute: false
  146. external: false
  147. replace_spaces: false
  148. path_case: none
  149. trim_whitespace: false
  150. alt: ''
  151. rel: ''
  152. link_class: ''
  153. prefix: ''
  154. suffix: ''
  155. target: ''
  156. nl2br: false
  157. max_length: 0
  158. word_boundary: true
  159. ellipsis: true
  160. more_link: false
  161. more_link_text: ''
  162. more_link_path: ''
  163. strip_tags: false
  164. trim: false
  165. preserve_tags: ''
  166. html: false
  167. element_type: ''
  168. element_class: ''
  169. element_label_type: ''
  170. element_label_class: ''
  171. element_label_colon: true
  172. element_wrapper_type: ''
  173. element_wrapper_class: ''
  174. element_default_classes: true
  175. empty: ''
  176. hide_empty: false
  177. empty_zero: false
  178. hide_alter_empty: true
  179. click_sort_column: value
  180. type: number_integer
  181. settings:
  182. thousand_separator: ''
  183. prefix_suffix: true
  184. group_column: value
  185. group_columns: { }
  186. group_rows: true
  187. delta_limit: 0
  188. delta_offset: 0
  189. delta_reversed: false
  190. delta_first_last: false
  191. multi_type: separator
  192. separator: ', '
  193. field_api_classes: false
  194. entity_type: commerce_order
  195. entity_field: order_id
  196. plugin_id: field
  197. order_number:
  198. id: order_number
  199. table: commerce_order
  200. field: order_number
  201. relationship: none
  202. group_type: group
  203. admin_label: ''
  204. label: 'Order number'
  205. exclude: false
  206. alter:
  207. alter_text: false
  208. text: ''
  209. make_link: true
  210. path: 'user/{{ arguments.uid }}/orders/{{ order_id }}'
  211. absolute: false
  212. external: false
  213. replace_spaces: false
  214. path_case: none
  215. trim_whitespace: false
  216. alt: ''
  217. rel: ''
  218. link_class: ''
  219. prefix: ''
  220. suffix: ''
  221. target: ''
  222. nl2br: false
  223. max_length: 0
  224. word_boundary: true
  225. ellipsis: true
  226. more_link: false
  227. more_link_text: ''
  228. more_link_path: ''
  229. strip_tags: false
  230. trim: false
  231. preserve_tags: ''
  232. html: false
  233. element_type: ''
  234. element_class: ''
  235. element_label_type: ''
  236. element_label_class: ''
  237. element_label_colon: true
  238. element_wrapper_type: ''
  239. element_wrapper_class: ''
  240. element_default_classes: true
  241. empty: ''
  242. hide_empty: false
  243. empty_zero: false
  244. hide_alter_empty: true
  245. click_sort_column: value
  246. type: string
  247. settings:
  248. link_to_entity: false
  249. group_column: value
  250. group_columns: { }
  251. group_rows: true
  252. delta_limit: 0
  253. delta_offset: 0
  254. delta_reversed: false
  255. delta_first_last: false
  256. multi_type: separator
  257. separator: ', '
  258. field_api_classes: false
  259. entity_type: null
  260. entity_field: order_number
  261. plugin_id: field
  262. placed:
  263. id: placed
  264. table: commerce_order
  265. field: placed
  266. relationship: none
  267. group_type: group
  268. admin_label: ''
  269. label: Date
  270. exclude: false
  271. alter:
  272. alter_text: false
  273. text: ''
  274. make_link: false
  275. path: ''
  276. absolute: false
  277. external: false
  278. replace_spaces: false
  279. path_case: none
  280. trim_whitespace: false
  281. alt: ''
  282. rel: ''
  283. link_class: ''
  284. prefix: ''
  285. suffix: ''
  286. target: ''
  287. nl2br: false
  288. max_length: 0
  289. word_boundary: true
  290. ellipsis: true
  291. more_link: false
  292. more_link_text: ''
  293. more_link_path: ''
  294. strip_tags: false
  295. trim: false
  296. preserve_tags: ''
  297. html: false
  298. element_type: ''
  299. element_class: ''
  300. element_label_type: ''
  301. element_label_class: ''
  302. element_label_colon: true
  303. element_wrapper_type: ''
  304. element_wrapper_class: ''
  305. element_default_classes: true
  306. empty: ''
  307. hide_empty: false
  308. empty_zero: false
  309. hide_alter_empty: true
  310. click_sort_column: value
  311. type: timestamp
  312. settings:
  313. date_format: short
  314. custom_date_format: ''
  315. timezone: ''
  316. group_column: value
  317. group_columns: { }
  318. group_rows: true
  319. delta_limit: 0
  320. delta_offset: 0
  321. delta_reversed: false
  322. delta_first_last: false
  323. multi_type: separator
  324. separator: ', '
  325. field_api_classes: false
  326. entity_type: commerce_order
  327. entity_field: placed
  328. plugin_id: field
  329. total_price__number:
  330. id: total_price__number
  331. table: commerce_order
  332. field: total_price__number
  333. relationship: none
  334. group_type: group
  335. admin_label: ''
  336. label: Total
  337. exclude: false
  338. alter:
  339. alter_text: false
  340. text: ''
  341. make_link: false
  342. path: ''
  343. absolute: false
  344. external: false
  345. replace_spaces: false
  346. path_case: none
  347. trim_whitespace: false
  348. alt: ''
  349. rel: ''
  350. link_class: ''
  351. prefix: ''
  352. suffix: ''
  353. target: ''
  354. nl2br: false
  355. max_length: 0
  356. word_boundary: true
  357. ellipsis: true
  358. more_link: false
  359. more_link_text: ''
  360. more_link_path: ''
  361. strip_tags: false
  362. trim: false
  363. preserve_tags: ''
  364. html: false
  365. element_type: ''
  366. element_class: ''
  367. element_label_type: ''
  368. element_label_class: ''
  369. element_label_colon: true
  370. element_wrapper_type: ''
  371. element_wrapper_class: ''
  372. element_default_classes: true
  373. empty: ''
  374. hide_empty: false
  375. empty_zero: false
  376. hide_alter_empty: true
  377. click_sort_column: number
  378. type: commerce_price_default
  379. settings:
  380. strip_trailing_zeroes: false
  381. currency_display: symbol
  382. group_column: ''
  383. group_columns: { }
  384. group_rows: true
  385. delta_limit: 0
  386. delta_offset: 0
  387. delta_reversed: false
  388. delta_first_last: false
  389. multi_type: separator
  390. separator: ', '
  391. field_api_classes: false
  392. entity_type: commerce_order
  393. entity_field: total_price
  394. plugin_id: field
  395. state:
  396. id: state
  397. table: commerce_order
  398. field: state
  399. relationship: none
  400. group_type: group
  401. admin_label: ''
  402. label: State
  403. exclude: false
  404. alter:
  405. alter_text: false
  406. text: ''
  407. make_link: false
  408. path: ''
  409. absolute: false
  410. external: false
  411. replace_spaces: false
  412. path_case: none
  413. trim_whitespace: false
  414. alt: ''
  415. rel: ''
  416. link_class: ''
  417. prefix: ''
  418. suffix: ''
  419. target: ''
  420. nl2br: false
  421. max_length: 0
  422. word_boundary: true
  423. ellipsis: true
  424. more_link: false
  425. more_link_text: ''
  426. more_link_path: ''
  427. strip_tags: false
  428. trim: false
  429. preserve_tags: ''
  430. html: false
  431. element_type: ''
  432. element_class: ''
  433. element_label_type: ''
  434. element_label_class: ''
  435. element_label_colon: true
  436. element_wrapper_type: ''
  437. element_wrapper_class: ''
  438. element_default_classes: true
  439. empty: ''
  440. hide_empty: false
  441. empty_zero: false
  442. hide_alter_empty: true
  443. click_sort_column: value
  444. type: list_default
  445. settings: { }
  446. group_column: value
  447. group_columns: { }
  448. group_rows: true
  449. delta_limit: 0
  450. delta_offset: 0
  451. delta_reversed: false
  452. delta_first_last: false
  453. multi_type: separator
  454. separator: ', '
  455. field_api_classes: false
  456. entity_type: commerce_order
  457. entity_field: state
  458. plugin_id: field
  459. filters:
  460. state:
  461. id: state
  462. table: commerce_order
  463. field: state
  464. relationship: none
  465. group_type: group
  466. admin_label: ''
  467. operator: 'not in'
  468. value:
  469. draft: draft
  470. group: 1
  471. exposed: false
  472. expose:
  473. operator_id: ''
  474. label: ''
  475. description: ''
  476. use_operator: false
  477. operator: ''
  478. identifier: ''
  479. required: false
  480. remember: false
  481. multiple: false
  482. remember_roles:
  483. authenticated: authenticated
  484. reduce: false
  485. is_grouped: false
  486. group_info:
  487. label: ''
  488. description: ''
  489. identifier: ''
  490. optional: true
  491. widget: select
  492. multiple: false
  493. remember: false
  494. default_group: All
  495. default_group_multiple: { }
  496. group_items: { }
  497. entity_type: commerce_order
  498. entity_field: state
  499. plugin_id: state_machine_state
  500. sorts: { }
  501. title: Orders
  502. header: { }
  503. footer: { }
  504. empty:
  505. area:
  506. id: area
  507. table: views
  508. field: area
  509. relationship: none
  510. group_type: group
  511. admin_label: ''
  512. empty: true
  513. tokenize: false
  514. content:
  515. value: 'You have not placed any orders with us yet.'
  516. format: basic_html
  517. plugin_id: text
  518. relationships: { }
  519. arguments:
  520. uid:
  521. id: uid
  522. table: commerce_order
  523. field: uid
  524. relationship: none
  525. group_type: group
  526. admin_label: ''
  527. default_action: 'not found'
  528. exception:
  529. value: all
  530. title_enable: false
  531. title: All
  532. title_enable: false
  533. title: ''
  534. default_argument_type: fixed
  535. default_argument_options:
  536. argument: ''
  537. default_argument_skip_url: false
  538. summary_options:
  539. base_path: ''
  540. count: true
  541. items_per_page: 25
  542. override: false
  543. summary:
  544. sort_order: asc
  545. number_of_records: 0
  546. format: default_summary
  547. specify_validation: true
  548. validate:
  549. type: commerce_current_user
  550. fail: 'not found'
  551. validate_options:
  552. admin_permission: 'administer commerce_order'
  553. break_phrase: false
  554. not: false
  555. entity_type: commerce_order
  556. entity_field: uid
  557. plugin_id: numeric
  558. display_extenders: { }
  559. cache_metadata:
  560. max-age: -1
  561. contexts:
  562. - 'languages:language_content'
  563. - 'languages:language_interface'
  564. - url
  565. - url.query_args
  566. - user
  567. - user.permissions
  568. tags: { }
  569. order_page:
  570. display_plugin: page
  571. id: order_page
  572. display_title: 'User orders'
  573. position: 1
  574. display_options:
  575. display_extenders: { }
  576. path: user/%user/orders
  577. menu:
  578. type: tab
  579. title: Orders
  580. description: ''
  581. expanded: false
  582. parent: ''
  583. weight: 0
  584. context: '0'
  585. menu_name: account
  586. display_description: ''
  587. cache_metadata:
  588. max-age: -1
  589. contexts:
  590. - 'languages:language_content'
  591. - 'languages:language_interface'
  592. - url
  593. - url.query_args
  594. - user
  595. - user.permissions
  596. tags: { }