• Resolved Vikram Singh

    (@vikram890)


    function wpb_woo_my_account_order() {
    $myorder = array(
    ‘dashboard’ => __( ‘Accountoverzicht’, ‘woocommerce’ ),
    ‘orders’ => __( ‘Bestellingen’, ‘woocommerce’ ),
    ‘facturen’ => __( ‘Facturen’, ‘woocommerce’ ),
    ‘verlanglijst’ => __( ‘Favorieten’, ‘woocommerce’ ),
    ‘edit-account’ => __( ‘Gegevens’, ‘woocommerce’ ),
    ‘edit-address’ => __( ‘Adres’, ‘woocommerce’ ),
    ‘customer-logout’ => __( ‘Uitloggen’, ‘woocommerce’ ),

    );

    return $myorder;
    }
    add_filter ( ‘woocommerce_account_menu_items’, ‘wpb_woo_my_account_order’ );

    function my_custom_endpoints() {
    add_rewrite_endpoint( ‘facturen’, EP_ROOT | EP_PAGES );
    }

    add_action( ‘init’, ‘my_custom_endpoints’ );

    function my_custom_query_vars( $vars ) {
    $vars[] = ‘facturen’;

    return $vars;
    }

    add_filter( ‘query_vars’, ‘my_custom_query_vars’, 0 );

    function my_custom_flush_rewrite_rules() {
    flush_rewrite_rules();
    }

    add_action( ‘wp_loaded’, ‘my_custom_flush_rewrite_rules’ );

    function my_custom_endpoint_content() {
    include ‘woocommerce/myaccount/facturen.php’;
    }

    add_action( ‘woocommerce_account_special-page_endpoint’, ‘my_custom_endpoint_content’ );

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Vikram Singh

    (@vikram890)

    ‘facturen.php’ file is not displaying instead other is, can any one help? dont know what seems to be the problem is with the function

    array( ‘dashboard’ => __( ‘Accountoverzicht’, ‘woocommerce’ ), ‘orders’ => __(
    ‘Bestellingen’, ‘woocommerce’ ), ‘facturen’ => __(
    ‘Facturen’, ‘woocommerce’ ), ‘verlanglijst’ =>
    __( ‘Favorieten’, ‘woocommerce’ ), ‘edit-account’
    => __( ‘Gegevens’, ‘woocommerce’ ),
    ‘edit-address’ => __( ‘Adres’, ‘woocommerce’

    ), ‘customer-logout’ => __( ‘Uitloggen’, ‘woocommerce’ ), );
    returnarea $myorder;
    }
    add_filter (“woocommerce_account_menu_item”, “wpb_woo_my_account_order”);
    my_custom_endpoints() {
    add_rewrite_endpoint( ‘facturen’,
    EP_ROOT | EP_PAGES );

    function wpb_woo_my_account_order()
    { $myorder = array(
    ‘dashboard’ => __( ‘Accountoverzicht’, ‘woocommerce’
    ), ‘orders’ => __( ‘Bestellingen’, ‘woocommerce’ ),
    ‘facturen’ => __( ‘Facturen’, ‘woocommerce’ ),
    ‘verlanglijst’ => __( ‘Favorieten’, ‘woocommerce’ ),
    ‘edit-account’ => __( ‘Gegevens’, ‘woocommerce’ ),
    ‘edit-address’
    => __( ‘Adres’, ‘woocommerce’ ), ‘customer-logout’ => __( ‘Uitloggen’, ‘woocommerce’ ),

    );

    Hi @vikram890,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the following places for more development-oriented questions:

    Mirko P.

    (@rainfallnixfig)

    Hi there,

    We’ve not seen any activity for a while, so I’m marking this thread as resolved.

    Hopefully, you were able to get some insights asking in the above resources for developers. If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘page facturn.php not desplaying, below is the function i created’ is closed to new replies.