<td class="order-number" width="1%">
<a href="https://wordpress.stackexchange.com/questions/190318/<?php echo wc_get_endpoint_url("view-order', $order->id, wc_get_page_permalink( 'myaccount' ) ); ?>">
<?php echo $order->get_order_number(); ?></a>
</td>;
this should solve your problem.
But I am not sure which template your are modifying, but fool proof way is only possible with child theme (functionality plugin will be complex for your needs).
https://support.woothemes.com/hc/en-us/articles/203105897-How-to-set-up-and-use-a-child-theme
http://docs.woothemes.com/document/template-structure/
both of these should help you get started with child theme.
Note: Make sure you permalinks are set to Pretty permalink not default under section
WP Admin -> Settings -> Permalink -> Go to section named “Product permalink base” and make sure of that.
Related Posts:
- How to order posts (woocommerce products) alphabetically but ignore certain words, eg ‘The’ and ‘An’
- How to order custom user list columns by datetime?
- Sort on meta value but include posts that don’t have one
- Using Orderby and meta_value_num to order numbers first then strings
- multiple orderby in pre_get_posts action
- get_the_terms in descending alphabetical order
- next and previous post link ordered alphabetically
- Order posts by meta_value even if meta_key is not filled
- WooCommerce ‘all’ orders no longer being displayed – how may I debug/fix [closed]
- the_tags() : display the tags by the order they are typed in in the backend, not alphabetically
- WooCommerce – Customer Order History Pagination
- Sorting Attributes order when using get_the_terms
- How to order posts by meta value?
- WooCommerce – Show orders for a specific product ? [closed]
- How Do I Order Posts by Modified Date? [duplicate]
- Orderby Post Views
- Remove action from woocommerce barcode plugin [closed]
- Woocommerce change tax rate programmaticly
- How to order posts by alphabet with numbers at the end
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Best Plugin to Reorder Post Types
- Ordering system through WordPress
- Woocommerce: Add column to ORDERS admin page with items purchased
- Limiting woocommerce line_total decimal length
- Issue with multiple orderby values
- Woocommerce: Prevent sending of email when order is “Completed”
- get_query_var returns wrong default value
- Use pre_get_posts to sort meta_key by an array of values
- Order posts by price
- How to redefine the sorting of product categories by menu_order?
- how to do a processing Orders into Complete after x Minutes or x hour in WooCommerce [closed]
- WooCommerce quick checkout form? [closed]
- get_adjacent_post() returning weird results
- WooCommerce order complete email logic
- how to fix error “called incorrectly, should not be accessed directly”?
- WooCommerce orderby template disappears and not longer works on search page
- WooCommerce – How to show specific category first-rest of products-specific category last
- Display Woocommerce Orders for specific author [closed]
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- List most recently added posts (with a twist)
- Check post_date in pre_get_posts
- How to get woocommerce selected variation from order object
- pre_get_posts shows posts in random order sometimes
- Featured-Content/Featured Posts With Random Order
- Orderby in Query Posts affected by operating system?
- Cancelled orders move to Trash automatically in Woocommerce – how to disable?
- Stylesheet Enqueue Order and Best Practices
- how can i add an additional action into woocommerce admin order page through my plugin?
- How do order product categories – on a parent category page – in Woocommerce?
- wp_list_pages sort order by top nav menu order and child of
- How to display taxonomy terms the way they are hierarchical
- wp_list_categories() by alphabet? (ex. only category titles that start with “A”) [closed]
- Get usermeta info from sql query
- Create a regular post for every WooCommerce order
- Order by ASC, DESC, Title, Date from URL on custom page template post
- Offset posts with random order
- Sort query output on taxonomy term archive by post type using pre_get_posts
- Order WP_Query by The Order of an Array in Tax_Query
- How to alter taxes amounts when updating an order
- struggling to order by title
- Order by two meta values – one is a number and the other is text
- WordPress woocommerce new order email not working
- Last post sorting get_categories
- Access custom meta_data in processing order email
- Sort products by Sale price and stock status
- Sort by DESC works, ASC doesn’t?
- Shop sends Mail with order cancellation
- update_post_meta saves data but does not show in Order backend
- How to sort products by price ASC and place all no price products to the end? (Woocommerce)
- How can I change the background color of divs dynamically (depending on an order-status in woocommerce)?
- Woocommerce redirection if no previous orders
- where is admin footer?
- how can my customers view their purchased products history like an invoice in a specific page on WordPress
- Change the customer’s name to a link on an order management page
- how to complete order status automatically after paypal payment received
- How to override WooCommerce Order Item Meta with data from Cart?
- Order management including recurring orders on woocommerce
- Orderby Title not working
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- Woocommerce order_complete email dont send after changing order status via sql
- Put data in my-account/view-order/id/ page
- Conditional email recipient based off Shipping Method [closed]
- Sort posts by meta value with get method
- Want to order by Meta Values (tweaking Post Order Widget)
- Changing posts order on a page
- Ordering Subcategories
- How to order posts by parents?
- Problem with meta_value order after update
- How can I make have_posts() return posts ordered DESC by id?
- Add post order like page order
- How to make WordPress orderby work with post_excerpt column?
- Product atributes in title of order (not in description)
- WooCommerce: Order Details Table > Add Product Meta
- Woocommerce – Display product category of product in Orders page
- Orderby with menu_order and title
- Sorting by date not working?
- Woocommerce admin order email customize – remove product short description
- using custom pages for myaccount in woocommerce
- sort by date in users
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?