views.view.commerce_user_orders.yml 16 KB

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