Skip to content

Potential Email Fixes for CartThrob 8.1 #12

@creativearc-paul

Description

@creativearc-paul

Attached is a .patch file for modifications made so that CartThrob (8.1) sends emails. Email delivery is sporadic among our CT 8.1 sites.

file: /system/user/addons/cartthrob/libraries/Cartthrob_emails.php
Particular fixes:

// 'message_template' => $notification['email_template'], CARC BUG FIX key is $notification['template'] NOT $notification['email_template']
'message_template' => $notification['template'],

and

// return $event && !empty($notification['email_event']) && $notification['email_event'] == $event; CARC BUG FIX key is $notification['event'] NOT $notification['email_event']
return $event && !empty($notification['event']) && $notification['event'] == $event;
 

ct_email.patch

Kudos to Greg Crane.

Maybe Carthrob 9 fixes some of this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions