Woocommerce Pre Orders view order link wrong
The link that the pre order module produces in My Account doesn't work. It has to display like this: /my-account/view-order/15977 but how it displays now is: /my-account/?order=15977. How can i change that link to my structure.
This is the piece of code which displays it:
td class="order-number" width="1%"
a href="?php echo esc_url( add_query_arg( 'order', $order-id, get_permalink( woocommerce_get_page_id( 'view_order' ) ) ) ); ?"?php echo $order-get_order_number(); ?/a
/td
i also want it to be update proof ofcourse so how can i make a "child plugin".
thanks in advance,
Topic woocommerce-offtopic pre order Wordpress
Category Web