Update payment method link to the internal Extensions Marketplace
This commit is contained in:
parent
5bd497b384
commit
08466d8de1
|
@ -14,6 +14,7 @@ import { useMemo, useCallback, useEffect } from '@wordpress/element';
|
|||
import { registerPlugin } from '@wordpress/plugins';
|
||||
import { WooOnboardingTask } from '@woocommerce/onboarding';
|
||||
import { getNewPath } from '@woocommerce/navigation';
|
||||
import { getAdminLink } from '@woocommerce/settings';
|
||||
import { Button } from '@wordpress/components';
|
||||
import ExternalIcon from 'gridicons/dist/external';
|
||||
|
||||
|
@ -29,9 +30,6 @@ import { getCountryCode } from '~/dashboard/utils';
|
|||
import './plugins/Bacs';
|
||||
import './payment-gateway-suggestions.scss';
|
||||
|
||||
const SEE_MORE_LINK =
|
||||
'https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations';
|
||||
|
||||
const comparePaymentGatewaysByPriority = ( a, b ) =>
|
||||
a.recommendation_priority - b.recommendation_priority;
|
||||
|
||||
|
@ -323,7 +321,7 @@ export const PaymentGatewaySuggestions = ( { onComplete, query } ) => {
|
|||
footerLink={
|
||||
! isWCPayOrOtherCategoryDoneSetup && (
|
||||
<Button
|
||||
href={ SEE_MORE_LINK }
|
||||
href={ getAdminLink( 'admin.php?page=wc-addons' ) }
|
||||
target="_blank"
|
||||
onClick={ trackSeeMore }
|
||||
isTertiary
|
||||
|
|
|
@ -209,13 +209,13 @@ class WC_Settings_Payment_Gateways extends WC_Settings_Page {
|
|||
* See https://github.com/woocommerce/woocommerce/issues/32130 for more details.
|
||||
*/
|
||||
if ( WooCommercePayments::is_supported() ) {
|
||||
$columns_count = count( $columns );
|
||||
$columns_count = count( $columns );
|
||||
$link_text = __( 'Other payment methods', 'woocommerce' );
|
||||
$external_link_icon = '<svg style="margin-left: 4px" class="gridicon gridicons-external needs-offset" height="18" width="18" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g><path d="M19 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"></path></g></svg>';
|
||||
echo '<tr>';
|
||||
// phpcs:ignore -- ignoring the error since the value is harded.
|
||||
echo "<td style='border-top: 1px solid #c3c4c7; background-color: #fff' colspan='{$columns_count}'>";
|
||||
echo "<a id='settings-other-payment-methods' href='https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations' target='_blank' class='components-button is-tertiary'>";
|
||||
echo "<a id='settings-other-payment-methods' href='" . esc_url( admin_url( 'admin.php?page=wc-addons' ) ) . "' target='_blank' class='components-button is-tertiary'>";
|
||||
// phpcs:ignore
|
||||
echo $link_text;
|
||||
// phpcs:ignore
|
||||
|
|
Loading…
Reference in New Issue