ModeEffect / subscriber-discounts-for-woocommerce

GNU General Public License v2.0
2 stars 2 forks source link

=== Subscriber Discounts for WooCommerce === Contributors: scott.deluzio, ampmode Tags: WooCommerce, MailChimp, ActiveCampaign, Discounts Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FG5QVYUDG6YUA Requires at least: 2.9 Tested up to: 6.1.1 Stable tag: 1.5.2 License: GNU v2+

Easily send mailing list subscribers a discount code for joining your list.

== Description == Your WooCommerce shop's success may depend on growing your email mailing list. Many customers won't volunteer their email address without some sort of incentive. Offering your subscribers a discount in your shop is a great way to get them to provide you with their email address.

Subscriber Discounts for WooCommerce will create a unique discount code automatically for your subscribers every time someone joins your MailChimp or ActiveCampaign mailing list.

Everyone loves a discount - even a 10-15% discount could be the difference between making the sale and losing a customer forever.

Features

== Installation ==

  1. Download archive and unzip in wp-content/plugins or install via Plugins - Add New.
  2. Activate the plugin through the Plugins menu in WordPress.

== Frequently Asked Questions == = Can I customize the discount code that is generated by this plugin? = By default, the plugin will generate a random discount code, which will look something like this aebggfcgde. If you do nothing else, the code returned will be random like this.

The filter sdwoo_discount_code has been added to the plugin so that you can customize the discount code that is generated.

You can use this filter to customize the discount code however you want. The discount code that this plugin generates is the value that is passed to the filter. The filter also passes the subscriber's email address, which can be used in the discount code.

Here is an example of how the filter would be used. You would need to put this in your theme's functions.php file or in a custom plugin.

function example_custom_discount_code( $discount, $email_address ){
    // Add your company name as a prefix to the discount code:
    $new_code = 'MyCompanyName' . $discount;
    return $new_code;
}
add_filter( 'sdwoo_discount_code', 'example_custom_discount_code', 10, 2 );

If using this filter, please be careful that it does not return the same discount code for each customer.

= Are there any dependencies to use this plugin? = This plugin requires that you have WooCommerce installed, and that you have a MailChimp or ActiveCampaign account.

= How do I use this plugin? = The plugin's settings menu is found under WooCommerce > Subscriber Discounts. You will need to fill out most fields in order for the plugin to work correctly.

= How do I set up webhooks in MailChimp? = You can find the technical details on how to create a webhook through MailChimp by clicking here.

General steps:

Your webhook callback URL should be http://yourdomain.com/?trigger-special-discount=true&discount-key=xxxxxxxxxxxx

Replace yourdomain.com with your actual website domain, and replace xxxxxxxxxxxx with the MailChimp Key entered in the plugin settings.

= How do I set up webhooks in ActiveCampaign? = You can find the technical details on how to create a webhook through ActiveCampaign by clicking here.

General steps:

Your webhook callback URL should be http://yourdomain.com/?trigger-special-discount=true&discount-key=xxxxxxxxxxxx

Replace yourdomain.com with your actual website domain, and replace xxxxxxxxxxxx with the ActiveCampaign Key entered in the plugin settings.

== Changelog == = 1.5.2 =

== Upgrade Notice == = 1.5.2 =