How to send Data from a Form on the Store Front to a Private App?

Solved

How to send Data from a Form on the Store Front to a Private App?

JoaoM
Shopify Partner
5 0 0

Hello.

 

I want to collect data from a form on my website where the client fills in with his email and send this information to a private app in my store.

 

 

 

Thank you. 

Accepted Solution (1)

PaulNewton
Shopify Partner
6447 587 1368

This is an accepted solution.

Send the information over ajax to an url endpoint created in your private app.

 

Alternatively create a proxy app.

https://shopify.dev/apps/online-store/app-proxies 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


View solution in original post

Replies 4 (4)

PaulNewton
Shopify Partner
6447 587 1368

This is an accepted solution.

Send the information over ajax to an url endpoint created in your private app.

 

Alternatively create a proxy app.

https://shopify.dev/apps/online-store/app-proxies 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


JoaoM
Shopify Partner
5 0 0

Sending information from a form like that requires me to sanitize the input(email) on Shopify? If so how sanitization is usually done in Shopify apps. I did not find anything on the documentation regarding that.

 

 

If you have some source in mind could suggest some tutorial or blog article demonstrating data being exchanged through a url endpoint from the store-front to the private app (Store Front --> Private App) like we are discussing. I only found the other way around  (Private App --> Store Front) . 

 

I can't thank you enough for your answer.

 

andy-a
Tourist
10 0 1

Were you able to find any tutorials on sending the information over ajax to a url endpoint created in your private app? I'm trying to do something similar.

JoaoM
Shopify Partner
5 0 0

Still not.