Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Order notification open new page
Tagged: notification, open new page
- This topic has 3 replies, 2 voices, and was last updated 4 years, 7 months ago by Sushobhan.
- AuthorPosts
- April 21, 2020 at 1:14 pm #121270HERMES ALVES SOUZAParticipant
Hi,
How can i change for new order notification didn’t open a new target page (_blank). I want to open in the same page.
When a new order arrives, we click on notifications to see the order. When we click on the order number, a new window opens. I would not like it to open in a new window, but in the same window that I clicked on the order number.
- April 22, 2020 at 11:00 am #121642SushobhanKeymaster
Hello,
Thanks for getting in touch with us.
Please use the following snippet for your requirement-add_action( 'after_wcfm_messages', function() { ?> <script> jQuery( document ).ready( function ( $ ) { $( document.body ).on( 'updated_wcfm-messages', function () { $( '#wcfm_messages_listing_expander' ).find( '#wcfm-messages_wrapper a.wcfm_dashboard_item_title' ).removeAttr( 'target' ); } ); } ); </script> <?php } );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
Let me know how it goes.
Thanks! - April 22, 2020 at 6:13 pm #121819HERMES ALVES SOUZAParticipant
Great! Once again it worked. My functions.php is getting giant hahaha
- April 22, 2020 at 6:34 pm #121836SushobhanKeymaster
Hi,
You are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts
- You must be logged in to reply to this topic.