whether staged or online catalog version, it goes to the same code. Then how it control to get product from staged or online?