Add Articles to Store Tabs

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!

Viewing 7 reply threads
  • Author
    Posts
    • #46560
      Daniel
      Participant

      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.
    • #46569
      Sultan Iqbal Bhatti
      Guest

      Please update in vendor profile area, vendor could not change/edit his info after once.only admin can change.

      • #46572
        Daniel
        Participant

        ?? No idea what you’re talking about!

    • #46571
      Sultan Iqbal Bhatti
      Guest

      Required in vendor verification module add an attachments

    • #46601
      WCFM Forum
      Keymaster

      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

      • #46611
        Daniel
        Participant

        Thanks for the reply.

        If we disable the short description for articles for all vendors, can we keep the short description for products for all vendors?

        Best regards

        Daniel

    • #46602
      WCFM Forum
      Keymaster

      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

    • #46652
      WCFM Forum
      Keymaster

      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

      • #46714
        Daniel
        Participant

        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 38

        It 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

    • #46715
      WCFM Forum
      Keymaster

      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

      • #46717
        Daniel
        Participant

        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.
    • #46719
      WCFM Forum
      Keymaster

      Sorry, I misunderstood that, my fault.

      So, hope your all issues are resolved for now!

      Have a great day 🙂

Viewing 7 reply threads
  • The topic ‘Add Articles to Store Tabs’ is closed to new replies.