wcfm-santa

A deal you can't resist! Get upto 35% Off on this entire cyber week.

CLAIM OFFER
01Day 18Hr 46Min 55Sec
wcfm-santa

Number of products per page

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 4 reply threads
  • Author
    Posts
    • #80174
      Anis Rahaman
      Participant

      Hi
      I have set ‘Products per page’ to 12, but it only displays 10 product per page
      Please see the attached file for more info. Can you advise how to fix this?

      Attachments:
      You must be logged in to view attached files.
    • #80397
      WCFM Forum
      Keymaster

      HI,

      Well, possibly you have set this setting after creating this vendor.
      Now for this vendor you have to change this form his store setting. https://ibb.co/LSd7hyB

      Or, you may add this code to your site and apply rule globally –

      add_filter( 'wcfmmp_store_ppp', function( $post_per_page ) {
      	$post_per_page = '12';
      	return $post_per_page;
      }, 50 );

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thank You

    • #86134
      Jamie O’Reilly
      Participant

      This worked for us too : )

    • #123436
      L Stewart
      Participant

      I have used this code, but in the vendor settings they can still see the ‘products per page’ option. So I suppose it will also appear int he set up wizard. How can I remove the visibility for vendor to enter this?

    • #123526
      Sushobhan
      Keymaster

      Hello,
      To hide the settings from vendor dashboard you will also need to add the following snippet-

      add_filter('wcfm_marketplace_settings_fields_visibility', function($store_visibility) {
          if(wcfm_is_vendor() && isset($store_visibility['store_ppp'])) {
              unset($store_visibility['store_ppp']);
          }
          return $store_visibility;
      });

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/
      Let me know how this goes.
      Thanks!

Viewing 4 reply threads
  • You must be logged in to reply to this topic.