Skip to content

POS UI extension printPreview shows email as: [email protected] #2657

Open
@Aswin110

Description

@Aswin110

Please list the package(s) involved in the issue, and include the version you are using

  • @shopify/ui-extensions 2025.1.x
  • @shopify/ui-extensions-react 2025.1.x

Describe the bug

When using the PrintPreview component in our POS extension, customer email addresses are not being displayed properly. Instead of showing the actual email address in the print preview and printed output, the system displays a placeholder text "[email protected]" for all customers. This prevents merchants from including actual customer email addresses on printed receipts and documents.

Steps to reproduce the behavior:

  1. Install the extension "GST Pro POS Print" (handle: gst-pro-pos-print)
  2. Open POS and navigate to an order details page
  3. Click on our extension's print option
  4. In the print preview, observe that email is displayed as "[email protected]" instead of the actual customer email

Expected behavior

The print preview and printed output should display the actual customer email address instead of the placeholder "[email protected]".

Screenshots

Image

Additional context

  • Environment: Shopify POS app
  • Extension targets:
    • pos.order-details.action.menu-item.render
    • pos.order-details.action.render
    • pos.order-details.block.render
  • I'm able to access and print other customer data (phone, address) as expected
  • Email only shows as protected in the print functionality
  • We're using the PrintPreview component with HTML content as the source:
<PrintPreview src={src}>
  <Button
    isDisabled={isLoading || !src}
    isLoading={isLoading}
    onPress={handlePrint}
    title="Print"
    type="basic"
  />
</PrintPreview>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions