-
-
Notifications
You must be signed in to change notification settings - Fork 377
Object not found when going to authenticate page #62
Comments
Not sure what you're trying to do, wrong install method it seems. You need to install via composer, the PSR4 is for composer to know where the files are for the package. |
Ok, i think i get it, i was able to see everything like demo, anyway when i click on Install, then it redirects to authenticate i get this error: GuzzleHttp \ Exception \ ClientException (422) """ Any ideas? |
What do you have setup in your shopify-app config for the webhook? |
Hi guys ! @ohmybrew : your answer about the webhook config helped me a lot : |
Ok got it working by adding my app url! So now, whats the best way to get the webhook info? is there any example? using the create orders. webhook is not being created on web shop in Shopify, this is my shopify-app.php file:
and i dont see the order create webhook on my admin. I have added this on OrdersCreateJob.php
How can a try the webhook and see it on my url i have added on webhook endpoint? i think i need the last step to see if i can get the order data when its being created, i would like to store on my db for export later on csv |
I have followed this one: https://github.com/ohmybrew/laravel-shopify/wiki/Creating-Webhooks |
@lucasvm Yes, so long as you have a url path matching the job, example: "xxxxyyyzzzz.com/webhook/orders-create", the package will convert It will then pass the shop domain, and webhook data to the contructor of the job, then once queue'd, the job worker will fire For example data, I do not have this off-hand, however, you can find information per resource on Shopify's API docs. Example: https://help.shopify.com/en/api/reference/orders/order#show is data you would get through a webhook for an order, similar for a product update/create, etc, a singular object. Does this solve your problem? |
Yes its working great, if someone needs to get the data printed on some file to check what is comming from Shopify on order creation i have done this: Create a construct:
On the handle function. This will print the data from Shopify on laravel.log file as Info with all the array of the order :) Thank you for the support! |
Hello
I have followed all the steps, my app, is under src/ShopifyApp i have created on psr-4 the namespace like this:
"src\ShopifyApp\": "src/ShopifyApp"
however when i try to see the site im getting object not found
Also i have added this and everything is ok:
$ php artisan vendor:publish --tag=config
Copied File [\src\ShopifyApp\resources\config\shopify-app.php] To [\config\shopify-app.php]
Publishing complete.
Any ideas? im missing something? using url: http://local.shopify-app.com/authenticate, the url is on my localhost because i can see the index.html with the title.
added to My composer.json:
"psr-4": {
"App\": "app/",
"src\ShopifyApp\": "src/ShopifyApp"
}
The text was updated successfully, but these errors were encountered: