Skip to content

Commit

Permalink
Update notice
Browse files Browse the repository at this point in the history
  • Loading branch information
kawsarahmedr committed Oct 24, 2024
1 parent a893e0e commit ea28e42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Admin/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public function add_notices() {
'type' => 'info',
'classes' => 'notice-alt notice-large wcsn-halloween',
'dismissible' => false,
'id' => 'wc_serial_numbers_halloween_promotion',
'id' => 'wcsn_halloween_promotion',
'message' => sprintf(
/* translators: %1$s: link to the plugin page, %2$s: Offer content, %3$s: link to the plugin page, %4$s: end link to the plugin page */
__( '%1$s%2$s%3$s Upgrade Now and Save %4$s', 'wc-serial-numbers' ),
'<div class="wcsn-halloween__header"><div class="wcsn-halloween__icon"><img src="' . WCSN()->get_dir_url( 'assets/images/halloween-icon.svg' ) . '" alt="WC Serial Numbers Halloween offer"></div><div class="wcsn-halloween__content"><strong>',
'<div class="wcsn-halloween__header"><div class="wcsn-halloween__icon"><img src="' . WCSN()->get_dir_url( 'assets/dist/images/halloween-icon.svg' ) . '" alt="WC Serial Numbers Halloween offer"></div><div class="wcsn-halloween__content"><strong class="wcsn-halloween__title">',
'👻 Halloween Sale: ' . $discount_percentage . ' OFF on WC Serial Manager Pro</strong><p>Grab a ' . $discount_percentage . ' discount on WC Serial Manager Pro and all our premium plugins this Halloween! Use code <strong>‘BIGTREAT30’</strong>. Don\'t miss out!</p>',
'<a class="button button-primary" href="' . esc_url( WCSN()->get_premium_url() ) . '?utm_source=plugin&utm_medium=notice&utm_campaign=halloween-2024&discount=bigtreat30" target="_blank">',
$discount_percentage . '</a></div></div>',
Expand All @@ -61,11 +61,11 @@ public function add_notices() {
'type' => 'info',
'classes' => 'notice-alt notice-large wcsn-halloween',
'dismissible' => true,
'id' => 'wc_serial_numbers_halloween_promotion',
'id' => 'wcsn_halloween_promotion',
'message' => sprintf(
/* translators: %1$s: link to the plugin page, %2$s: Offer content, %3$s: link to the plugin page, %4$s: end link to the plugin page */
__( '%1$s%2$s%3$s Claim your discount! %4$s', 'wc-serial-numbers' ),
'<div class="wcsn-halloween__header"><div class="wcsn-halloween__icon"><img src="' . WCSN()->get_dir_url( 'assets/images/halloween-icon.svg' ) . '" alt="WC Serial Numbers Halloween offer"></div><div class="wcsn-halloween__content"><strong class="wcsn-halloween__title">',
'<div class="wcsn-halloween__header"><div class="wcsn-halloween__icon"><img src="' . WCSN()->get_dir_url( 'assets/dist/images/halloween-icon.svg' ) . '" alt="WC Serial Numbers Halloween offer"></div><div class="wcsn-halloween__content"><strong class="wcsn-halloween__title">',
'👻 Halloween Sale: ' . $discount_percentage . ' OFF on All Plugins</strong><p>Get ' . $discount_percentage . ' OFF on all premium plugins with code <strong>‘BIGTREAT30’</strong>. Hurry, this deal won’t last long!</p>',
'<a class="button button-primary" href="' . esc_url( 'https://pluginever.com/plugins/?utm_source=plugin&utm_medium=notice&utm_campaign=halloween-2024&discount=bigtreat30' ) . '" target="_blank">',
'</a></div></div>',
Expand Down
1 change: 1 addition & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function init_hooks() {
public function on_before_woocommerce_init() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', $this->get_file(), true );
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'cart_checkout_blocks', $this->get_file(), true );
}
}

Expand Down

0 comments on commit ea28e42

Please sign in to comment.