Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aswin110 opened this issue Feb 26, 2025 · 0 comments
Open

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

Aswin110 opened this issue Feb 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Aswin110
Copy link

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>
@Aswin110 Aswin110 added the bug Something isn't working label Feb 26, 2025
@Aswin110 Aswin110 changed the title POS UI extension [ POS UI extension printPreview shows email as: [email protected] Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant