Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Feature Request › Number of products per page
Tagged: Products per page
- This topic has 4 replies, 5 voices, and was last updated 4 years, 6 months ago by Sushobhan.
- AuthorPosts
- September 5, 2019 at 12:42 pm #80174Anis RahamanParticipant
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. - September 6, 2019 at 12:24 pm #80397WCFM ForumMember
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/LSd7hyBOr, 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
- October 11, 2019 at 12:49 am #86134Jamie O’ReillyParticipant
This worked for us too : )
- April 27, 2020 at 2:37 am #123436L StewartParticipant
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?
- April 27, 2020 at 9:57 am #123526SushobhanKeymaster
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!
- AuthorPosts
- You must be logged in to reply to this topic.