Open
Description
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:
- Install the extension "GST Pro POS Print" (handle: gst-pro-pos-print)
- Open POS and navigate to an order details page
- Click on our extension's print option
- 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
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>