Skip to content

Commit

Permalink
Remove Codisto from default free extensions. (woocommerce#41499)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecgan authored Nov 20, 2023
2 parents a619f2b + 20ab36e commit 6fb787e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,13 @@ const pinterest = {
show_extension_promotions: true,
};

const amazon = {
title: 'Amazon, eBay & Walmart Integration for WooCommerce',
description:
'Convert WooCommerce into a fully-featured omnichannel commerce platform, leveraging powerful automation and real-time sync to connect your brand with millions of new customers on the world’s largest online marketplaces.',
url: 'https://woo.com/products/amazon-ebay-integration/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
direct_install: false,
icon: 'https://woo.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/amazon-ebay.svg',
product: 'amazon-ebay-integration',
plugin: 'woocommerce-amazon-ebay-integration/woocommerce-amazon-ebay-integration.php',
categories: [ 'marketing' ],
subcategories: [ { slug: 'sales-channels', name: 'Sales channels' } ],
tags: [],
};

describe( 'CreateNewCampaignModal component', () => {
it( 'renders new campaign types with recommended channels', async () => {
( useCampaignTypes as jest.Mock ).mockReturnValue( {
data: [ google ],
} );
( useRecommendedChannels as jest.Mock ).mockReturnValue( {
data: [ pinterest, amazon ],
data: [ pinterest ],
} );
render( <CreateNewCampaignModal onRequestClose={ () => {} } /> );

Expand All @@ -100,12 +86,6 @@ describe( 'CreateNewCampaignModal component', () => {
expect(
screen.getByText( 'Pinterest for WooCommerce' )
).toBeInTheDocument();

expect(
screen.getByText(
'Amazon, eBay & Walmart Integration for WooCommerce'
)
).toBeInTheDocument();
} );

it( 'does not render recommended channels section when there are no recommended channels', async () => {
Expand Down
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/41499-remove-marketing-codisto
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Remove Codisto from the default free extensions for onboarding wizard and task list.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static function get_all() {
'title' => __( 'Grow your store', 'woocommerce' ),
'plugins' => array(
self::get_plugin( 'mailpoet' ),
self::get_plugin( 'codistoconnect' ),
self::get_plugin( 'google-listings-and-ads' ),
self::get_plugin( 'pinterest-for-woocommerce' ),
self::get_plugin( 'facebook-for-woocommerce' ),
Expand All @@ -60,7 +59,6 @@ public static function get_all() {
self::get_plugin( 'tiktok-for-business' ),
self::get_plugin( 'pinterest-for-woocommerce:alt' ),
self::get_plugin( 'facebook-for-woocommerce:alt' ),
self::get_plugin( 'codistoconnect:alt' ),
),
),
array(
Expand Down Expand Up @@ -176,25 +174,6 @@ public static function get_plugin( $slug ) {
'manage_url' => 'admin.php?page=klaviyo_settings',
'is_built_by_wc' => false,
),
'codistoconnect' => array(
'name' => __( 'Codisto for WooCommerce', 'woocommerce' ),
'description' => sprintf(
/* translators: 1: opening product link tag. 2: closing link tag */
__( 'Sell on Amazon, eBay, Walmart and more directly from WooCommerce with %1$sCodisto%2$s', 'woocommerce' ),
'<a href="https://woo.com/pt-br/products/amazon-ebay-integration/?quid=c247a85321c9e93e7c3c6f1eb072e6e5" target="_blank">',
'</a>'
),
'image_url' => plugins_url( '/assets/images/onboarding/codistoconnect.png', WC_PLUGIN_FILE ),
'manage_url' => 'admin.php?page=codisto-settings',
'is_built_by_wc' => true,
),
'codistoconnect:alt' => array(
'name' => __( 'Codisto for WooCommerce', 'woocommerce' ),
'description' => __( 'Sell on Amazon, eBay, Walmart and more directly from WooCommerce.', 'woocommerce' ),
'image_url' => plugins_url( '/assets/images/onboarding/codistoconnect.png', WC_PLUGIN_FILE ),
'manage_url' => 'admin.php?page=codisto-settings',
'is_built_by_wc' => true,
),
'woocommerce-payments' => array(
'name' => __( 'WooPayments', 'woocommerce' ),
'image_url' => plugins_url( '/assets/images/onboarding/wcpay.svg', WC_PLUGIN_FILE ),
Expand Down

0 comments on commit 6fb787e

Please sign in to comment.