I built a react native mobile app for my client, with its own backend server (postgreSQL) but I want to use the cart and checkout of her Wix site for security reasons.
Do I need to use her Wix site as a backend in order to integrate the mobile app to use the cart?
I am a developer but not very familiar with Wix Code and really want to use it more. Thanks in advance!
Hey
If you want the user to add products to the cart you will need to
- Show products for the user and have the ADD TO CART button on that page
OR…
- Code your own Javascript using Wix Code and add existing products by their _id to the cart using the Shopping Cart Icons methods that exists and then show the user the actual cart on mobile.
BUT
You can’t checkout a client using code only in Wix and you can’t access the order after checking out through code.
Read the API Docs about Product Page, Shopping Cart Icon and how to read from Data Collections such as Stores/Products to get product _id from the existing products.
I hope I have helped you in some way forward, please ask more if you need more specific samples or so for this actions.
Thank you!!! I was discouraged when I talked to Support but had faith that Wix Code could do it.
Help! I have my mobile app set up to see the Cart from the wix site now I need a little help adding the products to the actual cart. I have updated my products to include the “product_Id” and updated stuff in Wix code but I am missing something… I am confused as to how to get the wix website to accept the product from my mobile app.