Questions tagged [shopify]

1

votes
2

answer
22

Views

Parsing a TimeZone name string that includes GMT offset hours

I did find this question but I am still stumbing around looking for a simple solution to the following: An API call returns the following format which looks like they are using Time.zone.to_s irb> ShopifyAPI::Shop.current.timezone => '(GMT-08:00) Pacific Time (US & Canada)' I would like to parse th...
kg.
-2

votes
1

answer
17

Views

What is a good platform for affiliate marketing in my Android app [on hold]

I want to create an Android app where a few products that aren't mine are listed and then earn a commission when users buy these products. I wanted to use Amazon's or Alibaba's affiliate programs but both are strictly for use on a website. I did see that Shopify allows you to sell products from your...
Xynex Apps
1

votes
2

answer
806

Views

API Call from Shopify's Liquid

I am writing trying to call the Instagram API from my online store on Shopify. I cannot use javascript because Instagram is not allowing the request. It is not a bad call, or an error, they are just denying it. So, I am using Liquid to call the API. I am wondering if there is something similar php's...
Anthony
1

votes
1

answer
222

Views

mobile-buy-sdk-android fails with error com.shopify.buy3.GraphHttpError

Below is the code and error message Error Message: 'error com.shopify.buy3.GraphHttpError: HTTP 403 Forbidden ' 403 error indicates that I am not properly authenticating the request, What am I doing wrong here? The code OkHttpClient httpClient = new OkHttpClient.Builder() .addNetworkInterceptor(ne...
ganesh
1

votes
0

answer
42

Views

Like not working in where clause in shopify-laravel

I am trying to make a search in shopify app using laravel but i cant getting result. when i use equal to operator it's working fine. but when i use LIKE operator it's cant fetch result from fetched array. $search_blog = $request->search_blog; $product_id = $request->HDNproductid; $shop = session('sh...
vbc
1

votes
0

answer
198

Views

Is there an equivalent to {% include 'ajaxify-cart' %} for javascript? | Shopify

I have a store that's using a sidebar filter to filter products on my collection pages by tags, collections, vendor, and various other options. The filter is written into the theme.js I've added an add to cart button and gone though the procedures listed in this article to 'ajaxify' my cart. https:/...
Jeff
1

votes
0

answer
75

Views

GraphQL Query for track order status in Shopify iOS

I am new in GraphQL and Shopify also. My requirement is track order status using shopify iOS SDK and i am unable to find any solution to track order status. I am able to get user's order list using this query { customer(customerAccessToken: token) { orders(first: 20) { edges { node { id orderNumber...
vipulk617
1

votes
0

answer
95

Views

infinte scroll + imagesloaded + masonry on tumblr API loaded via ajax within shopify

I've been trying to make this work for a while but haven't made any progress. Not sure if I'm missing something or if it just won't work within this setup. In short: client has a shopify site, and wants to load in images from tumblr in an infinite scroll. I'm using the standards from DeSandro: Infin...
Steve King
1

votes
2

answer
47

Views

How to hide footer on customized rails 404 page in liquid shopify template

I am working on a rails website with views made predominantly with liquid shopify. I customized the default rails 404 error message to something more dynamic that would display an animation and the top menu of the website. My new error pages are named not_found.html.erb and internal_server_error.htm...
Hakeem Baba
1

votes
1

answer
113

Views

shopify application charge failing to save

Below is my code for a Shopify one-time-application-charge in Ruby. I followed the shopify 'add billing to your app' page (https://help.shopify.com/api/tutorials/adding-billing-to-your-app) for the code, except didn't need a recurring charge. I have also found someone else who posted their one-time-...
Brady
1

votes
1

answer
77

Views

Update shopify cart with customized product image

I'm working on Shopify public app creation. I have customized a product image and store that image link in a meta field of that particular product. I want to show the customized image I had created when adding the product to cart and other order product listing section without updating actual produc...
Shamon S
1

votes
0

answer
108

Views

Shopify buy-sdk in Xamarin

I try to build Shopify end point shop application in Xmaramin. Shopify provides native buy-sdk for Android and IOS which handle communication with API, therefore I was thinking about writing some in-app API based on interface that is implemented in projects for particular OS calling native library...
pankis
1

votes
0

answer
251

Views

Shopify - Display all products with the same vendor as current product

We built our Shopify site so that the only product variants would be size. However, we also wanted to display different styles of the same product as thumbnail links on product pages. This was done using the vendor attribute and the following liquid code: {% assign vendor = product.vendor %} {% assi...
new recruit 21
1

votes
1

answer
279

Views

How to use Shopify api to update the cart “Note” from the “Additional content & scripts” box

I need to add a Note after the user places their order and is sent to the confirmation page. I know you can add code in the 'Additional content & scripts' and was wondering if anyone knew how to add an ajax call that would allow me to add a note to the order through there? Something like jQuery.pos...
Reyjay
1

votes
0

answer
21

Views

Shopify template: Stop background repeating (ajax?)

I'm trying to stop a background image repeating in a responsive shopify template, I am used to tinkering in basic code as best I can however this is way out of my skill range. I'm hoping that someone could help with what i'm hoping would be a very simple fix.. Sharing 2 sections of the code that see...
nsndo983
1

votes
1

answer
69

Views

Shopify liquid pattern matching using Python

I would like to add a new line to shopify liquid file (basically it's an HTML file with some variables) after I find a pattern I look for in the liquid string. As this is a valid HTML file by saying after I mean add a new line as a new element in the html in a way that doesn't break the layout of th...
embedded
1

votes
1

answer
171

Views

Sort Products by Published date in collection page - SHOPIFY

We want our products sorted out by Publish Date, (not by created date) I'm sure this is possible in Shopify, I just don't get what I'm missing. {% assign date_now_sort = 'now' | date:'%s' %} {% assign product_sort = collection.products | sort: 'published_at' | reverse %} {% for product in produc...
AJ Abaricia
1

votes
0

answer
248

Views

Purge cache in shopify web app

I am new to shopify and i have made some changes in one of my liquid file. Those changes are only visible in my live site when i hard refresh it. I need to purge cache of my app from my admin panel but couldn't find a option. Any help would be appreciated. Thanks in advance.
Jitender Singh
1

votes
1

answer
410

Views

how we can get Page-scoped-id from user id in facebook send api?

Before facebook last update I was using Facebook Send message API by passing user reference parameter and getting recipient id in response. Now the Facebook Send message API not returns recipient_id in the response when we use recipient.user_ref or recipient.phone_number to identify the message rec...
Muhammad Adnan
1

votes
1

answer
454

Views

Hiding products based on customer tag Shopify search.liquid

I hope someone may be able to help with this. I am currently setting up my store with shopify and have duplicated my products for retail and wholesale customers. The only issue I am faced with is that the retail products are still showing when a customer with the 'wholesale' tag uses the search box...
Andy L
1

votes
0

answer
86

Views

Shopify API Draft Order, Order or Checkout with Custom Taxes

I'm stuck. Even though all the documentation says you can, I can't add custom taxes to a DraftOrder or a Checkout. But oddly enough I can with a regular order. This is my code, and all I change is which object I hit either Order DraftOrder or Checkout order = ShopifyAPI::Checkout.create({ line_items...
ToddT
1

votes
1

answer
1.1k

Views

Fetch all products on shopify store using shopify's API & PHP, then echo to a “list-products.php” page

I have recently started developing and would like some assistance if possible regrading the following issue i am facing. Firstly my aim [project scope] is to do the following: 1. Connect to the shopify API via an external web app [Done this Successfully] 2. Fetch a list of all products in that speci...
Simonious
1

votes
0

answer
103

Views

Using Omniauth with Rails + React - CORS issue

I am trying to use omniauth for authentication in my rails/react app using the shopify strategy. After sending the user to the omniauth path: SessionsController def authenticate redirect_to '/auth/shopify?shop=#{params[:shop]}' end Omniauth is sending a 302 redirect to my browser: Rails Output (sho...
Joe Sasson
1

votes
1

answer
58

Views

How does Shopify resolve conflicting App Proxy URLs?

A Shopify app proxy is a URL that an app can automatically set up for you. It is a URL that looks like a store's URL but it is actually proxied to some alternate app URL. example: example.myshopify.com/a/test can be set up by an app to proxy to whatever URL the app wants. Seen here are some settin...
Augie Gardner
1

votes
0

answer
74

Views

Detecting if you hit the bottom of window inside an iframe

I am working on an app for Shopify. I am using a lazy loading method; once the user scrolls to the bottom it loads more data. This seems to not work on all browsers. Particularly when the app is in the Shopify app window in an iframe. I know that the window.scroll is working, the if statement seems...
danny gonzalez
1

votes
0

answer
95

Views

Failed to apply plugin [id 'org.gradle.checkstyle']?

How to solve this error? Error:(24, 1) A problem occurred evaluating root project 'myproject10'. Failed to apply plugin [id 'org.gradle.checkstyle'] Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter(). subprojects { def projectName = it.name if (pro...
Midhilaj
1

votes
0

answer
35

Views

Displaying conditional Quantity Shopify

I am currently working on adding a quantity and the code works fine. The problem is for example Product A has 3 variants variant a = stock 100 variant b = stock 50 variant c = stock 0 {% if current_variant.inventory_quantity < 50 %} {{current_variant.inventory_quantity }} available. {% endif...
JeVic
1

votes
2

answer
250

Views

How to fetch product metafields in cart.js Shopify

How do I get product meta fields in Shopify store cart.js response? Currently, In cart.js not providing any details of product metafields.
Shamon S
1

votes
0

answer
104

Views

Shopify buy button add only one quantity to cart

I have implemented 'Shpoify Buy Button' in Symfony Project. I want restrict add more quantity to cart. Below is my json code of 'Shpoify Buy Button': Shopify.render('shopify-btn', {{ current_program.shopifyId|json_encode|raw }}, { 'product': { 'buttonDestination': 'checkout', 'variantId': 'all', 'co...
Milan
1

votes
1

answer
162

Views

Shopify - get customer email from customer object? (js - scripttag)

I need to create a cookie with clientID(need email to create it), when customer register/login on shopify shop. How can I get email during register/login? Is it possible to get it from Customer object(js injected via script-tag) and how? The only possible way I see at the moment is to create onclic...
maciey_b
1

votes
2

answer
238

Views

Minifying a scss.liquid file

Shahzaib here, coming to you for a bit of help ! I'm still new in the Shopify and liquid stuff but i'm getting there. I'm cutrently trying to minify a scss.liquid file on Shopify, usually when I try to do that with a css file, I use an online minifier, exept that, apprently the scss.liquid format i...
shahzaib dilawar
1

votes
0

answer
79

Views

Shopify form customize fields

I have access to the checkout page in Shopify Plus and I need to append a new field into the form. However, when the user adds a new 'Discount Code', Shopify make an API request which I have no control of and replaces the form with the fetched data (returned as Html). This causes my new appended ele...
Nicolas T
1

votes
0

answer
54

Views

Shopify App OAuth Error Whitelisted URL if user is not logged in

My app was working two weeks ago. If the user is already logged in, I am not getting this error. But, if user is not logged in, I am getting that Redirect URI Whitelisted error. On checking the issue, I found out that - If user is already logged in, on browser, I am seeing this url - https://vsana...
1

votes
1

answer
155

Views

Using Shopify Storefront API to fetch Collection Image

I'm building an Shopify Ionic 3 App using the Storefront API. Fetching ID and Title works. But trying to access Image it fails. Using 'GraphiQL' with this Query { shop { collections(first: 1) { edges { node { id title handle image { originalSrc } } } pageInfo { hasNextPage } } } } will Result with {...
magic.77
1

votes
0

answer
147

Views

VScode - No syntax highlighting inside {% schema %} or {% stylesheet %} tags in .liquid file

I've started a new job working on shopify templates and am having trouble getting the syntax highlighting to work in VSCode. I have installed the Liquid Languages Support and Shopify Liquid Template Snippets extensions, but on my .liquid files there is no syntax highlighting inside the {% schema %}...
Davez01d
1

votes
0

answer
126

Views

Oauth error invalid_request: Could not find Shopify API application with api_key Shopify error

I am receiving this error immediately after installing my app in my dev store when attempting to exchange the temporary access code for a permanent token. Oauth error invalid_request: Could not find Shopify API application with api_key I'm using below code $client = new Client(); $response = $client...
Shamon S
1

votes
0

answer
46

Views

connect shopify with magento 2 and import products from shopify to magento 2 like oberlo

I want to connect Magento 2 with Shopify stores and import products from Shopify stores to Magento 2 store just like Shopify use Oberlo.
Faizy
1

votes
0

answer
126

Views

How to use Asset API to access liquid file through shopify_api gem ruby on rails

I am new to the shopify app development and I ran into the problem while accessing the template file for example : layout/theme.liquid using the shopify_api gem. I actually am able to setup the gem properly in the app and deploy it correctly. I can access the products and webhooks and also the whole...
aton1004
1

votes
0

answer
55

Views

eCommerce / Shop system with good support for GDPR requirements

I know this and that but I think my question is valid. Also I couldn't find another, more appropriate StackExchange community for my question. My task is to replace our legacy webshop with a new one which makes compliance to the GDPR requirements as easy as possible. Until now, I haven't found a sho...
einSelbst
1

votes
0

answer
35

Views

Shopify nodejs app how to generate logged in url for customer?

We are developing Shopify app for social login, we get accessTocken then we try to create customer from our app and it works fine and now we need to generate logged in url after created user account in Shopify.How to do that?

View additional questions