Title: Specify initial qty from shortcode?
Last modified: May 18, 2021

---

# Specify initial qty from shortcode?

 *  Resolved [henry321](https://wordpress.org/support/users/henry321/)
 * (@henry321)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/)
 * I am using shortcode to create a table of products, like this:
    [product_table
   id=”46″ skus=”123,234,542,6575″]
 * The table has columns: image, sku, title, qty, and add to cart.
    The qty column
   is a drop down box that always default to 1. Is it possible to specify by shortcode
   that certain skus should default to a different quantity?
 * Something like:
    [product_table id=”46″ skus=”123(qty=2),234,542(qty=5),6575″]

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [WC Product Table](https://wordpress.org/support/users/wcproducttable/)
 * (@wcproducttable)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/#post-14456649)
 * Hi,
 * Thank you for your query.
 * Yes, you can show unique starting / minimum quantities for products in the table.
 * But it works differently than the way you asked about.
 * First, you need to use [WCPT PRO](https://pro.wcproducttable.com/) on your website.
   The PRO version has been made compatible with dozens of 3rd party plugins, including
   multiple plugins that help you set min, max and step rules for the product quantity.
 * Please see WCPT PRO 3rd party [compatibility list](https://www.notion.so/List-of-3rd-party-plugins-compatible-with-WCPT-PRO-b6138e2590684cf49a198beb292aa3c1)
   > Quantity Min, Max and Step rules.
 * You can also see other PRO [exclusive features](https://www.notion.so/WCPT-PRO-Features-88d026542a2245719a71c33649c3f3d2).
 * Happy to answer any further questions about this.
 * Regards,
    Kartik
 *  Thread Starter [henry321](https://wordpress.org/support/users/henry321/)
 * (@henry321)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/#post-14459647)
 * Unfortunately, that doesn’t accomplish what I’m looking for. The quality min/
   max/step rules apply to a specific product across the board. What I’d like is
   to apply it per table. For one table, the default quantity may be 1, whereas 
   the same product in another table may be 3.
 * I am using this to help customers buy replacement parts for a bundle product.
   My bundle product is displayed normally in the store, then in a separate section
   for “replacement parts”, I list the individual components for each bundle using
   this Product Table plugin so the customer can purchase replacement parts a la
   carte. But it would be nice to indicate that for a certain replacement part, 
   they’d normally need qty 2 to complete the bundle. I also don’t want to restrict
   a min/max/step because they may only need to replace 1 piece of the 2.
 * Maybe a separate text column for “normally comes with qty”, and then a column
   for selectable “qty to buy”. Is that something the pro version can do?
 *  Plugin Author [WC Product Table](https://wordpress.org/support/users/wcproducttable/)
 * (@wcproducttable)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/#post-14461389)
 * Thank you for further clarifying your requirement. But what you are asking about
   is not really a facility in WCPT PRO or any plugin I know of as it is a very 
   niche requirement (this is the first time I have come across it).
 * To be clear – with WCPT you can have a column showing any attribute or custom
   field from the product. And you can also show the quantity element as a dropdown.
   But I am referring to the crucial part of your requirement – modify the starting
   quantity input based on the shortcode which can change from one table to the 
   other. That is not a facility.
 * However, it can be accomplished with custom work. If you need this, please write
   in via the [support form](https://wcproducttable.com/support) and we will connect
   to discuss further.
 *  Plugin Author [WC Product Table](https://wordpress.org/support/users/wcproducttable/)
 * (@wcproducttable)
 * [5 years ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/#post-14499359)
 * Just to let you know – I am closing this topic as I have not received a response
   in over a week. But if you have any further questions related to WCPT, please
   feel free to write in again and I will be happy to answer.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Specify initial qty from shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/wc-product-table-lite/assets/icon-256x256.png?rev=3370649)
 * [Product Table & List Builder for WooCommerce](https://wordpress.org/plugins/wc-product-table-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-product-table-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-product-table-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-product-table-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-product-table-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-product-table-lite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [WC Product Table](https://wordpress.org/support/users/wcproducttable/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/specify-initial-qty-from-shortcode/#post-14499359)
 * Status: resolved