cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 - update products details from one website to another with a feed

Magento 2 - update products details from one website to another with a feed

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.

7 REPLIES 7

Re: Magento 2 - update products details from one website to another with a feed

@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'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Magento 2 - update products details from one website to another with a feed

Yes I have multiple Magento 2 websites and they are having the same
products and categories.

With parent / child relationship I mean. 1 website should be the website
which has the correct details where product information is managed and then
the other websites should be updated from that website.

And yes i saw the default Magento 2 Api's but according to me they dont
allow you to update information from 1 website to multiple websites. Or am
I wrong.

(thank you for answering)

Re: Magento 2 - update products details from one website to another with a feed

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 Smiley Happy

 

Hope it helps .

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2 - update products details from one website to another with a feed

@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'.

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: Magento 2 - update products details from one website to another with a feed

No I am more looking for a solution which i can customize 100% to fit my
needs. I am just looking for extra information before i start discussing it
with developers.

What i like about using a custom REST or SOAP (no idea if SOAP can also be
used for this) is that i can also push back information to the parent
website. Meaning that for certain information gathering there is no need to
login to the child websites.

Re: Magento 2 - update products details from one website to another with a feed

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 !

if issue solved,Click Kudos & Accept as Solution

Re: Magento 2 - update products details from one website to another with a feed

Yes this definitely helps a lot. I am very grateful for the feedback. I am
gonna research the bridge app

Thank you so much