Questions tagged [shopify-javascript-buy-sdk]

27 questions
5
votes
2 answers

Retrieve article object including its image using the Shopify JavaScript Buy SDK custom query

I'm using the shopify-buy SDK to try and fetch the articles off of my Shopify store just using JavaScript on the frontend, following the "Expanding the SDK" directions here: https://shopify.github.io/js-buy-sdk/#expanding-the-sdk. Using the code…
James Heston
  • 913
  • 1
  • 7
  • 16
5
votes
0 answers

How to access or create Shopify Storefront token [403 Forbidden]?

I am trying to access or create Shopify storefront access token. For that, I am following the Shopify documentation [LINK] and I followed the process as defined on doc but I am getting the error in response. { "errors": "App must have a channel…
1
vote
1 answer

How can I create a buy now button for a specific product variant with Shopify BuyButton.js

I am using Shopify BuyButton.js to create a buy button and shopping cart on my site. I have a product with multiple variants. I can easily create a buy button for a product with the following: ui.createComponent('product', { id: [productid], …
1
vote
1 answer

Shopify Buy Button via JS — Cart shows wrong currency

I've integrated Shopify via the Buy Button JS Library. Everythings works correctly, but the cart shows the wrong currency (it shows $ instead of €). I've set up everything correctly via the Shopify Admin Dashboard (at…
John Brunner
  • 2,672
  • 9
  • 42
  • 79
1
vote
1 answer

Get Data from Shopify using JQuery Ajax

I am building an application where I need to fetch data from my Shopify account using Jquery Ajax. I have gone through documents provided by Shopify, but I have not landed to any solution yet because the documentation provided by Shopify does not…
1
vote
1 answer

How to get all Shop Shipping methods Ids or Shipping zones in checkout page with liquid

I am trying to get all the store shipping methods Ids in Select shipping method page by modifying checkout.liquid Or at least get the shipping_zones json in the same page. I am talking about the IDs in /admin/api/2019-04/shipping_zones.json and I am…
1
vote
1 answer

Shopify - customize createCart() and use on the pages w/o a Buy Button

Currently, I'm embedding Shopify Buy Buttons into my website, offering only a couple products. Any of the product templates where my Buy Button embedded code is pulled, displays the styles as I have chosen. And displays the cart when a product has…
JVsquad
  • 57
  • 6
1
vote
0 answers

How to set CCAvenue redirect_url or cancel_url in Shopify?

I'm building a React Native (Android) application with Shopify. I'm facing some issue with CCAvenue payment process. For the payment process I'm using WebURL Whenever CCAVenue transaction fails users get redirect to 404 page. To avoid this, I need…
0
votes
1 answer

Shopify buy js sdk addLineItems null

Im using shopify buy sdk to create checkout I tried bellow const lineItemsToAdd = [ variantId: 'Z2lkOi8vc2hvcGlmeS9Qcm9kdWN0VmFyaWFudC8yOTEwNjAyMjc5Mg==', quantity: 1 } …
0
votes
1 answer

Shopify border selected color

I have shopify shop and i found a code on internet to replace the color by his image like this. I really need to add a border when the color is selected, can someone help me please. the code is to do this is : {%if option.name == "Couleur"%} …
Lucuss
  • 1
0
votes
1 answer

How to shopify storefront navigation menu get with API?

If anyone can please help me with how to retrieve the navigation menu with REST and Graphql API. If no API is available, then how can I write a custom Navigation API? We need to get the below data with API. see screenshot
0
votes
1 answer

Shopify Confirm password issue due to g-recaptcha

I have created Confirm password field in registration page but facing issue due to G-challenge as shopify redirect to challenge page after submiting the form and js dont work that i was using for confirm password.
0
votes
1 answer

Shopify Buy Button - Make Checkout Button Redirect to Online Store Cart First

Some background - I'm using the Shopify Buy Button in Wordpress. I've added the script to a Wordpress widget and have managed to customize some of the components. There's one thing I'd like to change, but I can't quite figure it out. The Checkout…
0
votes
1 answer

openCart() function for Shopify Buy Button JS does not work

I like to set up a Shopify shop via a simple HTML/CSS/JS/PHP website structure, where I include the highly customizable Shopify Buy Button JS library. I followed the tutorial, and everything is set up correctly, as I can fetch and display all my…
0
votes
1 answer

How to get HTML element value in Liquid

I am working on a Shopify store and want to get product's price as per the variant selection in product page. I would like to know how I can get HTML element's value using Liquid.
1
2