In Configurable products REST API, the price response is 0, so I need to get ride of it.
I knew later that configurable products prices are displayed in the web store as the smallest price listed in its children simple products and the solution is to make custom API to loop in its related simple products and return the smallest price.
The problem is I return configurable products in many APIs (Search, List products in categories, Featured products, Latest products, ...etc), So I think it is bad practice to loop on each API to make it custom, so I had an idea which make product attribute non visible and make its value automatically read the price attribute.
Is that correct and how can I achieve that?
OR, If there is a better solution, kindly share it.