Removal of Notification / Enquiry number alert

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 WCFM – Ultimate Removal of Notification / Enquiry number alert

Viewing 10 reply threads
  • Author
    Posts
    • #20133
      info31
      Participant

      Hi there

      How do I removal of numbers on top of Notification / Enquiry if there are no notifications/enquiries.

      Ideally, the numbers should only show when there is a Notification / Enquiry.

      Thank you.

    • #20147
      WCFM Forum
      Keymaster

      Hi,

      “Ideally, the numbers should only show when there is a Notification / Enquiry.” – This is not possible to achieve using any PHP or CSS, if so then you have to edit the core files.

      If you really want to achieve this then may use some JavaScript.

      Or you may totally remove count display using CSS.

      Thank You

    • #20150
      info31
      Participant

      Is that achieved easily?

      Could you kindly send me the code?

      Thank you.

    • #20168
      Bingal
      Keymaster

      OK, I will give you that.

      Thank You

    • #20178
      info31
      Participant

      Thank you Bingal. I appreciate all your help.

      The level of support from WC Lovers has been amazing.

    • #20191
      WCFM Forum
      Keymaster

      Hi,

      Here is your code for the purpose –

      jQuery(document).ready(function($) {
      	function wcfmMessageCounthide()  {
      		$notice_count = parseInt( $('.notice_count').text() );
      		$message_count = parseInt( $('.message_count').text() );
      		$enquiry_count = parseInt( $('.enquiry_count').text() );
      		
      		if( !$notice_count ) {
      			$('.notice_count').hide();
      		} else {
      			$('.notice_count').show();
      		}
      		
      		if( !$message_count ) {
      			$('.message_count').hide();
      		} else {
      			$('.message_count').show();
      		}
      		
      		if( !$enquiry_count ) {
      			$('.enquiry_count').hide();
      		} else {
      			$('.enquiry_count').show();
      		}
      		
      		setTimeout(function() {
      			wcfmMessageCounthide();
      		}, 10000 );
      	}
      	wcfmMessageCounthide();
      });

      Please be careful it’s a JavaScript code, not PHP.

      Thank You
      Shhiv

    • #20232
      info31
      Guest

      Hi there,

      I’ve entered it into the custom javascript in my site:
      https://imgur.com/a/QfYl2

      Unfortunately, the numbers still remain.
      https://imgur.com/a/OQuBP

    • #20251
      Bingal
      Keymaster

      I send you a mail regarding this.

      I must say, your site is crazy.

      PHP, JS – no custom codes work ..

    • #20301
      Kevin
      Guest

      That is why I’m so stumped. It seems like all other codes work. Only the ones provided by WCFM (which is very bizarre).

      Thank you for all the help. I’m no very good in code, so I need all the help I can get.

      Is the code right? Am I installing it in the right place?

    • #20353
      Kevin
      Guest

      Hi. Following up on this.

    • #20356
      WCFM Forum
      Keymaster

      It’s resolved.
      Code added wrongly, garbage character as there.

      Thank You

Viewing 10 reply threads
  • The topic ‘Removal of Notification / Enquiry number alert’ is closed to new replies.