From 262631e34409194a7670d60237fcb1bcd6aa3f2c Mon Sep 17 00:00:00 2001 From: Ilyas Foo Date: Tue, 29 Oct 2024 11:56:07 +0800 Subject: [PATCH] Add Kliken to default OBW extension list (#52295) * Add Kliken Meta Ads & Pixel in core profiler recommendation 50% in place of pinterest * Lint * Changelog * Fix using the correct pinterest object * Lint --- .../kliken-ads-pixel-for-meta.svg | 20 +++++++++++ .../add-52082-kliken-default-obw-extension | 4 +++ .../DefaultFreeExtensions.php | 33 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 plugins/woocommerce/assets/images/core-profiler/kliken-ads-pixel-for-meta.svg create mode 100644 plugins/woocommerce/changelog/add-52082-kliken-default-obw-extension diff --git a/plugins/woocommerce/assets/images/core-profiler/kliken-ads-pixel-for-meta.svg b/plugins/woocommerce/assets/images/core-profiler/kliken-ads-pixel-for-meta.svg new file mode 100644 index 00000000000..0ba76cbe4b5 --- /dev/null +++ b/plugins/woocommerce/assets/images/core-profiler/kliken-ads-pixel-for-meta.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/plugins/woocommerce/changelog/add-52082-kliken-default-obw-extension b/plugins/woocommerce/changelog/add-52082-kliken-default-obw-extension new file mode 100644 index 00000000000..5fd7fbece93 --- /dev/null +++ b/plugins/woocommerce/changelog/add-52082-kliken-default-obw-extension @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Add Kliken Meta Ads & Pixel in core profiler recommendation 50% in place of pinterest diff --git a/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php b/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php index 03accf1df58..d935084eeec 100644 --- a/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php +++ b/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php @@ -70,6 +70,7 @@ class DefaultFreeExtensions { self::get_plugin( 'woocommerce-services:shipping' ), self::get_plugin( 'jetpack' ), self::get_plugin( 'pinterest-for-woocommerce' ), + self::get_plugin( 'kliken-ads-pixel-for-meta' ), self::get_plugin( 'mailpoet' ), self::get_plugin( 'google-listings-and-ads' ), self::get_plugin( 'woocommerce-services:tax' ), @@ -143,6 +144,15 @@ class DefaultFreeExtensions { 'description' => __( 'Get your products in front of Pinners searching for ideas and things to buy.', 'woocommerce' ), 'image_url' => plugins_url( '/assets/images/onboarding/pinterest.png', WC_PLUGIN_FILE ), 'manage_url' => 'admin.php?page=wc-admin&path=%2Fpinterest%2Flanding', + 'is_visible' => array( + array( + 'type' => 'option', + 'option_name' => 'woocommerce_remote_variant_assignment', + 'value' => array( 1, 60 ), // 50% segment + 'default' => false, + 'operation' => 'range', + ), + ), 'is_built_by_wc' => true, 'min_php_version' => '7.3', ), @@ -160,6 +170,22 @@ class DefaultFreeExtensions { 'manage_url' => 'admin.php?page=mailpoet-newsletters', 'is_built_by_wc' => true, ), + // Shared 50% segment with pinterest-for-woocommerce. + 'kliken-ads-pixel-for-meta' => array( + 'name' => __( 'Meta Ads & Pixel for WooCommerce', 'woocommerce' ), + 'description' => __( 'Sync your store catalog, set up pixel tracking, and run targeted ad campaigns.', 'woocommerce' ), + 'image_url' => plugins_url( '/assets/images/onboarding/kliken-ads-pixel-for-meta.svg', WC_PLUGIN_FILE ), + 'manage_url' => 'admin.php?page=kliken-ads-pixel-for-meta', + 'is_visible' => array( + array( + 'type' => 'option', + 'option_name' => 'woocommerce_remote_variant_assignment', + 'value' => array( 61, 120 ), // 50% segment + 'default' => false, + 'operation' => 'range', + ), + ), + ), 'mailchimp-for-woocommerce' => array( 'name' => __( 'Mailchimp', 'woocommerce' ), 'description' => __( 'Send targeted campaigns, recover abandoned carts and much more with Mailchimp.', 'woocommerce' ), @@ -533,6 +559,13 @@ class DefaultFreeExtensions { 'learn_more_link' => 'https://woocommerce.com/products/pinterest-for-woocommerce?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures', 'install_priority' => 2, ), + 'kliken-ads-pixel-for-meta' => array( + 'label' => __( 'Grow your business with Facebook and Instagram', 'woocommerce' ), + 'image_url' => plugins_url( '/assets/images/core-profiler/kliken-ads-pixel-for-meta.svg', WC_PLUGIN_FILE ), + 'description' => __( 'Sync your store catalog, set up pixel tracking, and run targeted ad campaigns.', 'woocommerce' ), + 'learn_more_link' => 'https://woocommerce.com/products/meta-ads-and-pixel?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures', + 'install_priority' => 2, + ), 'mailpoet' => array( 'label' => __( 'Reach your customers with MailPoet', 'woocommerce' ), 'image_url' => plugins_url( '/assets/images/core-profiler/logo-mailpoet.svg', WC_PLUGIN_FILE ),