Hi,
First of all is this even possible? I tried a few things one of them being an option page with both the consumer key and the consumer secret key of a different website that I have that has a woo shop. This seems to work, I am able to get product data of that site.
What I can’'t seem to make work however is trying to use dynamic fields to add URL params such as a category.
I tried both using a field that is saved in a separate CPT linked through a relationship field (I use ACPT btw), and directly adding a field to the main CPT and populate that with the category or slug. So basically I would dynamicaly add what is the slug from that category in the shop (I tried both the id and the actual slug).
I alo tried directly adding it directly to the URL instead of a param. Didn’'t work either for the category part.
On the page I basically have main cpt query loop > some of the fields to make sure it works + API query loop > more fields that are populated with the data from the shop.
If I manually replace the value of the category key to the actual category ID from the shop it works fine. The moment I use one of the dynamic values it still pulls data but not just the category.
Sorry if the explanation is a bit messy, hope someone understands me.. Thanks for reading!
Stan