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

Checkout Ui Extension - Render 2 Different Targets On Mobile & Desktop #1680

Open
hoannguyen02 opened this issue Jan 26, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@hoannguyen02
Copy link

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

"@shopify/ui-extensions": "2024.1.x",
@shopify/ui-extensions-react": "2024.1.x

Describe the bug

Seems there is no way to render 1 app extension in different target for desktop & mobile

Steps to reproduce the behavior:

  1. Generate extension
  2. Detect desktop or mobile
  3. Render target based detection

Expected behavior

Possible to render multiple different targets based on device view (desktop, mobile)

Screenshots

Additional context

Our needs: We have a discount promo text need to display in different targets

  • Desktop: purchase.checkout.reductions.render-after
  • Mobile: Bellow order summary section
    image
@hoannguyen02 hoannguyen02 added the bug Something isn't working label Jan 26, 2024
@nrthbound
Copy link

Are there any updates on this? Seems really strange to omit this.

@edhgoose
Copy link

We would also benefit from this.

It would make a significant difference to us on the post purchase page. Clients would prefer we rendered the experience on the sidebar when on a desktop (where there is plenty of space and the UI can still be visible), but they'd prefer it was not on the sidebar when on mobile as the sidebar is hidden.

Instead, having it top of the list would be beneficial.

@edhgoose
Copy link

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

3 participants