1. Home
  2. Docs
  3. Doc of WooCommerce Min Ma...
  4. ShortCode
  5. Min Max Default Quantity

Min Max Default Quantity

AD 4nXcx6ECOX0a8tS2wZWvNdg7sh5N1LklhbJRD5D7Plp43pZg65Bklyz6AnAnZVe9TcRaE2q3w6XY1QAu0OQ6NqONHpyVMkWd82k3TOmEztHoTiQ8sK11kIyg0oSCzTgNnsMzXmNY3

Introducing the Shortcode

This plugin offers essential shortcodes that used  to set minimum, maximum, and default purchase quantities for your products. Additionally, you can define unit prices based on quantities purchased.

Shortcodes

  • [alg_wc_pq_min_product_qty]: Sets the minimum number of units a customer can add to their cart for a specific product.
  • [alg_wc_pq_max_product_qty]: Sets a limit on the maximum number of units a customer can purchase for a particular product.
  • [alg_wc_pq_product_qty_price_unit]: Enables per-unit pricing based on quantity purchased (e.g., $5 per item for quantities below 10, and $4 per item for quantities of 10 or more).
  • [alg_wc_pq_product_qty_step]: Defines the increments (e.g., steps of 1, 5, or 10) for adjusting the purchase quantity.
  • [thousand_sep]: This shortcode is used to show thousand separators in the quantity information. It is particularly useful when dealing with large numbers to improve readability.  Example: [thousand_sep='yes'] Use Case: Useful for displaying quantities such as “1,000” instead of “1000” in dropdown menus or quantity fields.
  • [alg_wc_pq_translate] :This shortcode is used for translation purposes, particularly in multi-language setups like WPML or Polylang. It allows proper translation for all plugin messages. Usage: [alg_wc_pq_translate lang="en"] Use Case: To display translated text for different languages on WooCommerce sites using this plugin.

Benefits of Using These Shortcodes

These shortcodes can optimize your WooCommerce store by

  • Preventing Overstocking: Establishing a minimum purchase quantity to avoid selling products at a loss due to fulfillment costs.
  • Controlling Inventory Levels: Setting maximum purchase quantities to prevent stockouts on popular products.
  • Encouraging Bulk Buying: Using per-unit pricing to incentivize customers to purchase larger quantities.
  • Streamlining the Buying Process: Making it easier for customers to select the desired quantity through predefined increments.

Using the Shortcodes

To leverage these shortcodes, configure the “Min Max Default Quantity for WooCommerce” plugin. Within the plugin’s settings, define the default minimum, maximum, and step values for your products. Additionally, you can assign specific quantities and pricing structures to individual products by directly using the shortcodes in your product page templates.

AD 4nXeACajpFomxFp6adIEFLjpGbiv187BzWjvilHmy3t53sGdPjpCQ74r06VXmv 7CAwBzBwR9tP6Qo9KvwVKGormRWBe 3JtJrKozjTXbxqa6ta6YsN8WmxrRrbpNkraTDJCORSKm8Cslk2nbDxNyiOc 9o4z?key=R6KjyIA78Xd4vEe9HLMDJA

 

 

Min Max Default Quantity for WooCommerce

Tags