shopify_app | A Rails Engine for building Shopify Apps | Ecommerce library
kandi X-RAY | shopify_app Summary
kandi X-RAY | shopify_app Summary
A Rails Engine for building Shopify Apps
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of shopify_app
shopify_app Key Features
shopify_app Examples and Code Snippets
Community Discussions
Trending Discussions on shopify_app
QUESTION
I just went through the Rails & Turbolinks tutorial - because I am creating a Shopify app for the first time. I got to the stage where my app is loading but all I am seeing is the "Loading..." page which is the 'SplashPage#Index' but it isn't redirecting to my 'Home#Index' like I expect.
I am using Rails 6.0.3.6
, Ruby 3.0.1
and I am not using React. I want to just use Rails & Turbolinks if possible to build my app, so that's why I chose that tutorial.
This is the server log (note, I blanked out my IP address for privacy purposes).
...ANSWER
Answered 2021-Apr-26 at 12:12I finally figured it out. Even though I am not using NPM explicitly, I needed to still include the @shopify/app-bridge
utilities into my JS package pipeline.
I did this by running the following commands:
QUESTION
I want to log orders data when an order is created in Shopify, my shopify rails app receives web hook data in the webhook controller but the job is not performed. I followed the documentation for the shopify_app gem (8.2.6) but it is not working.
Currently I am working on development environment with ngrok tunneling. This issue is with development & production environment.
Event Version : 2020-04
This is the config
...ANSWER
Answered 2021-Apr-11 at 06:55Got the solution for this issue. When I have change web hook controllers receive functions
webhook_job_klass.perform_later(job_args)
with
webhook_job_klass.perform_now(job_args)
It is working fine.
QUESTION
I'm getting started with Shopify app development. I'm developing an embedded Shopify app which will be installed to Shopfify stores. After it is installed I want to have separate web pages for Shopify Store Admin and the Shopify Embedded App's Admin, where they can see stats and perform some actions. (I have no idea whether I should keep these pages on the shopify store domain or an external hosted domain, any advice on which one is appropriate for this use case?)
I'm building it in Ruby on Rails using shopify_app and shopify_api gems.
The problem I'm facing is that after app is installed to a Shopify store, by default it is to be redirected to /auth/shopify/callback
, which is handled by the shopify_app
engine and it redirects the app installer(shopify store owner/merchant) to shopify store's domain(see this code here).
ANSWER
Answered 2021-Jan-08 at 14:34if you choose the "Embedded APP" during the APP setup, then there is no way to handle the APP in both ways, like in the backend Embed iframe and a separate domain APP.
QUESTION
I am building an embedded Shopify application on Rails 6.0.3.2 and using the most recent version of the mongoid
gem to make use of MongoDB. I am also using the most recent version of the shopify_app
gem.
ANSWER
Answered 2020-Nov-23 at 13:41This can be solved by defining the following method on your Shop
class. Located at Shop.rb
QUESTION
I am creating a Shopify app, I want to attach the image with the shop model.
but I can not able to start to serve when I add active storage association with the shop model.
error
/home/web/.rvm/gems/ruby-2.6.1/gems/activerecord-6.0.1/lib/active_record/dynamic_matchers.rb:22:in
method_missing': undefined method
has_one_attached' for Shop (call 'Shop.connection' to establish a connection):Class (NoMethodError)
configuration:
rails:- 6.0.1, ruby:- 2.6.1, shopify_app:- 11.3.2
This is what my code looks like now
shop.rb
...ANSWER
Answered 2020-Jul-10 at 06:24After doing google and try to search on the Shopify community. i got some suggestions, and base on suggestion i try to update only the shopify_app gem version and configuration base on the new version.
It works for me.
change 13.2.0 instead of 11.3.2.
QUESTION
I forked repository:
https://github.com/Shopify/shopify_app
to
https://github.com/knagode/shopify_app
I see that my repo does not contain all the files.
E.g. on original repo inside lib folder (https://github.com/Shopify/shopify_app/tree/master/lib)
There is shopify_app/middleware
folder.
https://github.com/knagode/shopify_app/tree/master/lib This same directory is missing in forked repository.
Why is that so?
...ANSWER
Answered 2020-Feb-27 at 18:39The forked repository is 512 commits behind the original repository.
In commit 0480a218ab5e6e12b890669fd02d2263), the directory/file you are missing has been added.
This commit was created 2 months ago but the forked repository hasn't been updated since 2017 (The latest commit is 13ef3c4af94532c429b5c12dbd0763e2ae4f36a0).
QUESTION
I use the shopify_app gem to add webhooks to my app. They work as expected in my local environment, but when I use the app from my Heroku environment, nothing happens when I do actions that should trigger the webhooks, nor is there any errors or anything at all in the logs.
Any ideas for how I should proceed to determine what the error is?
Update c.f. Davids comment (thanks for the input David):
I've added a call to the API to see which webhooks are installed for the app, and I can see the webhooks have not been succesfully installed - I will dig into this.
My procfile for Heroku has the following content:
...ANSWER
Answered 2020-Jan-18 at 01:46Heroku logs. When you install the App, examine the logs. You'll see the webhooks be created or not. Ensure you setup Heroku correctly too. If you forgot a worker process, your webhook job won't run. Lots of little things to check.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install shopify_app
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page