Sha256: fdb0ff4bd5f1450f8f3233686a20e9aa641ecdc5d002bffab1f6b44bae3f4afe
Contents?: true
Size: 1.51 KB
Versions: 33
Compression:
Stored size: 1.51 KB
Contents
module Spree class Order < Spree::Base module Emails extend ActiveSupport::Concern def deliver_order_confirmation_email # you can overwrite this method in your application / extension to send out the confirmation email # or use `spree_emails` gem # YourEmailVendor.deliver_order_confirmation_email(id) # `id` = ID of the Order being sent, you can also pass the entire Order object using `self` # update_column(:confirmation_delivered, true) # if you would like to mark that the email was sent end # If you would like to also send confirmation email to store owner(s) def deliver_store_owner_order_notification_email? false end def deliver_store_owner_order_notification_email # you can overwrite this method in your application / extension to send out the confirmation email # or use `spree_emails` gem # YourEmailVendor.deliver_store_owner_notification_email(id) # `id` = ID of the Order being sent, you can also pass the entire Order object using `self` # update_column(:store_owner_notification_delivered, true) # if you would like to mark that the email was sent end def send_cancel_email # you can overwrite this method in your application / extension to send out the confirmation email # or use `spree_emails` gem # YourEmailVendor.deliver_cancel_email(id) # `id` = ID of the Order being sent, you can also pass the entire Order object using `self` end end end end
Version data entries
33 entries across 33 versions & 1 rubygems