Storefront event webhooks in Shopware 6 app development - shopware6

I developing an app and basicly if an user loaded a product in the storefront it should send a request to my server. So i thought thats possible with webhooks. But unfortunately there is no webhook for this case.
The closest thing i could find is the product.written webhook but that seems useless for my case.
Anyone has an idea how i could realize my request?
I use Shopware 6.4.11.1 as development enviroment.

Although I have not found any appropriate webhook in the webhook events reference, this may be doable in a slightly different way, without using the Shopware App Webhook mechanic.
In the Shopware documentation there are shown ways to add Storefront scripts to an app. There is even an example for product-page-loaded. You would be able to execute some of your own code in there, but honestly I have not tried to ping external servers like this and I can't tell you that this will surely work.
You could also potentially add some custom JS code that pings your server with the appropriate info.
Unfortunately I don't think you can compel Shopware to send a request from its backend on a ProductPageLoadedEvent

Related

How can I possibly implement a VueJS app to Odoo?

I have to integrate a VueJS app in Odoo. I don't exactly know how I can achieve that?
I found this https://www.odooinvue.org/ (not my app, but an example app) . Still no idea on how can I implement odoo in Vue. Login gives me a Failed to Login error message in this example app.
Any idea how to implement odoo in vue??
Actually, odooinvue works fine. Read carefully the instructions, in development it shows how to start a traefik docker container in order to serve both odoo and Vue.js.
Note: If I am not wrong, the purpose is to use odooinvue as a pure frontend, so it's not really an integration, basically you build vuejs (quasar, specifically) apps with odoo used as a pure backend.
See also this answer, by odooinvue's author
I am the author of that project. Its really impossible to answer you without knowing what steps you have taken to setup the project, but for that error, make sure of the following:
The Odoo server is up and running in the backend and you can login.
When you login with the front-end Vue app, you are using credentials that you know are working.
If that fails, open the dev console of your browser and check the network log. Make sure that the authentication request is returning status code 200.
I know others that are using the project just fine without any issue, so I am going to assume that you need some technical help. Perhaps hire a software developer to assist you.

NetSuite and Shopify Integration

Hi I am trying to integrate NetSuite and Shopify, I am facing an issue in Shopify webhook, I have given Suitelet's external url in Shopify webhook but this link is not working, I tried with requestbin its working fine.
Is there any issue with Suitelets external url.
Please help.
What you are likely running into is that Suitelets are set up to be used from a client side script. This behaviour existed for years and then disappeared for a while then it showed up again in 2017.1. The behaviour is that if the inbound suitelet call doesn't have a recognized user-agent header Netsuite drops the call.
I do a lot of Netsuite and developed a proxy for suitelet calls that handles this but that is something I apply sparingly and on a client-by-client basis.
The other issue you'll run into is request throttling back to Shopify. This is difficult to deal with from Netsuite since their server side http methods are all synchronous so you'd have to get clever (first thing I'd investigate if you are intent on this is with scheduled scripts that send updates to Shopify until you are about to run out of api calls and then re-schedule themselves)
FWIW I have a Netsuite-to-Shopify connector already in production. If you are trying to connect your Netsuite account to Shopify I'd recommend looking at that.
FarApp and Celigo also offer Netsuite to Shopify though I believe theirs are more expensive than mine.

Add dropbox webhook by code

We're exploring dropbox api reference. Concretly, we're exploring webhook possibilities.
We're not quite to know how to specify a webhook url by code.
We are lokking for a way to add this webhook url avoiding user has to do it manually.
I hope I've explained so well.
It's not possible to programmatically register a Dropbox webhook URI. We'll consider it a feature request.
Developers should register their webhook URI(s) manually via the App Console. Those webhook URIs will stay registered and will be used for all users connected to the app.

Registering a carrier service shipping rate with shopify carrier shipping API

I am trying to register a carrier shipping service with Shopify's API but not exactly sure where to place the API call to register the shipping service. So far I have an APP and able to athenticate and install the app into a test store successfully but how does Shopify store make the call to initialize and register the service after installation?
The API documentation states making a curl call:
curl -X POST -d #carrier_service.json -H"Accept:application/json" -H"Content-Type:application/json" -H"X-Shopify-Access-Token:TOEKN" https://aztest-3.myshopify.com/admin/carrier_services
Where should I make this call from?
you can make this call from any terminal window that's connected to the internet.
most people would use their own computer's.. I ran mine from heroku.
I faced the same dilemma when attempting the same thing.
It makes sense that when the App is installed, it saves the access token provided in the response from Shopify in the App's persistence layer. When that save is completed the App can then initiate a session with the shop. With a session a call can be made to setup the Carrier Shipping callback and the App is then ready to go. A rate request will hit the designated end point and it is then (at least partially) responsible for providing shipping rates.
Ideally, you should have some kind of framework that handles the OAuth flow, storing authentication data for later use (like the Ruby or Python implementations, or your own). In this case, you would want to use the framework's method for sending requests to Shopify, and not send requests manually through curl. The curl requests in the documentation are for quick-example's sake, allowing you to try out the requests yourself easily.
If you insist on triggering these requests manually, I would highly suggest using Postman- It's much more human-friendly than curl and has some great time-saving features.

Shopify webhook application

I was thinking of implementing a shopify application.the purpose of application is that when it is installed on any store.Application would set the HTTP POST request URL itself and when there is any order placed on that store,App will send us the information via POST.
Is that possible using webhooks?
beacuse i cant find any way to programattically using the webhooks.
Have you read the API docs for webhooks? All it talks about is using them programmatically.
http://docs.shopify.com/api/webhooks/using-webhooks
Are you running into some specific issue?