Questions tagged [shopify]

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?
1

votes
0

answer
33

Views

Difference between Customer.search and Customer.find in Shopify API gem?

I wanted to get email addresses of all customers who have bought our 'foobar' products. First I tried this. It worked pretty fine. Customer.search(query: 'state:enabled').each do |c| c.orders.map do |o| o.line_items.each do |i| t = i.title p c.email if t.include?('foobar') end end end Then I tri...
1

votes
1

answer
179

Views

Create customer using shopify api in application

I'm developing an e-commerce application using react-native. I'm stuck to create a customer using POST method and /admin/customers.json API. When I call this API it gives me error that Unexpected token '>' in Postman. I'm passing every parameter which is required but I failed to get output. Using...
Riddhi
1

votes
0

answer
61

Views

transformClassesWithMultidexlistForShopifyDebug?

Error:Execution failed for task ':sample:transformClassesWithMultidexlistForShopifyDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.multidex.ClassReferenceListBuilder with argum...
Midhilaj
1

votes
0

answer
96

Views

Shopify order confirmation email does not shows if condition statement for out of stock product,

My task is fairly straightforward but seems it doesn't. I am attempting to send the order confirmation email for out of stock product i.e whose inventory is zero or less. I am allowing to place out of stock order and wants to send order confirmation email as An order will be dispatched by June 17 in...
amar ghodke
1

votes
0

answer
41

Views

Merge Shopify Carts using JS Buy SDK

Background: Custom product builder uses JS Buy SDK to add products to the cart using the JS Buy SDK. The store also has basic products (gift card) etc. These products are added through the 'normal' flow of a Shopify cart. I want to make the carts the same for both flows. I think I should be able t...
sww314
1

votes
1

answer
51

Views

Shopify liquid : cart-template variant is not defined

I am simply allowing to checkout out of stock product to buy. When a customer wants to buy product has inventory less than zero and clicks on view cart from ajax cart, I simply want to show message ' dispatch by 7 June.' in cart-template.liquid.I have applied logic as given below. If required full c...
amar ghodke
1

votes
0

answer
154

Views

can't find referenced class issue?

We are using shopify Android buy sdk to develop this app compile 'com.shopify.mobilebuysdk:buy3:3.1.1' compile 'com.shopify.mobilebuysdk:buy3-pay-support:1.0.2' Error and Warning warning: com.facebook.cache.common.cacheerrorlogger: can't find referenced class javax.annotation.nullable warning: com.f...
Midhilaj
1

votes
1

answer
144

Views

Prevent to click “Add to Cart” button if specific product not selected - Shopify

Hi experts have a nice day, I have a project on Shopify where I'm getting struggled on how to prevent and make alert when a specific product selected for some conditions. I made a product template where I populate list of products from collection A as a first set of selection and collection B as a s...
Cha
1

votes
0

answer
247

Views

Shopify output line items as json values

I am trying to amend our tracking code for Shopify to output the items in the order, but it's giving me issues as not returning what i want. Any ideas please. It's var pr = values that are not working. The rest is fine and outputs what we need: var of_ssid = 'xxxx'; var cs = '{{ total_price | money_...
Onefeed
1

votes
0

answer
38

Views

link_to method of ruby not working for shopify embedded app

I am creating an embedded app for shopify in Ruby on Rails. And I came across a quick issue which I don't think should be a major one but I am not able to get it working so I was hoping if anyone could help me out. Let me explain the issue. What I have done I have rendered a template where there are...
aton1004
1

votes
0

answer
311

Views

Stacking Discount Codes in Shopify

I am trying to apply Two Discounts in Shopify cart. I read the documentation and I found out that you can do the same by Using Scripts App provided to Shopify Plus Accounts. So, I went ahead and created a Discount Script. The script executed perfectly after creation in the Shopify Console. But, when...
Subhrajyoti Das
1

votes
1

answer
59

Views

How to apply not filter in shopify rest api?

I'm using Shopify API to get all the products. GET /admin/products.json. Found that i can apply filters only to title, vendor, handle, product type, collection ID. In order to get all the products which has 'aaa' as vendor and 'bbb' as product type. I have applied it as, GET /admin/products.json?ven...
1

votes
0

answer
98

Views

slick slider sync thumbnails not aligning (on Shopify)

I've installed Slick sliders synced slides for product images and thumbnails and it all works fine until you use the main image to navigate instead of the thumbnails. You can see the issue here: https://monosnap.com/file/2wLtDBErumVnQs8UlA5PtRro8UBQZq It's run on Shopify but I don't think that would...
Jenny Naylor
1

votes
1

answer
129

Views

what is the best place to learn shopify theme developing?

Is it possible for anyone to nominate a place, documentation or tutorial to learn developing Shopify themes? I have learned liquid Shopify template language but I can not understand how should I use it in my template or my client's template that I made with (html5 / bootstrap / css3 / js / OOp js /...
Mohamed Elbaz
1

votes
0

answer
15

Views

adding .liquid to new page in shopify

I'm trying to add some .liquid into new pages for my webstore. {% assign collection = collection.bedroom-aids %} {% if collection.image %}{% else %}{}{% endif %} {{collection.title}} Of course when I save the page the .liquid is just showing as text i'm typing. Can anyone let me know what i'm doi...
inozzel
1

votes
0

answer
126

Views

How to make picture srcset with media queries in liquid (shopify)

I'm looking to render device specific images for both my products, but also all the content that is uploaded through the customize section in Shopify. I'm looking to generate something like the following: How can this be done in liquid as a reusable snippet for both product images, collection images...
martinsoender
1

votes
0

answer
182

Views

Shopify: Slide show images don't aspect fit to the banner area; they get cropped

I am using shopify theme 'Pop' which comes with a Slick Slider Hero. When the slideshow is opened on a mobile device, it automatically crops my images which I don't want because I added text to the image so it cuts it off (view pic attached) Please let me know what code to add to what liquid/css fil...
MissManihi
1

votes
0

answer
59

Views

Force re-render components after local store is updated from iframe

I am building a Shopify app with React and Apollo, using apollo-link-state to manage a local data store. Because of the way Shopify embedded apps are done, I end up updating the local data store from a modal, which is technically an iframe pointing to the same URL as my app. My problem is that the m...
Silvain
1

votes
1

answer
103

Views

Shopify Customer Login issue by mobile buy SDK on ios

I am developing a mobile app Builder on Shopify. But Shopify doesn't provide any store back API for customer Login. So I use mobile-buy-sdk for ios for customer login. (I have installed mobile-buy-sdk on ios app and try to get access token by GraphQL) In mobile-buy-sdk I am getting some problems whi...
1

votes
0

answer
159

Views

Shopify Slate v1 starter theme grid

Hi I am new to Shopify theme development. I am using Slate V1 to create a new theme from scratch. I have it all setup and running fine with a test store. I understand that this is a starter theme but there are a bunch of grid classes such as: grid__item small--one-half etc But there doesn't seem to...
Pedro
1

votes
0

answer
37

Views

Shopify App développement general information

im new to shopify, have been working with Wordpress/Prestashop/Magento apps [PHP]. Yet i have to create an app for Shopify, and i need few informations to start in the good direction. First of all the app need to add the JS to selected Page of the shopify. Example on other platforms i create an admi...
Ggs

View additional questions