该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WooCommerce Products Per Page

描述

WooCommerce Products Per Page is a simple plugin that adds a very valuable feature to your site; the ability for you and the customer to change the products listed per page.

When your customers are shopping online they want the best experience possible, for some this means to have a small amount of products per page, while others like to have a long list of many (all) products available.
Using the WooCommerce Products Per Page your customers can choose how many products they want to see per page.

WooCommerce Products Per Page dropdown is easy to use and has several other product page settings available.
When activated the plugin already works and has multiple settings you can set to your desire.

Options like:

  • Dropdown position (top or bottom, top and bottom)
  • List op options products per page to show to your visitors
  • Default number of products per page
  • Columns per page

Look at the screenshots!

Translations
– Dutch
– French
– Persian
– German
– Danish
– Spanish
– Brazilian
– Russian
– Hebrew
– Swedish
– Romanian

屏幕截图

  • Dropdown box on the WooCommerce products page
  • Close-up of the WooCommerce products per page dropdown
  • WooCommerce Settings page

安装

  1. Upload the folder woocommerce-products-per-page to the /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Go to the settings page to fine-tune the settings if desired

常见问题

Can this be used with shortcodes?

At this moment the plugin doesn’t work with manual shortcodes that list products, only on the official WooCommerce shop page (this includes category archives etc).

The number of products per page isn’t changing when using the dropdown, why?

There’s a chance that your theme or another plugin is overriding the number of products per page. This functionality may need to be disabled in order for the plugin to work.
First try to determine what is causing this, your theme or a plugin. This can be done by switching themes / enable/disable plugins to see when the dropdown starts to work.
When determined what is causing it, it is possible to figure out what code is executed and how to disable that.

Feel free to open a support thread if you need any further help. Please do note that I cannot help everyone and every theme to be compatible.

评价

2021 年 9 月 18 日
I'm happy using this plugin. As it's clear thus easy to understand, I was able to quickly modify it to suit my needs and even adapt the filter plugin I use to work with it 🙂 Many thanks to the dev !
2021 年 3 月 21 日
in use 5y u need to do small adjustment for multilingulal to remove one word
2021 年 2 月 18 日
I've had limited testing with it, but this plugin seems to work just fine with Woocommerce 5.0.0 and Wordpress 5.6.1. A useful plugin that offers what should be a core Woocommerce function.
2020 年 7 月 16 日
This plugin works with WooCommerce 4.3 It says it has not been tested. But I tested after upgrade and it is great. If it does not work it might be your theme. Test that by changing theme. Storefront is a good theme to test against.
阅读所有80条评价

贡献者及开发者

“WooCommerce Products Per Page” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WooCommerce Products Per Page」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“WooCommerce Products Per Page”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.6 – 02/01/2023

  • [Update] – Declare HPOS (High-Performance Order Storage) compatibility
  • [Update] – Bump WooCommerce Requires/Tested up to version numbers

1.2.6 – 06/02/2018

  • [Critical] – Fix bug that displays 0 products on shop page on WC 3.3.1

1.2.5 – 20/11/2017

  • [Fix] – Accidentally overwrote the changes of 1.2.3 in version 1.2.4, this re-applies those changes. Sorry for the inconvenience.

1.2.4 – 07/11/2017

  • [Fix] – Default ‘list of dropdown options’ setting is not properly set on the settings page.

1.2.3 – 23/10/2017

  • [i18n] – Add Swedish translation
  • [i18n] – Add Romanian translation
  • [Fix] – Persistent cart snag where cart data gets deleted when logging out/back in

1.2.2 – 23/12/2015

  • [i18n] – Add Russian translation
  • [i18n] – Add Hebrew translation
  • [Improvement] – Change deprecated function to its successor

1.2.1 – 05/08/2015

  • Fix – GET method remembers query parameter strings

1.2.0 – 12/06/2015

  • Improvement – Structural changes to the plugin
  • NOTE – Due to the structural changes please check compatibility IF you have implemented a custom code
  • Improvement – Move the settings page to WooCommerce -> Settings -> Products -> Display
  • Add – Brazilian translation

1.1.7 – 25/04/2015

  • Improvement – Add url escaping
  • Add – Spanish translation
  • Add – Danish translation

1.1.6 – 20/03/2015

  • Improvement/fix – Setting the per_page query object. Preventing/fixing notices.

1.1.5 – 15/02/2015

  • Fix – Console notice in rare cases after WC 2.3 update

1.1.4 – 10/01/2015

  • Fix – Dropdown hides behind add to cart notice (non-ajax button)
  • Add – German translation

1.1.3.1 – 22/12/2014

  • Fix – Backwards compatibility fix

1.1.3 – 20/12/2014

  • Improvement – Improved code quality
  • Improvement – Replace $woocommerce global with WC() singleton
  • Improvement – Create WooCommerce_Products_Per_Page() singleton
  • Improvement – Bit clearer structure
  • Remove – Return void comment tags

1.1.2 – 11/08/2014

  • WC 2.2 compatibility fix

1.1.1 – 18/08/2014

  • Proper translation for ‘All’
  • Products in admin area aren’t influenced anymore
  • Removed unneeded comments

1.1.0.1

  • Removed – Duplicated main file with wrong name

1.1.0

  • Complete plugin rewrite
  • Added setting for HTTP method (defaults to POST)
  • Easier use in themes/templates
  • Fix – bug with product tags
  • Removed stylesheet (was just one line :o)
  • Inserted override for themes that would override the posts_per_page in query

1.0.10

  • Fix – Notices in debug mode

1.0.9

  • Improvement – For dropdown on product showing pages only
  • Improvement – Compatibility for WC 2.1.X
  • Fix – WC 2.1.X now saves PPP with empty cart

1.0.8

  • Fix – Bug on tag archive pages
  • Tweak – Dropdown only shows on pages which show products

1.0.7

  • Added support for filters/orders

1.0.5/1.0.6

  • Added French translation (thanks to whoaloic)
  • Fixed WooCommerce 2.0.X compatibily
  • Now is capable for WooCommerce 2.0.X and 2.1.X

1.0.4

  • Added option to control behaviour of select*
  • Added filter on option text*
  • Improved coding to WordPress coding standards

1.0.3

  • Fixed dutch translation*

1.0.2

  • Added Dutch translation*
  • Added ‘None’ to the dropdown locations*
  • Now uses WC sessions instead of cookies*
  • Gave higher priority to hook “loop_shop_per_page”*

1.0.1

  • Small update for cookies

1.0.0

  • Initial release