Shopify / ui-extensions

MIT License
260 stars 36 forks source link

The post-purchase extension does not loads for markets other than the main market. #1110

Open dani-sanomads opened 1 year ago

dani-sanomads commented 1 year ago

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

  1. "@shopify/app": "^3.47.2"
  2. "@shopify/cli": "^3.47.2"
  3. "@shopify/post-purchase-ui-extensions-react": "^0.13.4"
  4. "react": "^17.0.2"

Describe the bug

The post-purchase extension does not loads for markets other than the main market. While inspecting i have checked that I'm getting an error in the post -purchase when I switch the market. Sources => Scripts => FileName: PostPurchaseShouldRender

Steps to reproduce the behavior:

  1. Create the Shopify extension and set it up for testing .
  2. Create different markets and then test post-purchase for these Shopify markets by changing country on storefront.

Expected behavior

  1. It should work and display the post-purchase page for all Shopify markets.

Screenshots

Screenshot 2023-07-19 at 3 33 00 PM Screenshot 2023-07-19 at 3 33 21 PM

Additional context

sunwrobert commented 1 year ago

The post purchase extension doesn't even load for me even if i'm using the main, primary market..

@dani-sanomads Where do you see that the PostPurchaseShouldRender is failing?

If you're able to get it to show at all, mind reproing your steps? Even following the Shopify tutorial exactly, the post-purchase extension still fails to show up for me

dani-sanomads commented 1 year ago

@sunwrobert It works only for store currency but other than that we can have post purchase for multiple currencies that's a limitation. I wonder why because few days ago i tried using it from other markets and post-purchase was displaying the page. But recently due to Shopify summer updates things are not working properly as intended. Limitations: https://shopify.dev/docs/apps/checkout/product-offers/post-purchase#limitations-and-considerations

diemonster commented 10 months ago

The post purchase extension doesn't even load for me even if i'm using the main, primary market..

Were you ever able to get the extension to load @sunwrobert ?

I'm having the same issue right now where the extension works fine when running locally on a dev store, but when I publish the extension, it doesn't load.

dani-sanomads commented 2 months ago

Interesting that the post purchase only renders when we use the payment gateway or bogus gateway. It does not render the offer when we use discount codes on the checkout.