<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]
- Order by first name
- How to alter query order direction using $query->set(‘order’, ‘ASC’); inside a pre_get_posts filter?
- 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
- How do I get the latest note on the order at woocommerce? [closed]
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- Best Plugin to Reorder Post Types
- Ordering system through WordPress
- Create WooCommerce new order with specific ID
- 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
- Automatically remove a canceled order in Woocommerce
- Use pre_get_posts to sort meta_key by an array of values
- Show first the posts from 1 specific tag
- Order posts by price
- All, published and pending order
- 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”?
- Get_Users Orderby Page
- Sort order of next/prev sibling page
- WooCommerce orderby template disappears and not longer works on search page
- WooCommerce – How to show specific category first-rest of products-specific category last
- Order char by post title
- Display Woocommerce Orders for specific author [closed]
- Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?
- next_post_link and previous_post_link order not working properly
- query pages by a childs publish date
- 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
- get_total () returns 0 – woocommerce [closed]
- Featured-Content/Featured Posts With Random Order
- How to check if a product is purchased within the last 365 days before displaying something
- Orderby in Query Posts affected by operating system?
- Ordering posts by title containing numbers
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- WooCommerce: Force coupon for existing/registered customers [closed]
- 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
- view subcategories order by id
- Sort query output on taxonomy term archive by post type using pre_get_posts
- ASC and DESC separately from orderby
- 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
- Custom Email via Hook only for completed order
- Access custom meta_data in processing order email
- Sort products by Sale price and stock status
- Sort by DESC works, ASC doesn’t?
- Create order actions from custom fields woocommerce
- Shop sends Mail with order cancellation
- List of terms in alphabetical order under the respective initial letter and within columns
- 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?
- Changing cache update rate
- 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 save one API response to WooCommerce order meta data
- how to complete order status automatically after paypal payment received
- How to override WooCommerce Order Item Meta with data from Cart?