How to manage product variants with Shopify's GraphQL API when initial productCreate mutation creates a default variant?
Stack Overflow » Shopify
by nnchvxx
1h ago
I am developing a system using the latest shopify version 2024-04 to automate product and variant creation using Shopify's GraphQL API. My workflow involves using the productCreate mutation followed by productVariantsBulkCreate. However, I'm encountering challenges with handling the default variant created by productCreate. Workflow Details: Product Creation: I use the productCreate mutation which takes productOptions and automatically creates a default variant with these options (e.g., color:green). This default variant lacks other critical details like SKU, price, and inventory quantities. A ..read more
Visit website
Can't login to the shopify with command prompt
Stack Overflow » Shopify
by cortezsebas232
1h ago
Hello, everyone. recently, I'm seeking an experienced supporter. As you can see, I checked version and installed node.js and ruby. but can't access into shopify from powershell command. please help me. I followed manual literally. what exactly bother my development ..read more
Visit website
Need to combine Shopify product line_item with free discount
Stack Overflow » Shopify
by Princy Pariya
6h ago
$data = [ 'price_rule' => [ 'title' => $point.' off', 'value_type' => 'fixed_amount', 'value' => -$point, // 'customer_selection' => 'all', "customer_selection" => "prerequisite", "prerequisite_customer_ids" => [$cust_id], "usage_limit" => 1, 'target_type' => 'line_item', 'target_selection' => 'all', 'alloca ..read more
Visit website
Addeventlistener working on web but not on mobile
Stack Overflow » Shopify
by Manas Deo
6h ago
I have a search input element and a button on shopify's header. We are attaching click and touchend event listeners on the button. So that our function executes in both web and mobile. Until now we were working with enter button to be clicked but now we want the search to work with click of searchIcon as well. The problem is, our function executes for web but not on mobile. (Not even on responsive mobile mode in a desktop browser) Later I also tried attaching the events on the button inside the focus event handler of the input element Here is the excerpt: const onFocus = () => { co ..read more
Visit website
Unable to add image in dropdown using jquery
Stack Overflow » Shopify
by Noman
6h ago
I want to add image in dropdown of selector using jquery but I am unable to get it here Is the options that I want to map but I just see text in the dropdown but I am unable to view the image Function to populate color dropdown options based on selected fabric Event listener to update color dropdown options when fabric selection changes here is the jquery code that populate it I don't know what is the issue in this code I tried a lot but I am unable to get my code correct I want to get the color based on the Fabrics selected by the user in previous dropdown that previous dropdown is working pe ..read more
Visit website
Unexpected identifier assert Shopify Remix app
Stack Overflow » Shopify
by Parnit Das
1d ago
I have installed Node.js Shopify CLI and using Homebrew. When run shopify app dev it provides a local url http://localhost:56467/ . This url giving error below. Unexpected identifier 'assert' at compileSourceTextModule (node:internal/modules/esm/utils:337:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18) at callTranslator (node:internal/modules/esm/loader:416:14) at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:422:30 Click outside, press Esc key, or fix the code to dismiss. You can also disable this overlay by setting server.hmr.overlay to fal ..read more
Visit website
How to setup a Shopify Remix app in Plesk
Stack Overflow » Shopify
by Elem J
2d ago
I have built a Shopify app using Remix and now I am trying to set it to live mode. As long as I was on developing, I used tunnelling offered by cloudflare or ngrok in some cases so that the shopify can deploy and render my app. More precisely, I was deploying and running my app using these commands: npm run deploy and npm run dev --tunnel-url {URL} I am now trying to create an enviroment in my Plesk server in order to make my app run from an online domain. However, I struggle to find any tutorials.I set the necessary settings to Node.js on Plesk and even though the app is builded, I can't get ..read more
Visit website
Erros in Metafields
Stack Overflow » Shopify
by cortezsebas232
2d ago
I have some difficulty in updating an existing metafield with Shopify API. Each time, I received an error, advising me that the variant already exists... so it's not recognized to Update. I thought this may be an issue with 'put' and 'post' - so changed my method to put, however the error persists. I've hardwired in all my variables to make it easier to test. I'm working with Cloudinary. I'm using https://github.com/sinechris/shopify-node-api with Express.js app.post('/upload', function(req, res){ // upload page... assume we have uploaded our image - but have hard-wired a local file in ..read more
Visit website
Upload image does not showing
Stack Overflow » Shopify
by mohit vamja
3d ago
Shopify image upload then get errors. I have no idea how to get these errors. upload image after that return value in resource url my uploaded image path not working. image URL generated but when I am this URL in the browser then shows an error This XML file does not appear to have any style information associated with it. The document tree is shown below. so please let me know any solution to this. I shared my screenshot to get an error related. https://prnt.sc/eOOL0a_mdQqt ..read more
Visit website
Shopify app how to image upload using remix and typescript
Stack Overflow » Shopify
by mohit vamja
4d ago
how to image upload shopify app using remix and typescript. i am fresher for creating shopify app. i need upload image shopify app using remix and typescript. i have code for file upload related. when i am image upload in my custom app then image upload but when i am check backend side content in file then showing message "1.png Processing error" when debugging and check image uploaded related three step is required 1) upload 2)processing 3)ready in this step first step upload is working but second step and thired step not working. i have no idea for this related. if anyone have solution. so p ..read more
Visit website

Follow Stack Overflow » Shopify on FeedSpot

Continue with Google
Continue with Apple
OR