According to your answer to my question, I will then answer the specific question
the best option would be to display the images pointing to H1 or manually upload each product in dirty respective hosting?
If the products are unique per store, I mean, it won’t sell the same product in every store, the ideal is to associate the store id as a foreign key in the product. As for going up the images per store, if the entire base of the stores is unique to them, then upload them in the same place, since the logic of your application will identify the product and load the correct image from the disk.
However, I believe you have some major problems modeling your database when you speak
in the products table have the store field (varchar255) where in each store is made a search through a like=store in each store
It seems to me that you don’t understand how the relationship between tables of a relational database is done, using primary or foreign keys.
I advise studying about MER (Entity Relationship Model).
Complementing my answer with an explanation of why to avoid varchar for primary and foreign keys: if your store id is numerical, the ideal is to work with numeric fields, type fields that accept characters for this purpose are less performatic. If we speak exclusively of the varchar type, it has the problem of not being indexable in most database managers, then its application will have a lot of performance degradation, especially in Join moments of queries' relationships.
More information is needed to help: are these stores all managed by the same team (users)? When you say "hosting" you are talking about a single system or server installation, or URL addresses ? Will you develop the system or is it a market CRM/E-commerce? If it’s you, you have the database model, how did you resolve the relationships of the data of each store with your products? The image I believe is a consequence of all these previous decisions being defined and modeled.
– Ademir Mazer Jr - Nuno
Right. I’m developing the stores for my own use. I have a plan Lojagospel.com.br Lojagamers.com.br Lojacountry.com.br Lojagamers.com.br Lojacountry.com.br Lojagospel.com.br Lojagamers.com.br Lojacountry.com.Lojafitness.com.br These stores will be managed for min in crm.lojaMain.., I created a table for stores where the store id and its settings are located, in the products table has the store field (varchar255) where in each store a search is done through a like=store in each store
– Renan.Pecanha