You are here

views.view.commerce_user_orders.yml in Commerce Core 8.2

modules/order/config/install/views.view.commerce_user_orders.yml

File

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