Home › Forums › WoodMart support forum › After reviewing the Thank You page, I noticed a discrepancy.
After reviewing the Thank You page, I noticed a discrepancy.
- This topic has 5 replies, 2 voices, and was last updated 3 months ago by
Luke Nielsen.
-
AuthorPosts
-
June 8, 2025 at 3:16 am #666004
pavel.vutkowParticipantThe displayed order number is incorrect — it’s showing the post ID instead of the actual order number, which should include a prefix. I’m using the official WooCommerce plugin to standardize order numbers.
It seems that the page is calling $order->get_id() instead of $order->get_order_number().
Can you help correct this so the proper (customized) order number is shown?
https://snipboard.io/wqTkCi.jpg
https://snipboard.io/A7ejda.jpg
Regards,June 9, 2025 at 2:20 pm #666182
Luke NielsenKeymasterHello,
Is there any chance that you could give me access to the dashboard area so I can check the settings there?
Looking forward to collaborating with you!
Kind Regards
June 10, 2025 at 3:22 am #666294
pavel.vutkowParticipantHi,
Thank you – yes, but please keep in mind that this is the live site.
Im the private mode I will sen dyou link.June 10, 2025 at 3:01 pm #666530
Luke NielsenKeymasterHello,
I have checked it and on my end it shows correctly, here are screenshots:
Layout – https://prnt.sc/SxCOPue65HEz
Default – https://prnt.sc/XVIsGcBGCpuALet me know if you have sorted it out.
Kind Regards
June 16, 2025 at 1:01 am #667534
pavel.vutkowParticipantHi,
I tested it again, and it took the ID. For now, I found a solution using a function..
// Хелпер функция – взема поръчка от URL (?key=wc_order_...) function get_order_from_thank_you_page() { if ( ! isset($_GET['key']) ) return false; $order_key = sanitize_text_field( $_GET['key'] ); $order_id = wc_get_order_id_by_order_key( $order_key ); if ( ! $order_id ) return false; return wc_get_order( $order_id ); } add_shortcode( 'customer_order_number', function() { $order = get_order_from_thank_you_page(); if ( ! $order ) return ''; return esc_html( $order->get_order_number() ); });
Are you planning to develop this page? Many options are missing now.
To make it more customizable and meaningful, it would be nice to be able to display all the fields separately – price, customer name, phone, email…. etc. Otherwise, it becomes a bit meaningless and I have to insert my own code to make it look different from the classic one.
June 16, 2025 at 2:21 pm #667682
Luke NielsenKeymasterHello,
Could you please send access to the staging site so I can disable that custom code there and check how it works?
Looking forward to collaborating with you!
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register