No content to show
User Activity
04-07-2025
Hi, I faced the same issue when fetching product details in the Theme Extension app. I was able to resolve it by making the necessary changes listed below. You can refer to this and let me know if it works for you.First, we need to enable the Storefr...
Hi,I'm currently working on a Shopify theme extension using Liquid and integrating it with my Remix app. I am trying to fetch product details via GraphQL using an array of product IDs, but I keep encountering an "unauthorized" error.Could someone ple...
async function getDefaultVariant(productId) {const shopifyStore = "my-store.com";const finalProductId = 'gid://shopify/Product/'+ productId;const query = `query {product(id: "gid://shopify/Product/${productId}") {variants(first: 1) {edges {node {id}}...
I am working on a Shopify Theme App Extension and trying to fetch the default variant ID of a product using GraphQL inside a Liquid file. I have the following GraphQL query:const query = `query {product(id: "gid://shopify/Product/${productId}") {vari...
Hi,We have implemented a gift card recipient form and functionality using Vue.js, as our theme is custom-built. In our code, we have added the necessary properties when adding a gift card product to the cart:const addToCart = (value) => {state.isAddi...
@bootsgridDev I found a solution for retrieving the customer ID in a Shopify Customer Account UI Extension app.To get the authenticated customer's ID, add the following code in the JavaScript file located in the src folder:const customerId = api.auth...
@Promer I found a solution for retrieving the customer ID in a Shopify Customer Account UI Extension app.To get the authenticated customer's ID, add the following code in the JavaScript file located in the src folder:const customerId = api.authentica...
03-17-2025
The {"errors":[{"message":"","extensions":{"code":"UNAUTHORIZED"}}]} error occurred. I added my app's API access token from the Shopify Partner account, so why did this happen? I am calling the query in the Theme Extension app's Liquid file, and then...
03-17-2025
Hi everyone,I'm facing a CORS issue while calling an API endpoint from my Shopify Customer Account UI extension.Here’s the API call I’m making from the extension:const fetchCustomerId = async () => {try {const response = await fetch('https://peak-kei...
@Promer Hi,I tried your suggestion, but found a CORS policy error. To resolve this, I added the following headers to the response:headers: {"Access-Control-Allow-Origin": "*"}However, the issue persists. The error message states:"Access to fetch at '...
I am developing a custom wishlist app and have added a wishlist icon to the product detail page (PDP) using a theme extension app. The wishlist data is being saved to Prisma successfully. However, I need guidance on how to display the wishlisted prod...
I am working on a Shopify Remix app with a Customer UI extension and need to retrieve the currently logged-in customer ID. How to get the customer id?
My Accepted Solutions
Subject | Views | Posted |
---|---|---|
333 | 03-19-2025 03:27 AM |