Home › Forums › WoodMart support forum › Show a seperate header on order confirmation page
Show a seperate header on order confirmation page
- This topic has 11 replies, 2 voices, and was last updated 11 months, 2 weeks ago by Artem Temos.
-
AuthorPosts
-
February 8, 2024 at 5:28 pm #538093
refaParticipantHi,
I am using Woodmart theme with multiple headers for the homepage, cart page, and checkout page. I want to show a different header only for the order confirmation page/thank you page after the order is confirmed (Thank you, your order has been received page) how to do that? Please check the screenshot for your reference.
If a user manually inputs the URL with “siteurl/checkout/order-received/” he can get the order received page, but it shouldn’t allow them to access that page.
Also, is there any option to change the design of the order confirmation page?
If the order/payment failed which page customer will be redirected to? How do I customize that page? Please assist.
Thank you,
- This topic was modified 11 months, 2 weeks ago by refa.
- This topic was modified 11 months, 2 weeks ago by refa. Reason: I attached the screenshots on public area, I should've added it on private content
Attachments:
You must be logged in to view attached files.February 8, 2024 at 6:22 pm #538132
Artem TemosKeymasterHello,
WooCommerce thank you page is actually not a separate page but checkout. It means that all settings for checkout page will be the same for Thank you page. It is the same page but with different content.
Kind Regards
February 9, 2024 at 11:15 am #538306
refaParticipantBut what if I want to show a separate header based on the URL? The URL is different for both the checkout and order status page, so I want to show a different header based on the URL/checkout/ should show separately, and /checkout/status should show a different header. How can I achieve this?
February 9, 2024 at 1:36 pm #538371
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to set a custom header for the thank you page
add_filter('woodmart_get_current_header_id', function ( $id ) { if ( is_checkout() && ! empty( is_wc_endpoint_url( 'order-received' ) ) ) { return 'header_225478'; // Specify the id of the desired header. } return $id; });
You can get the header ID as per screenshot
- This reply was modified 11 months, 2 weeks ago by Artem Temos.
February 9, 2024 at 4:24 pm #538478
refaParticipantI tried but still the same. Also is it possible to use Elementor header?
February 9, 2024 at 4:38 pm #538487
Artem TemosKeymasterThis code is for our header builder only. If you are using Elementor PRO, then you need to consult with plugin’s developers for help on this matter.
February 9, 2024 at 4:52 pm #538496
refaParticipantThank you for the clarification. I tried it with woodmart default header only.
February 9, 2024 at 5:17 pm #538504
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
February 9, 2024 at 5:19 pm #538507
refaParticipantI tried it with default woodmart header only but the code is not working, on ‘order-status’ page the new header is not showing.
February 9, 2024 at 5:21 pm #538509
Artem TemosKeymasterDid you try to disable Elementor’s header for checkout?
February 9, 2024 at 5:29 pm #538514
refaParticipantWorking, thank you. I want to show an elementor pop-up when I click on the header logo. Will it work with the default theme header?
February 9, 2024 at 6:02 pm #538530
Artem TemosKeymasterThere is no such functionality by default. It might be possible with additional code customization but we don’t have a solution for this.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register