Store checkout script

Hello community,

please, I need to send address below (for review) automatically after every customer’s checkout. There are 3 variables: customer email, order id and item id.

Do you know how to implement this to my store? www.batohyprodeti.cz

Thank you very much

https://www.heureka.cz/direct/dotaznik/objednavka.php?id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&email=jmeno@email.cz&itemId[]=206210&orderid=123456

If you just want to extract certain parts out of that URL, then you can look at using Wix Location API and the query function.
https://www.wix.com/corvid/reference/wix-location.html#query

Have a read of this previous forum post.
https://www.wix.com/corvid/forum/community-discussion/get-dynamic-page-id-into-data-table

Or you can look at using an Event through Wix Stores Backend or the Thank You Page. to get all the order or certain items from it.
https://www.wix.com/corvid/reference/wix-stores-backend.Events.html
https://www.wix.com/corvid/reference/$w.ThankYouPage.html

Thank you. I just want to send that url address every time when someone purchase an item. I do not see anywhere in the links how to create some url address with variables and fire that certain url to provide some info from order to third party. It is the same as google shopping reviews. Do not you know, please? Thank you

If you are after a reviews set up, then Wix Stores do their own ratings and reviews tutorial.
https://support.wix.com/en/article/corvid-adding-ratings-and-reviews-to-a-wix-stores-site

Or another method by FutureCode.
https://futurevisionweb.wixsite.com/futurecodemain/reviews
https://www.youtube.com/watch?v=PQha8zxEaJ8 - youtube video of above tutorial page.

If you are looking at creating your own URL, then have a look at these previous posts.
https://www.wix.com/corvid/forum/community-discussion/dynamically-add-url-parameters-to-external-url
https://www.wix.com/corvid/forum/community-discussion/url-parameters
https://www.wix.com/corvid/forum/community-discussion/passing-parameters-in-url

You will then need to get that variable URL onto say a triggered email that gets sent out automatically after the purchase to a set members email address.

Or just use emailUser in the backend and send a triggered email with those three variable values.
https://www.wix.com/corvid/reference/wix-users-backend.html#emailUser
it must be done through the backend as then it can send to a specific member, through the frontend emailUser will only send to the currently logged in user.

Finally, if the required URL is already set up at the end of the order and you don’t need to add anything, rather just grab it so to speak, then you can just use Wix Location and the URL function to get the current URL.
https://www.wix.com/corvid/reference/wix-location.html#url

Thank you, but still this is completely different from what I am asking. Please read it carefully:

After every purchase I need to open a third party url address with variables from my store purchase. That URL is created from third party domain (where I send the notification, that I have finished a checkout with customer) and variables from purchase (email, item, order - so that third party can send a questionaire to that particular client).

All you described above is something different.

I think I only need some code snippet how to fire that third party URL, I think I am able to create that URL with my variables from order.

Thank you once again for your time and replies.
M

Hi , i am just wondering if you found solution to this as i am needing similar?