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.

by Crocoblock · github.com/mjhead/jet-woo-qty-for-add-to-cart

1stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mjhead/jet-woo-qty-for-add-to-cart/archive/refs/heads/master.zip

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