Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #264955

    Hi again! I have this website http://www.embutidosmaribel.com/ and have a problem with the top right menu. Under “my account”, I cant access to “view order”. I already changed, as you suggested, some lines in woocommerce config.php:

    $order = new WC_Order();
    $url['account_edit_adress'] = wc_get_endpoint_url( ‘edit-address’, ”, get_permalink( wc_get_page_id( ‘myaccount’ ) ) );
    $url['account_view_order'] = $order->get_view_order_url();
    $url['account_change_pw'] = wc_customer_edit_account_url();

    I can access now “edit address” and “change password”, but this is not working for “view order”.

    Thank you!

    #266486

    Hi,

    Can you provide us an account so we can test it?

    Regards,
    Josue

    #266670
    This reply has been marked as private.
    #267170

    Hi!

    Please try to replace this line:

    
    $url['account_view_order']	= $order->get_view_order_url();
    

    with

    
    $url['account_view_order']	= $order->view_order_url;
    

    2) Yes this should be possible – maybe you need to activate the “Anyone can register” setting on the wordpress option page (Settings > General).

    Regards,
    Peter

    #270654

    Thank you very much for your help, but I already replaced the line and it´s still not working…

    #271137

    Hey!

    Ok, then please try to replace

    
    $url['account_view_order']	= $order->get_view_order_url();
    

    with

    
    $url['account_view_order'] =  wc_get_endpoint_url( 'view-order', $order->id, get_permalink( wc_get_page_id( 'myaccount' ) ) );
    

    Cheers!
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.