Reputation: 211
I have multiple related wordpress sites. one of them has woocommerce.
is there a way to promote some of those products (maybe identified by category or new or something like that) on one of my non-woocommerce sites?
Like the way google adwords show products related to, but not actually productized on that site?
Thanks.
Upvotes: 0
Views: 76
Reputation: 1895
Have you ever thought about embedding iframe? You have 2 choices, one is by using REST API as @tachb mentioned and the other one is by embedding iframe. So you can make a custom products page which has products only without header and footer on the woocommerce site. After that you can embed the page on the other sites as an iframe. And please don't forget to add target="_parent" attribute to your all links in iframe content as mentioned here and here.
Hope this will help you.
Upvotes: 1
Reputation: 91
You could use the REST API and grab the info you want from any site that can query the API.
Enable the API: https://docs.woocommerce.com/document/woocommerce-rest-api/
Tech Docs: http://woocommerce.github.io/woocommerce-rest-api-docs/
Upvotes: 3