wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
02Day 12Hr 44Min 58Sec
wcfm-santa

Order notification open new page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Order notification open new page

Viewing 3 reply threads
  • Author
    Posts
    • #121270
      HERMES ALVES SOUZA
      Participant

      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.

    • #121642
      Sushobhan
      Keymaster

      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!

    • #121819
      HERMES ALVES SOUZA
      Participant

      Great! Once again it worked. My functions.php is getting giant hahaha

    • #121836
      Sushobhan
      Keymaster

      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.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.