The option that you just plug it either with the ground spike into the ground or provides an electronic candle on the table is not bad.
What's working very well the twilight sensor.
All in all, you can buy such a solar lamp in the construction market. There's one off probably cheaper.
This part I can not recommend unfortunately.