Saving ...

General settings

print_setting_html('guests','toggle','Enable for guests','Show the subscription form for unregistred users'); $admail_settings->print_setting_html('unsubscribe','toggle','Allow users to unsubscribe',"Add an unsubscribe link to the 'subscribed' notice"); $admail_settings->print_setting_html('email_field','toggle','Show Email field for registred users','If disabled, the E-mail used during registration will be used.'); $admail_settings->print_setting_html('auto_submission','toggle','Auto Submit Notice','Automatically submit notifications once a product is back in stock.'); $admail_settings->print_setting_html('popup','toggle','Pop-up Subscription Form','Display the subscription form on a pop-up.'); //$admail_settings->print_setting_html('ajaxify_submission','toggle','Ajax Form Submission','Enable seamless subscription submissions without page reloads.'); //Exclude by product type $product_types = array('simple'=>'Simple', 'variable'=>'Variable', 'grouped'=>'Grouped'); $admail_settings->print_setting_html('exclude_product_type','multiselect','Exclude by product type','', $product_types); //Exclude by categories $categories = array(); $product_categories = get_terms( array('taxonomy' => 'product_cat')); foreach ( $product_categories as $product_category ) { $categories[$product_category->slug] = $product_category->name; } $admail_settings->print_setting_html('exclude_categories','multiselect','Exclude products by categories','', $categories); //Exclude by tag names $product_tag_names = get_terms( array( 'taxonomy' => 'product_tag', 'hide_empty' => false, 'fields' => 'all', ) ); if ( ! empty( $product_tag_names ) && ! is_wp_error( $product_tag_names ) ) { $tag_id_name_array = array(); foreach ( $product_tag_names as $tag ) { $tag_id_name_array[$tag->term_id] = $tag->name; } } $admail_settings->print_setting_html('exclude_tag_names','multiselect','Exclude products by tag names','', $tag_id_name_array); $admail_settings->print_setting_html('s-variation','toggle','Hide subscription form on variation availability','Hide the subscription form if at least one variation is in stock.'); ?>

Subscription Form

Subscription form shortcode

Add this shortcode to any WooCommerce product page where you want the subscription form to appear.

[admail_subscription_form]

Form

print_setting_html('form_text','input','','Form Text'); $admail_settings->print_setting_html('form_subscribed_text','input','','Subscribed - Text'); $admail_settings->print_setting_html('form_previously_subscribed_notice','input','','Previously subscribed - Notice'); ?>

Button

print_setting_html('btn_icon','toggle','Icon Visibility','When enabled, the button will be displayed with an icon.'); ?>
print_setting_html('button_text','input','','Button Text'); ?>
print_setting_html('button_text_color','color','','Text Color'); ?>
print_setting_html('button_border_radius','input','','Border Radius'); ?>
print_setting_html('button_bg_color','color','','Background Color'); ?>

Subscribed texts

print_setting_html('unsubscribe_text','input','','Link Text'); ?>
print_setting_html('subscribed_btn_text','input','','Popup "subscribed" button text'); ?>

Store Info

print_setting_html('store_logo','image','',''); ?>
print_setting_html('store_name','input','',''); ?>

Those information will be used on submitted emails

Confirmation Emails settings

print_setting_html('confirmation_email','toggle','Send a subscription confirmation Email',''); $admail_settings->print_setting_html('conf_no_reply','toggle','Enable "No reply" option',''); ?>

Template Preview

Please save to update the preview

Emails settings

print_setting_html('no_reply','toggle','Enable "No reply" option',''); $admail_settings->print_setting_html('email_price','toggle','Include the product price',''); $admail_settings->print_setting_html('email_qty','toggle','Include the available quantity',''); ?>

E-mail Template

print_setting_html('email_template','uniselect','Available Templates','', $email_templates); $admail_settings->print_setting_html('email_theme_color','color','Template theme color',''); ?>

Template Preview

Please save to update the preview

Save