Yoy can do that and you might have enough panels to charge a few cars at once if you cover the entire roof with them. But even in ideal condition you’d need more than 300m2 of solar panels to charge a single car at 50kW and this would increase significantly if they don’t operate at 100% capacity.
So unless your goal is primarily virtue signaling you might as well just use the energy generated for lights and cooling since you’ll still need power from the grid for that anyway (unless it’s some hyper energy efficient shopping center with no fridges or cooling).
Most of the businesses closed them last month after the market price of electricity for commercial users shot up by 10x.
There is zero chance of having enough solar on site to charge any meaningful number of cars simultaneously.