My store is based around PCs. I do not make the products, but rather put the items together (items are from a supplier) so there are base models with lots of options.
My question is:
Could I connect the products listed as options to an external source that would update the options and prices automatically when the external site changes them and gets new ones?
I have about 250 options to add, sort, and put prices to. That makes it hard to update when something changes.
Thanks for any help.
Hi,
Welcome to the Wix Code forums.
If the external source has a REST API, then you can retrieve the data using wix-fetch . Read the article
Accessing 3rd Party Services for details.
Have fun,
Yisrael
It is not my site, so I am unsure if it has that or not. It is a partner site, but I do not have access to anything besides what a normal visitor to the site has. I could likely see part of the code with the Developer settings on my browser, but I am not sure if I will be able to see what I need. Is there a way to find out if it has a REST API without going into the original code?
Also, I am having a hard time on the Wix Editor finding the code page for the items in the options menu. Where could I find that?
Thanks again!
You’ll have to ask the partner site if they have an REST API exposed. For example, you could expose an API of your site’s functionality using the wix-http-functions API.
Sorry, but I don’t understand what you mean by “items in the options menu”.
First, make sure you have the code development environment of Wix Code enabled:
You can find the code panel at the bottom of each page. Just click on the bar to open the panel:
I hope this helps. Have fun,
Yisrael