Add a clickable button on my account view order page
-
I’m trying to insert a button on the “view order” page to redirect the user to a page on my site. As you can see in the screenshot, I tried to add this button with the a plugin, but I can only insert downloadable files and not URLs. I’m going crazy and can’t find a solution. Some advice?
Screenshot: https://i.stack.imgur.com/uWAaJ.png
I tried this code but just a label appears:
add_action( 'woocommerce_order_details_after_order_table', 'custom_order_details_after_order_table', 10, 1 ); function custom_order_details_after_order_table( $order ) { $user_link = get_post_meta( $order->id, '_user_link', true ); echo '<p><a class="author-link" href="'. $user_link .'">'. __( 'User Link: ' ) . '</a><p>'; }
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Add a clickable button on my account view order page’ is closed to new replies.