Hello,

I have a cron script that updates commerce order statuses.

I have a multi-site setup on one drupal install/configuration.

Each site is a e-commerce site that receives orders.

When my cron executes a function from my custom module, it will not access the commerce order entity since the cron is running from a different domain that the order was from.

So www.domain.com/cron.php?key=key will try to view and update an order made from www.domaintwo.com, but it will not work. I'm thinking this is a domain access issue and that the "Treat cron.php as a special page request " does not bypass the permissions.

Any idea how I can work around this? Is this a bug?

Thanks,
Anthony

Comments

agentrickard’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

Aren't Commerce orders entities, but not nodes? If that's the case, DA should have no impact.

Without looking at the code, I can't say more. Is the code reviewable anywhere?

agentrickard’s picture

You should probably move this to the Domain Entity Access queue.