Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Add Articles to Store Tabs
- This topic has 11 replies, 3 voices, and was last updated 5 years, 10 months ago by WCFM Forum.
- AuthorPosts
- February 4, 2019 at 1:48 pm #46560DanielParticipant
Hi Guys,
Thanks for the fantastic plugin.
Q1, Is it possible to have the vendor articles appear on the vendors store page?
Q2. Also I’ve been trying to hide the articles short description for certain groups/memberships but no matter what capability setting I disable the short description always displays.
I’m using the Rehub Marketplace theme, with your Ultimate and groups/staff plugins all latest versions.
Dan
Attachments:
You must be logged in to view attached files. - February 4, 2019 at 2:14 pm #46569Sultan Iqbal BhattiGuest
Please update in vendor profile area, vendor could not change/edit his info after once.only admin can change.
- February 4, 2019 at 2:18 pm #46571Sultan Iqbal BhattiGuest
Required in vendor verification module add an attachments
- February 4, 2019 at 5:12 pm #46601WCFM ForumMember
Hi @Daniel,
Q1, Is it possible to have the vendor articles appear on the vendors store page?
– Yeah possible, I will give you code for this.Q2. Also I’ve been trying to hide the articles short description for certain groups/memberships but no matter what capability setting I disable the short description always displays.
– Well, there is no capability for this. This can be disable. But then will disable for all vendors.Thank You
- February 4, 2019 at 5:13 pm #46602WCFM ForumMember
Hi @Sultan,
Please create your own thread for your own queries, do not write in other’s thread, specially when that is totally different context.
Well, WCFM Verification already has attachment option, please check this – https://wclovers.com/knowledgebase/wcfm-vendor-verification/
Thank You
- February 5, 2019 at 4:52 am #46652WCFM ForumMember
Hi Daniel,
Please add this code to your child theme’s functions.php –
add_filter( 'wcfm_article_manage_fields_content', function( $article_fields, $article_id ) { if( isset( $article_fields['excerpt'] ) ) { $article_fields['excerpt']['type'] = 'textarea'; $article_fields = wcfm_hide_field( 'excerpt', $article_fields ); } return $article_fields; }, 50, 2);
This will disable short description only for Articles.
Thank You
- February 5, 2019 at 10:18 am #46714DanielParticipant
Hello and thank you once again for the quick reply.
I added the code provided in the email and when I reloaded the page I got the following error.
Parse error: syntax error, unexpected ‘&’ in /wp-content/themes/rehub-blankchild/functions.php on line 38It seems the code is being parsed in the html email making it useless.
Anyway I used the code from here in the forum and all is good, the short descriptions for articles have been disabled, thank you.
You also said you would provide the code for this question below.
Q1, Is it possible to have the vendor articles appear on the vendors store page?
– Yeah possible, I will give you code for this.I’ll wait for your reply
Best Regards
Daniel
- February 5, 2019 at 10:46 am #46715WCFM ForumMember
HI,
Where you have added this code? Please show me screenshot?
Please be sure you have added this within PHP tag!
unexpected ‘&’ – certainly this code has o ‘&’ character.
Q1, Is it possible to have the vendor articles appear on the vendors store page?
– Right, here is your code –add_action( 'wcfmmp_before_store_article', function( $store_id, $store_info ) { ?> <div class="main-side no_bg_wrap clearfix<?php if (rehub_option('blog_archive_layout') == 'gridfull_blog') : ?> full_width<?php endif ;?>"> <div> <?php }, 50, 2); add_action( 'wcfmmp_store_article_template', function() { ?> <?php if (rehub_option('rehub_framework_archive_layout') == 'blog') : ?> <?php include(rh_locate_template('inc/parts/query_type2.php')); ?> <?php elseif (rehub_option('rehub_framework_archive_layout') == 'news_list') : ?> <?php $type='2'; ?> <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> <?php elseif (rehub_option('rehub_framework_archive_layout') == 'community_list') : ?> <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> <?php elseif (rehub_option('rehub_framework_archive_layout') == 'grid' || rehub_option('rehub_framework_archive_layout') == 'gridfull') : ?> <?php include(rh_locate_template('inc/parts/query_type3.php')); ?> <?php elseif (rehub_option('rehub_framework_archive_layout') == 'column_grid' || rehub_option('rehub_framework_archive_layout') == 'column_grid_full') : ?> <?php include(rh_locate_template('inc/parts/column_grid.php')); ?> <?php else : ?> <?php $type='2'; ?> <?php include(rh_locate_template('inc/parts/query_type1.php')); ?> <?php endif ;?> <?php }); add_action( 'wcfmmp_store_article_template_none', function() { ?> <h5><?php _e('Sorry. No articles yet!', 'rehub_framework'); ?></h5> <?php }); add_action( 'wcfmmp_after_store_article', function( $store_id, $store_info ) { ?> </div><div class="clearfix"></div> <?php rehub_pagination(); echo '</div>'; }, 50, 2); add_filter( 'wcfm_is_allow_store_articles', '__return_true' );
Thank You
- February 5, 2019 at 11:14 am #46717DanielParticipant
Wow, that’s amazing.
Brilliant articles now showing on vendor pages.
I don’t think you read my previous reply about the error correctly.
I said that I’d used the code from the email. The code shown in the email is wrong, the tags are being stripped inside the email.
I then used the code supplied here in the forum and everything worked perfectly.
So all is good.
It maybe better if you don’t show the code in the email, just provide a link back to the forum. That will avoid issues like with stupid people like me copying the code from the email. See the attachment.
thank you once again for the excellent service.
Best regards
Dan
Attachments:
You must be logged in to view attached files.
- February 5, 2019 at 11:33 am #46719WCFM ForumMember
Sorry, I misunderstood that, my fault.
So, hope your all issues are resolved for now!
Have a great day 🙂
- AuthorPosts
- The topic ‘Add Articles to Store Tabs’ is closed to new replies.