1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Wcal_Welcome {
public $minimum_capability = 'manage_options';
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menus' ) );
add_action( 'admin_head', array( $this, 'admin_head' ) );
if ( !isset( $_GET[ 'page' ] ) ||
( isset( $_GET[ 'page' ] ) && $_GET[ 'page' ] != 'wcal-about' ) ) {
add_action( 'admin_init', array( $this, 'welcome' ) );
}
}
public function admin_menus() {
$display_version = WCAL_VERSION;
add_dashboard_page(
sprintf( esc_html__( 'Welcome to Abandoned Cart Lite %s', 'woocommerce-abandoned-cart' ), $display_version ),
esc_html__( 'Welcome to Abandoned Cart Lite', 'woocommerce-abandoned-cart' ),
$this->minimum_capability,
'wcal-about',
array( $this, 'about_screen' )
);
}
public function admin_head() {
remove_submenu_page( 'index.php', 'wcal-about' );
}
public function about_screen() {
$display_version = WCAL_VERSION;
$badge_url = WCAL_PLUGIN_URL . 'assets/images/icon-256x256.png';
?>
<style>
.feature-section .feature-section-item {
float:left;
width:48%;
}
</style>
<div class="wrap about-wrap">
<?php $this->get_welcome_header() ?>
<div style="float:left;width: 80%;">
<p class="about-text" style="margin-right:20px;"><?php
printf(
__( "Thank you for activating or updating to the latest version of Abandoned Cart Lite! If you're a first time user, welcome! You're well on your way to start recovering your lost revenues." )
);
?></p>
</div>
<div class="wcal-badge"><img src="<?php echo $badge_url; ?>" style="width:150px;"/></div>
<p> </p>
<div class="feature-section clearfix introduction">
<h3><?php esc_html_e( "Get Started with Abandoned Cart Lite", 'woocommerce-abandoned-cart' ); ?></h3>
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="<?php echo WCAL_PLUGIN_URL . '/assets/images/abandoned-cart-lite-email-templates.png' ?>"
alt="<?php esc_attr_e( 'WooCommerce Abandoned Cart Lite', 'woocommerce-abandoned-cart' ); ?>" style="width:600px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Activate Email Template', 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php esc_html_e( 'To start sending out abandoned cart notification emails, simply activate the email template from under WooCommerce -> Abandoned Carts -> Email Templates page.', 'woocommerce-abandoned-cart' ); ?></p>
<a href="admin.php?page=woocommerce_ac_page&action=emailtemplates" target="_blank" class="button-secondary">
<?php esc_html_e( 'Click Here to go to Email Templates page', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<!-- /.intro-section -->
<div class="content">
<h3><?php esc_html_e( "Know more about Abandoned Cart Pro", 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php _e( 'The Abandoned Cart Pro plugin gives you features where you are able to recover more sales compared to the Lite plugin. Here are some notable features the Pro version provides.' ); ?></p>
<div class="feature-section clearfix introduction">
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="https://www.tychesoftwares.com/wp-content/uploads/2017/08/atc_frontend.png"
alt="<?php esc_attr_e( 'WooCommerce Abandoned Cart Lite', 'woocommerce-abandoned-cart' ); ?>" style="width:500px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Capture Visitor Emails on click of Add to Cart button', 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php esc_html_e( 'The ability to capture the email address early in the order process is very important to reduce cart abandonment by unknown users as well as to be able to recover their carts if they abandon it. This ultimately leads to increase in your store sales.', 'woocommerce-abandoned-cart' ); ?></p>
<a href="https://www.tychesoftwares.com/capture-guest-user-email-address-before-checkout-page-with-woocommerce-abandoned-cart-pro/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Set different cut-off times for visitors & logged-in users', 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php esc_html_e( 'The provision for setting two separate cut-off times for different roles is mainly because sometimes if the store admin wants the visitor carts to be captured earlier than the registered user carts, then these different settings can play an important role.', 'woocommerce-abandoned-cart' ); ?></p>
<a href="https://www.tychesoftwares.com/capturing-abandoned-carts-woocommerce-abandoned-cart-pro-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="content feature-section-item last-feature">
<img src="<?php echo WCAL_PLUGIN_URL . 'assets/images/abandon-cart-cut-off-time.png'; ?>" alt="<?php esc_attr_e( 'WooCommerce Abandoned Cart Lite', 'woocommerce-abandoned-cart' ); ?>" style="width:450px;">
</div>
</div>
<div class="feature-section clearfix introduction">
<div class="video feature-section-item" style="float:left;padding-right:10px;">
<img src="<?php echo WCAL_PLUGIN_URL . 'assets/images/email-templates-send-time.png'; ?>" alt="<?php esc_attr_e( 'WooCommerce Abandoned Cart Lite', 'woocommerce-abandoned-cart' ); ?>" style="width:450px;">
</div>
<div class="content feature-section-item last-feature">
<h3><?php esc_html_e( 'Send abandoned cart recovery email in minutes of cart being abandoned', 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php esc_html_e( 'The ability to send the abandoned cart recovery email within first few minutes of cart being abandoned is a big advantage. In the Lite plugin, the earliest an email can be sent is after 1 hour. Whereas in the Pro version, the first recovery email gets sent 15 minutes after the cart is abandoned. This increases the recovery chances manifold.', 'woocommerce-abandoned-cart' ); ?></p>
<a href="https://www.tychesoftwares.com/understanding-the-default-email-templates-of-abandoned-cart-pro-for-woocommerce-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Full range of merge tags that allow you to personalize the abandoned cart email', 'woocommerce-abandoned-cart' ); ?></h3>
<p><?php esc_html_e( 'The Lite version has only 3 merge tags available to personalize the abandoned cart recovery emails. The Pro version instead, has 20 different merge tags that can be used effectively to personalize each email that gets sent out to the customers for recovering their abandoned carts.', 'woocommerce-abandoned-cart' ); ?></p>
<a href="https://www.tychesoftwares.com/understanding-the-default-email-templates-of-abandoned-cart-pro-for-woocommerce-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'Learn More', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="content feature-section-item last-feature">
<img src="https://www.tychesoftwares.com/wp-content/uploads/2016/10/drop-down-of-AC.png" alt="<?php esc_attr_e( 'WooCommerce Abandoned Cart Lite', 'woocommerce-abandoned-cart' ); ?>" style="width:450px;">
</div>
</div>
<a href="https://www.tychesoftwares.com/differences-between-pro-and-lite-versions-of-abandoned-cart-for-woocommerce-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank" class="button-secondary">
<?php esc_html_e( 'View full list of differences between Lite & Pro plugin', 'woocommerce-abandoned-cart' ); ?>
<span class="dashicons dashicons-external"></span>
</a>
</div>
<div class="feature-section clearfix">
<div class="content feature-section-item">
<h3><?php esc_html_e( 'Getting to Know Tyche Softwares', 'woocommerce-abandoned-cart' ); ?></h3>
<ul class="ul-disc">
<li><a href="https://tychesoftwares.com/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank"><?php esc_html_e( 'Visit the Tyche Softwares Website', 'woocommerce-abandoned-cart' ); ?></a></li>
<li><a href="https://tychesoftwares.com/premium-plugins/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank"><?php esc_html_e( 'View all Premium Plugins', 'woocommerce-abandoned-cart' ); ?></a>
<ul class="ul-disc">
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/woocommerce-abandoned-cart-pro/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">Abandoned Cart Pro Plugin for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/woocommerce-booking-plugin/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">Booking & Appointment Plugin for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">Order Delivery Date for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/product-delivery-date-pro-for-woocommerce/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">Product Delivery Date for WooCommerce</a></li>
<li><a href="https://www.tychesoftwares.com/store/premium-plugins/deposits-for-woocommerce/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">Deposits for WooCommerce</a></li>
</ul>
</li>
<li><a href="https://tychesoftwares.com/about/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank"><?php esc_html_e( 'Meet the team', 'woocommerce-abandoned-cart' ); ?></a></li>
</ul>
</div>
<!-- <div class="content feature-section-item">
<h3><?php esc_html_e( 'Current Offers', 'woocommerce-abandoned-cart' ); ?></h3>
<p>Buy all our <a href="https://tychesoftwares.com/premium-plugins/?utm_source=wpaboutpage&utm_medium=link&utm_campaign=AbandonedCartLitePlugin" target="_blank">premium plugins</a> at 30% off till 31st December 2017</p>
</div> -->
</div>
<!-- /.feature-section -->
</div>
<?php
update_option( 'wcal_welcome_page_shown', 'yes' );
update_option( 'wcal_welcome_page_shown_time', current_time( 'timestamp' ) );
}
public function get_welcome_header() {
$badge_url = WCAL_PLUGIN_URL . 'assets/images/icon-256x256.png';
?>
<h1 class="welcome-h1"><?php echo get_admin_page_title(); ?></h1>
<?php $this->social_media_elements(); ?>
<?php }
public function social_media_elements() { ?>
<div class="social-items-wrap">
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Ftychesoftwares&send=false&layout=button_count&width=100&show_faces=false&font&colorscheme=light&action=like&height=21&appId=220596284639969"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;"
allowTransparency="true"></iframe>
<a href="https://twitter.com/tychesoftwares" class="twitter-follow-button" data-show-count="false"><?php
printf(
esc_html_e( 'Follow %s', 'tychesoftwares' ),
'@tychesoftwares'
);
?></a>
<script>!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + '://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js, fjs);
}
}(document, 'script', 'twitter-wjs');
</script>
</div>
<!--/.social-items-wrap -->
<?php
}
public function welcome() {
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
return;
}
if( !get_option( 'wcal_welcome_page_shown' ) ) {
wp_safe_redirect( admin_url( 'index.php?page=wcal-about' ) );
exit;
}
}
}
new Wcal_Welcome();