Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › WCFM Vacation message of seller showing in Shop pages
- This topic has 6 replies, 2 voices, and was last updated 6 years, 5 months ago by WCFM Forum.
- AuthorPosts
- June 3, 2018 at 11:06 pm #24252HassanParticipant
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 - June 4, 2018 at 11:57 am #24273WCFM ForumMember
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
- June 5, 2018 at 10:55 am #24345HassanParticipant
Thanks,
Looking forward for the update to be published.H
- June 11, 2018 at 8:45 pm #24704HassanParticipant
It didn’t work after updating to 4.1.3
Pls confirm.
- June 12, 2018 at 12:08 pm #24724WCFM ForumMember
Hi,
Please be sure you have update WCfM Ultimate as well, as it’s part of Ultimate.
Thank You
- June 13, 2018 at 1:45 am #24741HassanParticipant
It worked perfectly, Thanks.
- June 13, 2018 at 7:48 am #24750WCFM ForumMember
That’s great, welcome 🙂
- AuthorPosts
- The topic ‘WCFM Vacation message of seller showing in Shop pages’ is closed to new replies.