WP Manifestindependent plugin directory
manifest / ecommerce / jet-woo-qty-for-add-to-cart

Jet WooCommerce Qty Input

Add qty input t Add to cart shortcode.

★ 1stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/mjhead/jet-woo-qty-for-add-to-cart/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Adds new shortcode [jet_woo_add_to_cart_with_qty]. This shortcode is similar to default WooCommerce Add to Cart shortcode, but renders quantity input before Add to Cart button.

Note 1. This shortcode don't add any additional CSS, so you'll need to add styles you need manually.

Note 2. At the moment works only with AJAX add to cart.

Shortcode Attributes

  • id - ID of added to cart product.
  • sku - SKU of added to cart product. If set both, will be used ID.
  • quantity - initial quantity

Usage inside JetEngine Listing Grid

Use Dynamic Field widget and select Product ID as source (for WC Query, for Posts - Post ID):

image

Enable Customize field output option and paste shortcode into Field format, use %s placeholder to set Product ID into ID attibute of the shortcode:

image

Style result as you need:

image