JavaScript development and programming questions and answers

This site is a community of people who can quickly ask a question about JavaScript development or programming and get an answer to it.

Questions
8428

Answers
798



What is ^ in Ruby Syntax? (Shopify scripts example)


Solution:This is a boolean XOR operator. href="https://en.wikipedia.org/wiki/Exclusive_or" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Exclusive_or
Continue reading

We can see the changes when we access it using Preview store but not live in shopify


Solution:I've resolved the issue as it needs to get published. I am new to Shopify, that's why didn't know it and
Continue reading

Shopify Storefront API error Delegate Access Token


Solution:Maybe you just need to change delegateAccessScope: to delegate_access_scope per doc, href="https://shopify.dev/apps/auth/oauth/delegate-access-tokens/create" rel="nofollow noreferrer">https://shopify.dev/apps/auth/oauth/delegate-access-tokens/create { "delegate_access_scope": [ "write_orders" ], "expires_in": 3600 }
Continue reading

Shopify Scripts: Rejected discount is not considered


Solution:I don't think you need to reject the discount code at all. You can simply add a condition that controls when
Continue reading

Shopify Admin API create customer has odd response


Solution:Query Operation in Shopify GraphQL are type of get request where you can only get the demanded query list. To edit or
Continue reading

arrays - Adding liquid schema settings to string


Solution:I'm not totally following what you are trying to do but you cannot nest a liquid output statement {{ }} inside
Continue reading

Collections page is not showing in shopify


Solution:@pete has solved the issue with his suggestion. The problem was the widget we have used to filter collections. We converted collections.liquid
Continue reading

javascript - Can no longer scroll with keys unless an element is selected


Solution:Not really knowing Shopify, I'd suggest using {-code-1} to log which element has the focus after the page loads. console.log({-code-1}); Starting from there,
Continue reading

javascript - How do add basic form validation to Shopify Liquid?


Solution:No need to get into JavaScript. Just add required in form with validation through regular expression in html tag. Required isn't
Continue reading

javascript - Shopify API in node.js/React. How to read and write API in Shopify App?


Solution:The biggest issue is that your GET URL on the FE is incorrect. Your server is running on localhost/ngrok, so to
Continue reading