DocumentViewer_Popup Widget

The DocumentViewer_Popup widget lets a signed-in shopper view and print supported sales orders, invoices, dispatch notes, and returns. It can also show a reorder action for sales orders and invoices.

Invoice displayed in the Document Viewer popup with reorder and print actions.

Print preview for an invoice opened through the Document Viewer popup.

Add the widget to a page

<Control src="LoadWidgetControl.ascx"
    FileLocation="DocumentViewer_Popup.html"
    RequireLogin="true"
    Options="showReOrderButton: true,
        reOrderButtonText: 'Reorder'" />

Widget options

Option Default Valid values or format Effect
showReOrderButton
Boolean
true true, false Shows or hides the reorder action for supported sales orders and invoices.
reOrderButtonText
String
'Reorder' Text Sets the reorder-action label.

Document output uses the applicable CyberStore document formatting. Confirm that a shopper can view only documents associated with their Customer account.

Validate the viewer

  1. Sign in with a shopper that has a supported account document.
  2. Open and print the document.
  3. Confirm document content is limited to the shopper’s Customer account.
  4. When enabled, select Reorder for a supported order or invoice and confirm the resulting cart follows current cart rules.

This site uses Just the Docs, a documentation theme for Jekyll.