2

When an order is complete, and a new entry has been created within the ‘Purchased Items’ channel, does the entry_submission_end EE hook fire? I need to process some data as orders are completed with the data held within this channel.

1

You should use the cartthrob_on_authorize hook. From there you can find the entry ID's of the saved purchased items entries:

$entry_ids = $this->EE->cartthrob->cart->order('purchased_items');

foreach ($entry_ids as $entry_id)
{
    //do some more processing here
}
| improve this answer | |
2

CartThrob doesn't use the Channel Entries API, so the entry_submission_end hook is never triggered. You will need to use one of the hooks they provide instead.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.