• Resolved carlaturner91

    (@carlaturner91)


    Hi there,

    I am stuck on an issue with my woocommerce account dashboard.

    The account endpoint ‘payment methods’ does not show up in the woocommerce account tabbed menu. We want it to show up.

    I have added esc_url( wc_get_endpoint_url( 'payment-methods' ) ) to the below lines of dashboard.php and uploaded it to /public_html/wp-content/themes/Avada-Child-Theme/woocommerce/my-account

    	printf(
    		__( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' ),
    		esc_url( wc_get_endpoint_url( 'orders' ) ),
    		esc_url( wc_get_endpoint_url( 'edit-address' ) ),
    		esc_url( wc_get_endpoint_url( 'edit-account' ) )
    	);
    	?>
    </p>

    I have added the following to functions.php in my child theme

    function mytheme_add_woocommerce_support() {
        add_theme_support( 'woocommerce' );
    }
    
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );

    Am I missing something? Any help would be appreciated – thanks!

    • This topic was modified 4 years, 8 months ago by carlaturner91.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey @carlaturner91,

    That’s a great question. The Payment Methods endpoint is only used when there is an active payment gateway that supports saved payment methods. Like Stripe.

    Does the payment gateway on the site allow customers to save their payment information for future purchases? If it does, then this tab should appear automatically.

    Try taking a look and see if that’s what’s going on. If it’s not, let us know.

    Take care

    AJ a11n

    (@amandasjackson)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘dashboard.php overide not working’ is closed to new replies.