app/models/user_decorator.rb
def mailchimp_subscription_opts
    { double_optin: Spree::Config.get(:mailchimp_double_opt_in),
      update_existing: true, replace_interests: true,
      send_welcome: Spree::Config.get(:mailchimp_send_welcome) }
  end
# Generates the subsubcription options for the application
#
# The option values are returned as an Array in the following order:
#
# double_optin      - Flag to control whether a double opt-in confirmation
#                     message is sent, defaults to true. Abusing this may
#                     cause your account to be suspended. (default: false)
# update_existing   - Flag to control whether existing subscribers should be
#                     updated instead of throwing an error. (default: true)
#                     ( MailChimp's default is false )
# replace_interests - Flag to determine whether we replace the interest
#                     groups with the groups provided or we add the provided
#                     groups to the member's interest groups. (default: true)
# send_welcome      - If the double_optin is false and this is true, a welcome
#                     email is sent out. If double_optin is true, this has no
#                     effect. (default: false)
#
# Returns an Array of subscription options
#
# TODO: Add configuration options for 'update_existing' and 'replace_interests'
# TODO: Remove configuration options for :mailchimp_send_notify
Generates the subsubcription options for the application
The option values are returned as an Array in the following order.

double_optin      - Flag to control whether a double opt-in confirmation
message is sent, defaults to true. Abusing this may
cause your account to be suspended. (default: false)
update_existing   - Flag to control whether existing subscribers should be
updated instead of throwing an error. (default: true)
( MailChimp's default is false )
replace_interests - Flag to determine whether we replace the interest
groups with the groups provided or we add the provided
groups to the member's interest groups. (default: true)
send_welcome      - If the double_optin is false and this is true, a welcome
email is sent out. If double_optin is true, this has no
effect. (default: false)

Returns an Array of subscription options

Add configuration options for 'update_existing' and 'replace_interests'
TODO: Remove configuration options for :mailchimp_send_notify
Generates the subsubcription options for the application The option values are returned as an Array in the following order . double_optin - Flag to control whether a double opt - in confirmation message is sent defaults to true . Abusing this may cause your account to be suspended . ( default : false ) update_existing - Flag to control whether existing subscribers should be updated instead of throwing an error . ( default : true ) ( MailChimp ' s default is false ) replace_interests - Flag to determine whether we replace the interest groups with the groups provided or we add the provided groups to the member ' s interest groups . ( default : true ) send_welcome - If the double_optin is false and this is true a welcome email is sent out . If double_optin is true this has no effect . ( default : false ) Returns an Array of subscription options Add configuration options for ' update_existing ' and ' replace_interests ' TODO : Remove configuration options for : mailchimp_send_notify
def mailchimp_subscription_opts
    { double_optin: Spree::Config.get(:mailchimp_double_opt_in),
      update_existing: true, replace_interests: true,
      send_welcome: Spree::Config.get(:mailchimp_send_welcome) }
  end
def mailchimp_subscription_opts { double_optin : Spree :: Config . get ( :mailchimp_double_opt_in ) , update_existing : true , replace_interests : true , send_welcome : Spree :: Config . get ( :mailchimp_send_welcome ) } end
Generates the subsubcription options for the application
The option values are returned as an Array in the following order:
Generates the subsubcription options for the application The option values are returned as an Array in the following order :