WCFM Vacation message of seller showing in Shop pages

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 WCFM Vacation message of seller showing in Shop pages

Viewing 6 reply threads
  • Author
    Posts
    • #24252
      Hassan
      Participant

      Hi,

      I have noticed that the WCFM vacation message of a seller is displayed in the top header of the categories of the shop.

      For example, a Seller “A” has activated a Vacation message for his store.
      Currently, the Seller Vacation message is displayed in the following places:
      1- Category Page – i.e. browsing the category “t-shirts” will have the seller message in the top.
      2- Products loop – in every product listing in the list of products, a message is displayed as well.
      3- Single Product page – two places here, in the top header of the single product page and also in place of the “Add to Cart” button”

      How can I keep it only displayed in the “Add to Cart” button.
      I want to hide the Seller vacation message from the Product Loop and the Category header.

      Thanks,
      Hassan

    • #24273
      WCFM Forum
      Member

      Hi,

      OK, I understand your concern.

      Currently there is nothing to disable this but we are going to add some disable filter over there.

      So you just have to add this two line in your site –

      add_filter( 'wcfm_is_allow_vacation_message_before_main_content', '__return_false');
      add_filter( 'wcfm_is_allow_vacation_message_after_shop_loop_item', '__return_false');

      Just to mention, this code will work only after WCfM 4.1.3 update.

      Thank You

    • #24345
      Hassan
      Participant

      Thanks,
      Looking forward for the update to be published.

      H

    • #24704
      Hassan
      Participant

      It didn’t work after updating to 4.1.3

      Pls confirm.

    • #24724
      WCFM Forum
      Member

      Hi,

      Please be sure you have update WCfM Ultimate as well, as it’s part of Ultimate.

      Thank You

    • #24741
      Hassan
      Participant

      It worked perfectly, Thanks.

    • #24750
      WCFM Forum
      Member

      That’s great, welcome 🙂

Viewing 6 reply threads
  • The topic ‘WCFM Vacation message of seller showing in Shop pages’ is closed to new replies.