I have multiple Magento 2 websites and i do not want to use CSV or XML to update my product details. I would like to develop a feed or other connection to automatically update the product information from the main (parent) website to the other (child) websites.
Which technology would be the best to set this up? Rest? I am looking for some suggestions to point me in the right direction.
@ictnedHi,
When you say multiple Magento 2 website does it means you have separate instances of Magento having same set of products?
When you say parent child what does it mean? Do you have multiple website on same Magento instance?
Did you see the default Magento API's to create or update the content?
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
Hello @ictned
I understand the idea behind whole this concept.
Yes that's correct if you use native Magento's API that might not allowed directly to update the products feeds from one website instance to another website instance in a simple way. Also magento have EAV database structure so its difficult to get the data directly from the database.
So based on my experience and knowledge i would say - you will require to create a bridge application (Simple Core PHP App) between both the website instances.
Meaning this bridge app will get the data from the Main website (parent) programatically and store into the database and now another Second Website (Child) will fetch the data from this Bridge App programatically and store the data into the second website.
Bridge App Database should be a simpler with minimal data (you require on new store) and easy to access data on the child website - then fetch the data from this database using programmatic script and update the same on this second website store.
I think this way it should be easy or another alternate option should be create a custom API on the Parent site and use the same on second site to fetch the data - that will also work.
note : this is just suggestion/idea based on my experience
Hope it helps .
@ictnedHey,
You may have researched already. Why not use a PIM for the same. Writing custom API and separate application to do the same would bring in more complexities as well as requires good amount of maintenance. PIM comes with a lot more benefits.
Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.
Hi @ictned
So that's why i suggest to use bridge app which is 100% available for any kind of customization.
But you can use REST or SOAP whatever make you ease you can use that and update the information accordingly from the parent site to child site.
Also if you want to push information to Parent site again then also you can utilize the APIs to update details on the parent site.
Hope it helps !