Many searches didn’t help at all :(.
I’m trying to get the store id in a function executed in a cron job…
I’ve read that I could add a parameter in my cron schedule, but this is not what I want. I really need to get it dynamically.
Any help will be GREATLY appreciated !
Edit : in this function, I handle some products. Their getStoreId() always gives me 0… could I change that ?
Try to use some like this code:
Hope this helps.