このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

WooCommerce Quantity Increment

説明

WooCommerce uses number inputs for the cart quantities by default, as most browsers now support <input type="number" />.

However, you may want to have JavaScript powered inputs if you want greater control over appearance. Simply install and activate this plugin to do so.

It optionally includes a Number Polyfill, which is a polyfill for implementing the HTML5 <input type="number"> element in browsers that do not currently support it.

To include this, add the following code to your theme’s functions.php file:

add_action( 'wp_enqueue_scripts', 'wcqi_enqueue_polyfill' );
function wcqi_enqueue_polyfill() {
    wp_enqueue_script( 'wcqi-number-polyfill' );
}

インストール

  1. Upload woocommerce-quantity-increment to the /wp-content/plugins/ directory or search for ‘WooCommerce Quantity Increment’ from Plugins > Add New.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

I don’t want to use the plugin styles as it looks bad with my theme

You can add the following to your functions.php file:

add_action( 'wp_enqueue_scripts', 'wcs_dequeue_quantity' );
function wcs_dequeue_quantity() {
    wp_dequeue_style( 'wcqi-css' );
}

This will dequeue the plugin’s stylesheet.

評価

2020年11月26日
Спасибо за труды. Для отключения стиля класс использовал wcqib-css
2020年7月17日
Thank you for your work. This is the best solution of all. Stay connected, please, so that the plugin lives and works always. If you want to remove the plugin styles add_action( 'wp_enqueue_scripts', 'wcs_dequeue_quantity' ); function wcs_dequeue_quantity() { wp_dequeue_style( 'wcqib-css' ); }
2020年6月25日
it seemed unfair to me that a good plugin doesn't have any comments
3件のレビューをすべて表示

貢献者と開発者

WooCommerce Quantity Increment はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WooCommerce Quantity Increment” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.1.1

  • Removed original author from contributors

1.1.0

  • Updated to work with the WooCommerce 2.6 cart ajax script.

1.0

  • Initial Release