Purchase history design

You can configure the Order Guide Details widget to display up to six weeks of purchase history. Each week is displayed as a column in the purchase history section of the widget.
The total quantity of each item that is ordered by any of a customer's users during a week is displayed. Weeks begin on Sundays and end on Saturdays. An order is considered in the calculation if it does not have one of these statuses:
  • Canceled
  • Deleted
  • Rejected
  • Unapproved

The current week in the history section is labeled 0. Subsequent weeks are labeled 1 through 5 under the Week header.

On the Order Guide Details widget, site editors use the Purchase History in Weeks and Max Width (px) fields to configure the display of purchase history. The Purchase History in Weeks field accepts whole numbers from 0 to 6. Specify 0 to hide purchase history information. The Max Width (px) field accepts whole numbers from 100 to 300.

Each column in the Purchase History section is 60px wide. To determine the actual width of the purchase history section, the value in the Purchase History in Weeks field is multiplied by 60. The result is compared to the value in the Max Width (px) field. One of these actions takes place:
  • If the result is greater than the value in the Max Width (px) field, then the total width the purchase history section is the value that you specify in the Max Width (px) field.

    To indicate that more information is available in the purchase history section, a line with a shadow is used as the border of the section. Users hold down the mouse button and drag the section from side to side to view additional weeks.

    For example, you specify 4 in the Purchase History in Weeks and 150 in the Max Width (px). Two full columns and one half column of purchase history is displayed; users can drag the section to view the other weeks.

  • If the result is less than or equal to the value in the Max Width (px) field, then the result is used as the width of the purchase history section. For example, you specify 4 in the Purchase History in Weeks and 300 in the Max Width (px). The actual width of the purchase history section is 240px, 60px * 4.

Limitation

Each purchase history field can hold up to seven characters. If a purchase history quantity exceeds seven characters, then display issues can occur.